From 13effd445b6945bbee5da1fea2db85af533b4642 Mon Sep 17 00:00:00 2001 From: factset-sdk-bot Date: Wed, 8 Sep 2021 19:21:07 +0000 Subject: [PATCH 1/4] feat(sdk): Auto-commit from 'analyticsapi-engines-sdk-generator' repository PR 43 for SDK version v5.2.0 --- auto-generated-sdk/.openapi-generator/FILES | 92 + .../FactSet.AnalyticsAPI.Engines.sln | 15 +- auto-generated-sdk/README.md | 69 +- auto-generated-sdk/docs/AFIOptimizerApi.md | 24 +- auto-generated-sdk/docs/AXPOptimizerApi.md | 24 +- auto-generated-sdk/docs/AccountsApi.md | 90 +- auto-generated-sdk/docs/BPMOptimizerApi.md | 24 +- auto-generated-sdk/docs/BenchmarksApi.md | 4 +- .../docs/ColumnStatisticsApi.md | 4 +- auto-generated-sdk/docs/ColumnsApi.md | 8 +- auto-generated-sdk/docs/ComponentSummary.md | 1 + auto-generated-sdk/docs/ComponentsApi.md | 32 +- auto-generated-sdk/docs/ConfigurationsApi.md | 8 +- auto-generated-sdk/docs/CurrenciesApi.md | 4 +- auto-generated-sdk/docs/DatesApi.md | 8 +- auto-generated-sdk/docs/DocumentsApi.md | 16 +- .../docs/FIABCalculationsApi.md | 17 +- auto-generated-sdk/docs/FICalculationsApi.md | 24 +- auto-generated-sdk/docs/FIJobSettings.md | 3 + auto-generated-sdk/docs/FISecurity.md | 3 +- auto-generated-sdk/docs/FPOOptimizerApi.md | 24 +- auto-generated-sdk/docs/FrequenciesApi.md | 12 +- auto-generated-sdk/docs/GroupsApi.md | 4 +- auto-generated-sdk/docs/LinkedPATemplate.md | 16 + .../docs/LinkedPATemplateParameters.md | 13 + .../docs/LinkedPATemplateParametersRoot.md | 11 + .../docs/LinkedPATemplateRoot.md | 11 + .../docs/LinkedPATemplateSummary.md | 12 + .../docs/LinkedPATemplateSummaryRoot.md | 11 + .../docs/LinkedPATemplateUpdateParameters.md | 12 + .../LinkedPATemplateUpdateParametersRoot.md | 11 + .../docs/LinkedPATemplatesApi.md | 443 +++++ auto-generated-sdk/docs/NPOOptimizerApi.md | 24 +- .../docs/OptimizerOutputTypes.md | 1 + auto-generated-sdk/docs/PACalculationsApi.md | 24 +- auto-generated-sdk/docs/PAComponent.md | 1 + auto-generated-sdk/docs/PAComponentData.md | 16 + auto-generated-sdk/docs/PubCalculationsApi.md | 24 +- .../docs/QuantAllUniversalScreenParameters.md | 10 + .../docs/QuantCalculationParameters.md | 12 +- .../docs/QuantCalculationsApi.md | 107 +- auto-generated-sdk/docs/QuantDate.md | 12 + auto-generated-sdk/docs/QuantDateList.md | 1 + .../docs/QuantDateListObsolete.md | 12 + auto-generated-sdk/docs/QuantFdsDate.md | 1 + .../docs/QuantFdsDateObsolete.md | 13 + auto-generated-sdk/docs/QuantFormula.md | 10 + auto-generated-sdk/docs/QuantFqlExpression.md | 1 + .../docs/QuantFqlExpressionObsolete.md | 11 + .../docs/QuantIdentifierUniverse.md | 1 + .../docs/QuantIdentifierUniverseObsolete.md | 12 + .../docs/QuantScreeningExpression.md | 1 + .../docs/QuantScreeningExpressionObsolete.md | 11 + .../docs/QuantScreeningExpressionUniverse.md | 1 + ...uantScreeningExpressionUniverseObsolete.md | 13 + .../docs/QuantUniversalScreenParameter.md | 1 + .../QuantUniversalScreenParameterObsolete.md | 11 + .../docs/QuantUniversalScreenUniverse.md | 1 + .../QuantUniversalScreenUniverseObsolete.md | 11 + auto-generated-sdk/docs/QuantUniverse.md | 10 + auto-generated-sdk/docs/ReturnType.md | 11 + auto-generated-sdk/docs/SPARAccounts.md | 10 + auto-generated-sdk/docs/SPARAccountsRoot.md | 11 + .../docs/SPARCalculationParameters.md | 1 + .../docs/SPARCalculationsApi.md | 24 +- .../docs/StrategyDocumentsApi.md | 20 +- .../docs/TemplateContentTypes.md | 12 + .../docs/TemplatedPAComponentParameters.md | 13 + .../TemplatedPAComponentParametersRoot.md | 11 + .../docs/TemplatedPAComponentSummary.md | 13 + .../docs/TemplatedPAComponentSummaryRoot.md | 11 + .../TemplatedPAComponentUpdateParameters.md | 12 + ...emplatedPAComponentUpdateParametersRoot.md | 11 + .../docs/TemplatedPAComponentsApi.md | 267 +++ auto-generated-sdk/docs/UnlinkedPATemplate.md | 24 + .../docs/UnlinkedPATemplateCategoryAndType.md | 11 + ...nlinkedPATemplateCategoryAndTypeDetails.md | 12 + ...kedPATemplateCategoryAndTypeDetailsRoot.md | 11 + .../UnlinkedPATemplateCategoryAndTypeRoot.md | 11 + .../docs/UnlinkedPATemplateParameters.md | 20 + .../docs/UnlinkedPATemplateParametersRoot.md | 11 + .../docs/UnlinkedPATemplateRoot.md | 11 + .../docs/UnlinkedPATemplateSummary.md | 12 + .../docs/UnlinkedPATemplateSummaryRoot.md | 11 + .../UnlinkedPATemplateUpdateParameters.md | 18 + .../UnlinkedPATemplateUpdateParametersRoot.md | 11 + .../docs/UnlinkedPATemplatesApi.md | 605 +++++++ .../docs/VaultCalculationsApi.md | 24 +- auto-generated-sdk/docs/VaultComponent.md | 1 + .../Api/AFIOptimizerApi.cs | 72 + .../Api/AXPOptimizerApi.cs | 72 + .../Api/AccountsApi.cs | 208 +++ .../Api/BPMOptimizerApi.cs | 72 + .../Api/BenchmarksApi.cs | 12 + .../Api/ColumnStatisticsApi.cs | 12 + .../Api/ColumnsApi.cs | 24 + .../Api/ComponentsApi.cs | 146 +- .../Api/ConfigurationsApi.cs | 24 + .../Api/CurrenciesApi.cs | 12 + .../Api/DatesApi.cs | 24 + .../Api/DocumentsApi.cs | 48 + .../Api/FIABCalculationsApi.cs | 50 +- .../Api/FICalculationsApi.cs | 72 + .../Api/FPOOptimizerApi.cs | 72 + .../Api/FrequenciesApi.cs | 36 + .../Api/GroupsApi.cs | 12 + .../Api/LinkedPATemplatesApi.cs | 1190 +++++++++++++ .../Api/NPOOptimizerApi.cs | 72 + .../Api/PACalculationsApi.cs | 72 + .../Api/PubCalculationsApi.cs | 72 + .../Api/QuantCalculationsApi.cs | 268 +++ .../Api/SPARCalculationsApi.cs | 72 + .../Api/StrategyDocumentsApi.cs | 60 + .../Api/TemplatedPAComponentsApi.cs | 772 +++++++++ .../Api/UnlinkedPATemplatesApi.cs | 1538 +++++++++++++++++ .../Api/VaultCalculationsApi.cs | 72 + .../Client/ApiClient.cs | 2 +- .../Client/Configuration.cs | 6 +- .../FactSet.AnalyticsAPI.Engines.csproj | 2 +- .../Model/AccountDirectoriesRoot.cs | 2 +- .../Model/CalculationInfoRoot.cs | 2 +- .../Model/ColumnRoot.cs | 2 +- .../Model/ColumnStatisticRoot.cs | 2 +- .../Model/ColumnSummaryRoot.cs | 2 +- .../Model/ComponentSummary.cs | 19 +- .../Model/ComponentSummaryRoot.cs | 2 +- .../Model/CurrencyRoot.cs | 2 +- .../Model/DateParametersSummaryRoot.cs | 2 +- .../Model/DocumentDirectoriesRoot.cs | 2 +- .../Model/FIJobSettings.cs | 83 +- .../Model/FISecurity.cs | 56 +- .../Model/FrequencyRoot.cs | 2 +- .../Model/GroupRoot.cs | 2 +- .../Model/LinkedPATemplate.cs | 226 +++ .../Model/LinkedPATemplateParameters.cs | 184 ++ .../Model/LinkedPATemplateParametersRoot.cs | 148 ++ .../Model/LinkedPATemplateRoot.cs | 148 ++ .../Model/LinkedPATemplateSummary.cs | 161 ++ .../Model/LinkedPATemplateSummaryRoot.cs | 149 ++ .../Model/LinkedPATemplateUpdateParameters.cs | 160 ++ .../LinkedPATemplateUpdateParametersRoot.cs | 148 ++ .../Model/ObjectRoot.cs | 4 +- .../Model/OptimizerOutputTypes.cs | 18 +- .../Model/PAComponent.cs | 19 +- .../Model/PAComponentData.cs | 232 +++ .../Model/PAComponentRoot.cs | 2 +- .../QuantAllUniversalScreenParameters.cs | 160 ++ .../Model/QuantCalculationParameters.cs | 169 +- .../Model/QuantDate.cs | 182 ++ .../Model/QuantDateList.cs | 35 +- .../Model/QuantDateListObsolete.cs | 166 ++ .../Model/QuantFdsDate.cs | 35 +- .../Model/QuantFdsDateObsolete.cs | 183 ++ .../Model/QuantFormula.cs | 160 ++ .../Model/QuantFqlExpression.cs | 47 +- .../Model/QuantFqlExpressionObsolete.cs | 149 ++ .../Model/QuantIdentifierUniverse.cs | 41 +- .../Model/QuantIdentifierUniverseObsolete.cs | 205 +++ .../Model/QuantScreeningExpression.cs | 47 +- .../Model/QuantScreeningExpressionObsolete.cs | 149 ++ .../Model/QuantScreeningExpressionUniverse.cs | 41 +- ...uantScreeningExpressionUniverseObsolete.cs | 220 +++ .../Model/QuantUniversalScreenParameter.cs | 47 +- .../QuantUniversalScreenParameterObsolete.cs | 149 ++ .../Model/QuantUniversalScreenUniverse.cs | 41 +- .../QuantUniversalScreenUniverseObsolete.cs | 171 ++ .../Model/QuantUniverse.cs | 154 ++ .../Model/ReturnType.cs | 142 ++ .../Model/SPARAccounts.cs | 128 ++ .../Model/SPARAccountsRoot.cs | 148 ++ .../Model/SPARBenchmarkRoot.cs | 2 +- .../Model/SPARCalculationParameters.cs | 19 +- .../Model/TemplateContentTypes.cs | 164 ++ .../Model/TemplatedPAComponentParameters.cs | 184 ++ .../TemplatedPAComponentParametersRoot.cs | 148 ++ .../Model/TemplatedPAComponentSummary.cs | 174 ++ .../Model/TemplatedPAComponentSummaryRoot.cs | 149 ++ .../TemplatedPAComponentUpdateParameters.cs | 160 ++ ...emplatedPAComponentUpdateParametersRoot.cs | 148 ++ .../Model/UnlinkedPATemplate.cs | 352 ++++ .../UnlinkedPATemplateCategoryAndType.cs | 144 ++ ...nlinkedPATemplateCategoryAndTypeDetails.cs | 161 ++ ...kedPATemplateCategoryAndTypeDetailsRoot.cs | 148 ++ .../UnlinkedPATemplateCategoryAndTypeRoot.cs | 149 ++ .../Model/UnlinkedPATemplateParameters.cs | 306 ++++ .../Model/UnlinkedPATemplateParametersRoot.cs | 148 ++ .../Model/UnlinkedPATemplateRoot.cs | 148 ++ .../Model/UnlinkedPATemplateSummary.cs | 158 ++ .../Model/UnlinkedPATemplateSummaryRoot.cs | 149 ++ .../UnlinkedPATemplateUpdateParameters.cs | 265 +++ .../UnlinkedPATemplateUpdateParametersRoot.cs | 148 ++ .../Model/VaultComponent.cs | 19 +- .../Model/VaultComponentRoot.cs | 2 +- .../Model/VaultConfigurationRoot.cs | 2 +- .../Model/VaultConfigurationSummaryRoot.cs | 2 +- 195 files changed, 15637 insertions(+), 349 deletions(-) create mode 100644 auto-generated-sdk/docs/LinkedPATemplate.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplateParameters.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplateParametersRoot.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplateRoot.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplateSummary.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplateSummaryRoot.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplateUpdateParameters.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplateUpdateParametersRoot.md create mode 100644 auto-generated-sdk/docs/LinkedPATemplatesApi.md create mode 100644 auto-generated-sdk/docs/PAComponentData.md create mode 100644 auto-generated-sdk/docs/QuantAllUniversalScreenParameters.md create mode 100644 auto-generated-sdk/docs/QuantDate.md create mode 100644 auto-generated-sdk/docs/QuantDateListObsolete.md create mode 100644 auto-generated-sdk/docs/QuantFdsDateObsolete.md create mode 100644 auto-generated-sdk/docs/QuantFormula.md create mode 100644 auto-generated-sdk/docs/QuantFqlExpressionObsolete.md create mode 100644 auto-generated-sdk/docs/QuantIdentifierUniverseObsolete.md create mode 100644 auto-generated-sdk/docs/QuantScreeningExpressionObsolete.md create mode 100644 auto-generated-sdk/docs/QuantScreeningExpressionUniverseObsolete.md create mode 100644 auto-generated-sdk/docs/QuantUniversalScreenParameterObsolete.md create mode 100644 auto-generated-sdk/docs/QuantUniversalScreenUniverseObsolete.md create mode 100644 auto-generated-sdk/docs/QuantUniverse.md create mode 100644 auto-generated-sdk/docs/ReturnType.md create mode 100644 auto-generated-sdk/docs/SPARAccounts.md create mode 100644 auto-generated-sdk/docs/SPARAccountsRoot.md create mode 100644 auto-generated-sdk/docs/TemplateContentTypes.md create mode 100644 auto-generated-sdk/docs/TemplatedPAComponentParameters.md create mode 100644 auto-generated-sdk/docs/TemplatedPAComponentParametersRoot.md create mode 100644 auto-generated-sdk/docs/TemplatedPAComponentSummary.md create mode 100644 auto-generated-sdk/docs/TemplatedPAComponentSummaryRoot.md create mode 100644 auto-generated-sdk/docs/TemplatedPAComponentUpdateParameters.md create mode 100644 auto-generated-sdk/docs/TemplatedPAComponentUpdateParametersRoot.md create mode 100644 auto-generated-sdk/docs/TemplatedPAComponentsApi.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplate.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndType.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetails.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetailsRoot.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeRoot.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateParameters.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateParametersRoot.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateRoot.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateSummary.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateSummaryRoot.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateUpdateParameters.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplateUpdateParametersRoot.md create mode 100644 auto-generated-sdk/docs/UnlinkedPATemplatesApi.md create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/UnlinkedPATemplatesApi.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplate.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParameters.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParametersRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummary.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummaryRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParameters.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParametersRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentData.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantAllUniversalScreenParameters.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDate.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateListObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDateObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFormula.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpressionObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverseObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverseObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameterObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverseObsolete.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniverse.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ReturnType.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccounts.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccountsRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplateContentTypes.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParameters.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParametersRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummary.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummaryRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParameters.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParametersRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplate.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndType.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetails.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetailsRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParameters.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParametersRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummary.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummaryRoot.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParameters.cs create mode 100644 auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParametersRoot.cs diff --git a/auto-generated-sdk/.openapi-generator/FILES b/auto-generated-sdk/.openapi-generator/FILES index 1a2fe7cf..6f75d045 100644 --- a/auto-generated-sdk/.openapi-generator/FILES +++ b/auto-generated-sdk/.openapi-generator/FILES @@ -80,6 +80,15 @@ docs/FrequencyRoot.md docs/Group.md docs/GroupRoot.md docs/GroupsApi.md +docs/LinkedPATemplate.md +docs/LinkedPATemplateParameters.md +docs/LinkedPATemplateParametersRoot.md +docs/LinkedPATemplateRoot.md +docs/LinkedPATemplateSummary.md +docs/LinkedPATemplateSummaryRoot.md +docs/LinkedPATemplateUpdateParameters.md +docs/LinkedPATemplateUpdateParametersRoot.md +docs/LinkedPATemplatesApi.md docs/NPOOptimizationParameters.md docs/NPOOptimizationParametersRoot.md docs/NPOOptimizerApi.md @@ -101,6 +110,7 @@ docs/PACalculationParameters.md docs/PACalculationParametersRoot.md docs/PACalculationsApi.md docs/PAComponent.md +docs/PAComponentData.md docs/PAComponentRoot.md docs/PADateParameters.md docs/PAIdentifier.md @@ -110,18 +120,33 @@ docs/PubCalculationParametersRoot.md docs/PubCalculationsApi.md docs/PubDateParameters.md docs/PubIdentifier.md +docs/QuantAllUniversalScreenParameters.md docs/QuantCalculationMeta.md docs/QuantCalculationParameters.md docs/QuantCalculationParametersRoot.md docs/QuantCalculationsApi.md +docs/QuantDate.md docs/QuantDateList.md +docs/QuantDateListObsolete.md docs/QuantFdsDate.md +docs/QuantFdsDateObsolete.md +docs/QuantFormula.md docs/QuantFqlExpression.md +docs/QuantFqlExpressionObsolete.md docs/QuantIdentifierUniverse.md +docs/QuantIdentifierUniverseObsolete.md docs/QuantScreeningExpression.md +docs/QuantScreeningExpressionObsolete.md docs/QuantScreeningExpressionUniverse.md +docs/QuantScreeningExpressionUniverseObsolete.md docs/QuantUniversalScreenParameter.md +docs/QuantUniversalScreenParameterObsolete.md docs/QuantUniversalScreenUniverse.md +docs/QuantUniversalScreenUniverseObsolete.md +docs/QuantUniverse.md +docs/ReturnType.md +docs/SPARAccounts.md +docs/SPARAccountsRoot.md docs/SPARBenchmark.md docs/SPARBenchmarkRoot.md docs/SPARCalculationParameters.md @@ -130,6 +155,27 @@ docs/SPARCalculationsApi.md docs/SPARDateParameters.md docs/SPARIdentifier.md docs/StrategyDocumentsApi.md +docs/TemplateContentTypes.md +docs/TemplatedPAComponentParameters.md +docs/TemplatedPAComponentParametersRoot.md +docs/TemplatedPAComponentSummary.md +docs/TemplatedPAComponentSummaryRoot.md +docs/TemplatedPAComponentUpdateParameters.md +docs/TemplatedPAComponentUpdateParametersRoot.md +docs/TemplatedPAComponentsApi.md +docs/UnlinkedPATemplate.md +docs/UnlinkedPATemplateCategoryAndType.md +docs/UnlinkedPATemplateCategoryAndTypeDetails.md +docs/UnlinkedPATemplateCategoryAndTypeDetailsRoot.md +docs/UnlinkedPATemplateCategoryAndTypeRoot.md +docs/UnlinkedPATemplateParameters.md +docs/UnlinkedPATemplateParametersRoot.md +docs/UnlinkedPATemplateRoot.md +docs/UnlinkedPATemplateSummary.md +docs/UnlinkedPATemplateSummaryRoot.md +docs/UnlinkedPATemplateUpdateParameters.md +docs/UnlinkedPATemplateUpdateParametersRoot.md +docs/UnlinkedPATemplatesApi.md docs/VaultCalculationParameters.md docs/VaultCalculationParametersRoot.md docs/VaultCalculationsApi.md @@ -159,12 +205,15 @@ src/FactSet.AnalyticsAPI.Engines/Api/FICalculationsApi.cs src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs +src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs src/FactSet.AnalyticsAPI.Engines/Api/NPOOptimizerApi.cs src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs +src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs +src/FactSet.AnalyticsAPI.Engines/Api/UnlinkedPATemplatesApi.cs src/FactSet.AnalyticsAPI.Engines/Api/VaultCalculationsApi.cs src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs src/FactSet.AnalyticsAPI.Engines/Client/ApiException.cs @@ -244,6 +293,14 @@ src/FactSet.AnalyticsAPI.Engines/Model/Frequency.cs src/FactSet.AnalyticsAPI.Engines/Model/FrequencyRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/Group.cs src/FactSet.AnalyticsAPI.Engines/Model/GroupRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplate.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummary.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummaryRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategy.cs @@ -263,6 +320,7 @@ src/FactSet.AnalyticsAPI.Engines/Model/PACalculationGroup.cs src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/PAComponent.cs +src/FactSet.AnalyticsAPI.Engines/Model/PAComponentData.cs src/FactSet.AnalyticsAPI.Engines/Model/PAComponentRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/PADateParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/PAIdentifier.cs @@ -271,23 +329,57 @@ src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/PubDateParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/PubIdentifier.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantAllUniversalScreenParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationMeta.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantDate.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantDateList.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantDateListObsolete.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDate.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDateObsolete.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantFormula.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpression.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpressionObsolete.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverse.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverseObsolete.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpression.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionObsolete.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverse.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverseObsolete.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameter.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameterObsolete.cs src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverse.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverseObsolete.cs +src/FactSet.AnalyticsAPI.Engines/Model/QuantUniverse.cs +src/FactSet.AnalyticsAPI.Engines/Model/ReturnType.cs +src/FactSet.AnalyticsAPI.Engines/Model/SPARAccounts.cs +src/FactSet.AnalyticsAPI.Engines/Model/SPARAccountsRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmark.cs src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmarkRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/SPARDateParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/SPARIdentifier.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplateContentTypes.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummary.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummaryRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplate.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndType.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetails.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetailsRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummary.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummaryRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/VaultComponent.cs diff --git a/auto-generated-sdk/FactSet.AnalyticsAPI.Engines.sln b/auto-generated-sdk/FactSet.AnalyticsAPI.Engines.sln index ab8995b8..5a47805a 100644 --- a/auto-generated-sdk/FactSet.AnalyticsAPI.Engines.sln +++ b/auto-generated-sdk/FactSet.AnalyticsAPI.Engines.sln @@ -1,8 +1,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31205.134 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FactSet.AnalyticsAPI.Engines", "src\FactSet.AnalyticsAPI.Engines\FactSet.AnalyticsAPI.Engines.csproj", "{D7309227-518B-45ED-896A-4853BE6A9075}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FactSet.AnalyticsAPI.Engines", "src\FactSet.AnalyticsAPI.Engines\FactSet.AnalyticsAPI.Engines.csproj", "{D7309227-518B-45ED-896A-4853BE6A9075}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -14,11 +14,12 @@ Global {D7309227-518B-45ED-896A-4853BE6A9075}.Debug|Any CPU.Build.0 = Debug|Any CPU {D7309227-518B-45ED-896A-4853BE6A9075}.Release|Any CPU.ActiveCfg = Release|Any CPU {D7309227-518B-45ED-896A-4853BE6A9075}.Release|Any CPU.Build.0 = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU + {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {0FE4987B-8C74-42E7-ACC6-878CBD6CCF9A} - EndGlobalSection -EndGlobal +EndGlobal \ No newline at end of file diff --git a/auto-generated-sdk/README.md b/auto-generated-sdk/README.md index e1d03600..e90a90ab 100644 --- a/auto-generated-sdk/README.md +++ b/auto-generated-sdk/README.md @@ -5,7 +5,7 @@ Allow clients to fetch Analytics through APIs. This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] -- SDK version: 5.0.0 +- SDK version: 5.2.0 - Build package: CustomCSharpNetCoreClientCodegen For more information, please visit [https://developer.factset.com/contact](https://developer.factset.com/contact) @@ -76,6 +76,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AFIOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run AFI optimization endpoint @@ -117,6 +119,7 @@ Class | Method | HTTP request | Description *AXPOptimizerApi* | [**PostAndOptimize**](docs/AXPOptimizerApi.md#postandoptimize) | **POST** /analytics/engines/axp/v3/optimizations | Create and Run Axioma optimization *AXPOptimizerApi* | [**PutAndOptimize**](docs/AXPOptimizerApi.md#putandoptimize) | **PUT** /analytics/engines/axp/v3/optimizations/{id} | Create or Update Axioma optimization and run it. *AccountsApi* | [**GetAccounts**](docs/AccountsApi.md#getaccounts) | **GET** /analytics/lookups/v3/accounts/{path} | Get accounts and sub-directories in a directory +*AccountsApi* | [**GetSPARReturnsType**](docs/AccountsApi.md#getsparreturnstype) | **GET** /analytics/engines/spar/v3/accounts/{accountPath}/returns-type | Get SPAR account returns type details *BPMOptimizerApi* | [**CancelOptimizationById**](docs/BPMOptimizerApi.md#canceloptimizationbyid) | **DELETE** /analytics/engines/bpm/v3/optimizations/{id} | Cancel BPM optimization by id *BPMOptimizerApi* | [**GetOptimizationParameters**](docs/BPMOptimizerApi.md#getoptimizationparameters) | **GET** /analytics/engines/bpm/v3/optimizations/{id} | Get BPM optimization parameters by id *BPMOptimizerApi* | [**GetOptimizationResult**](docs/BPMOptimizerApi.md#getoptimizationresult) | **GET** /analytics/engines/bpm/v3/optimizations/{id}/result | Get BPM optimization result by id @@ -160,6 +163,11 @@ Class | Method | HTTP request | Description *FrequenciesApi* | [**GetSPARFrequencies**](docs/FrequenciesApi.md#getsparfrequencies) | **GET** /analytics/engines/spar/v3/frequencies | Get SPAR frequencies *FrequenciesApi* | [**GetVaultFrequencies**](docs/FrequenciesApi.md#getvaultfrequencies) | **GET** /analytics/engines/vault/v3/frequencies | Get Vault frequencies *GroupsApi* | [**GetPAGroups**](docs/GroupsApi.md#getpagroups) | **GET** /analytics/engines/pa/v3/groups | Get PA groups +*LinkedPATemplatesApi* | [**CreateLinkedPATemplates**](docs/LinkedPATemplatesApi.md#createlinkedpatemplates) | **POST** /analytics/engines/pa/v3/linked-templates | Create a linked PA template +*LinkedPATemplatesApi* | [**DeleteLinkedPATemplates**](docs/LinkedPATemplatesApi.md#deletelinkedpatemplates) | **DELETE** /analytics/engines/pa/v3/linked-templates/{id} | Delete a linked PA template. +*LinkedPATemplatesApi* | [**GetLinkedPATemplates**](docs/LinkedPATemplatesApi.md#getlinkedpatemplates) | **GET** /analytics/engines/pa/v3/linked-templates | Get linked PA templates +*LinkedPATemplatesApi* | [**GetLinkedPATemplatesById**](docs/LinkedPATemplatesApi.md#getlinkedpatemplatesbyid) | **GET** /analytics/engines/pa/v3/linked-templates/{id} | Get linked PA template by id +*LinkedPATemplatesApi* | [**UpdateLinkedPATemplates**](docs/LinkedPATemplatesApi.md#updatelinkedpatemplates) | **PUT** /analytics/engines/pa/v3/linked-templates/{id} | Update a linked PA template *NPOOptimizerApi* | [**CancelOptimizationById**](docs/NPOOptimizerApi.md#canceloptimizationbyid) | **DELETE** /analytics/engines/npo/v3/optimizations/{id} | Cancel NPO optimization by id *NPOOptimizerApi* | [**GetOptimizationParameters**](docs/NPOOptimizerApi.md#getoptimizationparameters) | **GET** /analytics/engines/npo/v3/optimizations/{id} | Get NPO optimization parameters by id *NPOOptimizerApi* | [**GetOptimizationResult**](docs/NPOOptimizerApi.md#getoptimizationresult) | **GET** /analytics/engines/npo/v3/optimizations/{id}/result | Get NPO optimization result by id @@ -178,6 +186,7 @@ Class | Method | HTTP request | Description *PubCalculationsApi* | [**GetCalculationUnitResultById**](docs/PubCalculationsApi.md#getcalculationunitresultbyid) | **GET** /analytics/engines/pub/v3/calculations/{id}/units/{unitId}/result | Get Pub calculation result by id *PubCalculationsApi* | [**PostAndCalculate**](docs/PubCalculationsApi.md#postandcalculate) | **POST** /analytics/engines/pub/v3/calculations | Create and Run Pub calculation *PubCalculationsApi* | [**PutAndCalculate**](docs/PubCalculationsApi.md#putandcalculate) | **PUT** /analytics/engines/pub/v3/calculations/{id} | Create or Update Pub calculation and run it. +*QuantCalculationsApi* | [**CancelCalculationById**](docs/QuantCalculationsApi.md#cancelcalculationbyid) | **DELETE** /analytics/engines/quant/v3/calculations/{id} | Cancel Quant calculation by id *QuantCalculationsApi* | [**GetCalculationParameters**](docs/QuantCalculationsApi.md#getcalculationparameters) | **GET** /analytics/engines/quant/v3/calculations/{id} | Get Quant Engine calculation parameters by id *QuantCalculationsApi* | [**GetCalculationStatusById**](docs/QuantCalculationsApi.md#getcalculationstatusbyid) | **GET** /analytics/engines/quant/v3/calculations/{id}/status | Get Quant Engine calculation status by id *QuantCalculationsApi* | [**GetCalculationUnitInfoById**](docs/QuantCalculationsApi.md#getcalculationunitinfobyid) | **GET** /analytics/engines/quant/v3/calculations/{id}/units/{unitId}/info | Get Quant Engine calculation metadata information by id @@ -195,6 +204,16 @@ Class | Method | HTTP request | Description *StrategyDocumentsApi* | [**GetBarraStrategyDocuments**](docs/StrategyDocumentsApi.md#getbarrastrategydocuments) | **GET** /analytics/engines/bpm/v3/strategies/{path} | Get Barra strategy documents and sub-directories in a directory *StrategyDocumentsApi* | [**GetFPOStrategyDocuments**](docs/StrategyDocumentsApi.md#getfpostrategydocuments) | **GET** /analytics/engines/fpo/v3/strategies/{path} | Get FactSet Portfolio Optimizer strategy documents and sub-directories in a directory *StrategyDocumentsApi* | [**GetNorthfieldStrategyDocuments**](docs/StrategyDocumentsApi.md#getnorthfieldstrategydocuments) | **GET** /analytics/engines/npo/v3/strategies/{path} | Get Northfield strategy documents and sub-directories in a directory +*TemplatedPAComponentsApi* | [**CreateTemplatedPAComponents**](docs/TemplatedPAComponentsApi.md#createtemplatedpacomponents) | **POST** /analytics/engines/pa/v3/templated-components | Create templated PA component +*TemplatedPAComponentsApi* | [**DeleteTemplatedPAComponents**](docs/TemplatedPAComponentsApi.md#deletetemplatedpacomponents) | **DELETE** /analytics/engines/pa/v3/templated-components/{id} | Delete templated PA component +*TemplatedPAComponentsApi* | [**UpdateTemplatedPAComponents**](docs/TemplatedPAComponentsApi.md#updatetemplatedpacomponents) | **PUT** /analytics/engines/pa/v3/templated-components/{id} | Update templated PA component +*UnlinkedPATemplatesApi* | [**CreateUnlinkedPATemplates**](docs/UnlinkedPATemplatesApi.md#createunlinkedpatemplates) | **POST** /analytics/engines/pa/v3/unlinked-templates | Create unlinked PA template +*UnlinkedPATemplatesApi* | [**DeleteUnlinkedPATemplates**](docs/UnlinkedPATemplatesApi.md#deleteunlinkedpatemplates) | **DELETE** /analytics/engines/pa/v3/unlinked-templates/{id} | Delete unlinked PA template +*UnlinkedPATemplatesApi* | [**GetDefaultUnlinkedPATemplateTypes**](docs/UnlinkedPATemplatesApi.md#getdefaultunlinkedpatemplatetypes) | **GET** /analytics/engines/pa/v3/unlinked-templates/template-types | Get default unlinked PA template types. +*UnlinkedPATemplatesApi* | [**GetDetailsType**](docs/UnlinkedPATemplatesApi.md#getdetailstype) | **GET** /analytics/engines/pa/v3/unlinked-templates/template-types/{id} | Get unlinked PA template type details by id. +*UnlinkedPATemplatesApi* | [**GetUnlinkedPATemplates**](docs/UnlinkedPATemplatesApi.md#getunlinkedpatemplates) | **GET** /analytics/engines/pa/v3/unlinked-templates | Get unlinked PA templates +*UnlinkedPATemplatesApi* | [**GetUnlinkedPATemplatesById**](docs/UnlinkedPATemplatesApi.md#getunlinkedpatemplatesbyid) | **GET** /analytics/engines/pa/v3/unlinked-templates/{id} | Get unlinked PA template details by id +*UnlinkedPATemplatesApi* | [**UpdateUnlinkedPATemplates**](docs/UnlinkedPATemplatesApi.md#updateunlinkedpatemplates) | **PUT** /analytics/engines/pa/v3/unlinked-templates/{id} | Update unlinked PA template *VaultCalculationsApi* | [**CancelCalculationById**](docs/VaultCalculationsApi.md#cancelcalculationbyid) | **DELETE** /analytics/engines/vault/v3/calculations/{id} | Cancel Vault calculation by id *VaultCalculationsApi* | [**GetCalculationParameters**](docs/VaultCalculationsApi.md#getcalculationparameters) | **GET** /analytics/engines/vault/v3/calculations/{id} | Get Vault calculation parameters by id *VaultCalculationsApi* | [**GetCalculationStatusById**](docs/VaultCalculationsApi.md#getcalculationstatusbyid) | **GET** /analytics/engines/vault/v3/calculations/{id}/status | Get Vault calculation status by id @@ -266,6 +285,14 @@ Class | Method | HTTP request | Description - [Model.FrequencyRoot](docs/FrequencyRoot.md) - [Model.Group](docs/Group.md) - [Model.GroupRoot](docs/GroupRoot.md) + - [Model.LinkedPATemplate](docs/LinkedPATemplate.md) + - [Model.LinkedPATemplateParameters](docs/LinkedPATemplateParameters.md) + - [Model.LinkedPATemplateParametersRoot](docs/LinkedPATemplateParametersRoot.md) + - [Model.LinkedPATemplateRoot](docs/LinkedPATemplateRoot.md) + - [Model.LinkedPATemplateSummary](docs/LinkedPATemplateSummary.md) + - [Model.LinkedPATemplateSummaryRoot](docs/LinkedPATemplateSummaryRoot.md) + - [Model.LinkedPATemplateUpdateParameters](docs/LinkedPATemplateUpdateParameters.md) + - [Model.LinkedPATemplateUpdateParametersRoot](docs/LinkedPATemplateUpdateParametersRoot.md) - [Model.NPOOptimizationParameters](docs/NPOOptimizationParameters.md) - [Model.NPOOptimizationParametersRoot](docs/NPOOptimizationParametersRoot.md) - [Model.NPOOptimizerStrategy](docs/NPOOptimizerStrategy.md) @@ -285,6 +312,7 @@ Class | Method | HTTP request | Description - [Model.PACalculationParameters](docs/PACalculationParameters.md) - [Model.PACalculationParametersRoot](docs/PACalculationParametersRoot.md) - [Model.PAComponent](docs/PAComponent.md) + - [Model.PAComponentData](docs/PAComponentData.md) - [Model.PAComponentRoot](docs/PAComponentRoot.md) - [Model.PADateParameters](docs/PADateParameters.md) - [Model.PAIdentifier](docs/PAIdentifier.md) @@ -293,23 +321,57 @@ Class | Method | HTTP request | Description - [Model.PubCalculationParametersRoot](docs/PubCalculationParametersRoot.md) - [Model.PubDateParameters](docs/PubDateParameters.md) - [Model.PubIdentifier](docs/PubIdentifier.md) + - [Model.QuantAllUniversalScreenParameters](docs/QuantAllUniversalScreenParameters.md) - [Model.QuantCalculationMeta](docs/QuantCalculationMeta.md) - [Model.QuantCalculationParameters](docs/QuantCalculationParameters.md) - [Model.QuantCalculationParametersRoot](docs/QuantCalculationParametersRoot.md) + - [Model.QuantDate](docs/QuantDate.md) - [Model.QuantDateList](docs/QuantDateList.md) + - [Model.QuantDateListObsolete](docs/QuantDateListObsolete.md) - [Model.QuantFdsDate](docs/QuantFdsDate.md) + - [Model.QuantFdsDateObsolete](docs/QuantFdsDateObsolete.md) + - [Model.QuantFormula](docs/QuantFormula.md) - [Model.QuantFqlExpression](docs/QuantFqlExpression.md) + - [Model.QuantFqlExpressionObsolete](docs/QuantFqlExpressionObsolete.md) - [Model.QuantIdentifierUniverse](docs/QuantIdentifierUniverse.md) + - [Model.QuantIdentifierUniverseObsolete](docs/QuantIdentifierUniverseObsolete.md) - [Model.QuantScreeningExpression](docs/QuantScreeningExpression.md) + - [Model.QuantScreeningExpressionObsolete](docs/QuantScreeningExpressionObsolete.md) - [Model.QuantScreeningExpressionUniverse](docs/QuantScreeningExpressionUniverse.md) + - [Model.QuantScreeningExpressionUniverseObsolete](docs/QuantScreeningExpressionUniverseObsolete.md) - [Model.QuantUniversalScreenParameter](docs/QuantUniversalScreenParameter.md) + - [Model.QuantUniversalScreenParameterObsolete](docs/QuantUniversalScreenParameterObsolete.md) - [Model.QuantUniversalScreenUniverse](docs/QuantUniversalScreenUniverse.md) + - [Model.QuantUniversalScreenUniverseObsolete](docs/QuantUniversalScreenUniverseObsolete.md) + - [Model.QuantUniverse](docs/QuantUniverse.md) + - [Model.ReturnType](docs/ReturnType.md) + - [Model.SPARAccounts](docs/SPARAccounts.md) + - [Model.SPARAccountsRoot](docs/SPARAccountsRoot.md) - [Model.SPARBenchmark](docs/SPARBenchmark.md) - [Model.SPARBenchmarkRoot](docs/SPARBenchmarkRoot.md) - [Model.SPARCalculationParameters](docs/SPARCalculationParameters.md) - [Model.SPARCalculationParametersRoot](docs/SPARCalculationParametersRoot.md) - [Model.SPARDateParameters](docs/SPARDateParameters.md) - [Model.SPARIdentifier](docs/SPARIdentifier.md) + - [Model.TemplateContentTypes](docs/TemplateContentTypes.md) + - [Model.TemplatedPAComponentParameters](docs/TemplatedPAComponentParameters.md) + - [Model.TemplatedPAComponentParametersRoot](docs/TemplatedPAComponentParametersRoot.md) + - [Model.TemplatedPAComponentSummary](docs/TemplatedPAComponentSummary.md) + - [Model.TemplatedPAComponentSummaryRoot](docs/TemplatedPAComponentSummaryRoot.md) + - [Model.TemplatedPAComponentUpdateParameters](docs/TemplatedPAComponentUpdateParameters.md) + - [Model.TemplatedPAComponentUpdateParametersRoot](docs/TemplatedPAComponentUpdateParametersRoot.md) + - [Model.UnlinkedPATemplate](docs/UnlinkedPATemplate.md) + - [Model.UnlinkedPATemplateCategoryAndType](docs/UnlinkedPATemplateCategoryAndType.md) + - [Model.UnlinkedPATemplateCategoryAndTypeDetails](docs/UnlinkedPATemplateCategoryAndTypeDetails.md) + - [Model.UnlinkedPATemplateCategoryAndTypeDetailsRoot](docs/UnlinkedPATemplateCategoryAndTypeDetailsRoot.md) + - [Model.UnlinkedPATemplateCategoryAndTypeRoot](docs/UnlinkedPATemplateCategoryAndTypeRoot.md) + - [Model.UnlinkedPATemplateParameters](docs/UnlinkedPATemplateParameters.md) + - [Model.UnlinkedPATemplateParametersRoot](docs/UnlinkedPATemplateParametersRoot.md) + - [Model.UnlinkedPATemplateRoot](docs/UnlinkedPATemplateRoot.md) + - [Model.UnlinkedPATemplateSummary](docs/UnlinkedPATemplateSummary.md) + - [Model.UnlinkedPATemplateSummaryRoot](docs/UnlinkedPATemplateSummaryRoot.md) + - [Model.UnlinkedPATemplateUpdateParameters](docs/UnlinkedPATemplateUpdateParameters.md) + - [Model.UnlinkedPATemplateUpdateParametersRoot](docs/UnlinkedPATemplateUpdateParametersRoot.md) - [Model.VaultCalculationParameters](docs/VaultCalculationParameters.md) - [Model.VaultCalculationParametersRoot](docs/VaultCalculationParametersRoot.md) - [Model.VaultComponent](docs/VaultComponent.md) @@ -330,3 +392,8 @@ Class | Method | HTTP request | Description - **Type**: HTTP basic authentication + +### Bearer + +- **Type**: Bearer Authentication + diff --git a/auto-generated-sdk/docs/AFIOptimizerApi.md b/auto-generated-sdk/docs/AFIOptimizerApi.md index 2c3bc386..eda14e53 100644 --- a/auto-generated-sdk/docs/AFIOptimizerApi.md +++ b/auto-generated-sdk/docs/AFIOptimizerApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AFIOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run AFI optimization endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AFIOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run AFI optimization endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AFIOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Get AFI optimization status by id endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -281,6 +287,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AFIOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run AFI optimization endpoint @@ -314,7 +322,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -363,6 +371,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AFIOptimizerApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds. (optional) @@ -400,7 +410,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -451,6 +461,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AFIOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run AFI optimization endpoint @@ -490,7 +502,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/AXPOptimizerApi.md b/auto-generated-sdk/docs/AXPOptimizerApi.md index 92b191e5..fa161e87 100644 --- a/auto-generated-sdk/docs/AXPOptimizerApi.md +++ b/auto-generated-sdk/docs/AXPOptimizerApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AXPOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Axioma optimization endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AXPOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Axioma optimization endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AXPOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Get Axioma optimization status by id endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -281,6 +287,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AXPOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Axioma optimization endpoint @@ -314,7 +322,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -363,6 +371,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AXPOptimizerApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds. (optional) @@ -400,7 +410,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -451,6 +461,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AXPOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Axioma optimization endpoint @@ -490,7 +502,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/AccountsApi.md b/auto-generated-sdk/docs/AccountsApi.md index 3ff5282f..be4ca747 100644 --- a/auto-generated-sdk/docs/AccountsApi.md +++ b/auto-generated-sdk/docs/AccountsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api.factset.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**GetAccounts**](AccountsApi.md#getaccounts) | **GET** /analytics/lookups/v3/accounts/{path} | Get accounts and sub-directories in a directory +[**GetSPARReturnsType**](AccountsApi.md#getsparreturnstype) | **GET** /analytics/engines/spar/v3/accounts/{accountPath}/returns-type | Get SPAR account returns type details @@ -34,6 +35,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new AccountsApi(config); var path = path_example; // string | The directory to get the accounts and sub-directories in (default to "") @@ -67,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -90,3 +93,88 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GetSPARReturnsType** +> SPARAccountsRoot GetSPARReturnsType (string accountPath) + +Get SPAR account returns type details + +This endpoint returns the returns type of account associated with SPAR + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class GetSPARReturnsTypeExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new AccountsApi(config); + var accountPath = accountPath_example; // string | URL encoded account path + + try + { + // Get SPAR account returns type details + SPARAccountsRoot result = apiInstance.GetSPARReturnsType(accountPath); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling AccountsApi.GetSPARReturnsType: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accountPath** | **string**| URL encoded account path | + +### Return type + +[**SPARAccountsRoot**](SPARAccountsRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, returns the list of return types for the account. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid account. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Account not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/BPMOptimizerApi.md b/auto-generated-sdk/docs/BPMOptimizerApi.md index dd4b7e3a..05a02787 100644 --- a/auto-generated-sdk/docs/BPMOptimizerApi.md +++ b/auto-generated-sdk/docs/BPMOptimizerApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new BPMOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run BPM optimization endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new BPMOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run BPM optimization endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new BPMOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Get BPM optimization status by id endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -281,6 +287,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new BPMOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run BPM optimization endpoint @@ -314,7 +322,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -363,6 +371,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new BPMOptimizerApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds. (optional) @@ -400,7 +410,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -451,6 +461,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new BPMOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run BPM optimization endpoint @@ -490,7 +502,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/BenchmarksApi.md b/auto-generated-sdk/docs/BenchmarksApi.md index 40d4a808..c618d507 100644 --- a/auto-generated-sdk/docs/BenchmarksApi.md +++ b/auto-generated-sdk/docs/BenchmarksApi.md @@ -34,6 +34,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new BenchmarksApi(config); var id = id_example; // string | Benchmark Identifier @@ -67,7 +69,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/ColumnStatisticsApi.md b/auto-generated-sdk/docs/ColumnStatisticsApi.md index 904b7698..8e72d6df 100644 --- a/auto-generated-sdk/docs/ColumnStatisticsApi.md +++ b/auto-generated-sdk/docs/ColumnStatisticsApi.md @@ -34,6 +34,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ColumnStatisticsApi(config); @@ -63,7 +65,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/ColumnsApi.md b/auto-generated-sdk/docs/ColumnsApi.md index ccd8d119..94ee1e02 100644 --- a/auto-generated-sdk/docs/ColumnsApi.md +++ b/auto-generated-sdk/docs/ColumnsApi.md @@ -35,6 +35,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ColumnsApi(config); var id = id_example; // string | Unique identifier for a column @@ -68,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -118,6 +120,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ColumnsApi(config); var name = name_example; // string | Column name (optional) (default to "") @@ -155,7 +159,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/ComponentSummary.md b/auto-generated-sdk/docs/ComponentSummary.md index 6d7383fb..62d28a03 100644 --- a/auto-generated-sdk/docs/ComponentSummary.md +++ b/auto-generated-sdk/docs/ComponentSummary.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Component name. | [optional] **Category** | **string** | Component category. | [optional] +**Type** | **string** | Component type. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/ComponentsApi.md b/auto-generated-sdk/docs/ComponentsApi.md index cae35c3b..53f32773 100644 --- a/auto-generated-sdk/docs/ComponentsApi.md +++ b/auto-generated-sdk/docs/ComponentsApi.md @@ -38,6 +38,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ComponentsApi(config); var id = id_example; // string | Unique identifier for a PA component @@ -71,7 +73,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -96,11 +98,11 @@ Name | Type | Description | Notes # **GetPAComponents** -> ComponentSummaryRoot GetPAComponents (string document) +> ComponentSummaryRoot GetPAComponents (string document = null, string directory = null) Get PA components -This endpoint returns the list of PA components in a given PA document. +This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. ### Example ```csharp @@ -121,14 +123,17 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ComponentsApi(config); - var document = document_example; // string | Document Name + var document = document_example; // string | Document Name (optional) + var directory = directory_example; // string | Directory to get the components (optional) try { // Get PA components - ComponentSummaryRoot result = apiInstance.GetPAComponents(document); + ComponentSummaryRoot result = apiInstance.GetPAComponents(document, directory); Debug.WriteLine(result); } catch (ApiException e) @@ -146,7 +151,8 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **document** | **string**| Document Name | + **document** | **string**| Document Name | [optional] + **directory** | **string**| Directory to get the components | [optional] ### Return type @@ -154,7 +160,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -204,6 +210,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ComponentsApi(config); var document = document_example; // string | Document Name @@ -237,7 +245,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -287,6 +295,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ComponentsApi(config); var id = id_example; // string | Unique identifier for a vault component @@ -320,7 +330,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -370,6 +380,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ComponentsApi(config); var document = document_example; // string | Document Name @@ -403,7 +415,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/ConfigurationsApi.md b/auto-generated-sdk/docs/ConfigurationsApi.md index 55662318..253edb57 100644 --- a/auto-generated-sdk/docs/ConfigurationsApi.md +++ b/auto-generated-sdk/docs/ConfigurationsApi.md @@ -35,6 +35,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ConfigurationsApi(config); var id = id_example; // string | Vault configuration id to get the details of @@ -68,7 +70,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -118,6 +120,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ConfigurationsApi(config); var account = account_example; // string | Required account query parameter to filter configurations for a specific account @@ -151,7 +155,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/CurrenciesApi.md b/auto-generated-sdk/docs/CurrenciesApi.md index 4b9fd9c3..acca700d 100644 --- a/auto-generated-sdk/docs/CurrenciesApi.md +++ b/auto-generated-sdk/docs/CurrenciesApi.md @@ -34,6 +34,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new CurrenciesApi(config); @@ -63,7 +65,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/DatesApi.md b/auto-generated-sdk/docs/DatesApi.md index f6ffc411..93f205fc 100644 --- a/auto-generated-sdk/docs/DatesApi.md +++ b/auto-generated-sdk/docs/DatesApi.md @@ -35,6 +35,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new DatesApi(config); var enddate = enddate_example; // string | End Date @@ -74,7 +76,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -124,6 +126,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new DatesApi(config); var enddate = enddate_example; // string | End Date @@ -163,7 +167,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/DocumentsApi.md b/auto-generated-sdk/docs/DocumentsApi.md index fbc18c7d..f431a410 100644 --- a/auto-generated-sdk/docs/DocumentsApi.md +++ b/auto-generated-sdk/docs/DocumentsApi.md @@ -37,6 +37,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new DocumentsApi(config); var path = path_example; // string | The directory to get the documents and sub-directories in (default to "") @@ -70,7 +72,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -120,6 +122,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new DocumentsApi(config); var path = path_example; // string | The directory to get the documents in (default to "") @@ -153,7 +157,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -203,6 +207,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new DocumentsApi(config); var path = path_example; // string | The directory to get the documents in (default to "") @@ -236,7 +242,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -286,6 +292,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new DocumentsApi(config); var path = path_example; // string | The directory to get the documents in (default to "") @@ -319,7 +327,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/FIABCalculationsApi.md b/auto-generated-sdk/docs/FIABCalculationsApi.md index 119157d9..c507ca3a 100644 --- a/auto-generated-sdk/docs/FIABCalculationsApi.md +++ b/auto-generated-sdk/docs/FIABCalculationsApi.md @@ -36,6 +36,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FIABCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Run FIAB Calculation endpoint @@ -69,7 +71,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -83,9 +85,9 @@ Name | Type | Description | Notes | **200** | Expected response, returns status information of the entire calculation if it is complete. | * Content-Encoding - Standard HTTP header. Header value based on Accept-Encoding Request header.
* Content-Type - Standard HTTP header.
* Transfer-Encoding - Standard HTTP header. Header value will be set to Chunked if Accept-Encoding header is specified.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| | **202** | Expected response, returns status information of the entire calculation if it is not complete. | * Cache-Control - Standard HTTP header. Header will specify max-age in seconds. Polling can be adjusted based on the max-age value.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| | **400** | Invalid identifier provided. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| -| **404** | Calculation was already returned, provided id was not a requested calculation, or the calculation was cancelled | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| | **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| | **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Calculation was already returned, provided id was not a requested calculation, or the calculation was cancelled | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| | **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| | **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| @@ -118,6 +120,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FIABCalculationsApi(config); @@ -147,7 +151,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -195,6 +199,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FIABCalculationsApi(config); var fIABCalculationParameters = new FIABCalculationParameters(); // FIABCalculationParameters | (optional) @@ -227,12 +233,12 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers - **Content-Type**: application/json - - **Accept**: text/plain, application/json, text/json + - **Accept**: Not defined ### HTTP response details @@ -240,7 +246,6 @@ void (empty response body) |-------------|-------------|------------------| | **202** | Expected response, contains the URL in the Location header to check the status of the calculation. | * Location - URL to check status of the request.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-Calculations-Limit - Maximum FIAB request limit.
* X-FactSet-Api-Calculations-Remaining - Number of FIAB requests remaining till request limit reached.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| | **400** | Invalid POST body. | * Location - URL to check status of the request.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-Calculations-Limit - Maximum FIAB request limit.
* X-FactSet-Api-Calculations-Remaining - Number of FIAB requests remaining till request limit reached.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| -| **404** | Not Found | * Location - URL to check status of the request.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-Calculations-Limit - Maximum FIAB request limit.
* X-FactSet-Api-Calculations-Remaining - Number of FIAB requests remaining till request limit reached.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| | **401** | Missing or invalid authentication. | * Location - URL to check status of the request.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-Calculations-Limit - Maximum FIAB request limit.
* X-FactSet-Api-Calculations-Remaining - Number of FIAB requests remaining till request limit reached.
| | **403** | User is forbidden with current credentials. | * Location - URL to check status of the request.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-Calculations-Limit - Maximum FIAB request limit.
* X-FactSet-Api-Calculations-Remaining - Number of FIAB requests remaining till request limit reached.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| | **415** | Missing/Invalid Content-Type header. Header needs to be set to application/json. | * Location - URL to check status of the request.
* X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-Calculations-Limit - Maximum FIAB request limit.
* X-FactSet-Api-Calculations-Remaining - Number of FIAB requests remaining till request limit reached.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| diff --git a/auto-generated-sdk/docs/FICalculationsApi.md b/auto-generated-sdk/docs/FICalculationsApi.md index 3194e28f..03041250 100644 --- a/auto-generated-sdk/docs/FICalculationsApi.md +++ b/auto-generated-sdk/docs/FICalculationsApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FICalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FI calculation endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FICalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FI calculation endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FICalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Get FI calculation status by id endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -281,6 +287,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FICalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FI calculation endpoint @@ -314,7 +322,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -363,6 +371,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FICalculationsApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds. (optional) @@ -400,7 +410,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -451,6 +461,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FICalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FI calculation endpoint @@ -490,7 +502,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/FIJobSettings.md b/auto-generated-sdk/docs/FIJobSettings.md index e0e208ae..51ecd931 100644 --- a/auto-generated-sdk/docs/FIJobSettings.md +++ b/auto-generated-sdk/docs/FIJobSettings.md @@ -6,6 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AsOfDate** | **string** | As of date | **PartialDurationMonths** | **List<int>** | Partial duration months | [optional] +**CallMethod** | **string** | Call Method | [optional] +**Settlement** | **string** | Settlement Date | [optional] +**CalcFromMethod** | **string** | Calculation from method | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/FISecurity.md b/auto-generated-sdk/docs/FISecurity.md index cf62acda..dca6b898 100644 --- a/auto-generated-sdk/docs/FISecurity.md +++ b/auto-generated-sdk/docs/FISecurity.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Settlement** | **string** | Settlement date | [optional] -**CalcFromMethod** | **string** | Calculation from method | +**CallMethod** | **string** | Call Method | [optional] +**CalcFromMethod** | **string** | Calculation from method | [optional] **CalcFromValue** | **double** | Calculation from value | **Face** | **double** | Face | [optional] [default to 1D] **FaceType** | **string** | Face type | [optional] [default to FaceTypeEnum.Current] diff --git a/auto-generated-sdk/docs/FPOOptimizerApi.md b/auto-generated-sdk/docs/FPOOptimizerApi.md index a4aaf316..854363a5 100644 --- a/auto-generated-sdk/docs/FPOOptimizerApi.md +++ b/auto-generated-sdk/docs/FPOOptimizerApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FPO optimization endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FPO optimization endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Get FPO optimization status by id endpoint @@ -235,7 +241,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -283,6 +289,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FPO optimization endpoint @@ -316,7 +324,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -365,6 +373,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FPOOptimizerApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds. (optional) @@ -402,7 +412,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -453,6 +463,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run FPO optimization endpoint @@ -492,7 +504,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/FrequenciesApi.md b/auto-generated-sdk/docs/FrequenciesApi.md index 636705b0..c4d50f24 100644 --- a/auto-generated-sdk/docs/FrequenciesApi.md +++ b/auto-generated-sdk/docs/FrequenciesApi.md @@ -36,6 +36,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FrequenciesApi(config); @@ -65,7 +67,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -113,6 +115,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FrequenciesApi(config); @@ -142,7 +146,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -190,6 +194,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FrequenciesApi(config); @@ -219,7 +225,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/GroupsApi.md b/auto-generated-sdk/docs/GroupsApi.md index 60aca6c1..edb2f399 100644 --- a/auto-generated-sdk/docs/GroupsApi.md +++ b/auto-generated-sdk/docs/GroupsApi.md @@ -34,6 +34,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new GroupsApi(config); @@ -63,7 +65,7 @@ This endpoint does not need any parameter. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/LinkedPATemplate.md b/auto-generated-sdk/docs/LinkedPATemplate.md new file mode 100644 index 00000000..450f8b1f --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplate.md @@ -0,0 +1,16 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Directory** | **string** | Template directory. | [optional] +**Snapshot** | **bool** | snapshot. | [optional] +**Content** | [**TemplateContentTypes**](TemplateContentTypes.md) | | [optional] +**Id** | **string** | Template id. | [optional] +**Description** | **string** | Template description. | [optional] +**Name** | **string** | Template name. | [optional] +**ParentComponentId** | **string** | Template parent tile. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplateParameters.md b/auto-generated-sdk/docs/LinkedPATemplateParameters.md new file mode 100644 index 00000000..8a824544 --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplateParameters.md @@ -0,0 +1,13 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplateParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Directory** | **string** | The directory to create a linked PA template | +**ParentComponentId** | **string** | Parent component id | +**Description** | **string** | Template description | [optional] +**Content** | [**TemplateContentTypes**](TemplateContentTypes.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplateParametersRoot.md b/auto-generated-sdk/docs/LinkedPATemplateParametersRoot.md new file mode 100644 index 00000000..c604b453 --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplateParametersRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplateParametersRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LinkedPATemplateParameters**](LinkedPATemplateParameters.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplateRoot.md b/auto-generated-sdk/docs/LinkedPATemplateRoot.md new file mode 100644 index 00000000..dde9157f --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplateRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplateRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LinkedPATemplate**](LinkedPATemplate.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplateSummary.md b/auto-generated-sdk/docs/LinkedPATemplateSummary.md new file mode 100644 index 00000000..3448b33b --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplateSummary.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplateSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | Template description. | [optional] +**Name** | **string** | Template name. | [optional] +**ParentComponentId** | **string** | Template parent tile. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplateSummaryRoot.md b/auto-generated-sdk/docs/LinkedPATemplateSummaryRoot.md new file mode 100644 index 00000000..2073a04f --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplateSummaryRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplateSummaryRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Dictionary<string, LinkedPATemplateSummary>**](LinkedPATemplateSummary.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplateUpdateParameters.md b/auto-generated-sdk/docs/LinkedPATemplateUpdateParameters.md new file mode 100644 index 00000000..84a47c2d --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplateUpdateParameters.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplateUpdateParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ParentComponentId** | **string** | Parent component id | [optional] +**Description** | **string** | Template description | [optional] +**Content** | [**TemplateContentTypes**](TemplateContentTypes.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplateUpdateParametersRoot.md b/auto-generated-sdk/docs/LinkedPATemplateUpdateParametersRoot.md new file mode 100644 index 00000000..1e51a406 --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplateUpdateParametersRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplateUpdateParametersRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LinkedPATemplateUpdateParameters**](LinkedPATemplateUpdateParameters.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/LinkedPATemplatesApi.md b/auto-generated-sdk/docs/LinkedPATemplatesApi.md new file mode 100644 index 00000000..756b6460 --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplatesApi.md @@ -0,0 +1,443 @@ +# FactSet.AnalyticsAPI.Engines.Api.LinkedPATemplatesApi + +All URIs are relative to *https://api.factset.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateLinkedPATemplates**](LinkedPATemplatesApi.md#createlinkedpatemplates) | **POST** /analytics/engines/pa/v3/linked-templates | Create a linked PA template +[**DeleteLinkedPATemplates**](LinkedPATemplatesApi.md#deletelinkedpatemplates) | **DELETE** /analytics/engines/pa/v3/linked-templates/{id} | Delete a linked PA template. +[**GetLinkedPATemplates**](LinkedPATemplatesApi.md#getlinkedpatemplates) | **GET** /analytics/engines/pa/v3/linked-templates | Get linked PA templates +[**GetLinkedPATemplatesById**](LinkedPATemplatesApi.md#getlinkedpatemplatesbyid) | **GET** /analytics/engines/pa/v3/linked-templates/{id} | Get linked PA template by id +[**UpdateLinkedPATemplates**](LinkedPATemplatesApi.md#updatelinkedpatemplates) | **PUT** /analytics/engines/pa/v3/linked-templates/{id} | Update a linked PA template + + + +# **CreateLinkedPATemplates** +> LinkedPATemplateSummaryRoot CreateLinkedPATemplates (LinkedPATemplateParametersRoot linkedPATemplateParametersRoot) + +Create a linked PA template + +This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class CreateLinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new LinkedPATemplatesApi(config); + var linkedPATemplateParametersRoot = new LinkedPATemplateParametersRoot(); // LinkedPATemplateParametersRoot | Request Parameters + + try + { + // Create a linked PA template + LinkedPATemplateSummaryRoot result = apiInstance.CreateLinkedPATemplates(linkedPATemplateParametersRoot); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling LinkedPATemplatesApi.CreateLinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linkedPATemplateParametersRoot** | [**LinkedPATemplateParametersRoot**](LinkedPATemplateParametersRoot.md)| Request Parameters | + +### Return type + +[**LinkedPATemplateSummaryRoot**](LinkedPATemplateSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Expected response, created a template linked to a PA3 tile. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Component not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteLinkedPATemplates** +> void DeleteLinkedPATemplates (string id) + +Delete a linked PA template. + +This endpoint deletes an existing linked PA template. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class DeleteLinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new LinkedPATemplatesApi(config); + var id = id_example; // string | Unique identifier for a linked PA template + + try + { + // Delete a linked PA template. + apiInstance.DeleteLinkedPATemplates(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling LinkedPATemplatesApi.DeleteLinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for a linked PA template | + +### Return type + +void (empty response body) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Expected response, deleted the linked PA template successfully. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Template not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLinkedPATemplates** +> LinkedPATemplateSummaryRoot GetLinkedPATemplates (string directory = null, string documentDirectory = null, string documentName = null) + +Get linked PA templates + +This endpoint returns the list of linked PA templates in given path. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class GetLinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new LinkedPATemplatesApi(config); + var directory = directory_example; // string | Get linked PA templates in path. (optional) + var documentDirectory = documentDirectory_example; // string | Get linked PA templates for documents in document path (optional) + var documentName = documentName_example; // string | Get linked PA templates for documents by document name (optional) + + try + { + // Get linked PA templates + LinkedPATemplateSummaryRoot result = apiInstance.GetLinkedPATemplates(directory, documentDirectory, documentName); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling LinkedPATemplatesApi.GetLinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory** | **string**| Get linked PA templates in path. | [optional] + **documentDirectory** | **string**| Get linked PA templates for documents in document path | [optional] + **documentName** | **string**| Get linked PA templates for documents by document name | [optional] + +### Return type + +[**LinkedPATemplateSummaryRoot**](LinkedPATemplateSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, returns a list of templates linked to PA3 tile. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Document not found | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetLinkedPATemplatesById** +> LinkedPATemplateRoot GetLinkedPATemplatesById (string id) + +Get linked PA template by id + +This endpoint fetches the linked PA template settings. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class GetLinkedPATemplatesByIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new LinkedPATemplatesApi(config); + var id = id_example; // string | Unique identifier for a linked PA template + + try + { + // Get linked PA template by id + LinkedPATemplateRoot result = apiInstance.GetLinkedPATemplatesById(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling LinkedPATemplatesApi.GetLinkedPATemplatesById: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for a linked PA template | + +### Return type + +[**LinkedPATemplateRoot**](LinkedPATemplateRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, linked PA template details. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Template not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateLinkedPATemplates** +> LinkedPATemplateSummaryRoot UpdateLinkedPATemplates (string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot) + +Update a linked PA template + +This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class UpdateLinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new LinkedPATemplatesApi(config); + var id = id_example; // string | Unique identifier for a linked PA template + var linkedPATemplateUpdateParametersRoot = new LinkedPATemplateUpdateParametersRoot(); // LinkedPATemplateUpdateParametersRoot | Request Parameters + + try + { + // Update a linked PA template + LinkedPATemplateSummaryRoot result = apiInstance.UpdateLinkedPATemplates(id, linkedPATemplateUpdateParametersRoot); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling LinkedPATemplatesApi.UpdateLinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for a linked PA template | + **linkedPATemplateUpdateParametersRoot** | [**LinkedPATemplateUpdateParametersRoot**](LinkedPATemplateUpdateParametersRoot.md)| Request Parameters | + +### Return type + +[**LinkedPATemplateSummaryRoot**](LinkedPATemplateSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, updated a template linked to a PA3 tile. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Template or component not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/NPOOptimizerApi.md b/auto-generated-sdk/docs/NPOOptimizerApi.md index a14b0a81..cd6fabef 100644 --- a/auto-generated-sdk/docs/NPOOptimizerApi.md +++ b/auto-generated-sdk/docs/NPOOptimizerApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new NPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run NPO optimization endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new NPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run NPO optimization endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new NPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Get NPO optimization status by id endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -281,6 +287,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new NPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run NPO optimization endpoint @@ -314,7 +322,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -363,6 +371,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new NPOOptimizerApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds. (optional) @@ -400,7 +410,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -451,6 +461,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new NPOOptimizerApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run NPO optimization endpoint @@ -490,7 +502,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/OptimizerOutputTypes.md b/auto-generated-sdk/docs/OptimizerOutputTypes.md index 8c2c2c4f..10f613a9 100644 --- a/auto-generated-sdk/docs/OptimizerOutputTypes.md +++ b/auto-generated-sdk/docs/OptimizerOutputTypes.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Trades** | [**OptimizerTradesList**](OptimizerTradesList.md) | | [optional] **Optimal** | [**OptimizerOptimalHoldings**](OptimizerOptimalHoldings.md) | | [optional] **Account** | [**OptimalPortfolio**](OptimalPortfolio.md) | | [optional] +**Stats** | **Object** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/PACalculationsApi.md b/auto-generated-sdk/docs/PACalculationsApi.md index cfafcce2..b052000f 100644 --- a/auto-generated-sdk/docs/PACalculationsApi.md +++ b/auto-generated-sdk/docs/PACalculationsApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PACalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run PA calculation endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PACalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run PA calculation endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PACalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run PA calculation endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -282,6 +288,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PACalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Get PA calculation status by id endpoint @@ -317,7 +325,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -365,6 +373,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PACalculationsApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds when only one unit is passed in the POST body. (optional) @@ -402,7 +412,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -454,6 +464,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PACalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run PA calculation endpoint @@ -493,7 +505,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/PAComponent.md b/auto-generated-sdk/docs/PAComponent.md index c640918a..5aa20e79 100644 --- a/auto-generated-sdk/docs/PAComponent.md +++ b/auto-generated-sdk/docs/PAComponent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **Snapshot** | **bool** | Is the component type snapshot or subperiod. | [optional] **Name** | **string** | Component name. | [optional] **Category** | **string** | Component category. | [optional] +**Type** | **string** | Component type. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/PAComponentData.md b/auto-generated-sdk/docs/PAComponentData.md new file mode 100644 index 00000000..e823aa69 --- /dev/null +++ b/auto-generated-sdk/docs/PAComponentData.md @@ -0,0 +1,16 @@ +# FactSet.AnalyticsAPI.Engines.Model.PAComponentData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Accounts** | [**List<PAIdentifier>**](PAIdentifier.md) | List of accounts. | [optional] +**Benchmarks** | [**List<PAIdentifier>**](PAIdentifier.md) | List of benchmarks. | [optional] +**Groups** | [**List<PACalculationGroup>**](PACalculationGroup.md) | List of groupings for the PA calculation. This will take precedence over the groupings saved in the PA document. | [optional] +**Columns** | [**List<PACalculationColumn>**](PACalculationColumn.md) | List of columns for the PA calculation. This will take precedence over the columns saved in the PA document. | [optional] +**Dates** | [**PADateParameters**](PADateParameters.md) | | [optional] +**Currencyisocode** | **string** | Currency ISO code for calculation. | [optional] +**Componentdetail** | **string** | PA Storage type. It can be GROUPS or TOTALS or SECURITIES. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/PubCalculationsApi.md b/auto-generated-sdk/docs/PubCalculationsApi.md index 91e33fcc..19dc2628 100644 --- a/auto-generated-sdk/docs/PubCalculationsApi.md +++ b/auto-generated-sdk/docs/PubCalculationsApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PubCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Pub calculation endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PubCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Pub calculation endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PubCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Pub calculation endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -282,6 +288,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PubCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Get Pub calculation status by id endpoint @@ -317,7 +325,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -365,6 +373,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PubCalculationsApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds when only one unit is passed in the POST body. (optional) @@ -402,7 +412,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -454,6 +464,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PubCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Pub calculation endpoint @@ -493,7 +505,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/QuantAllUniversalScreenParameters.md b/auto-generated-sdk/docs/QuantAllUniversalScreenParameters.md new file mode 100644 index 00000000..4f35ea0e --- /dev/null +++ b/auto-generated-sdk/docs/QuantAllUniversalScreenParameters.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantAllUniversalScreenParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Source** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantCalculationParameters.md b/auto-generated-sdk/docs/QuantCalculationParameters.md index 771a515c..8f672259 100644 --- a/auto-generated-sdk/docs/QuantCalculationParameters.md +++ b/auto-generated-sdk/docs/QuantCalculationParameters.md @@ -4,15 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ScreeningExpressionUniverse** | [**QuantScreeningExpressionUniverse**](QuantScreeningExpressionUniverse.md) | | [optional] -**UniversalScreenUniverse** | [**QuantUniversalScreenUniverse**](QuantUniversalScreenUniverse.md) | | [optional] -**IdentifierUniverse** | [**QuantIdentifierUniverse**](QuantIdentifierUniverse.md) | | [optional] -**FdsDate** | [**QuantFdsDate**](QuantFdsDate.md) | | [optional] -**DateList** | [**QuantDateList**](QuantDateList.md) | | [optional] -**ScreeningExpression** | [**List<QuantScreeningExpression>**](QuantScreeningExpression.md) | | [optional] -**FqlExpression** | [**List<QuantFqlExpression>**](QuantFqlExpression.md) | | [optional] -**UniversalScreenParameter** | [**List<QuantUniversalScreenParameter>**](QuantUniversalScreenParameter.md) | | [optional] -**AllUniversalScreenParameters** | **List<Object>** | | [optional] +**Universe** | [**OneOfQuantUniversalScreenUniverseQuantScreeningExpressionUniverseQuantIdentifierUniverse**](OneOfQuantUniversalScreenUniverseQuantScreeningExpressionUniverseQuantIdentifierUniverse.md) | | [optional] +**Dates** | [**OneOfQuantFdsDateQuantDateList**](OneOfQuantFdsDateQuantDateList.md) | | [optional] +**Formulas** | [**List<OneOfQuantScreeningExpressionQuantFqlExpressionQuantUniversalScreenParameterQuantAllUniversalScreenParameters>**](OneOfQuantScreeningExpressionQuantFqlExpressionQuantUniversalScreenParameterQuantAllUniversalScreenParameters.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/QuantCalculationsApi.md b/auto-generated-sdk/docs/QuantCalculationsApi.md index e89d8d51..44337f61 100644 --- a/auto-generated-sdk/docs/QuantCalculationsApi.md +++ b/auto-generated-sdk/docs/QuantCalculationsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.factset.com* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CancelCalculationById**](QuantCalculationsApi.md#cancelcalculationbyid) | **DELETE** /analytics/engines/quant/v3/calculations/{id} | Cancel Quant calculation by id [**GetCalculationParameters**](QuantCalculationsApi.md#getcalculationparameters) | **GET** /analytics/engines/quant/v3/calculations/{id} | Get Quant Engine calculation parameters by id [**GetCalculationStatusById**](QuantCalculationsApi.md#getcalculationstatusbyid) | **GET** /analytics/engines/quant/v3/calculations/{id}/status | Get Quant Engine calculation status by id [**GetCalculationUnitInfoById**](QuantCalculationsApi.md#getcalculationunitinfobyid) | **GET** /analytics/engines/quant/v3/calculations/{id}/units/{unitId}/info | Get Quant Engine calculation metadata information by id @@ -12,6 +13,88 @@ Method | HTTP request | Description [**PutAndCalculate**](QuantCalculationsApi.md#putandcalculate) | **PUT** /analytics/engines/quant/v3/calculations/{id} | Create or update Quant Engine calculation and run it. + +# **CancelCalculationById** +> void CancelCalculationById (string id) + +Cancel Quant calculation by id + +This is the endpoint to cancel a previously submitted calculation. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class CancelCalculationByIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new QuantCalculationsApi(config); + var id = id_example; // string | from url, provided from the location header in the Create and Run Quant calculation endpoint + + try + { + // Cancel Quant calculation by id + apiInstance.CancelCalculationById(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling QuantCalculationsApi.CancelCalculationById: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| from url, provided from the location header in the Create and Run Quant calculation endpoint | + +### Return type + +void (empty response body) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Expected response, calculation was canceled successfully. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid identifier provided. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | There was no request for the calculation identifier provided, or the request was already canceled for the provided identifier. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **GetCalculationParameters** > QuantCalculationParametersRoot GetCalculationParameters (string id) @@ -39,6 +122,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new QuantCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Quant Engine calculation endpoint @@ -72,7 +157,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -120,6 +205,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new QuantCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Quant Engine calculation endpoint @@ -153,7 +240,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -202,6 +289,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new QuantCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Get Quant calculation status by id endpoint @@ -237,7 +326,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -285,6 +374,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new QuantCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Get Quant Engine calculation status by id endpoint @@ -320,7 +411,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -368,6 +459,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new QuantCalculationsApi(config); var cacheControl = cacheControl_example; // string | Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) @@ -403,7 +496,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -455,6 +548,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new QuantCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Quant Engine calculation endpoint @@ -492,7 +587,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/QuantDate.md b/auto-generated-sdk/docs/QuantDate.md new file mode 100644 index 00000000..ad4837ab --- /dev/null +++ b/auto-generated-sdk/docs/QuantDate.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantDate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Source** | **string** | | +**Frequency** | **string** | | +**Calendar** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantDateList.md b/auto-generated-sdk/docs/QuantDateList.md index a05dbed5..23f60203 100644 --- a/auto-generated-sdk/docs/QuantDateList.md +++ b/auto-generated-sdk/docs/QuantDateList.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Dates** | **List<string>** | | [optional] +**Source** | **string** | | **Frequency** | **string** | | **Calendar** | **string** | | diff --git a/auto-generated-sdk/docs/QuantDateListObsolete.md b/auto-generated-sdk/docs/QuantDateListObsolete.md new file mode 100644 index 00000000..a5b0338c --- /dev/null +++ b/auto-generated-sdk/docs/QuantDateListObsolete.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantDateListObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dates** | **List<string>** | | [optional] +**Frequency** | **string** | | +**Calendar** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantFdsDate.md b/auto-generated-sdk/docs/QuantFdsDate.md index 2505d962..49831076 100644 --- a/auto-generated-sdk/docs/QuantFdsDate.md +++ b/auto-generated-sdk/docs/QuantFdsDate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartDate** | **string** | | **EndDate** | **string** | | +**Source** | **string** | | **Frequency** | **string** | | **Calendar** | **string** | | diff --git a/auto-generated-sdk/docs/QuantFdsDateObsolete.md b/auto-generated-sdk/docs/QuantFdsDateObsolete.md new file mode 100644 index 00000000..9979ea23 --- /dev/null +++ b/auto-generated-sdk/docs/QuantFdsDateObsolete.md @@ -0,0 +1,13 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantFdsDateObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDate** | **string** | | +**EndDate** | **string** | | +**Frequency** | **string** | | +**Calendar** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantFormula.md b/auto-generated-sdk/docs/QuantFormula.md new file mode 100644 index 00000000..14812687 --- /dev/null +++ b/auto-generated-sdk/docs/QuantFormula.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantFormula + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Source** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantFqlExpression.md b/auto-generated-sdk/docs/QuantFqlExpression.md index 9b1896ab..07fbd6b0 100644 --- a/auto-generated-sdk/docs/QuantFqlExpression.md +++ b/auto-generated-sdk/docs/QuantFqlExpression.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Expr** | **string** | | **Name** | **string** | | +**Source** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/QuantFqlExpressionObsolete.md b/auto-generated-sdk/docs/QuantFqlExpressionObsolete.md new file mode 100644 index 00000000..f45d245d --- /dev/null +++ b/auto-generated-sdk/docs/QuantFqlExpressionObsolete.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantFqlExpressionObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Expr** | **string** | | +**Name** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantIdentifierUniverse.md b/auto-generated-sdk/docs/QuantIdentifierUniverse.md index 85b16f35..cb628b94 100644 --- a/auto-generated-sdk/docs/QuantIdentifierUniverse.md +++ b/auto-generated-sdk/docs/QuantIdentifierUniverse.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **UniverseType** | **string** | | **Identifiers** | **List<string>** | | +**Source** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/QuantIdentifierUniverseObsolete.md b/auto-generated-sdk/docs/QuantIdentifierUniverseObsolete.md new file mode 100644 index 00000000..1a1ddd91 --- /dev/null +++ b/auto-generated-sdk/docs/QuantIdentifierUniverseObsolete.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantIdentifierUniverseObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UniverseType** | **string** | | +**Identifiers** | **List<string>** | | +**Source** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantScreeningExpression.md b/auto-generated-sdk/docs/QuantScreeningExpression.md index 7e843c83..1dd2d1c6 100644 --- a/auto-generated-sdk/docs/QuantScreeningExpression.md +++ b/auto-generated-sdk/docs/QuantScreeningExpression.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Expr** | **string** | | **Name** | **string** | | +**Source** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/QuantScreeningExpressionObsolete.md b/auto-generated-sdk/docs/QuantScreeningExpressionObsolete.md new file mode 100644 index 00000000..4765941d --- /dev/null +++ b/auto-generated-sdk/docs/QuantScreeningExpressionObsolete.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantScreeningExpressionObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Expr** | **string** | | +**Name** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantScreeningExpressionUniverse.md b/auto-generated-sdk/docs/QuantScreeningExpressionUniverse.md index 3fcc6afc..22fcc2d5 100644 --- a/auto-generated-sdk/docs/QuantScreeningExpressionUniverse.md +++ b/auto-generated-sdk/docs/QuantScreeningExpressionUniverse.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **UniverseExpr** | **string** | | **UniverseType** | **string** | | **SecurityExpr** | **string** | | [optional] +**Source** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/QuantScreeningExpressionUniverseObsolete.md b/auto-generated-sdk/docs/QuantScreeningExpressionUniverseObsolete.md new file mode 100644 index 00000000..c3ec8a4b --- /dev/null +++ b/auto-generated-sdk/docs/QuantScreeningExpressionUniverseObsolete.md @@ -0,0 +1,13 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantScreeningExpressionUniverseObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UniverseExpr** | **string** | | +**UniverseType** | **string** | | +**SecurityExpr** | **string** | | [optional] +**Source** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantUniversalScreenParameter.md b/auto-generated-sdk/docs/QuantUniversalScreenParameter.md index ff1e999b..19de4d70 100644 --- a/auto-generated-sdk/docs/QuantUniversalScreenParameter.md +++ b/auto-generated-sdk/docs/QuantUniversalScreenParameter.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ReferenceName** | **string** | | **Name** | **string** | | +**Source** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/QuantUniversalScreenParameterObsolete.md b/auto-generated-sdk/docs/QuantUniversalScreenParameterObsolete.md new file mode 100644 index 00000000..b93546ff --- /dev/null +++ b/auto-generated-sdk/docs/QuantUniversalScreenParameterObsolete.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantUniversalScreenParameterObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReferenceName** | **string** | | +**Name** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantUniversalScreenUniverse.md b/auto-generated-sdk/docs/QuantUniversalScreenUniverse.md index 68f54a05..b23efa73 100644 --- a/auto-generated-sdk/docs/QuantUniversalScreenUniverse.md +++ b/auto-generated-sdk/docs/QuantUniversalScreenUniverse.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Screen** | **string** | | +**Source** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/QuantUniversalScreenUniverseObsolete.md b/auto-generated-sdk/docs/QuantUniversalScreenUniverseObsolete.md new file mode 100644 index 00000000..4b049470 --- /dev/null +++ b/auto-generated-sdk/docs/QuantUniversalScreenUniverseObsolete.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantUniversalScreenUniverseObsolete + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Screen** | **string** | | +**Source** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/QuantUniverse.md b/auto-generated-sdk/docs/QuantUniverse.md new file mode 100644 index 00000000..c029859a --- /dev/null +++ b/auto-generated-sdk/docs/QuantUniverse.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.QuantUniverse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Source** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/ReturnType.md b/auto-generated-sdk/docs/ReturnType.md new file mode 100644 index 00000000..a3e82d29 --- /dev/null +++ b/auto-generated-sdk/docs/ReturnType.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.ReturnType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] +**Id** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/SPARAccounts.md b/auto-generated-sdk/docs/SPARAccounts.md new file mode 100644 index 00000000..417868ba --- /dev/null +++ b/auto-generated-sdk/docs/SPARAccounts.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.SPARAccounts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ReturnsType** | [**List<ReturnType>**](ReturnType.md) | List of SPAR returnsType | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/SPARAccountsRoot.md b/auto-generated-sdk/docs/SPARAccountsRoot.md new file mode 100644 index 00000000..b0a97127 --- /dev/null +++ b/auto-generated-sdk/docs/SPARAccountsRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.SPARAccountsRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**SPARAccounts**](SPARAccounts.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/SPARCalculationParameters.md b/auto-generated-sdk/docs/SPARCalculationParameters.md index 90f313e6..24d11d77 100644 --- a/auto-generated-sdk/docs/SPARCalculationParameters.md +++ b/auto-generated-sdk/docs/SPARCalculationParameters.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Accounts** | [**List<SPARIdentifier>**](SPARIdentifier.md) | List of accounts for SPAR calculation. | [optional] **Benchmark** | [**SPARIdentifier**](SPARIdentifier.md) | | [optional] **Dates** | [**SPARDateParameters**](SPARDateParameters.md) | | [optional] +**Currencyisocode** | **string** | Currency ISO code for calculation. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/docs/SPARCalculationsApi.md b/auto-generated-sdk/docs/SPARCalculationsApi.md index 45641c7c..3c207361 100644 --- a/auto-generated-sdk/docs/SPARCalculationsApi.md +++ b/auto-generated-sdk/docs/SPARCalculationsApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new SPARCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run SPAR calculation endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new SPARCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run SPAR calculation endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new SPARCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run SPAR calculation endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -282,6 +288,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new SPARCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Get SPAR calculation status by id endpoint @@ -317,7 +325,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -365,6 +373,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new SPARCalculationsApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds when only one unit is passed in the POST body. (optional) @@ -402,7 +412,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -454,6 +464,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new SPARCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run SPAR calculation endpoint @@ -493,7 +505,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/StrategyDocumentsApi.md b/auto-generated-sdk/docs/StrategyDocumentsApi.md index d8dc85d4..00ae8849 100644 --- a/auto-generated-sdk/docs/StrategyDocumentsApi.md +++ b/auto-generated-sdk/docs/StrategyDocumentsApi.md @@ -38,6 +38,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new StrategyDocumentsApi(config); var path = path_example; // string | The directory to get the strategy documents and sub-directories in (default to "") @@ -71,7 +73,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -121,6 +123,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new StrategyDocumentsApi(config); var path = path_example; // string | The directory to get the strategy documents and sub-directories in (default to "") @@ -154,7 +158,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -204,6 +208,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new StrategyDocumentsApi(config); var path = path_example; // string | The directory to get the strategy documents and sub-directories in (default to "") @@ -237,7 +243,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -287,6 +293,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new StrategyDocumentsApi(config); var path = path_example; // string | The directory to get the strategy documents and sub-directories in (default to "") @@ -320,7 +328,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -370,6 +378,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new StrategyDocumentsApi(config); var path = path_example; // string | The directory to get the strategy documents and sub-directories in (default to "") @@ -403,7 +413,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/TemplateContentTypes.md b/auto-generated-sdk/docs/TemplateContentTypes.md new file mode 100644 index 00000000..937fe32d --- /dev/null +++ b/auto-generated-sdk/docs/TemplateContentTypes.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplateContentTypes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Mandatory** | **List<string>** | Template mandatory fields | [optional] +**Optional** | **List<string>** | Template optional fields | [optional] +**Locked** | **List<string>** | Template locked fields | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/TemplatedPAComponentParameters.md b/auto-generated-sdk/docs/TemplatedPAComponentParameters.md new file mode 100644 index 00000000..710033dc --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentParameters.md @@ -0,0 +1,13 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Directory** | **string** | Directory to create templated components | +**ParentTemplateId** | **string** | Parent template id | +**Description** | **string** | Component description. | [optional] +**ComponentData** | [**PAComponentData**](PAComponentData.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/TemplatedPAComponentParametersRoot.md b/auto-generated-sdk/docs/TemplatedPAComponentParametersRoot.md new file mode 100644 index 00000000..021437da --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentParametersRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentParametersRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TemplatedPAComponentParameters**](TemplatedPAComponentParameters.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/TemplatedPAComponentSummary.md b/auto-generated-sdk/docs/TemplatedPAComponentSummary.md new file mode 100644 index 00000000..060409ca --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentSummary.md @@ -0,0 +1,13 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | | [optional] +**Name** | **string** | | [optional] +**ParentTemplateId** | **string** | | [optional] +**Type** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/TemplatedPAComponentSummaryRoot.md b/auto-generated-sdk/docs/TemplatedPAComponentSummaryRoot.md new file mode 100644 index 00000000..900f354c --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentSummaryRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentSummaryRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Dictionary<string, TemplatedPAComponentSummary>**](TemplatedPAComponentSummary.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/TemplatedPAComponentUpdateParameters.md b/auto-generated-sdk/docs/TemplatedPAComponentUpdateParameters.md new file mode 100644 index 00000000..6e35299d --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentUpdateParameters.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentUpdateParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ParentTemplateId** | **string** | Parent template id | [optional] +**Description** | **string** | Component description. | [optional] +**ComponentData** | [**PAComponentData**](PAComponentData.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/TemplatedPAComponentUpdateParametersRoot.md b/auto-generated-sdk/docs/TemplatedPAComponentUpdateParametersRoot.md new file mode 100644 index 00000000..00468e60 --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentUpdateParametersRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentUpdateParametersRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TemplatedPAComponentUpdateParameters**](TemplatedPAComponentUpdateParameters.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/TemplatedPAComponentsApi.md b/auto-generated-sdk/docs/TemplatedPAComponentsApi.md new file mode 100644 index 00000000..2c4ac0e7 --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentsApi.md @@ -0,0 +1,267 @@ +# FactSet.AnalyticsAPI.Engines.Api.TemplatedPAComponentsApi + +All URIs are relative to *https://api.factset.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateTemplatedPAComponents**](TemplatedPAComponentsApi.md#createtemplatedpacomponents) | **POST** /analytics/engines/pa/v3/templated-components | Create templated PA component +[**DeleteTemplatedPAComponents**](TemplatedPAComponentsApi.md#deletetemplatedpacomponents) | **DELETE** /analytics/engines/pa/v3/templated-components/{id} | Delete templated PA component +[**UpdateTemplatedPAComponents**](TemplatedPAComponentsApi.md#updatetemplatedpacomponents) | **PUT** /analytics/engines/pa/v3/templated-components/{id} | Update templated PA component + + + +# **CreateTemplatedPAComponents** +> TemplatedPAComponentSummaryRoot CreateTemplatedPAComponents (TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot) + +Create templated PA component + +This endpoint creates new component based off of linked PA template or unlinked PA template. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class CreateTemplatedPAComponentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new TemplatedPAComponentsApi(config); + var templatedPAComponentParametersRoot = new TemplatedPAComponentParametersRoot(); // TemplatedPAComponentParametersRoot | Request Parameters + + try + { + // Create templated PA component + TemplatedPAComponentSummaryRoot result = apiInstance.CreateTemplatedPAComponents(templatedPAComponentParametersRoot); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplatedPAComponentsApi.CreateTemplatedPAComponents: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **templatedPAComponentParametersRoot** | [**TemplatedPAComponentParametersRoot**](TemplatedPAComponentParametersRoot.md)| Request Parameters | + +### Return type + +[**TemplatedPAComponentSummaryRoot**](TemplatedPAComponentSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Expected response, templated PA component created successfully. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Template not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteTemplatedPAComponents** +> void DeleteTemplatedPAComponents (string id) + +Delete templated PA component + +This endpoint deletes an existing templated PA component + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class DeleteTemplatedPAComponentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new TemplatedPAComponentsApi(config); + var id = id_example; // string | Unique identifier for a templated PA component + + try + { + // Delete templated PA component + apiInstance.DeleteTemplatedPAComponents(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplatedPAComponentsApi.DeleteTemplatedPAComponents: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for a templated PA component | + +### Return type + +void (empty response body) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain, application/json, text/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Expected response, deleted the templated PA component successfully. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Component not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateTemplatedPAComponents** +> TemplatedPAComponentSummaryRoot UpdateTemplatedPAComponents (string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot) + +Update templated PA component + +This endpoint allows the user to change the request body from an existing templated PA component. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class UpdateTemplatedPAComponentsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new TemplatedPAComponentsApi(config); + var id = id_example; // string | Unique identifier for a templated PA component + var templatedPAComponentUpdateParametersRoot = new TemplatedPAComponentUpdateParametersRoot(); // TemplatedPAComponentUpdateParametersRoot | Request Parameters + + try + { + // Update templated PA component + TemplatedPAComponentSummaryRoot result = apiInstance.UpdateTemplatedPAComponents(id, templatedPAComponentUpdateParametersRoot); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplatedPAComponentsApi.UpdateTemplatedPAComponents: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for a templated PA component | + **templatedPAComponentUpdateParametersRoot** | [**TemplatedPAComponentUpdateParametersRoot**](TemplatedPAComponentUpdateParametersRoot.md)| Request Parameters | + +### Return type + +[**TemplatedPAComponentSummaryRoot**](TemplatedPAComponentSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, updated successfully. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Component or template not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplate.md b/auto-generated-sdk/docs/UnlinkedPATemplate.md new file mode 100644 index 00000000..a0d3f299 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplate.md @@ -0,0 +1,24 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Directory** | **string** | | [optional] +**Id** | **string** | | [optional] +**TemplateTypeId** | **string** | | [optional] +**Snapshot** | **bool** | | [optional] +**Accounts** | [**List<PAIdentifier>**](PAIdentifier.md) | | [optional] +**Benchmarks** | [**List<PAIdentifier>**](PAIdentifier.md) | | [optional] +**Columns** | [**List<PACalculationColumn>**](PACalculationColumn.md) | | [optional] +**Dates** | [**PADateParameters**](PADateParameters.md) | | [optional] +**Groups** | [**List<PACalculationGroup>**](PACalculationGroup.md) | | [optional] +**Currencyisocode** | **string** | | [optional] +**Componentdetail** | **string** | | [optional] +**Content** | [**TemplateContentTypes**](TemplateContentTypes.md) | | [optional] +**Description** | **string** | | [optional] +**Name** | **string** | | [optional] +**Category** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndType.md b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndType.md new file mode 100644 index 00000000..8326b00d --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndType.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateCategoryAndType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Category** | **string** | Unlinked template category | [optional] +**Name** | **string** | Unlinked template type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetails.md b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetails.md new file mode 100644 index 00000000..fd76a830 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetails.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateCategoryAndTypeDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Type Id | [optional] +**Category** | **string** | Unlinked template category | [optional] +**Name** | **string** | Unlinked template type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetailsRoot.md b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetailsRoot.md new file mode 100644 index 00000000..0fc2d73d --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetailsRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateCategoryAndTypeDetailsRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UnlinkedPATemplateCategoryAndTypeDetails**](UnlinkedPATemplateCategoryAndTypeDetails.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeRoot.md b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeRoot.md new file mode 100644 index 00000000..88387615 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateCategoryAndTypeRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Dictionary<string, UnlinkedPATemplateCategoryAndType>**](UnlinkedPATemplateCategoryAndType.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateParameters.md b/auto-generated-sdk/docs/UnlinkedPATemplateParameters.md new file mode 100644 index 00000000..41da060e --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateParameters.md @@ -0,0 +1,20 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Directory** | **string** | The directory to create an unlinked PA template | +**TemplateTypeId** | **string** | Template type id | +**Description** | **string** | Template description | [optional] +**Accounts** | [**List<PAIdentifier>**](PAIdentifier.md) | List of accounts | [optional] +**Benchmarks** | [**List<PAIdentifier>**](PAIdentifier.md) | List of benchmarks | [optional] +**Columns** | [**List<PACalculationColumn>**](PACalculationColumn.md) | List of columns for the PA calculation | [optional] +**Dates** | [**PADateParameters**](PADateParameters.md) | | [optional] +**Groups** | [**List<PACalculationGroup>**](PACalculationGroup.md) | List of groupings for the PA calculation | [optional] +**Currencyisocode** | **string** | Currency ISO code for calculation. | [optional] +**Componentdetail** | **string** | PA storage type. It can be GROUPS or TOTALS or SECURITIES. | [optional] +**Content** | [**TemplateContentTypes**](TemplateContentTypes.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateParametersRoot.md b/auto-generated-sdk/docs/UnlinkedPATemplateParametersRoot.md new file mode 100644 index 00000000..0242f98e --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateParametersRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateParametersRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UnlinkedPATemplateParameters**](UnlinkedPATemplateParameters.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateRoot.md b/auto-generated-sdk/docs/UnlinkedPATemplateRoot.md new file mode 100644 index 00000000..5aa1503d --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UnlinkedPATemplate**](UnlinkedPATemplate.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateSummary.md b/auto-generated-sdk/docs/UnlinkedPATemplateSummary.md new file mode 100644 index 00000000..4576ec14 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateSummary.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | | [optional] +**Name** | **string** | | [optional] +**Category** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateSummaryRoot.md b/auto-generated-sdk/docs/UnlinkedPATemplateSummaryRoot.md new file mode 100644 index 00000000..0f56cfbb --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateSummaryRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateSummaryRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**Dictionary<string, UnlinkedPATemplateSummary>**](UnlinkedPATemplateSummary.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateUpdateParameters.md b/auto-generated-sdk/docs/UnlinkedPATemplateUpdateParameters.md new file mode 100644 index 00000000..9af8a6bf --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateUpdateParameters.md @@ -0,0 +1,18 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateUpdateParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | Template description | [optional] +**Accounts** | [**List<PAIdentifier>**](PAIdentifier.md) | List of accounts | [optional] +**Benchmarks** | [**List<PAIdentifier>**](PAIdentifier.md) | List of benchmarks | [optional] +**Columns** | [**List<PACalculationColumn>**](PACalculationColumn.md) | List of columns for the PA calculation | [optional] +**Dates** | [**PADateParameters**](PADateParameters.md) | | [optional] +**Groups** | [**List<PACalculationGroup>**](PACalculationGroup.md) | List of groupings for the PA calculation | [optional] +**Currencyisocode** | **string** | Currency ISO code for calculation. | [optional] +**Componentdetail** | **string** | PA storage type. It can be GROUPS or TOTALS or SECURITIES. | [optional] +**Content** | [**TemplateContentTypes**](TemplateContentTypes.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplateUpdateParametersRoot.md b/auto-generated-sdk/docs/UnlinkedPATemplateUpdateParametersRoot.md new file mode 100644 index 00000000..b2e1404b --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateUpdateParametersRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateUpdateParametersRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UnlinkedPATemplateUpdateParameters**](UnlinkedPATemplateUpdateParameters.md) | | +**Meta** | **Object** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/UnlinkedPATemplatesApi.md b/auto-generated-sdk/docs/UnlinkedPATemplatesApi.md new file mode 100644 index 00000000..c1daec66 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplatesApi.md @@ -0,0 +1,605 @@ +# FactSet.AnalyticsAPI.Engines.Api.UnlinkedPATemplatesApi + +All URIs are relative to *https://api.factset.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateUnlinkedPATemplates**](UnlinkedPATemplatesApi.md#createunlinkedpatemplates) | **POST** /analytics/engines/pa/v3/unlinked-templates | Create unlinked PA template +[**DeleteUnlinkedPATemplates**](UnlinkedPATemplatesApi.md#deleteunlinkedpatemplates) | **DELETE** /analytics/engines/pa/v3/unlinked-templates/{id} | Delete unlinked PA template +[**GetDefaultUnlinkedPATemplateTypes**](UnlinkedPATemplatesApi.md#getdefaultunlinkedpatemplatetypes) | **GET** /analytics/engines/pa/v3/unlinked-templates/template-types | Get default unlinked PA template types. +[**GetDetailsType**](UnlinkedPATemplatesApi.md#getdetailstype) | **GET** /analytics/engines/pa/v3/unlinked-templates/template-types/{id} | Get unlinked PA template type details by id. +[**GetUnlinkedPATemplates**](UnlinkedPATemplatesApi.md#getunlinkedpatemplates) | **GET** /analytics/engines/pa/v3/unlinked-templates | Get unlinked PA templates +[**GetUnlinkedPATemplatesById**](UnlinkedPATemplatesApi.md#getunlinkedpatemplatesbyid) | **GET** /analytics/engines/pa/v3/unlinked-templates/{id} | Get unlinked PA template details by id +[**UpdateUnlinkedPATemplates**](UnlinkedPATemplatesApi.md#updateunlinkedpatemplates) | **PUT** /analytics/engines/pa/v3/unlinked-templates/{id} | Update unlinked PA template + + + +# **CreateUnlinkedPATemplates** +> UnlinkedPATemplateSummaryRoot CreateUnlinkedPATemplates (UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot) + +Create unlinked PA template + +This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class CreateUnlinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new UnlinkedPATemplatesApi(config); + var unlinkedPATemplateParametersRoot = new UnlinkedPATemplateParametersRoot(); // UnlinkedPATemplateParametersRoot | Request Parameters + + try + { + // Create unlinked PA template + UnlinkedPATemplateSummaryRoot result = apiInstance.CreateUnlinkedPATemplates(unlinkedPATemplateParametersRoot); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UnlinkedPATemplatesApi.CreateUnlinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **unlinkedPATemplateParametersRoot** | [**UnlinkedPATemplateParametersRoot**](UnlinkedPATemplateParametersRoot.md)| Request Parameters | + +### Return type + +[**UnlinkedPATemplateSummaryRoot**](UnlinkedPATemplateSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Expected response, created a unlinked PA template. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **DeleteUnlinkedPATemplates** +> void DeleteUnlinkedPATemplates (string id) + +Delete unlinked PA template + +This endpoint deletes an existing unliked PA template. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class DeleteUnlinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new UnlinkedPATemplatesApi(config); + var id = id_example; // string | Unique identifier for an unlinked PA template + + try + { + // Delete unlinked PA template + apiInstance.DeleteUnlinkedPATemplates(id); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UnlinkedPATemplatesApi.DeleteUnlinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for an unlinked PA template | + +### Return type + +void (empty response body) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Expected response, deleted the unlinked PA template successfully. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Template not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetDefaultUnlinkedPATemplateTypes** +> UnlinkedPATemplateCategoryAndTypeRoot GetDefaultUnlinkedPATemplateTypes () + +Get default unlinked PA template types. + +This endpoint fetches default unlinked PA template types. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class GetDefaultUnlinkedPATemplateTypesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new UnlinkedPATemplatesApi(config); + + try + { + // Get default unlinked PA template types. + UnlinkedPATemplateCategoryAndTypeRoot result = apiInstance.GetDefaultUnlinkedPATemplateTypes(); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UnlinkedPATemplatesApi.GetDefaultUnlinkedPATemplateTypes: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**UnlinkedPATemplateCategoryAndTypeRoot**](UnlinkedPATemplateCategoryAndTypeRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, default unlinked PA template types | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetDetailsType** +> UnlinkedPATemplateCategoryAndTypeDetailsRoot GetDetailsType (string id) + +Get unlinked PA template type details by id. + +This endpoint fetches the unlinked PA template type details. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class GetDetailsTypeExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new UnlinkedPATemplatesApi(config); + var id = id_example; // string | Unique identifier for an unlinked PA template type + + try + { + // Get unlinked PA template type details by id. + UnlinkedPATemplateCategoryAndTypeDetailsRoot result = apiInstance.GetDetailsType(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UnlinkedPATemplatesApi.GetDetailsType: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for an unlinked PA template type | + +### Return type + +[**UnlinkedPATemplateCategoryAndTypeDetailsRoot**](UnlinkedPATemplateCategoryAndTypeDetailsRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, details of the unlinked PA template type | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Unlinked PA template type not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUnlinkedPATemplates** +> UnlinkedPATemplateSummaryRoot GetUnlinkedPATemplates (string directory = null, string category = null) + +Get unlinked PA templates + +This endpoint returns the list of unlinked PA templates. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class GetUnlinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new UnlinkedPATemplatesApi(config); + var directory = directory_example; // string | Get unlinked PA templates in path. (optional) + var category = category_example; // string | Get unlinked PA templates by category. (optional) + + try + { + // Get unlinked PA templates + UnlinkedPATemplateSummaryRoot result = apiInstance.GetUnlinkedPATemplates(directory, category); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UnlinkedPATemplatesApi.GetUnlinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory** | **string**| Get unlinked PA templates in path. | [optional] + **category** | **string**| Get unlinked PA templates by category. | [optional] + +### Return type + +[**UnlinkedPATemplateSummaryRoot**](UnlinkedPATemplateSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, returns a list of unlinked PA templates. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetUnlinkedPATemplatesById** +> UnlinkedPATemplateRoot GetUnlinkedPATemplatesById (string id) + +Get unlinked PA template details by id + +This endpoint fetches the template settings. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class GetUnlinkedPATemplatesByIdExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new UnlinkedPATemplatesApi(config); + var id = id_example; // string | Unique identifier for an unlinked PA template + + try + { + // Get unlinked PA template details by id + UnlinkedPATemplateRoot result = apiInstance.GetUnlinkedPATemplatesById(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UnlinkedPATemplatesApi.GetUnlinkedPATemplatesById: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for an unlinked PA template | + +### Return type + +[**UnlinkedPATemplateRoot**](UnlinkedPATemplateRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, get details of the unlinked PA template. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Template not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **UpdateUnlinkedPATemplates** +> UnlinkedPATemplateSummaryRoot UpdateUnlinkedPATemplates (string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot) + +Update unlinked PA template + +This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using FactSet.AnalyticsAPI.Engines.Api; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace Example +{ + public class UpdateUnlinkedPATemplatesExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://api.factset.com"; + // Configure HTTP basic authorization: Basic + config.Username = "YOUR_USERNAME"; + config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; + + var apiInstance = new UnlinkedPATemplatesApi(config); + var id = id_example; // string | Unique identifier for an unlinked PA template + var unlinkedPATemplateUpdateParametersRoot = new UnlinkedPATemplateUpdateParametersRoot(); // UnlinkedPATemplateUpdateParametersRoot | Request Parameters + + try + { + // Update unlinked PA template + UnlinkedPATemplateSummaryRoot result = apiInstance.UpdateUnlinkedPATemplates(id, unlinkedPATemplateUpdateParametersRoot); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling UnlinkedPATemplatesApi.UpdateUnlinkedPATemplates: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **string**| Unique identifier for an unlinked PA template | + **unlinkedPATemplateUpdateParametersRoot** | [**UnlinkedPATemplateUpdateParametersRoot**](UnlinkedPATemplateUpdateParametersRoot.md)| Request Parameters | + +### Return type + +[**UnlinkedPATemplateSummaryRoot**](UnlinkedPATemplateSummaryRoot.md) + +### Authorization + +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Expected response, updated the unlinked PA template. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **400** | Invalid data provided. Please check the request parameters before attempting again. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **404** | Template not found. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **401** | Missing or invalid authentication. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **403** | User is forbidden with current credentials | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **406** | Unsupported Accept header. Header needs to be set to application/json. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* X-FactSet-Api-RateLimit-Limit - Number of allowed requests for the time window.
* X-FactSet-Api-RateLimit-Remaining - Number of requests left for the time window.
* X-FactSet-Api-RateLimit-Reset - Number of seconds remaining till rate limit resets.
| +| **429** | Rate limit reached. Wait till the time specified in Retry-After header value to make further requests. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
* Retry-After - Time to wait in seconds before making a new request as the rate limit has reached.
| +| **500** | Server error. Log the X-DataDirect-Request-Key header to assist in troubleshooting. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| +| **503** | Request timed out. Retry the request in sometime. | * X-DataDirect-Request-Key - FactSet's request key header.
* X-FactSet-Api-Request-Key - Key to uniquely identify an Analytics API request. Only available after successful authentication.
| + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/auto-generated-sdk/docs/VaultCalculationsApi.md b/auto-generated-sdk/docs/VaultCalculationsApi.md index 97d02a0e..4d1b39af 100644 --- a/auto-generated-sdk/docs/VaultCalculationsApi.md +++ b/auto-generated-sdk/docs/VaultCalculationsApi.md @@ -39,6 +39,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new VaultCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Vault calculation endpoint @@ -71,7 +73,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -119,6 +121,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new VaultCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Vault calculation endpoint @@ -152,7 +156,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -200,6 +204,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new VaultCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Vault calculation endpoint @@ -233,7 +239,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -282,6 +288,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new VaultCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Get Vault calculation status by id endpoint @@ -317,7 +325,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -365,6 +373,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new VaultCalculationsApi(config); var xFactSetApiLongRunningDeadline = 56; // int? | Long running deadline in seconds when only one unit is passed in the POST body. (optional) @@ -402,7 +412,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers @@ -454,6 +464,8 @@ namespace Example // Configure HTTP basic authorization: Basic config.Username = "YOUR_USERNAME"; config.Password = "YOUR_PASSWORD"; + // Configure Bearer token for authorization: Bearer + config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new VaultCalculationsApi(config); var id = id_example; // string | from url, provided from the location header in the Create and Run Vault calculation endpoint @@ -493,7 +505,7 @@ Name | Type | Description | Notes ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [Bearer](../README.md#Bearer) ### HTTP request headers diff --git a/auto-generated-sdk/docs/VaultComponent.md b/auto-generated-sdk/docs/VaultComponent.md index ca5c2619..29e6a7ec 100644 --- a/auto-generated-sdk/docs/VaultComponent.md +++ b/auto-generated-sdk/docs/VaultComponent.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **Snapshot** | **bool** | Snapshot | [optional] **Name** | **string** | Component name. | [optional] **Category** | **string** | Component category. | [optional] +**Type** | **string** | Component type. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs index 9994eecc..07647d06 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs @@ -519,6 +519,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -590,6 +596,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -659,6 +671,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -730,6 +748,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/afi/v3/optimizations/{id}/result", localVarRequestOptions, this.Configuration); @@ -870,6 +900,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -943,6 +979,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); @@ -1018,6 +1060,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1101,6 +1149,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration); @@ -1186,6 +1240,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1277,6 +1337,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -1370,6 +1436,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs index c3c29e58..d4edee1e 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs @@ -519,6 +519,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -590,6 +596,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -659,6 +671,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -730,6 +748,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/axp/v3/optimizations/{id}/result", localVarRequestOptions, this.Configuration); @@ -870,6 +900,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -943,6 +979,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); @@ -1018,6 +1060,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1101,6 +1149,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration); @@ -1186,6 +1240,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1277,6 +1337,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -1370,6 +1436,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs index 9fc54587..95d0b53f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs @@ -48,6 +48,27 @@ public interface IAccountsApiSync : IApiAccessor /// The directory to get the accounts and sub-directories in /// ApiResponse of AccountDirectoriesRoot ApiResponse GetAccountsWithHttpInfo(string path); + /// + /// Get SPAR account returns type details + /// + /// + /// This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// SPARAccountsRoot + SPARAccountsRoot GetSPARReturnsType(string accountPath); + + /// + /// Get SPAR account returns type details + /// + /// + /// This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// ApiResponse of SPARAccountsRoot + ApiResponse GetSPARReturnsTypeWithHttpInfo(string accountPath); #endregion Synchronous Operations } @@ -80,6 +101,29 @@ public interface IAccountsApiAsync : IApiAccessor /// Cancellation Token to cancel the request. /// Task of ApiResponse of AccountDirectoriesRoot System.Threading.Tasks.Task> GetAccountsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get SPAR account returns type details + /// + /// + /// This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// Cancellation Token to cancel the request. + /// Task of SPARAccountsRoot + System.Threading.Tasks.Task GetSPARReturnsTypeAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get SPAR account returns type details + /// + /// + /// This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of SPARAccountsRoot + System.Threading.Tasks.Task> GetSPARReturnsTypeWithHttpInfoAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -255,6 +299,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/lookups/v3/accounts/{path}", localVarRequestOptions, this.Configuration); @@ -326,6 +376,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -340,5 +396,157 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G return localVarResponse; } + /// + /// Get SPAR account returns type details This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// SPARAccountsRoot + public SPARAccountsRoot GetSPARReturnsType(string accountPath) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetSPARReturnsTypeWithHttpInfo(accountPath); + return localVarResponse.Data; + } + + /// + /// Get SPAR account returns type details This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// ApiResponse of SPARAccountsRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARReturnsTypeWithHttpInfo(string accountPath) + { + // verify the required parameter 'accountPath' is set + if (accountPath == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'accountPath' when calling AccountsApi->GetSPARReturnsType"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(SPARAccountsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("accountPath", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(accountPath)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/analytics/engines/spar/v3/accounts/{accountPath}/returns-type", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSPARReturnsType", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get SPAR account returns type details This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// Cancellation Token to cancel the request. + /// Task of SPARAccountsRoot + public async System.Threading.Tasks.Task GetSPARReturnsTypeAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetSPARReturnsTypeWithHttpInfoAsync(accountPath, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get SPAR account returns type details This endpoint returns the returns type of account associated with SPAR + /// + /// Thrown when fails to make API call + /// URL encoded account path + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of SPARAccountsRoot + public async System.Threading.Tasks.Task> GetSPARReturnsTypeWithHttpInfoAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'accountPath' is set + if (accountPath == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'accountPath' when calling AccountsApi->GetSPARReturnsType"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(SPARAccountsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("accountPath", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(accountPath)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/spar/v3/accounts/{accountPath}/returns-type", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetSPARReturnsType", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + } } \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs index 12c0794b..95323450 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs @@ -519,6 +519,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -590,6 +596,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -659,6 +671,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -730,6 +748,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/bpm/v3/optimizations/{id}/result", localVarRequestOptions, this.Configuration); @@ -870,6 +900,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -943,6 +979,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); @@ -1018,6 +1060,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1101,6 +1149,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration); @@ -1186,6 +1240,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1277,6 +1337,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -1370,6 +1436,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs index d9b898cf..74190fdf 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs @@ -255,6 +255,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/spar/v3/benchmarks", localVarRequestOptions, this.Configuration); @@ -326,6 +332,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs index 70a5e911..c17acca0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs @@ -242,6 +242,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/columnstatistics", localVarRequestOptions, this.Configuration); @@ -304,6 +310,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs index 47f12775..d978805b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs @@ -307,6 +307,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/columns/{id}", localVarRequestOptions, this.Configuration); @@ -378,6 +384,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -456,6 +468,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/columns", localVarRequestOptions, this.Configuration); @@ -536,6 +554,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs index c0b7cf61..c64484a0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs @@ -52,23 +52,25 @@ public interface IComponentsApiSync : IApiAccessor /// Get PA components /// /// - /// This endpoint returns the list of PA components in a given PA document. + /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// ComponentSummaryRoot - ComponentSummaryRoot GetPAComponents(string document); + ComponentSummaryRoot GetPAComponents(string document = default(string), string directory = default(string)); /// /// Get PA components /// /// - /// This endpoint returns the list of PA components in a given PA document. + /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// ApiResponse of ComponentSummaryRoot - ApiResponse GetPAComponentsWithHttpInfo(string document); + ApiResponse GetPAComponentsWithHttpInfo(string document = default(string), string directory = default(string)); /// /// Get SPAR components /// @@ -168,25 +170,27 @@ public interface IComponentsApiAsync : IApiAccessor /// Get PA components /// /// - /// This endpoint returns the list of PA components in a given PA document. + /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// Cancellation Token to cancel the request. /// Task of ComponentSummaryRoot - System.Threading.Tasks.Task GetPAComponentsAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPAComponentsAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA components /// /// - /// This endpoint returns the list of PA components in a given PA document. + /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse of ComponentSummaryRoot - System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR components /// @@ -431,6 +435,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/components/{id}", localVarRequestOptions, this.Configuration); @@ -502,6 +512,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -517,29 +533,27 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom } /// - /// Get PA components This endpoint returns the list of PA components in a given PA document. + /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// ComponentSummaryRoot - public ComponentSummaryRoot GetPAComponents(string document) + public ComponentSummaryRoot GetPAComponents(string document = default(string), string directory = default(string)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetPAComponentsWithHttpInfo(document); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetPAComponentsWithHttpInfo(document, directory); return localVarResponse.Data; } /// - /// Get PA components This endpoint returns the list of PA components in a given PA document. + /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// ApiResponse of ComponentSummaryRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAComponentsWithHttpInfo(string document) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAComponentsWithHttpInfo(string document = default(string), string directory = default(string)) { - // verify the required parameter 'document' is set - if (document == null) - throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'document' when calling ComponentsApi->GetPAComponents"); - FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); String[] _contentTypes = new String[] { @@ -563,7 +577,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); + if (document != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); + } + if (directory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + } // authentication (Basic) required // http basic authentication required @@ -571,6 +592,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/components", localVarRequestOptions, this.Configuration); @@ -585,31 +612,29 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get } /// - /// Get PA components This endpoint returns the list of PA components in a given PA document. + /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// Cancellation Token to cancel the request. /// Task of ComponentSummaryRoot - public async System.Threading.Tasks.Task GetPAComponentsAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPAComponentsAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetPAComponentsWithHttpInfoAsync(document, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetPAComponentsWithHttpInfoAsync(document, directory, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Get PA components This endpoint returns the list of PA components in a given PA document. + /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name + /// Document Name (optional) + /// Directory to get the components (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse of ComponentSummaryRoot - public async System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - // verify the required parameter 'document' is set - if (document == null) - throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'document' when calling ComponentsApi->GetPAComponents"); - FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -634,7 +659,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); + if (document != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); + } + if (directory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + } // authentication (Basic) required // http basic authentication required @@ -642,6 +674,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -711,6 +749,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/spar/v3/components", localVarRequestOptions, this.Configuration); @@ -782,6 +826,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -851,6 +901,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/components/{id}", localVarRequestOptions, this.Configuration); @@ -922,6 +978,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -991,6 +1053,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/components", localVarRequestOptions, this.Configuration); @@ -1062,6 +1130,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs index 3cd5653a..b1b5441f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs @@ -299,6 +299,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/configurations/{id}", localVarRequestOptions, this.Configuration); @@ -370,6 +376,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -439,6 +451,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/vault/v3/configurations", localVarRequestOptions, this.Configuration); @@ -510,6 +528,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/lookups/v3/currencies", localVarRequestOptions, this.Configuration); @@ -304,6 +310,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs index 4a5536e2..77465d62 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs @@ -343,6 +343,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/dates", localVarRequestOptions, this.Configuration); @@ -434,6 +440,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -523,6 +535,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/dates", localVarRequestOptions, this.Configuration); @@ -614,6 +632,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs index 3df8a0f6..b0ab1c1c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs @@ -387,6 +387,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/documents/{path}", localVarRequestOptions, this.Configuration); @@ -458,6 +464,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -527,6 +539,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pub/v3/documents/{path}", localVarRequestOptions, this.Configuration); @@ -598,6 +616,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -667,6 +691,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/spar/v3/documents/{path}", localVarRequestOptions, this.Configuration); @@ -738,6 +768,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -807,6 +843,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/documents/{path}", localVarRequestOptions, this.Configuration); @@ -878,6 +920,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs index 24a761d5..9862401d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs @@ -322,8 +322,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { { 200, typeof(FIABCalculationStatus) }, { 202, typeof(FIABCalculationStatus) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -340,6 +338,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/fiab/v1/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -394,8 +398,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { { 200, typeof(FIABCalculationStatus) }, { 202, typeof(FIABCalculationStatus) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -412,6 +414,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -472,6 +480,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse>("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration); @@ -534,6 +548,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -600,6 +615,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration); @@ -643,15 +664,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); @@ -668,6 +684,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -590,6 +596,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -659,6 +671,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -730,6 +748,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/fi/v3/calculations/{id}/result", localVarRequestOptions, this.Configuration); @@ -872,6 +902,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -946,6 +982,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); @@ -1022,6 +1064,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1106,6 +1154,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration); @@ -1192,6 +1246,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1284,6 +1344,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -1378,6 +1444,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs index 939f2631..4f6bd5a9 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs @@ -523,6 +523,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -594,6 +600,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -663,6 +675,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -734,6 +752,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fpo/v3/optimizations/{id}/result", localVarRequestOptions, this.Configuration); @@ -886,6 +916,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); @@ -1034,6 +1076,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1117,6 +1165,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration); @@ -1202,6 +1256,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1293,6 +1353,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -1386,6 +1452,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs index c33826e8..0bb30a20 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs @@ -322,6 +322,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/frequencies", localVarRequestOptions, this.Configuration); @@ -384,6 +390,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -444,6 +456,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/spar/v3/frequencies", localVarRequestOptions, this.Configuration); @@ -506,6 +524,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -566,6 +590,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/frequencies", localVarRequestOptions, this.Configuration); @@ -628,6 +658,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs index dcb2c7c8..789068af 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs @@ -242,6 +242,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/groups", localVarRequestOptions, this.Configuration); @@ -304,6 +310,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs new file mode 100644 index 00000000..3e93b032 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs @@ -0,0 +1,1190 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace FactSet.AnalyticsAPI.Engines.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILinkedPATemplatesApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create a linked PA template + /// + /// + /// This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// LinkedPATemplateSummaryRoot + LinkedPATemplateSummaryRoot CreateLinkedPATemplates(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot); + + /// + /// Create a linked PA template + /// + /// + /// This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of LinkedPATemplateSummaryRoot + ApiResponse CreateLinkedPATemplatesWithHttpInfo(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot); + /// + /// Delete a linked PA template. + /// + /// + /// This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// + void DeleteLinkedPATemplates(string id); + + /// + /// Delete a linked PA template. + /// + /// + /// This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// ApiResponse of Object(null) + ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id); + /// + /// Get linked PA templates + /// + /// + /// This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// LinkedPATemplateSummaryRoot + LinkedPATemplateSummaryRoot GetLinkedPATemplates(string directory = default(string), string documentDirectory = default(string), string documentName = default(string)); + + /// + /// Get linked PA templates + /// + /// + /// This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// ApiResponse of LinkedPATemplateSummaryRoot + ApiResponse GetLinkedPATemplatesWithHttpInfo(string directory = default(string), string documentDirectory = default(string), string documentName = default(string)); + /// + /// Get linked PA template by id + /// + /// + /// This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// LinkedPATemplateRoot + LinkedPATemplateRoot GetLinkedPATemplatesById(string id); + + /// + /// Get linked PA template by id + /// + /// + /// This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// ApiResponse of LinkedPATemplateRoot + ApiResponse GetLinkedPATemplatesByIdWithHttpInfo(string id); + /// + /// Update a linked PA template + /// + /// + /// This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// LinkedPATemplateSummaryRoot + LinkedPATemplateSummaryRoot UpdateLinkedPATemplates(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot); + + /// + /// Update a linked PA template + /// + /// + /// This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// ApiResponse of LinkedPATemplateSummaryRoot + ApiResponse UpdateLinkedPATemplatesWithHttpInfo(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILinkedPATemplatesApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create a linked PA template + /// + /// + /// This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateSummaryRoot + System.Threading.Tasks.Task CreateLinkedPATemplatesAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create a linked PA template + /// + /// + /// This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateSummaryRoot + System.Threading.Tasks.Task> CreateLinkedPATemplatesWithHttpInfoAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete a linked PA template. + /// + /// + /// This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteLinkedPATemplatesAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete a linked PA template. + /// + /// + /// This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get linked PA templates + /// + /// + /// This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateSummaryRoot + System.Threading.Tasks.Task GetLinkedPATemplatesAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get linked PA templates + /// + /// + /// This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateSummaryRoot + System.Threading.Tasks.Task> GetLinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get linked PA template by id + /// + /// + /// This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateRoot + System.Threading.Tasks.Task GetLinkedPATemplatesByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get linked PA template by id + /// + /// + /// This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateRoot + System.Threading.Tasks.Task> GetLinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update a linked PA template + /// + /// + /// This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateSummaryRoot + System.Threading.Tasks.Task UpdateLinkedPATemplatesAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update a linked PA template + /// + /// + /// This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateSummaryRoot + System.Threading.Tasks.Task> UpdateLinkedPATemplatesWithHttpInfoAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ILinkedPATemplatesApi : ILinkedPATemplatesApiSync, ILinkedPATemplatesApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class LinkedPATemplatesApi : ILinkedPATemplatesApi + { + private FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public LinkedPATemplatesApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public LinkedPATemplatesApi(String basePath) + { + this.Configuration = FactSet.AnalyticsAPI.Engines.Client.Configuration.MergeConfigurations( + FactSet.AnalyticsAPI.Engines.Client.GlobalConfiguration.Instance, + new FactSet.AnalyticsAPI.Engines.Client.Configuration { BasePath = basePath } + ); + this.Client = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public LinkedPATemplatesApi(FactSet.AnalyticsAPI.Engines.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = FactSet.AnalyticsAPI.Engines.Client.Configuration.MergeConfigurations( + FactSet.AnalyticsAPI.Engines.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public LinkedPATemplatesApi(FactSet.AnalyticsAPI.Engines.Client.ISynchronousClient client, FactSet.AnalyticsAPI.Engines.Client.IAsynchronousClient asyncClient, FactSet.AnalyticsAPI.Engines.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public FactSet.AnalyticsAPI.Engines.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public FactSet.AnalyticsAPI.Engines.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public FactSet.AnalyticsAPI.Engines.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create a linked PA template This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// LinkedPATemplateSummaryRoot + public LinkedPATemplateSummaryRoot CreateLinkedPATemplates(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = CreateLinkedPATemplatesWithHttpInfo(linkedPATemplateParametersRoot); + return localVarResponse.Data; + } + + /// + /// Create a linked PA template This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of LinkedPATemplateSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CreateLinkedPATemplatesWithHttpInfo(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot) + { + // verify the required parameter 'linkedPATemplateParametersRoot' is set + if (linkedPATemplateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'linkedPATemplateParametersRoot' when calling LinkedPATemplatesApi->CreateLinkedPATemplates"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = linkedPATemplateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/linked-templates", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create a linked PA template This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task CreateLinkedPATemplatesAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await CreateLinkedPATemplatesWithHttpInfoAsync(linkedPATemplateParametersRoot, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create a linked PA template This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task> CreateLinkedPATemplatesWithHttpInfoAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'linkedPATemplateParametersRoot' is set + if (linkedPATemplateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'linkedPATemplateParametersRoot' when calling LinkedPATemplatesApi->CreateLinkedPATemplates"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = linkedPATemplateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pa/v3/linked-templates", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete a linked PA template. This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// + public void DeleteLinkedPATemplates(string id) + { + DeleteLinkedPATemplatesWithHttpInfo(id); + } + + /// + /// Delete a linked PA template. This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling LinkedPATemplatesApi->DeleteLinkedPATemplates"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete a linked PA template. This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteLinkedPATemplatesAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteLinkedPATemplatesWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete a linked PA template. This endpoint deletes an existing linked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling LinkedPATemplatesApi->DeleteLinkedPATemplates"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get linked PA templates This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// LinkedPATemplateSummaryRoot + public LinkedPATemplateSummaryRoot GetLinkedPATemplates(string directory = default(string), string documentDirectory = default(string), string documentName = default(string)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetLinkedPATemplatesWithHttpInfo(directory, documentDirectory, documentName); + return localVarResponse.Data; + } + + /// + /// Get linked PA templates This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// ApiResponse of LinkedPATemplateSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetLinkedPATemplatesWithHttpInfo(string directory = default(string), string documentDirectory = default(string), string documentName = default(string)) + { + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (directory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + } + if (documentDirectory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "documentDirectory", documentDirectory)); + } + if (documentName != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "documentName", documentName)); + } + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/linked-templates", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get linked PA templates This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task GetLinkedPATemplatesAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetLinkedPATemplatesWithHttpInfoAsync(directory, documentDirectory, documentName, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get linked PA templates This endpoint returns the list of linked PA templates in given path. + /// + /// Thrown when fails to make API call + /// Get linked PA templates in path. (optional) + /// Get linked PA templates for documents in document path (optional) + /// Get linked PA templates for documents by document name (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task> GetLinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (directory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + } + if (documentDirectory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "documentDirectory", documentDirectory)); + } + if (documentName != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "documentName", documentName)); + } + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/pa/v3/linked-templates", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get linked PA template by id This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// LinkedPATemplateRoot + public LinkedPATemplateRoot GetLinkedPATemplatesById(string id) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetLinkedPATemplatesByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get linked PA template by id This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// ApiResponse of LinkedPATemplateRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetLinkedPATemplatesByIdWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling LinkedPATemplatesApi->GetLinkedPATemplatesById"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedPATemplatesById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get linked PA template by id This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateRoot + public async System.Threading.Tasks.Task GetLinkedPATemplatesByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetLinkedPATemplatesByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get linked PA template by id This endpoint fetches the linked PA template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateRoot + public async System.Threading.Tasks.Task> GetLinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling LinkedPATemplatesApi->GetLinkedPATemplatesById"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetLinkedPATemplatesById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update a linked PA template This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// LinkedPATemplateSummaryRoot + public LinkedPATemplateSummaryRoot UpdateLinkedPATemplates(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = UpdateLinkedPATemplatesWithHttpInfo(id, linkedPATemplateUpdateParametersRoot); + return localVarResponse.Data; + } + + /// + /// Update a linked PA template This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// ApiResponse of LinkedPATemplateSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse UpdateLinkedPATemplatesWithHttpInfo(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling LinkedPATemplatesApi->UpdateLinkedPATemplates"); + + // verify the required parameter 'linkedPATemplateUpdateParametersRoot' is set + if (linkedPATemplateUpdateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'linkedPATemplateUpdateParametersRoot' when calling LinkedPATemplatesApi->UpdateLinkedPATemplates"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = linkedPATemplateUpdateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update a linked PA template This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task UpdateLinkedPATemplatesAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await UpdateLinkedPATemplatesWithHttpInfoAsync(id, linkedPATemplateUpdateParametersRoot, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update a linked PA template This endpoint allows the user to change the request body and description from an existing template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task> UpdateLinkedPATemplatesWithHttpInfoAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling LinkedPATemplatesApi->UpdateLinkedPATemplates"); + + // verify the required parameter 'linkedPATemplateUpdateParametersRoot' is set + if (linkedPATemplateUpdateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'linkedPATemplateUpdateParametersRoot' when calling LinkedPATemplatesApi->UpdateLinkedPATemplates"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = linkedPATemplateUpdateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateLinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/NPOOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/NPOOptimizerApi.cs index b8cf4e67..beb1721d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/NPOOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/NPOOptimizerApi.cs @@ -519,6 +519,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -590,6 +596,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -659,6 +671,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -730,6 +748,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/npo/v3/optimizations/{id}/result", localVarRequestOptions, this.Configuration); @@ -870,6 +900,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -943,6 +979,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); @@ -1018,6 +1060,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1101,6 +1149,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration); @@ -1186,6 +1240,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1277,6 +1337,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); @@ -1370,6 +1436,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs index d64439ca..fd9dc591 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs @@ -523,6 +523,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -594,6 +600,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -663,6 +675,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -734,6 +752,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); @@ -876,6 +906,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -953,6 +989,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/calculations/{id}/units/{unitId}/result", localVarRequestOptions, this.Configuration); @@ -1032,6 +1074,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1119,6 +1167,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration); @@ -1208,6 +1262,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1303,6 +1363,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -1400,6 +1466,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs index 40ca5584..980e55da 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs @@ -523,6 +523,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -594,6 +600,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -663,6 +675,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -734,6 +752,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pub/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); @@ -876,6 +906,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -954,6 +990,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/pub/v3/calculations/{id}/units/{unitId}/result", localVarRequestOptions, this.Configuration); @@ -1034,6 +1076,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1121,6 +1169,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration); @@ -1210,6 +1264,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1304,6 +1364,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -1400,6 +1466,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs index 25310496..d22d84c3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs @@ -28,6 +28,27 @@ public interface IQuantCalculationsApiSync : IApiAccessor { #region Synchronous Operations /// + /// Cancel Quant calculation by id + /// + /// + /// This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// + void CancelCalculationById(string id); + + /// + /// Cancel Quant calculation by id + /// + /// + /// This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// ApiResponse of Object(null) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// /// Get Quant Engine calculation parameters by id /// /// @@ -185,6 +206,29 @@ public interface IQuantCalculationsApiAsync : IApiAccessor { #region Asynchronous Operations /// + /// Cancel Quant calculation by id + /// + /// + /// This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task CancelCalculationByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Cancel Quant calculation by id + /// + /// + /// This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// Get Quant Engine calculation parameters by id /// /// @@ -464,6 +508,158 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory set { _exceptionFactory = value; } } + /// + /// Cancel Quant calculation by id This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// + public void CancelCalculationById(string id) + { + CancelCalculationByIdWithHttpInfo(id); + } + + /// + /// Cancel Quant calculation by id This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling QuantCalculationsApi->CancelCalculationById"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelCalculationById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Cancel Quant calculation by id This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task CancelCalculationByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await CancelCalculationByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + } + + /// + /// Cancel Quant calculation by id This is the endpoint to cancel a previously submitted calculation. + /// + /// Thrown when fails to make API call + /// from url, provided from the location header in the Create and Run Quant calculation endpoint + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling QuantCalculationsApi->CancelCalculationById"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CancelCalculationById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get Quant Engine calculation parameters by id This is the endpoint that returns the calculation parameters passed for a calculation. /// @@ -519,6 +715,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -590,6 +792,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/quant/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); @@ -732,6 +946,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -810,6 +1030,12 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/quant/v3/calculations/{id}/units/{unitId}/info", localVarRequestOptions, this.Configuration); @@ -890,6 +1116,12 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -968,6 +1200,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/quant/v3/calculations/{id}/units/{unitId}/result", localVarRequestOptions, this.Configuration); @@ -1048,6 +1286,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1129,6 +1373,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration); @@ -1212,6 +1462,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1301,6 +1557,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -1392,6 +1654,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs index b0c39bb8..e8806c1a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs @@ -523,6 +523,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -594,6 +600,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -663,6 +675,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -734,6 +752,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/spar/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); @@ -876,6 +906,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -953,6 +989,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/spar/v3/calculations/{id}/units/{unitId}/result", localVarRequestOptions, this.Configuration); @@ -1032,6 +1074,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1119,6 +1167,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration); @@ -1208,6 +1262,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1303,6 +1363,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -1400,6 +1466,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs index 2bb638f3..16ebe98c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs @@ -431,6 +431,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/axp/v3/strategies/{path}", localVarRequestOptions, this.Configuration); @@ -502,6 +508,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -571,6 +583,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/afi/v3/strategies/{path}", localVarRequestOptions, this.Configuration); @@ -642,6 +660,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -711,6 +735,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/bpm/v3/strategies/{path}", localVarRequestOptions, this.Configuration); @@ -782,6 +812,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -851,6 +887,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/fpo/v3/strategies/{path}", localVarRequestOptions, this.Configuration); @@ -922,6 +964,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -991,6 +1039,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/npo/v3/strategies/{path}", localVarRequestOptions, this.Configuration); @@ -1062,6 +1116,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs new file mode 100644 index 00000000..1d636eac --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs @@ -0,0 +1,772 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace FactSet.AnalyticsAPI.Engines.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITemplatedPAComponentsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create templated PA component + /// + /// + /// This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// TemplatedPAComponentSummaryRoot + TemplatedPAComponentSummaryRoot CreateTemplatedPAComponents(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot); + + /// + /// Create templated PA component + /// + /// + /// This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of TemplatedPAComponentSummaryRoot + ApiResponse CreateTemplatedPAComponentsWithHttpInfo(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot); + /// + /// Delete templated PA component + /// + /// + /// This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// + void DeleteTemplatedPAComponents(string id); + + /// + /// Delete templated PA component + /// + /// + /// This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// ApiResponse of Object(null) + ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id); + /// + /// Update templated PA component + /// + /// + /// This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// TemplatedPAComponentSummaryRoot + TemplatedPAComponentSummaryRoot UpdateTemplatedPAComponents(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot); + + /// + /// Update templated PA component + /// + /// + /// This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// ApiResponse of TemplatedPAComponentSummaryRoot + ApiResponse UpdateTemplatedPAComponentsWithHttpInfo(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITemplatedPAComponentsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create templated PA component + /// + /// + /// This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentSummaryRoot + System.Threading.Tasks.Task CreateTemplatedPAComponentsAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create templated PA component + /// + /// + /// This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + System.Threading.Tasks.Task> CreateTemplatedPAComponentsWithHttpInfoAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete templated PA component + /// + /// + /// This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteTemplatedPAComponentsAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete templated PA component + /// + /// + /// This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update templated PA component + /// + /// + /// This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentSummaryRoot + System.Threading.Tasks.Task UpdateTemplatedPAComponentsAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update templated PA component + /// + /// + /// This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + System.Threading.Tasks.Task> UpdateTemplatedPAComponentsWithHttpInfoAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface ITemplatedPAComponentsApi : ITemplatedPAComponentsApiSync, ITemplatedPAComponentsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class TemplatedPAComponentsApi : ITemplatedPAComponentsApi + { + private FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public TemplatedPAComponentsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public TemplatedPAComponentsApi(String basePath) + { + this.Configuration = FactSet.AnalyticsAPI.Engines.Client.Configuration.MergeConfigurations( + FactSet.AnalyticsAPI.Engines.Client.GlobalConfiguration.Instance, + new FactSet.AnalyticsAPI.Engines.Client.Configuration { BasePath = basePath } + ); + this.Client = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public TemplatedPAComponentsApi(FactSet.AnalyticsAPI.Engines.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = FactSet.AnalyticsAPI.Engines.Client.Configuration.MergeConfigurations( + FactSet.AnalyticsAPI.Engines.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public TemplatedPAComponentsApi(FactSet.AnalyticsAPI.Engines.Client.ISynchronousClient client, FactSet.AnalyticsAPI.Engines.Client.IAsynchronousClient asyncClient, FactSet.AnalyticsAPI.Engines.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public FactSet.AnalyticsAPI.Engines.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public FactSet.AnalyticsAPI.Engines.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public FactSet.AnalyticsAPI.Engines.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create templated PA component This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// TemplatedPAComponentSummaryRoot + public TemplatedPAComponentSummaryRoot CreateTemplatedPAComponents(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = CreateTemplatedPAComponentsWithHttpInfo(templatedPAComponentParametersRoot); + return localVarResponse.Data; + } + + /// + /// Create templated PA component This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of TemplatedPAComponentSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CreateTemplatedPAComponentsWithHttpInfo(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot) + { + // verify the required parameter 'templatedPAComponentParametersRoot' is set + if (templatedPAComponentParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'templatedPAComponentParametersRoot' when calling TemplatedPAComponentsApi->CreateTemplatedPAComponents"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = templatedPAComponentParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/templated-components", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateTemplatedPAComponents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create templated PA component This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentSummaryRoot + public async System.Threading.Tasks.Task CreateTemplatedPAComponentsAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await CreateTemplatedPAComponentsWithHttpInfoAsync(templatedPAComponentParametersRoot, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create templated PA component This endpoint creates new component based off of linked PA template or unlinked PA template. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + public async System.Threading.Tasks.Task> CreateTemplatedPAComponentsWithHttpInfoAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'templatedPAComponentParametersRoot' is set + if (templatedPAComponentParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'templatedPAComponentParametersRoot' when calling TemplatedPAComponentsApi->CreateTemplatedPAComponents"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = templatedPAComponentParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pa/v3/templated-components", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateTemplatedPAComponents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete templated PA component This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// + public void DeleteTemplatedPAComponents(string id) + { + DeleteTemplatedPAComponentsWithHttpInfo(id); + } + + /// + /// Delete templated PA component This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling TemplatedPAComponentsApi->DeleteTemplatedPAComponents"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteTemplatedPAComponents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete templated PA component This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteTemplatedPAComponentsAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteTemplatedPAComponentsWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete templated PA component This endpoint deletes an existing templated PA component + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling TemplatedPAComponentsApi->DeleteTemplatedPAComponents"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "text/plain", + "application/json", + "text/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteTemplatedPAComponents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update templated PA component This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// TemplatedPAComponentSummaryRoot + public TemplatedPAComponentSummaryRoot UpdateTemplatedPAComponents(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = UpdateTemplatedPAComponentsWithHttpInfo(id, templatedPAComponentUpdateParametersRoot); + return localVarResponse.Data; + } + + /// + /// Update templated PA component This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// ApiResponse of TemplatedPAComponentSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse UpdateTemplatedPAComponentsWithHttpInfo(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling TemplatedPAComponentsApi->UpdateTemplatedPAComponents"); + + // verify the required parameter 'templatedPAComponentUpdateParametersRoot' is set + if (templatedPAComponentUpdateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'templatedPAComponentUpdateParametersRoot' when calling TemplatedPAComponentsApi->UpdateTemplatedPAComponents"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = templatedPAComponentUpdateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateTemplatedPAComponents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update templated PA component This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentSummaryRoot + public async System.Threading.Tasks.Task UpdateTemplatedPAComponentsAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await UpdateTemplatedPAComponentsWithHttpInfoAsync(id, templatedPAComponentUpdateParametersRoot, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update templated PA component This endpoint allows the user to change the request body from an existing templated PA component. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + public async System.Threading.Tasks.Task> UpdateTemplatedPAComponentsWithHttpInfoAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling TemplatedPAComponentsApi->UpdateTemplatedPAComponents"); + + // verify the required parameter 'templatedPAComponentUpdateParametersRoot' is set + if (templatedPAComponentUpdateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'templatedPAComponentUpdateParametersRoot' when calling TemplatedPAComponentsApi->UpdateTemplatedPAComponents"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = templatedPAComponentUpdateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateTemplatedPAComponents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/UnlinkedPATemplatesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/UnlinkedPATemplatesApi.cs new file mode 100644 index 00000000..76ebadbf --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/UnlinkedPATemplatesApi.cs @@ -0,0 +1,1538 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using FactSet.AnalyticsAPI.Engines.Client; +using FactSet.AnalyticsAPI.Engines.Model; + +namespace FactSet.AnalyticsAPI.Engines.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IUnlinkedPATemplatesApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Create unlinked PA template + /// + /// + /// This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// UnlinkedPATemplateSummaryRoot + UnlinkedPATemplateSummaryRoot CreateUnlinkedPATemplates(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot); + + /// + /// Create unlinked PA template + /// + /// + /// This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of UnlinkedPATemplateSummaryRoot + ApiResponse CreateUnlinkedPATemplatesWithHttpInfo(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot); + /// + /// Delete unlinked PA template + /// + /// + /// This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// + void DeleteUnlinkedPATemplates(string id); + + /// + /// Delete unlinked PA template + /// + /// + /// This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// ApiResponse of Object(null) + ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id); + /// + /// Get default unlinked PA template types. + /// + /// + /// This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// UnlinkedPATemplateCategoryAndTypeRoot + UnlinkedPATemplateCategoryAndTypeRoot GetDefaultUnlinkedPATemplateTypes(); + + /// + /// Get default unlinked PA template types. + /// + /// + /// This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot + ApiResponse GetDefaultUnlinkedPATemplateTypesWithHttpInfo(); + /// + /// Get unlinked PA template type details by id. + /// + /// + /// This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// UnlinkedPATemplateCategoryAndTypeDetailsRoot + UnlinkedPATemplateCategoryAndTypeDetailsRoot GetDetailsType(string id); + + /// + /// Get unlinked PA template type details by id. + /// + /// + /// This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot + ApiResponse GetDetailsTypeWithHttpInfo(string id); + /// + /// Get unlinked PA templates + /// + /// + /// This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// UnlinkedPATemplateSummaryRoot + UnlinkedPATemplateSummaryRoot GetUnlinkedPATemplates(string directory = default(string), string category = default(string)); + + /// + /// Get unlinked PA templates + /// + /// + /// This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// ApiResponse of UnlinkedPATemplateSummaryRoot + ApiResponse GetUnlinkedPATemplatesWithHttpInfo(string directory = default(string), string category = default(string)); + /// + /// Get unlinked PA template details by id + /// + /// + /// This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// UnlinkedPATemplateRoot + UnlinkedPATemplateRoot GetUnlinkedPATemplatesById(string id); + + /// + /// Get unlinked PA template details by id + /// + /// + /// This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// ApiResponse of UnlinkedPATemplateRoot + ApiResponse GetUnlinkedPATemplatesByIdWithHttpInfo(string id); + /// + /// Update unlinked PA template + /// + /// + /// This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// UnlinkedPATemplateSummaryRoot + UnlinkedPATemplateSummaryRoot UpdateUnlinkedPATemplates(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot); + + /// + /// Update unlinked PA template + /// + /// + /// This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// ApiResponse of UnlinkedPATemplateSummaryRoot + ApiResponse UpdateUnlinkedPATemplatesWithHttpInfo(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IUnlinkedPATemplatesApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Create unlinked PA template + /// + /// + /// This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateSummaryRoot + System.Threading.Tasks.Task CreateUnlinkedPATemplatesAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Create unlinked PA template + /// + /// + /// This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + System.Threading.Tasks.Task> CreateUnlinkedPATemplatesWithHttpInfoAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Delete unlinked PA template + /// + /// + /// This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of void + System.Threading.Tasks.Task DeleteUnlinkedPATemplatesAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Delete unlinked PA template + /// + /// + /// This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get default unlinked PA template types. + /// + /// + /// This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateCategoryAndTypeRoot + System.Threading.Tasks.Task GetDefaultUnlinkedPATemplateTypesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get default unlinked PA template types. + /// + /// + /// This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot + System.Threading.Tasks.Task> GetDefaultUnlinkedPATemplateTypesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get unlinked PA template type details by id. + /// + /// + /// This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateCategoryAndTypeDetailsRoot + System.Threading.Tasks.Task GetDetailsTypeAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get unlinked PA template type details by id. + /// + /// + /// This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot + System.Threading.Tasks.Task> GetDetailsTypeWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get unlinked PA templates + /// + /// + /// This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateSummaryRoot + System.Threading.Tasks.Task GetUnlinkedPATemplatesAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get unlinked PA templates + /// + /// + /// This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + System.Threading.Tasks.Task> GetUnlinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get unlinked PA template details by id + /// + /// + /// This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateRoot + System.Threading.Tasks.Task GetUnlinkedPATemplatesByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get unlinked PA template details by id + /// + /// + /// This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateRoot + System.Threading.Tasks.Task> GetUnlinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Update unlinked PA template + /// + /// + /// This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateSummaryRoot + System.Threading.Tasks.Task UpdateUnlinkedPATemplatesAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Update unlinked PA template + /// + /// + /// This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + System.Threading.Tasks.Task> UpdateUnlinkedPATemplatesWithHttpInfoAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IUnlinkedPATemplatesApi : IUnlinkedPATemplatesApiSync, IUnlinkedPATemplatesApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class UnlinkedPATemplatesApi : IUnlinkedPATemplatesApi + { + private FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public UnlinkedPATemplatesApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public UnlinkedPATemplatesApi(String basePath) + { + this.Configuration = FactSet.AnalyticsAPI.Engines.Client.Configuration.MergeConfigurations( + FactSet.AnalyticsAPI.Engines.Client.GlobalConfiguration.Instance, + new FactSet.AnalyticsAPI.Engines.Client.Configuration { BasePath = basePath } + ); + this.Client = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public UnlinkedPATemplatesApi(FactSet.AnalyticsAPI.Engines.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = FactSet.AnalyticsAPI.Engines.Client.Configuration.MergeConfigurations( + FactSet.AnalyticsAPI.Engines.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new FactSet.AnalyticsAPI.Engines.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public UnlinkedPATemplatesApi(FactSet.AnalyticsAPI.Engines.Client.ISynchronousClient client, FactSet.AnalyticsAPI.Engines.Client.IAsynchronousClient asyncClient, FactSet.AnalyticsAPI.Engines.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = FactSet.AnalyticsAPI.Engines.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public FactSet.AnalyticsAPI.Engines.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public FactSet.AnalyticsAPI.Engines.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public FactSet.AnalyticsAPI.Engines.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Create unlinked PA template This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// UnlinkedPATemplateSummaryRoot + public UnlinkedPATemplateSummaryRoot CreateUnlinkedPATemplates(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = CreateUnlinkedPATemplatesWithHttpInfo(unlinkedPATemplateParametersRoot); + return localVarResponse.Data; + } + + /// + /// Create unlinked PA template This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of UnlinkedPATemplateSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CreateUnlinkedPATemplatesWithHttpInfo(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot) + { + // verify the required parameter 'unlinkedPATemplateParametersRoot' is set + if (unlinkedPATemplateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'unlinkedPATemplateParametersRoot' when calling UnlinkedPATemplatesApi->CreateUnlinkedPATemplates"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = unlinkedPATemplateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/unlinked-templates", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Create unlinked PA template This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task CreateUnlinkedPATemplatesAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await CreateUnlinkedPATemplatesWithHttpInfoAsync(unlinkedPATemplateParametersRoot, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Create unlinked PA template This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task> CreateUnlinkedPATemplatesWithHttpInfoAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'unlinkedPATemplateParametersRoot' is set + if (unlinkedPATemplateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'unlinkedPATemplateParametersRoot' when calling UnlinkedPATemplatesApi->CreateUnlinkedPATemplates"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = unlinkedPATemplateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pa/v3/unlinked-templates", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("CreateUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete unlinked PA template This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// + public void DeleteUnlinkedPATemplates(string id) + { + DeleteUnlinkedPATemplatesWithHttpInfo(id); + } + + /// + /// Delete unlinked PA template This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->DeleteUnlinkedPATemplates"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Delete unlinked PA template This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of void + public async System.Threading.Tasks.Task DeleteUnlinkedPATemplatesAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + await DeleteUnlinkedPATemplatesWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete unlinked PA template This endpoint deletes an existing unliked PA template. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->DeleteUnlinkedPATemplates"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DeleteUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get default unlinked PA template types. This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// UnlinkedPATemplateCategoryAndTypeRoot + public UnlinkedPATemplateCategoryAndTypeRoot GetDefaultUnlinkedPATemplateTypes() + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetDefaultUnlinkedPATemplateTypesWithHttpInfo(); + return localVarResponse.Data; + } + + /// + /// Get default unlinked PA template types. This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetDefaultUnlinkedPATemplateTypesWithHttpInfo() + { + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeRoot) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/unlinked-templates/template-types", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDefaultUnlinkedPATemplateTypes", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get default unlinked PA template types. This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateCategoryAndTypeRoot + public async System.Threading.Tasks.Task GetDefaultUnlinkedPATemplateTypesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetDefaultUnlinkedPATemplateTypesWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get default unlinked PA template types. This endpoint fetches default unlinked PA template types. + /// + /// Thrown when fails to make API call + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot + public async System.Threading.Tasks.Task> GetDefaultUnlinkedPATemplateTypesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeRoot) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/pa/v3/unlinked-templates/template-types", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDefaultUnlinkedPATemplateTypes", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get unlinked PA template type details by id. This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// UnlinkedPATemplateCategoryAndTypeDetailsRoot + public UnlinkedPATemplateCategoryAndTypeDetailsRoot GetDetailsType(string id) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetDetailsTypeWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get unlinked PA template type details by id. This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetDetailsTypeWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->GetDetailsType"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeDetailsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/unlinked-templates/template-types/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDetailsType", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get unlinked PA template type details by id. This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateCategoryAndTypeDetailsRoot + public async System.Threading.Tasks.Task GetDetailsTypeAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetDetailsTypeWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get unlinked PA template type details by id. This endpoint fetches the unlinked PA template type details. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template type + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot + public async System.Threading.Tasks.Task> GetDetailsTypeWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->GetDetailsType"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeDetailsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/pa/v3/unlinked-templates/template-types/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetDetailsType", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get unlinked PA templates This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// UnlinkedPATemplateSummaryRoot + public UnlinkedPATemplateSummaryRoot GetUnlinkedPATemplates(string directory = default(string), string category = default(string)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetUnlinkedPATemplatesWithHttpInfo(directory, category); + return localVarResponse.Data; + } + + /// + /// Get unlinked PA templates This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// ApiResponse of UnlinkedPATemplateSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetUnlinkedPATemplatesWithHttpInfo(string directory = default(string), string category = default(string)) + { + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (directory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + } + if (category != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "category", category)); + } + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/unlinked-templates", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get unlinked PA templates This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task GetUnlinkedPATemplatesAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetUnlinkedPATemplatesWithHttpInfoAsync(directory, category, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get unlinked PA templates This endpoint returns the list of unlinked PA templates. + /// + /// Thrown when fails to make API call + /// Get unlinked PA templates in path. (optional) + /// Get unlinked PA templates by category. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task> GetUnlinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (directory != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + } + if (category != null) + { + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "category", category)); + } + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/pa/v3/unlinked-templates", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get unlinked PA template details by id This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// UnlinkedPATemplateRoot + public UnlinkedPATemplateRoot GetUnlinkedPATemplatesById(string id) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetUnlinkedPATemplatesByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get unlinked PA template details by id This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// ApiResponse of UnlinkedPATemplateRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetUnlinkedPATemplatesByIdWithHttpInfo(string id) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->GetUnlinkedPATemplatesById"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnlinkedPATemplatesById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get unlinked PA template details by id This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateRoot + public async System.Threading.Tasks.Task GetUnlinkedPATemplatesByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetUnlinkedPATemplatesByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get unlinked PA template details by id This endpoint fetches the template settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateRoot + public async System.Threading.Tasks.Task> GetUnlinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->GetUnlinkedPATemplatesById"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetUnlinkedPATemplatesById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update unlinked PA template This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// UnlinkedPATemplateSummaryRoot + public UnlinkedPATemplateSummaryRoot UpdateUnlinkedPATemplates(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = UpdateUnlinkedPATemplatesWithHttpInfo(id, unlinkedPATemplateUpdateParametersRoot); + return localVarResponse.Data; + } + + /// + /// Update unlinked PA template This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// ApiResponse of UnlinkedPATemplateSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse UpdateUnlinkedPATemplatesWithHttpInfo(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->UpdateUnlinkedPATemplates"); + + // verify the required parameter 'unlinkedPATemplateUpdateParametersRoot' is set + if (unlinkedPATemplateUpdateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'unlinkedPATemplateUpdateParametersRoot' when calling UnlinkedPATemplatesApi->UpdateUnlinkedPATemplates"); + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = unlinkedPATemplateUpdateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Update unlinked PA template This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task UpdateUnlinkedPATemplatesAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await UpdateUnlinkedPATemplatesWithHttpInfoAsync(id, unlinkedPATemplateUpdateParametersRoot, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Update unlinked PA template This endpoint updates an existing unlinked PA template. Remarks: * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * Mandatory and locked strings are mutually exclusive. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + public async System.Threading.Tasks.Task> UpdateUnlinkedPATemplatesWithHttpInfoAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'id' is set + if (id == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'id' when calling UnlinkedPATemplatesApi->UpdateUnlinkedPATemplates"); + + // verify the required parameter 'unlinkedPATemplateUpdateParametersRoot' is set + if (unlinkedPATemplateUpdateParametersRoot == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'unlinkedPATemplateUpdateParametersRoot' when calling UnlinkedPATemplatesApi->UpdateUnlinkedPATemplates"); + + + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + "application/json" + }; + + // to determine the Accept header + String[] _accepts = new String[] { + "application/json" + }; + + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("id", FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToString(id)); // path parameter + localVarRequestOptions.Data = unlinkedPATemplateUpdateParametersRoot; + + // authentication (Basic) required + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UpdateUnlinkedPATemplates", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + } +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/VaultCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/VaultCalculationsApi.cs index f0a025be..531221dd 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/VaultCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/VaultCalculationsApi.cs @@ -523,6 +523,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Delete("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -594,6 +600,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -663,6 +675,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -734,6 +752,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); @@ -876,6 +906,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -953,6 +989,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Get("/analytics/engines/vault/v3/calculations/{id}/units/{unitId}/result", localVarRequestOptions, this.Configuration); @@ -1032,6 +1074,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1119,6 +1167,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Post("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration); @@ -1208,6 +1262,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request @@ -1303,6 +1363,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request var localVarResponse = this.Client.Put("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); @@ -1400,6 +1466,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio { localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + FactSet.AnalyticsAPI.Engines.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); } + // authentication (Bearer) required + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } // make the HTTP request diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs index 097c64e1..07b557fa 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs @@ -958,4 +958,4 @@ public ApiResponse Patch(string path, RequestOptions options, IReadableCon } #endregion ISynchronousClient } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/Configuration.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/Configuration.cs index 571417c5..40ee2205 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/Configuration.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/Configuration.cs @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "5.0.0"; + public const string Version = "5.2.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -102,7 +102,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = "engines-api/5.0.0/csharp"; + UserAgent = "engines-api/5.2.0/csharp"; BasePath = "https://api.factset.com"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -447,7 +447,7 @@ public static String ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab]\n"; - report += " SDK Package Version: 5.0.0\n"; + report += " SDK Package Version: 5.2.0\n"; return report; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj index ffd0ccb9..b9413717 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj @@ -12,7 +12,7 @@ Allow clients to fetch Engines Analytics through APIs. FactSet.AnalyticsAPI.Engines - 5.0.0 + 5.2.0 bin\$(Configuration)\$(TargetFramework)\FactSet.AnalyticsAPI.Engines.xml Apache-2.0 https://github.com/factset/analyticsapi-engines-dotnet-sdk.git diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectoriesRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectoriesRoot.cs index 629ac75c..9a5ff545 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectoriesRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectoriesRoot.cs @@ -58,7 +58,7 @@ protected AccountDirectoriesRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfoRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfoRoot.cs index 4420ae3b..91dd7b28 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfoRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfoRoot.cs @@ -58,7 +58,7 @@ protected CalculationInfoRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnRoot.cs index 257f83d6..1864c677 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnRoot.cs @@ -58,7 +58,7 @@ protected ColumnRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatisticRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatisticRoot.cs index 31ccc62e..6dabd107 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatisticRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatisticRoot.cs @@ -58,7 +58,7 @@ protected ColumnStatisticRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummaryRoot.cs index 39f1c30b..8589cc39 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummaryRoot.cs @@ -58,7 +58,7 @@ protected ColumnSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummary.cs index d500ebc5..060428e0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummary.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummary.cs @@ -37,10 +37,12 @@ public partial class ComponentSummary : IEquatable, IValidatab /// /// Component name.. /// Component category.. - public ComponentSummary(string name = default(string), string category = default(string)) + /// Component type.. + public ComponentSummary(string name = default(string), string category = default(string), string type = default(string)) { this.Name = name; this.Category = category; + this.Type = type; } /// @@ -57,6 +59,13 @@ public partial class ComponentSummary : IEquatable, IValidatab [DataMember(Name = "category", EmitDefaultValue = false)] public string Category { get; set; } + /// + /// Component type. + /// + /// Component type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + /// /// Returns the string presentation of the object /// @@ -67,6 +76,7 @@ public override string ToString() sb.Append("class ComponentSummary {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -110,6 +120,11 @@ public bool Equals(ComponentSummary input) this.Category == input.Category || (this.Category != null && this.Category.Equals(input.Category)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) ); } @@ -126,6 +141,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.Category != null) hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummaryRoot.cs index 7fec18d8..ca8b3e8a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummaryRoot.cs @@ -58,7 +58,7 @@ protected ComponentSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CurrencyRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CurrencyRoot.cs index 1ada3b61..3a0c4476 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CurrencyRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CurrencyRoot.cs @@ -58,7 +58,7 @@ protected CurrencyRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummaryRoot.cs index 139eaca0..704d637b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummaryRoot.cs @@ -58,7 +58,7 @@ protected DateParametersSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectoriesRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectoriesRoot.cs index daaf3475..58c1f9bf 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectoriesRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectoriesRoot.cs @@ -58,7 +58,7 @@ protected DocumentDirectoriesRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIJobSettings.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIJobSettings.cs index 31ba582d..f3ee7b56 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIJobSettings.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIJobSettings.cs @@ -32,6 +32,45 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "FIJobSettings")] public partial class FIJobSettings : IEquatable, IValidatableObject { + /// + /// Call Method + /// + /// Call Method + [JsonConverter(typeof(StringEnumConverter))] + public enum CallMethodEnum + { + /// + /// Enum NoCall for value: No Call + /// + [EnumMember(Value = "No Call")] + NoCall = 1, + + /// + /// Enum IntrinsicValue for value: Intrinsic Value + /// + [EnumMember(Value = "Intrinsic Value")] + IntrinsicValue = 2, + + /// + /// Enum FirstCall for value: First Call + /// + [EnumMember(Value = "First Call")] + FirstCall = 3, + + /// + /// Enum FirstPar for value: First Par + /// + [EnumMember(Value = "First Par")] + FirstPar = 4 + + } + + /// + /// Call Method + /// + /// Call Method + [DataMember(Name = "callMethod", EmitDefaultValue = false)] + public CallMethodEnum? CallMethod { get; set; } /// /// Initializes a new instance of the class. /// @@ -42,11 +81,17 @@ protected FIJobSettings() { } /// /// As of date (required). /// Partial duration months. - public FIJobSettings(string asOfDate = default(string), List partialDurationMonths = default(List)) + /// Call Method. + /// Settlement Date. + /// Calculation from method. + public FIJobSettings(string asOfDate = default(string), List partialDurationMonths = default(List), CallMethodEnum? callMethod = default(CallMethodEnum?), string settlement = default(string), string calcFromMethod = default(string)) { // to ensure "asOfDate" is required (not null) this.AsOfDate = asOfDate ?? throw new ArgumentNullException("asOfDate is a required property for FIJobSettings and cannot be null"); this.PartialDurationMonths = partialDurationMonths; + this.CallMethod = callMethod; + this.Settlement = settlement; + this.CalcFromMethod = calcFromMethod; } /// @@ -63,6 +108,20 @@ protected FIJobSettings() { } [DataMember(Name = "partialDurationMonths", EmitDefaultValue = false)] public List PartialDurationMonths { get; set; } + /// + /// Settlement Date + /// + /// Settlement Date + [DataMember(Name = "settlement", EmitDefaultValue = false)] + public string Settlement { get; set; } + + /// + /// Calculation from method + /// + /// Calculation from method + [DataMember(Name = "calcFromMethod", EmitDefaultValue = false)] + public string CalcFromMethod { get; set; } + /// /// Returns the string presentation of the object /// @@ -73,6 +132,9 @@ public override string ToString() sb.Append("class FIJobSettings {\n"); sb.Append(" AsOfDate: ").Append(AsOfDate).Append("\n"); sb.Append(" PartialDurationMonths: ").Append(PartialDurationMonths).Append("\n"); + sb.Append(" CallMethod: ").Append(CallMethod).Append("\n"); + sb.Append(" Settlement: ").Append(Settlement).Append("\n"); + sb.Append(" CalcFromMethod: ").Append(CalcFromMethod).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -117,6 +179,20 @@ public bool Equals(FIJobSettings input) this.PartialDurationMonths != null && input.PartialDurationMonths != null && this.PartialDurationMonths.SequenceEqual(input.PartialDurationMonths) + ) && + ( + this.CallMethod == input.CallMethod || + this.CallMethod.Equals(input.CallMethod) + ) && + ( + this.Settlement == input.Settlement || + (this.Settlement != null && + this.Settlement.Equals(input.Settlement)) + ) && + ( + this.CalcFromMethod == input.CalcFromMethod || + (this.CalcFromMethod != null && + this.CalcFromMethod.Equals(input.CalcFromMethod)) ); } @@ -133,6 +209,11 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.AsOfDate.GetHashCode(); if (this.PartialDurationMonths != null) hashCode = hashCode * 59 + this.PartialDurationMonths.GetHashCode(); + hashCode = hashCode * 59 + this.CallMethod.GetHashCode(); + if (this.Settlement != null) + hashCode = hashCode * 59 + this.Settlement.GetHashCode(); + if (this.CalcFromMethod != null) + hashCode = hashCode * 59 + this.CalcFromMethod.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FISecurity.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FISecurity.cs index 1c220d13..bcadc5f3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FISecurity.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FISecurity.cs @@ -32,6 +32,45 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "FISecurity")] public partial class FISecurity : IEquatable, IValidatableObject { + /// + /// Call Method + /// + /// Call Method + [JsonConverter(typeof(StringEnumConverter))] + public enum CallMethodEnum + { + /// + /// Enum NoCall for value: No Call + /// + [EnumMember(Value = "No Call")] + NoCall = 1, + + /// + /// Enum IntrinsicValue for value: Intrinsic Value + /// + [EnumMember(Value = "Intrinsic Value")] + IntrinsicValue = 2, + + /// + /// Enum FirstCall for value: First Call + /// + [EnumMember(Value = "First Call")] + FirstCall = 3, + + /// + /// Enum FirstPar for value: First Par + /// + [EnumMember(Value = "First Par")] + FirstPar = 4 + + } + + /// + /// Call Method + /// + /// Call Method + [DataMember(Name = "callMethod", EmitDefaultValue = false)] + public CallMethodEnum? CallMethod { get; set; } /// /// Face type /// @@ -68,20 +107,21 @@ protected FISecurity() { } /// Initializes a new instance of the class. /// /// Settlement date. - /// Calculation from method (required). + /// Call Method. + /// Calculation from method. /// Calculation from value (required). /// Face (default to 1D). /// Face type (default to FaceTypeEnum.Current). /// Symbol (required). /// Discount curve. - public FISecurity(string settlement = default(string), string calcFromMethod = default(string), double calcFromValue = default(double), double face = 1D, FaceTypeEnum? faceType = FaceTypeEnum.Current, string symbol = default(string), string discountCurve = default(string)) + public FISecurity(string settlement = default(string), CallMethodEnum? callMethod = default(CallMethodEnum?), string calcFromMethod = default(string), double calcFromValue = default(double), double face = 1D, FaceTypeEnum? faceType = FaceTypeEnum.Current, string symbol = default(string), string discountCurve = default(string)) { - // to ensure "calcFromMethod" is required (not null) - this.CalcFromMethod = calcFromMethod ?? throw new ArgumentNullException("calcFromMethod is a required property for FISecurity and cannot be null"); this.CalcFromValue = calcFromValue; // to ensure "symbol" is required (not null) this.Symbol = symbol ?? throw new ArgumentNullException("symbol is a required property for FISecurity and cannot be null"); this.Settlement = settlement; + this.CallMethod = callMethod; + this.CalcFromMethod = calcFromMethod; this.Face = face; this.FaceType = faceType; this.DiscountCurve = discountCurve; @@ -98,7 +138,7 @@ protected FISecurity() { } /// Calculation from method /// /// Calculation from method - [DataMember(Name = "calcFromMethod", IsRequired = true, EmitDefaultValue = false)] + [DataMember(Name = "calcFromMethod", EmitDefaultValue = false)] public string CalcFromMethod { get; set; } /// @@ -138,6 +178,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class FISecurity {\n"); sb.Append(" Settlement: ").Append(Settlement).Append("\n"); + sb.Append(" CallMethod: ").Append(CallMethod).Append("\n"); sb.Append(" CalcFromMethod: ").Append(CalcFromMethod).Append("\n"); sb.Append(" CalcFromValue: ").Append(CalcFromValue).Append("\n"); sb.Append(" Face: ").Append(Face).Append("\n"); @@ -183,6 +224,10 @@ public bool Equals(FISecurity input) (this.Settlement != null && this.Settlement.Equals(input.Settlement)) ) && + ( + this.CallMethod == input.CallMethod || + this.CallMethod.Equals(input.CallMethod) + ) && ( this.CalcFromMethod == input.CalcFromMethod || (this.CalcFromMethod != null && @@ -223,6 +268,7 @@ public override int GetHashCode() int hashCode = 41; if (this.Settlement != null) hashCode = hashCode * 59 + this.Settlement.GetHashCode(); + hashCode = hashCode * 59 + this.CallMethod.GetHashCode(); if (this.CalcFromMethod != null) hashCode = hashCode * 59 + this.CalcFromMethod.GetHashCode(); hashCode = hashCode * 59 + this.CalcFromValue.GetHashCode(); diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FrequencyRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FrequencyRoot.cs index 1e085224..476d904c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FrequencyRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FrequencyRoot.cs @@ -58,7 +58,7 @@ protected FrequencyRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/GroupRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/GroupRoot.cs index e5ed88b0..88d3c72d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/GroupRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/GroupRoot.cs @@ -58,7 +58,7 @@ protected GroupRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplate.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplate.cs new file mode 100644 index 00000000..3cae3bf8 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplate.cs @@ -0,0 +1,226 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplate + /// + [DataContract(Name = "LinkedPATemplate")] + public partial class LinkedPATemplate : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Template directory.. + /// snapshot.. + /// content. + /// Template id.. + /// Template description.. + /// Template name.. + /// Template parent tile.. + public LinkedPATemplate(string directory = default(string), bool snapshot = default(bool), TemplateContentTypes content = default(TemplateContentTypes), string id = default(string), string description = default(string), string name = default(string), string parentComponentId = default(string)) + { + this.Directory = directory; + this.Snapshot = snapshot; + this.Content = content; + this.Id = id; + this.Description = description; + this.Name = name; + this.ParentComponentId = parentComponentId; + } + + /// + /// Template directory. + /// + /// Template directory. + [DataMember(Name = "directory", EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// snapshot. + /// + /// snapshot. + [DataMember(Name = "snapshot", EmitDefaultValue = false)] + public bool Snapshot { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public TemplateContentTypes Content { get; set; } + + /// + /// Template id. + /// + /// Template id. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Template description. + /// + /// Template description. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Template name. + /// + /// Template name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Template parent tile. + /// + /// Template parent tile. + [DataMember(Name = "parentComponentId", EmitDefaultValue = false)] + public string ParentComponentId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplate {\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" Snapshot: ").Append(Snapshot).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ParentComponentId: ").Append(ParentComponentId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplate); + } + + /// + /// Returns true if LinkedPATemplate instances are equal + /// + /// Instance of LinkedPATemplate to be compared + /// Boolean + public bool Equals(LinkedPATemplate input) + { + if (input == null) + return false; + + return + ( + this.Directory == input.Directory || + (this.Directory != null && + this.Directory.Equals(input.Directory)) + ) && + ( + this.Snapshot == input.Snapshot || + this.Snapshot.Equals(input.Snapshot) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ParentComponentId == input.ParentComponentId || + (this.ParentComponentId != null && + this.ParentComponentId.Equals(input.ParentComponentId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Directory != null) + hashCode = hashCode * 59 + this.Directory.GetHashCode(); + hashCode = hashCode * 59 + this.Snapshot.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ParentComponentId != null) + hashCode = hashCode * 59 + this.ParentComponentId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParameters.cs new file mode 100644 index 00000000..e919a5a1 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParameters.cs @@ -0,0 +1,184 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplateParameters + /// + [DataContract(Name = "LinkedPATemplateParameters")] + public partial class LinkedPATemplateParameters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkedPATemplateParameters() { } + /// + /// Initializes a new instance of the class. + /// + /// The directory to create a linked PA template (required). + /// Parent component id (required). + /// Template description. + /// content. + public LinkedPATemplateParameters(string directory = default(string), string parentComponentId = default(string), string description = default(string), TemplateContentTypes content = default(TemplateContentTypes)) + { + // to ensure "directory" is required (not null) + this.Directory = directory ?? throw new ArgumentNullException("directory is a required property for LinkedPATemplateParameters and cannot be null"); + // to ensure "parentComponentId" is required (not null) + this.ParentComponentId = parentComponentId ?? throw new ArgumentNullException("parentComponentId is a required property for LinkedPATemplateParameters and cannot be null"); + this.Description = description; + this.Content = content; + } + + /// + /// The directory to create a linked PA template + /// + /// The directory to create a linked PA template + [DataMember(Name = "directory", IsRequired = true, EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Parent component id + /// + /// Parent component id + [DataMember(Name = "parentComponentId", IsRequired = true, EmitDefaultValue = false)] + public string ParentComponentId { get; set; } + + /// + /// Template description + /// + /// Template description + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public TemplateContentTypes Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplateParameters {\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" ParentComponentId: ").Append(ParentComponentId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplateParameters); + } + + /// + /// Returns true if LinkedPATemplateParameters instances are equal + /// + /// Instance of LinkedPATemplateParameters to be compared + /// Boolean + public bool Equals(LinkedPATemplateParameters input) + { + if (input == null) + return false; + + return + ( + this.Directory == input.Directory || + (this.Directory != null && + this.Directory.Equals(input.Directory)) + ) && + ( + this.ParentComponentId == input.ParentComponentId || + (this.ParentComponentId != null && + this.ParentComponentId.Equals(input.ParentComponentId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Directory != null) + hashCode = hashCode * 59 + this.Directory.GetHashCode(); + if (this.ParentComponentId != null) + hashCode = hashCode * 59 + this.ParentComponentId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParametersRoot.cs new file mode 100644 index 00000000..cc7e6012 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParametersRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplateParametersRoot + /// + [DataContract(Name = "LinkedPATemplateParametersRoot")] + public partial class LinkedPATemplateParametersRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkedPATemplateParametersRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public LinkedPATemplateParametersRoot(LinkedPATemplateParameters data = default(LinkedPATemplateParameters), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for LinkedPATemplateParametersRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public LinkedPATemplateParameters Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplateParametersRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplateParametersRoot); + } + + /// + /// Returns true if LinkedPATemplateParametersRoot instances are equal + /// + /// Instance of LinkedPATemplateParametersRoot to be compared + /// Boolean + public bool Equals(LinkedPATemplateParametersRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateRoot.cs new file mode 100644 index 00000000..883e7692 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplateRoot + /// + [DataContract(Name = "LinkedPATemplateRoot")] + public partial class LinkedPATemplateRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkedPATemplateRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public LinkedPATemplateRoot(LinkedPATemplate data = default(LinkedPATemplate), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for LinkedPATemplateRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public LinkedPATemplate Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplateRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplateRoot); + } + + /// + /// Returns true if LinkedPATemplateRoot instances are equal + /// + /// Instance of LinkedPATemplateRoot to be compared + /// Boolean + public bool Equals(LinkedPATemplateRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummary.cs new file mode 100644 index 00000000..34806dde --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummary.cs @@ -0,0 +1,161 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplateSummary + /// + [DataContract(Name = "LinkedPATemplateSummary")] + public partial class LinkedPATemplateSummary : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Template description.. + /// Template name.. + /// Template parent tile.. + public LinkedPATemplateSummary(string description = default(string), string name = default(string), string parentComponentId = default(string)) + { + this.Description = description; + this.Name = name; + this.ParentComponentId = parentComponentId; + } + + /// + /// Template description. + /// + /// Template description. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Template name. + /// + /// Template name. + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Template parent tile. + /// + /// Template parent tile. + [DataMember(Name = "parentComponentId", EmitDefaultValue = false)] + public string ParentComponentId { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplateSummary {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ParentComponentId: ").Append(ParentComponentId).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplateSummary); + } + + /// + /// Returns true if LinkedPATemplateSummary instances are equal + /// + /// Instance of LinkedPATemplateSummary to be compared + /// Boolean + public bool Equals(LinkedPATemplateSummary input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ParentComponentId == input.ParentComponentId || + (this.ParentComponentId != null && + this.ParentComponentId.Equals(input.ParentComponentId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ParentComponentId != null) + hashCode = hashCode * 59 + this.ParentComponentId.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummaryRoot.cs new file mode 100644 index 00000000..b1034ba7 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummaryRoot.cs @@ -0,0 +1,149 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplateSummaryRoot + /// + [DataContract(Name = "LinkedPATemplateSummaryRoot")] + public partial class LinkedPATemplateSummaryRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkedPATemplateSummaryRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public LinkedPATemplateSummaryRoot(Dictionary data = default(Dictionary), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for LinkedPATemplateSummaryRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public Dictionary Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplateSummaryRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplateSummaryRoot); + } + + /// + /// Returns true if LinkedPATemplateSummaryRoot instances are equal + /// + /// Instance of LinkedPATemplateSummaryRoot to be compared + /// Boolean + public bool Equals(LinkedPATemplateSummaryRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + input.Data != null && + this.Data.SequenceEqual(input.Data) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParameters.cs new file mode 100644 index 00000000..0cc577a0 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParameters.cs @@ -0,0 +1,160 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplateUpdateParameters + /// + [DataContract(Name = "LinkedPATemplateUpdateParameters")] + public partial class LinkedPATemplateUpdateParameters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Parent component id. + /// Template description. + /// content. + public LinkedPATemplateUpdateParameters(string parentComponentId = default(string), string description = default(string), TemplateContentTypes content = default(TemplateContentTypes)) + { + this.ParentComponentId = parentComponentId; + this.Description = description; + this.Content = content; + } + + /// + /// Parent component id + /// + /// Parent component id + [DataMember(Name = "parentComponentId", EmitDefaultValue = false)] + public string ParentComponentId { get; set; } + + /// + /// Template description + /// + /// Template description + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public TemplateContentTypes Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplateUpdateParameters {\n"); + sb.Append(" ParentComponentId: ").Append(ParentComponentId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplateUpdateParameters); + } + + /// + /// Returns true if LinkedPATemplateUpdateParameters instances are equal + /// + /// Instance of LinkedPATemplateUpdateParameters to be compared + /// Boolean + public bool Equals(LinkedPATemplateUpdateParameters input) + { + if (input == null) + return false; + + return + ( + this.ParentComponentId == input.ParentComponentId || + (this.ParentComponentId != null && + this.ParentComponentId.Equals(input.ParentComponentId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ParentComponentId != null) + hashCode = hashCode * 59 + this.ParentComponentId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParametersRoot.cs new file mode 100644 index 00000000..8f7a236e --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParametersRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// LinkedPATemplateUpdateParametersRoot + /// + [DataContract(Name = "LinkedPATemplateUpdateParametersRoot")] + public partial class LinkedPATemplateUpdateParametersRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkedPATemplateUpdateParametersRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public LinkedPATemplateUpdateParametersRoot(LinkedPATemplateUpdateParameters data = default(LinkedPATemplateUpdateParameters), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for LinkedPATemplateUpdateParametersRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public LinkedPATemplateUpdateParameters Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class LinkedPATemplateUpdateParametersRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as LinkedPATemplateUpdateParametersRoot); + } + + /// + /// Returns true if LinkedPATemplateUpdateParametersRoot instances are equal + /// + /// Instance of LinkedPATemplateUpdateParametersRoot to be compared + /// Boolean + public bool Equals(LinkedPATemplateUpdateParametersRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ObjectRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ObjectRoot.cs index 5ef6be81..2876386f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ObjectRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ObjectRoot.cs @@ -52,13 +52,13 @@ protected ObjectRoot() { } /// /// Gets or Sets Data /// - [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = true)] public Object Data { get; set; } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOutputTypes.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOutputTypes.cs index 27874748..0d937f21 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOutputTypes.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOutputTypes.cs @@ -38,11 +38,13 @@ public partial class OptimizerOutputTypes : IEquatable, IV /// trades. /// optimal. /// account. - public OptimizerOutputTypes(OptimizerTradesList trades = default(OptimizerTradesList), OptimizerOptimalHoldings optimal = default(OptimizerOptimalHoldings), OptimalPortfolio account = default(OptimalPortfolio)) + /// stats. + public OptimizerOutputTypes(OptimizerTradesList trades = default(OptimizerTradesList), OptimizerOptimalHoldings optimal = default(OptimizerOptimalHoldings), OptimalPortfolio account = default(OptimalPortfolio), Object stats = default(Object)) { this.Trades = trades; this.Optimal = optimal; this.Account = account; + this.Stats = stats; } /// @@ -63,6 +65,12 @@ public partial class OptimizerOutputTypes : IEquatable, IV [DataMember(Name = "account", EmitDefaultValue = false)] public OptimalPortfolio Account { get; set; } + /// + /// Gets or Sets Stats + /// + [DataMember(Name = "stats", EmitDefaultValue = false)] + public Object Stats { get; set; } + /// /// Returns the string presentation of the object /// @@ -74,6 +82,7 @@ public override string ToString() sb.Append(" Trades: ").Append(Trades).Append("\n"); sb.Append(" Optimal: ").Append(Optimal).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); + sb.Append(" Stats: ").Append(Stats).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -122,6 +131,11 @@ public bool Equals(OptimizerOutputTypes input) this.Account == input.Account || (this.Account != null && this.Account.Equals(input.Account)) + ) && + ( + this.Stats == input.Stats || + (this.Stats != null && + this.Stats.Equals(input.Stats)) ); } @@ -140,6 +154,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Optimal.GetHashCode(); if (this.Account != null) hashCode = hashCode * 59 + this.Account.GetHashCode(); + if (this.Stats != null) + hashCode = hashCode * 59 + this.Stats.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponent.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponent.cs index 0a652a17..7bf9b33d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponent.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponent.cs @@ -43,7 +43,8 @@ public partial class PAComponent : IEquatable, IValidatableObject /// Is the component type snapshot or subperiod.. /// Component name.. /// Component category.. - public PAComponent(string id = default(string), List accounts = default(List), List benchmarks = default(List), string currencyisocode = default(string), PADateParameters dates = default(PADateParameters), bool snapshot = default(bool), string name = default(string), string category = default(string)) + /// Component type.. + public PAComponent(string id = default(string), List accounts = default(List), List benchmarks = default(List), string currencyisocode = default(string), PADateParameters dates = default(PADateParameters), bool snapshot = default(bool), string name = default(string), string category = default(string), string type = default(string)) { this.Id = id; this.Accounts = accounts; @@ -53,6 +54,7 @@ public partial class PAComponent : IEquatable, IValidatableObject this.Snapshot = snapshot; this.Name = name; this.Category = category; + this.Type = type; } /// @@ -109,6 +111,13 @@ public partial class PAComponent : IEquatable, IValidatableObject [DataMember(Name = "category", EmitDefaultValue = false)] public string Category { get; set; } + /// + /// Component type. + /// + /// Component type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + /// /// Returns the string presentation of the object /// @@ -125,6 +134,7 @@ public override string ToString() sb.Append(" Snapshot: ").Append(Snapshot).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -199,6 +209,11 @@ public bool Equals(PAComponent input) this.Category == input.Category || (this.Category != null && this.Category.Equals(input.Category)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) ); } @@ -226,6 +241,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.Category != null) hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentData.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentData.cs new file mode 100644 index 00000000..e5279804 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentData.cs @@ -0,0 +1,232 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// PAComponentData + /// + [DataContract(Name = "PAComponentData")] + public partial class PAComponentData : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// List of accounts.. + /// List of benchmarks.. + /// List of groupings for the PA calculation. This will take precedence over the groupings saved in the PA document.. + /// List of columns for the PA calculation. This will take precedence over the columns saved in the PA document.. + /// dates. + /// Currency ISO code for calculation.. + /// PA Storage type. It can be GROUPS or TOTALS or SECURITIES.. + public PAComponentData(List accounts = default(List), List benchmarks = default(List), List groups = default(List), List columns = default(List), PADateParameters dates = default(PADateParameters), string currencyisocode = default(string), string componentdetail = default(string)) + { + this.Accounts = accounts; + this.Benchmarks = benchmarks; + this.Groups = groups; + this.Columns = columns; + this.Dates = dates; + this.Currencyisocode = currencyisocode; + this.Componentdetail = componentdetail; + } + + /// + /// List of accounts. + /// + /// List of accounts. + [DataMember(Name = "accounts", EmitDefaultValue = false)] + public List Accounts { get; set; } + + /// + /// List of benchmarks. + /// + /// List of benchmarks. + [DataMember(Name = "benchmarks", EmitDefaultValue = false)] + public List Benchmarks { get; set; } + + /// + /// List of groupings for the PA calculation. This will take precedence over the groupings saved in the PA document. + /// + /// List of groupings for the PA calculation. This will take precedence over the groupings saved in the PA document. + [DataMember(Name = "groups", EmitDefaultValue = false)] + public List Groups { get; set; } + + /// + /// List of columns for the PA calculation. This will take precedence over the columns saved in the PA document. + /// + /// List of columns for the PA calculation. This will take precedence over the columns saved in the PA document. + [DataMember(Name = "columns", EmitDefaultValue = false)] + public List Columns { get; set; } + + /// + /// Gets or Sets Dates + /// + [DataMember(Name = "dates", EmitDefaultValue = false)] + public PADateParameters Dates { get; set; } + + /// + /// Currency ISO code for calculation. + /// + /// Currency ISO code for calculation. + [DataMember(Name = "currencyisocode", EmitDefaultValue = false)] + public string Currencyisocode { get; set; } + + /// + /// PA Storage type. It can be GROUPS or TOTALS or SECURITIES. + /// + /// PA Storage type. It can be GROUPS or TOTALS or SECURITIES. + [DataMember(Name = "componentdetail", EmitDefaultValue = false)] + public string Componentdetail { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class PAComponentData {\n"); + sb.Append(" Accounts: ").Append(Accounts).Append("\n"); + sb.Append(" Benchmarks: ").Append(Benchmarks).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Columns: ").Append(Columns).Append("\n"); + sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Currencyisocode: ").Append(Currencyisocode).Append("\n"); + sb.Append(" Componentdetail: ").Append(Componentdetail).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PAComponentData); + } + + /// + /// Returns true if PAComponentData instances are equal + /// + /// Instance of PAComponentData to be compared + /// Boolean + public bool Equals(PAComponentData input) + { + if (input == null) + return false; + + return + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) + ) && + ( + this.Benchmarks == input.Benchmarks || + this.Benchmarks != null && + input.Benchmarks != null && + this.Benchmarks.SequenceEqual(input.Benchmarks) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + input.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Columns == input.Columns || + this.Columns != null && + input.Columns != null && + this.Columns.SequenceEqual(input.Columns) + ) && + ( + this.Dates == input.Dates || + (this.Dates != null && + this.Dates.Equals(input.Dates)) + ) && + ( + this.Currencyisocode == input.Currencyisocode || + (this.Currencyisocode != null && + this.Currencyisocode.Equals(input.Currencyisocode)) + ) && + ( + this.Componentdetail == input.Componentdetail || + (this.Componentdetail != null && + this.Componentdetail.Equals(input.Componentdetail)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Accounts != null) + hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + if (this.Benchmarks != null) + hashCode = hashCode * 59 + this.Benchmarks.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Columns != null) + hashCode = hashCode * 59 + this.Columns.GetHashCode(); + if (this.Dates != null) + hashCode = hashCode * 59 + this.Dates.GetHashCode(); + if (this.Currencyisocode != null) + hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); + if (this.Componentdetail != null) + hashCode = hashCode * 59 + this.Componentdetail.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentRoot.cs index c01ac75b..35c2b6d1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentRoot.cs @@ -58,7 +58,7 @@ protected PAComponentRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantAllUniversalScreenParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantAllUniversalScreenParameters.cs new file mode 100644 index 00000000..83dc2380 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantAllUniversalScreenParameters.cs @@ -0,0 +1,160 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantAllUniversalScreenParameters + /// + [DataContract(Name = "QuantAllUniversalScreenParameters")] + public partial class QuantAllUniversalScreenParameters : IEquatable, IValidatableObject + { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpression for value: ScreeningExpression + /// + [EnumMember(Value = "ScreeningExpression")] + ScreeningExpression = 1, + + /// + /// Enum FqlExpression for value: FqlExpression + /// + [EnumMember(Value = "FqlExpression")] + FqlExpression = 2, + + /// + /// Enum UniversalScreenParameter for value: UniversalScreenParameter + /// + [EnumMember(Value = "UniversalScreenParameter")] + UniversalScreenParameter = 3, + + /// + /// Enum AllUniversalScreenParameters for value: AllUniversalScreenParameters + /// + [EnumMember(Value = "AllUniversalScreenParameters")] + AllUniversalScreenParameters = 4 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantAllUniversalScreenParameters() { } + /// + /// Initializes a new instance of the class. + /// + /// source (required). + public QuantAllUniversalScreenParameters(SourceEnum source = default(SourceEnum)) + { + this.Source = source; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantAllUniversalScreenParameters {\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantAllUniversalScreenParameters); + } + + /// + /// Returns true if QuantAllUniversalScreenParameters instances are equal + /// + /// Instance of QuantAllUniversalScreenParameters to be compared + /// Boolean + public bool Equals(QuantAllUniversalScreenParameters input) + { + if (input == null) + return false; + + return + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = hashCode * 59 + this.Source.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParameters.cs index c2e8097e..86102d3c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParameters.cs @@ -35,81 +35,33 @@ public partial class QuantCalculationParameters : IEquatable /// Initializes a new instance of the class. /// - /// screeningExpressionUniverse. - /// universalScreenUniverse. - /// identifierUniverse. - /// fdsDate. - /// dateList. - /// screeningExpression. - /// fqlExpression. - /// universalScreenParameter. - /// allUniversalScreenParameters. - public QuantCalculationParameters(QuantScreeningExpressionUniverse screeningExpressionUniverse = default(QuantScreeningExpressionUniverse), QuantUniversalScreenUniverse universalScreenUniverse = default(QuantUniversalScreenUniverse), QuantIdentifierUniverse identifierUniverse = default(QuantIdentifierUniverse), QuantFdsDate fdsDate = default(QuantFdsDate), QuantDateList dateList = default(QuantDateList), List screeningExpression = default(List), List fqlExpression = default(List), List universalScreenParameter = default(List), List allUniversalScreenParameters = default(List)) + /// universe. + /// dates. + /// formulas. + public QuantCalculationParameters(OneOfQuantUniversalScreenUniverseQuantScreeningExpressionUniverseQuantIdentifierUniverse universe = default(OneOfQuantUniversalScreenUniverseQuantScreeningExpressionUniverseQuantIdentifierUniverse), OneOfQuantFdsDateQuantDateList dates = default(OneOfQuantFdsDateQuantDateList), List formulas = default(List)) { - this.ScreeningExpressionUniverse = screeningExpressionUniverse; - this.UniversalScreenUniverse = universalScreenUniverse; - this.IdentifierUniverse = identifierUniverse; - this.FdsDate = fdsDate; - this.DateList = dateList; - this.ScreeningExpression = screeningExpression; - this.FqlExpression = fqlExpression; - this.UniversalScreenParameter = universalScreenParameter; - this.AllUniversalScreenParameters = allUniversalScreenParameters; + this.Universe = universe; + this.Dates = dates; + this.Formulas = formulas; } /// - /// Gets or Sets ScreeningExpressionUniverse + /// Gets or Sets Universe /// - [DataMember(Name = "screeningExpressionUniverse", EmitDefaultValue = false)] - public QuantScreeningExpressionUniverse ScreeningExpressionUniverse { get; set; } + [DataMember(Name = "universe", EmitDefaultValue = false)] + public OneOfQuantUniversalScreenUniverseQuantScreeningExpressionUniverseQuantIdentifierUniverse Universe { get; set; } /// - /// Gets or Sets UniversalScreenUniverse + /// Gets or Sets Dates /// - [DataMember(Name = "universalScreenUniverse", EmitDefaultValue = false)] - public QuantUniversalScreenUniverse UniversalScreenUniverse { get; set; } + [DataMember(Name = "dates", EmitDefaultValue = false)] + public OneOfQuantFdsDateQuantDateList Dates { get; set; } /// - /// Gets or Sets IdentifierUniverse + /// Gets or Sets Formulas /// - [DataMember(Name = "identifierUniverse", EmitDefaultValue = false)] - public QuantIdentifierUniverse IdentifierUniverse { get; set; } - - /// - /// Gets or Sets FdsDate - /// - [DataMember(Name = "fdsDate", EmitDefaultValue = false)] - public QuantFdsDate FdsDate { get; set; } - - /// - /// Gets or Sets DateList - /// - [DataMember(Name = "dateList", EmitDefaultValue = false)] - public QuantDateList DateList { get; set; } - - /// - /// Gets or Sets ScreeningExpression - /// - [DataMember(Name = "screeningExpression", EmitDefaultValue = false)] - public List ScreeningExpression { get; set; } - - /// - /// Gets or Sets FqlExpression - /// - [DataMember(Name = "fqlExpression", EmitDefaultValue = false)] - public List FqlExpression { get; set; } - - /// - /// Gets or Sets UniversalScreenParameter - /// - [DataMember(Name = "universalScreenParameter", EmitDefaultValue = false)] - public List UniversalScreenParameter { get; set; } - - /// - /// Gets or Sets AllUniversalScreenParameters - /// - [DataMember(Name = "allUniversalScreenParameters", EmitDefaultValue = false)] - public List AllUniversalScreenParameters { get; set; } + [DataMember(Name = "formulas", EmitDefaultValue = false)] + public List Formulas { get; set; } /// /// Returns the string presentation of the object @@ -119,15 +71,9 @@ public override string ToString() { var sb = new StringBuilder(); sb.Append("class QuantCalculationParameters {\n"); - sb.Append(" ScreeningExpressionUniverse: ").Append(ScreeningExpressionUniverse).Append("\n"); - sb.Append(" UniversalScreenUniverse: ").Append(UniversalScreenUniverse).Append("\n"); - sb.Append(" IdentifierUniverse: ").Append(IdentifierUniverse).Append("\n"); - sb.Append(" FdsDate: ").Append(FdsDate).Append("\n"); - sb.Append(" DateList: ").Append(DateList).Append("\n"); - sb.Append(" ScreeningExpression: ").Append(ScreeningExpression).Append("\n"); - sb.Append(" FqlExpression: ").Append(FqlExpression).Append("\n"); - sb.Append(" UniversalScreenParameter: ").Append(UniversalScreenParameter).Append("\n"); - sb.Append(" AllUniversalScreenParameters: ").Append(AllUniversalScreenParameters).Append("\n"); + sb.Append(" Universe: ").Append(Universe).Append("\n"); + sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Formulas: ").Append(Formulas).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -163,53 +109,20 @@ public bool Equals(QuantCalculationParameters input) return ( - this.ScreeningExpressionUniverse == input.ScreeningExpressionUniverse || - (this.ScreeningExpressionUniverse != null && - this.ScreeningExpressionUniverse.Equals(input.ScreeningExpressionUniverse)) - ) && - ( - this.UniversalScreenUniverse == input.UniversalScreenUniverse || - (this.UniversalScreenUniverse != null && - this.UniversalScreenUniverse.Equals(input.UniversalScreenUniverse)) - ) && - ( - this.IdentifierUniverse == input.IdentifierUniverse || - (this.IdentifierUniverse != null && - this.IdentifierUniverse.Equals(input.IdentifierUniverse)) - ) && - ( - this.FdsDate == input.FdsDate || - (this.FdsDate != null && - this.FdsDate.Equals(input.FdsDate)) - ) && - ( - this.DateList == input.DateList || - (this.DateList != null && - this.DateList.Equals(input.DateList)) - ) && - ( - this.ScreeningExpression == input.ScreeningExpression || - this.ScreeningExpression != null && - input.ScreeningExpression != null && - this.ScreeningExpression.SequenceEqual(input.ScreeningExpression) - ) && - ( - this.FqlExpression == input.FqlExpression || - this.FqlExpression != null && - input.FqlExpression != null && - this.FqlExpression.SequenceEqual(input.FqlExpression) + this.Universe == input.Universe || + (this.Universe != null && + this.Universe.Equals(input.Universe)) ) && ( - this.UniversalScreenParameter == input.UniversalScreenParameter || - this.UniversalScreenParameter != null && - input.UniversalScreenParameter != null && - this.UniversalScreenParameter.SequenceEqual(input.UniversalScreenParameter) + this.Dates == input.Dates || + (this.Dates != null && + this.Dates.Equals(input.Dates)) ) && ( - this.AllUniversalScreenParameters == input.AllUniversalScreenParameters || - this.AllUniversalScreenParameters != null && - input.AllUniversalScreenParameters != null && - this.AllUniversalScreenParameters.SequenceEqual(input.AllUniversalScreenParameters) + this.Formulas == input.Formulas || + this.Formulas != null && + input.Formulas != null && + this.Formulas.SequenceEqual(input.Formulas) ); } @@ -222,24 +135,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.ScreeningExpressionUniverse != null) - hashCode = hashCode * 59 + this.ScreeningExpressionUniverse.GetHashCode(); - if (this.UniversalScreenUniverse != null) - hashCode = hashCode * 59 + this.UniversalScreenUniverse.GetHashCode(); - if (this.IdentifierUniverse != null) - hashCode = hashCode * 59 + this.IdentifierUniverse.GetHashCode(); - if (this.FdsDate != null) - hashCode = hashCode * 59 + this.FdsDate.GetHashCode(); - if (this.DateList != null) - hashCode = hashCode * 59 + this.DateList.GetHashCode(); - if (this.ScreeningExpression != null) - hashCode = hashCode * 59 + this.ScreeningExpression.GetHashCode(); - if (this.FqlExpression != null) - hashCode = hashCode * 59 + this.FqlExpression.GetHashCode(); - if (this.UniversalScreenParameter != null) - hashCode = hashCode * 59 + this.UniversalScreenParameter.GetHashCode(); - if (this.AllUniversalScreenParameters != null) - hashCode = hashCode * 59 + this.AllUniversalScreenParameters.GetHashCode(); + if (this.Universe != null) + hashCode = hashCode * 59 + this.Universe.GetHashCode(); + if (this.Dates != null) + hashCode = hashCode * 59 + this.Dates.GetHashCode(); + if (this.Formulas != null) + hashCode = hashCode * 59 + this.Formulas.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDate.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDate.cs new file mode 100644 index 00000000..cc400c94 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDate.cs @@ -0,0 +1,182 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantDate + /// + [DataContract(Name = "QuantDate")] + public partial class QuantDate : IEquatable, IValidatableObject + { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum FdsDate for value: FdsDate + /// + [EnumMember(Value = "FdsDate")] + FdsDate = 1, + + /// + /// Enum DateList for value: DateList + /// + [EnumMember(Value = "DateList")] + DateList = 2 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantDate() { } + /// + /// Initializes a new instance of the class. + /// + /// source (required). + /// frequency (required). + /// calendar (required). + public QuantDate(SourceEnum source = default(SourceEnum), string frequency = default(string), string calendar = default(string)) + { + this.Source = source; + // to ensure "frequency" is required (not null) + this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for QuantDate and cannot be null"); + // to ensure "calendar" is required (not null) + this.Calendar = calendar ?? throw new ArgumentNullException("calendar is a required property for QuantDate and cannot be null"); + } + + /// + /// Gets or Sets Frequency + /// + [DataMember(Name = "frequency", IsRequired = true, EmitDefaultValue = false)] + public string Frequency { get; set; } + + /// + /// Gets or Sets Calendar + /// + [DataMember(Name = "calendar", IsRequired = true, EmitDefaultValue = false)] + public string Calendar { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantDate {\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append(" Frequency: ").Append(Frequency).Append("\n"); + sb.Append(" Calendar: ").Append(Calendar).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantDate); + } + + /// + /// Returns true if QuantDate instances are equal + /// + /// Instance of QuantDate to be compared + /// Boolean + public bool Equals(QuantDate input) + { + if (input == null) + return false; + + return + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ) && + ( + this.Frequency == input.Frequency || + (this.Frequency != null && + this.Frequency.Equals(input.Frequency)) + ) && + ( + this.Calendar == input.Calendar || + (this.Calendar != null && + this.Calendar.Equals(input.Calendar)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = hashCode * 59 + this.Source.GetHashCode(); + if (this.Frequency != null) + hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + if (this.Calendar != null) + hashCode = hashCode * 59 + this.Calendar.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateList.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateList.cs index fc997ed1..075ff1c4 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateList.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateList.cs @@ -32,6 +32,31 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "QuantDateList")] public partial class QuantDateList : IEquatable, IValidatableObject { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum FdsDate for value: FdsDate + /// + [EnumMember(Value = "FdsDate")] + FdsDate = 1, + + /// + /// Enum DateList for value: DateList + /// + [EnumMember(Value = "DateList")] + DateList = 2 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } /// /// Initializes a new instance of the class. /// @@ -41,10 +66,12 @@ protected QuantDateList() { } /// Initializes a new instance of the class. /// /// dates. + /// source (required). /// frequency (required). /// calendar (required). - public QuantDateList(List dates = default(List), string frequency = default(string), string calendar = default(string)) + public QuantDateList(List dates = default(List), SourceEnum source = default(SourceEnum), string frequency = default(string), string calendar = default(string)) { + this.Source = source; // to ensure "frequency" is required (not null) this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for QuantDateList and cannot be null"); // to ensure "calendar" is required (not null) @@ -79,6 +106,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class QuantDateList {\n"); sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append(" Frequency: ").Append(Frequency).Append("\n"); sb.Append(" Calendar: ").Append(Calendar).Append("\n"); sb.Append("}\n"); @@ -121,6 +149,10 @@ public bool Equals(QuantDateList input) input.Dates != null && this.Dates.SequenceEqual(input.Dates) ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ) && ( this.Frequency == input.Frequency || (this.Frequency != null && @@ -144,6 +176,7 @@ public override int GetHashCode() int hashCode = 41; if (this.Dates != null) hashCode = hashCode * 59 + this.Dates.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); if (this.Frequency != null) hashCode = hashCode * 59 + this.Frequency.GetHashCode(); if (this.Calendar != null) diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateListObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateListObsolete.cs new file mode 100644 index 00000000..2038d0a6 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateListObsolete.cs @@ -0,0 +1,166 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantDateListObsolete + /// + [DataContract(Name = "QuantDateListObsolete")] + public partial class QuantDateListObsolete : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantDateListObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// dates. + /// frequency (required). + /// calendar (required). + public QuantDateListObsolete(List dates = default(List), string frequency = default(string), string calendar = default(string)) + { + // to ensure "frequency" is required (not null) + this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for QuantDateListObsolete and cannot be null"); + // to ensure "calendar" is required (not null) + this.Calendar = calendar ?? throw new ArgumentNullException("calendar is a required property for QuantDateListObsolete and cannot be null"); + this.Dates = dates; + } + + /// + /// Gets or Sets Dates + /// + [DataMember(Name = "dates", EmitDefaultValue = false)] + public List Dates { get; set; } + + /// + /// Gets or Sets Frequency + /// + [DataMember(Name = "frequency", IsRequired = true, EmitDefaultValue = false)] + public string Frequency { get; set; } + + /// + /// Gets or Sets Calendar + /// + [DataMember(Name = "calendar", IsRequired = true, EmitDefaultValue = false)] + public string Calendar { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantDateListObsolete {\n"); + sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Frequency: ").Append(Frequency).Append("\n"); + sb.Append(" Calendar: ").Append(Calendar).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantDateListObsolete); + } + + /// + /// Returns true if QuantDateListObsolete instances are equal + /// + /// Instance of QuantDateListObsolete to be compared + /// Boolean + public bool Equals(QuantDateListObsolete input) + { + if (input == null) + return false; + + return + ( + this.Dates == input.Dates || + this.Dates != null && + input.Dates != null && + this.Dates.SequenceEqual(input.Dates) + ) && + ( + this.Frequency == input.Frequency || + (this.Frequency != null && + this.Frequency.Equals(input.Frequency)) + ) && + ( + this.Calendar == input.Calendar || + (this.Calendar != null && + this.Calendar.Equals(input.Calendar)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Dates != null) + hashCode = hashCode * 59 + this.Dates.GetHashCode(); + if (this.Frequency != null) + hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + if (this.Calendar != null) + hashCode = hashCode * 59 + this.Calendar.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDate.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDate.cs index 37f8c5cd..6c07b102 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDate.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDate.cs @@ -32,6 +32,31 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "QuantFdsDate")] public partial class QuantFdsDate : IEquatable, IValidatableObject { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum FdsDate for value: FdsDate + /// + [EnumMember(Value = "FdsDate")] + FdsDate = 1, + + /// + /// Enum DateList for value: DateList + /// + [EnumMember(Value = "DateList")] + DateList = 2 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } /// /// Initializes a new instance of the class. /// @@ -42,14 +67,16 @@ protected QuantFdsDate() { } /// /// startDate (required). /// endDate (required). + /// source (required). /// frequency (required). /// calendar (required). - public QuantFdsDate(string startDate = default(string), string endDate = default(string), string frequency = default(string), string calendar = default(string)) + public QuantFdsDate(string startDate = default(string), string endDate = default(string), SourceEnum source = default(SourceEnum), string frequency = default(string), string calendar = default(string)) { // to ensure "startDate" is required (not null) this.StartDate = startDate ?? throw new ArgumentNullException("startDate is a required property for QuantFdsDate and cannot be null"); // to ensure "endDate" is required (not null) this.EndDate = endDate ?? throw new ArgumentNullException("endDate is a required property for QuantFdsDate and cannot be null"); + this.Source = source; // to ensure "frequency" is required (not null) this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for QuantFdsDate and cannot be null"); // to ensure "calendar" is required (not null) @@ -90,6 +117,7 @@ public override string ToString() sb.Append("class QuantFdsDate {\n"); sb.Append(" StartDate: ").Append(StartDate).Append("\n"); sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append(" Frequency: ").Append(Frequency).Append("\n"); sb.Append(" Calendar: ").Append(Calendar).Append("\n"); sb.Append("}\n"); @@ -136,6 +164,10 @@ public bool Equals(QuantFdsDate input) (this.EndDate != null && this.EndDate.Equals(input.EndDate)) ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ) && ( this.Frequency == input.Frequency || (this.Frequency != null && @@ -161,6 +193,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.StartDate.GetHashCode(); if (this.EndDate != null) hashCode = hashCode * 59 + this.EndDate.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); if (this.Frequency != null) hashCode = hashCode * 59 + this.Frequency.GetHashCode(); if (this.Calendar != null) diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDateObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDateObsolete.cs new file mode 100644 index 00000000..d7116644 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDateObsolete.cs @@ -0,0 +1,183 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantFdsDateObsolete + /// + [DataContract(Name = "QuantFdsDateObsolete")] + public partial class QuantFdsDateObsolete : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantFdsDateObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// startDate (required). + /// endDate (required). + /// frequency (required). + /// calendar (required). + public QuantFdsDateObsolete(string startDate = default(string), string endDate = default(string), string frequency = default(string), string calendar = default(string)) + { + // to ensure "startDate" is required (not null) + this.StartDate = startDate ?? throw new ArgumentNullException("startDate is a required property for QuantFdsDateObsolete and cannot be null"); + // to ensure "endDate" is required (not null) + this.EndDate = endDate ?? throw new ArgumentNullException("endDate is a required property for QuantFdsDateObsolete and cannot be null"); + // to ensure "frequency" is required (not null) + this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for QuantFdsDateObsolete and cannot be null"); + // to ensure "calendar" is required (not null) + this.Calendar = calendar ?? throw new ArgumentNullException("calendar is a required property for QuantFdsDateObsolete and cannot be null"); + } + + /// + /// Gets or Sets StartDate + /// + [DataMember(Name = "startDate", IsRequired = true, EmitDefaultValue = false)] + public string StartDate { get; set; } + + /// + /// Gets or Sets EndDate + /// + [DataMember(Name = "endDate", IsRequired = true, EmitDefaultValue = false)] + public string EndDate { get; set; } + + /// + /// Gets or Sets Frequency + /// + [DataMember(Name = "frequency", IsRequired = true, EmitDefaultValue = false)] + public string Frequency { get; set; } + + /// + /// Gets or Sets Calendar + /// + [DataMember(Name = "calendar", IsRequired = true, EmitDefaultValue = false)] + public string Calendar { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantFdsDateObsolete {\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append(" Frequency: ").Append(Frequency).Append("\n"); + sb.Append(" Calendar: ").Append(Calendar).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantFdsDateObsolete); + } + + /// + /// Returns true if QuantFdsDateObsolete instances are equal + /// + /// Instance of QuantFdsDateObsolete to be compared + /// Boolean + public bool Equals(QuantFdsDateObsolete input) + { + if (input == null) + return false; + + return + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ) && + ( + this.Frequency == input.Frequency || + (this.Frequency != null && + this.Frequency.Equals(input.Frequency)) + ) && + ( + this.Calendar == input.Calendar || + (this.Calendar != null && + this.Calendar.Equals(input.Calendar)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.StartDate != null) + hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + if (this.EndDate != null) + hashCode = hashCode * 59 + this.EndDate.GetHashCode(); + if (this.Frequency != null) + hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + if (this.Calendar != null) + hashCode = hashCode * 59 + this.Calendar.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFormula.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFormula.cs new file mode 100644 index 00000000..7903248c --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFormula.cs @@ -0,0 +1,160 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantFormula + /// + [DataContract(Name = "QuantFormula")] + public partial class QuantFormula : IEquatable, IValidatableObject + { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpression for value: ScreeningExpression + /// + [EnumMember(Value = "ScreeningExpression")] + ScreeningExpression = 1, + + /// + /// Enum FqlExpression for value: FqlExpression + /// + [EnumMember(Value = "FqlExpression")] + FqlExpression = 2, + + /// + /// Enum UniversalScreenParameter for value: UniversalScreenParameter + /// + [EnumMember(Value = "UniversalScreenParameter")] + UniversalScreenParameter = 3, + + /// + /// Enum AllUniversalScreenParameters for value: AllUniversalScreenParameters + /// + [EnumMember(Value = "AllUniversalScreenParameters")] + AllUniversalScreenParameters = 4 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantFormula() { } + /// + /// Initializes a new instance of the class. + /// + /// source (required). + public QuantFormula(SourceEnum source = default(SourceEnum)) + { + this.Source = source; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantFormula {\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantFormula); + } + + /// + /// Returns true if QuantFormula instances are equal + /// + /// Instance of QuantFormula to be compared + /// Boolean + public bool Equals(QuantFormula input) + { + if (input == null) + return false; + + return + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = hashCode * 59 + this.Source.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpression.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpression.cs index 81c6b569..8216f204 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpression.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpression.cs @@ -32,6 +32,43 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "QuantFqlExpression")] public partial class QuantFqlExpression : IEquatable, IValidatableObject { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpression for value: ScreeningExpression + /// + [EnumMember(Value = "ScreeningExpression")] + ScreeningExpression = 1, + + /// + /// Enum FqlExpression for value: FqlExpression + /// + [EnumMember(Value = "FqlExpression")] + FqlExpression = 2, + + /// + /// Enum UniversalScreenParameter for value: UniversalScreenParameter + /// + [EnumMember(Value = "UniversalScreenParameter")] + UniversalScreenParameter = 3, + + /// + /// Enum AllUniversalScreenParameters for value: AllUniversalScreenParameters + /// + [EnumMember(Value = "AllUniversalScreenParameters")] + AllUniversalScreenParameters = 4 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } /// /// Initializes a new instance of the class. /// @@ -42,12 +79,14 @@ protected QuantFqlExpression() { } /// /// expr (required). /// name (required). - public QuantFqlExpression(string expr = default(string), string name = default(string)) + /// source (required). + public QuantFqlExpression(string expr = default(string), string name = default(string), SourceEnum source = default(SourceEnum)) { // to ensure "expr" is required (not null) this.Expr = expr ?? throw new ArgumentNullException("expr is a required property for QuantFqlExpression and cannot be null"); // to ensure "name" is required (not null) this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantFqlExpression and cannot be null"); + this.Source = source; } /// @@ -72,6 +111,7 @@ public override string ToString() sb.Append("class QuantFqlExpression {\n"); sb.Append(" Expr: ").Append(Expr).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -115,6 +155,10 @@ public bool Equals(QuantFqlExpression input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) ); } @@ -131,6 +175,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Expr.GetHashCode(); if (this.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpressionObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpressionObsolete.cs new file mode 100644 index 00000000..5145e77a --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpressionObsolete.cs @@ -0,0 +1,149 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantFqlExpressionObsolete + /// + [DataContract(Name = "QuantFqlExpressionObsolete")] + public partial class QuantFqlExpressionObsolete : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantFqlExpressionObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// expr (required). + /// name (required). + public QuantFqlExpressionObsolete(string expr = default(string), string name = default(string)) + { + // to ensure "expr" is required (not null) + this.Expr = expr ?? throw new ArgumentNullException("expr is a required property for QuantFqlExpressionObsolete and cannot be null"); + // to ensure "name" is required (not null) + this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantFqlExpressionObsolete and cannot be null"); + } + + /// + /// Gets or Sets Expr + /// + [DataMember(Name = "expr", IsRequired = true, EmitDefaultValue = false)] + public string Expr { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantFqlExpressionObsolete {\n"); + sb.Append(" Expr: ").Append(Expr).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantFqlExpressionObsolete); + } + + /// + /// Returns true if QuantFqlExpressionObsolete instances are equal + /// + /// Instance of QuantFqlExpressionObsolete to be compared + /// Boolean + public bool Equals(QuantFqlExpressionObsolete input) + { + if (input == null) + return false; + + return + ( + this.Expr == input.Expr || + (this.Expr != null && + this.Expr.Equals(input.Expr)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Expr != null) + hashCode = hashCode * 59 + this.Expr.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverse.cs index 527cc3dd..95eadb6f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverse.cs @@ -58,6 +58,37 @@ public enum UniverseTypeEnum [DataMember(Name = "universeType", IsRequired = true, EmitDefaultValue = false)] public UniverseTypeEnum UniverseType { get; set; } /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpressionUniverse for value: ScreeningExpressionUniverse + /// + [EnumMember(Value = "ScreeningExpressionUniverse")] + ScreeningExpressionUniverse = 1, + + /// + /// Enum UniversalScreenUniverse for value: UniversalScreenUniverse + /// + [EnumMember(Value = "UniversalScreenUniverse")] + UniversalScreenUniverse = 2, + + /// + /// Enum IdentifierUniverse for value: IdentifierUniverse + /// + [EnumMember(Value = "IdentifierUniverse")] + IdentifierUniverse = 3 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -67,11 +98,13 @@ protected QuantIdentifierUniverse() { } /// /// universeType (required). /// identifiers (required). - public QuantIdentifierUniverse(UniverseTypeEnum universeType = default(UniverseTypeEnum), List identifiers = default(List)) + /// source (required). + public QuantIdentifierUniverse(UniverseTypeEnum universeType = default(UniverseTypeEnum), List identifiers = default(List), SourceEnum source = default(SourceEnum)) { this.UniverseType = universeType; // to ensure "identifiers" is required (not null) this.Identifiers = identifiers ?? throw new ArgumentNullException("identifiers is a required property for QuantIdentifierUniverse and cannot be null"); + this.Source = source; } /// @@ -90,6 +123,7 @@ public override string ToString() sb.Append("class QuantIdentifierUniverse {\n"); sb.Append(" UniverseType: ").Append(UniverseType).Append("\n"); sb.Append(" Identifiers: ").Append(Identifiers).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -133,6 +167,10 @@ public bool Equals(QuantIdentifierUniverse input) this.Identifiers != null && input.Identifiers != null && this.Identifiers.SequenceEqual(input.Identifiers) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) ); } @@ -148,6 +186,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.UniverseType.GetHashCode(); if (this.Identifiers != null) hashCode = hashCode * 59 + this.Identifiers.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverseObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverseObsolete.cs new file mode 100644 index 00000000..72fcc7eb --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverseObsolete.cs @@ -0,0 +1,205 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantIdentifierUniverseObsolete + /// + [DataContract(Name = "QuantIdentifierUniverseObsolete")] + public partial class QuantIdentifierUniverseObsolete : IEquatable, IValidatableObject + { + /// + /// Defines UniverseType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum UniverseTypeEnum + { + /// + /// Enum Equity for value: Equity + /// + [EnumMember(Value = "Equity")] + Equity = 1, + + /// + /// Enum Debt for value: Debt + /// + [EnumMember(Value = "Debt")] + Debt = 2 + + } + + /// + /// Gets or Sets UniverseType + /// + [DataMember(Name = "universeType", IsRequired = true, EmitDefaultValue = false)] + public UniverseTypeEnum UniverseType { get; set; } + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpressionUniverse for value: ScreeningExpressionUniverse + /// + [EnumMember(Value = "ScreeningExpressionUniverse")] + ScreeningExpressionUniverse = 1, + + /// + /// Enum UniversalScreenUniverse for value: UniversalScreenUniverse + /// + [EnumMember(Value = "UniversalScreenUniverse")] + UniversalScreenUniverse = 2, + + /// + /// Enum IdentifierUniverse for value: IdentifierUniverse + /// + [EnumMember(Value = "IdentifierUniverse")] + IdentifierUniverse = 3 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public SourceEnum? Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantIdentifierUniverseObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// universeType (required). + /// identifiers (required). + /// source. + public QuantIdentifierUniverseObsolete(UniverseTypeEnum universeType = default(UniverseTypeEnum), List identifiers = default(List), SourceEnum? source = default(SourceEnum?)) + { + this.UniverseType = universeType; + // to ensure "identifiers" is required (not null) + this.Identifiers = identifiers ?? throw new ArgumentNullException("identifiers is a required property for QuantIdentifierUniverseObsolete and cannot be null"); + this.Source = source; + } + + /// + /// Gets or Sets Identifiers + /// + [DataMember(Name = "identifiers", IsRequired = true, EmitDefaultValue = false)] + public List Identifiers { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantIdentifierUniverseObsolete {\n"); + sb.Append(" UniverseType: ").Append(UniverseType).Append("\n"); + sb.Append(" Identifiers: ").Append(Identifiers).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantIdentifierUniverseObsolete); + } + + /// + /// Returns true if QuantIdentifierUniverseObsolete instances are equal + /// + /// Instance of QuantIdentifierUniverseObsolete to be compared + /// Boolean + public bool Equals(QuantIdentifierUniverseObsolete input) + { + if (input == null) + return false; + + return + ( + this.UniverseType == input.UniverseType || + this.UniverseType.Equals(input.UniverseType) + ) && + ( + this.Identifiers == input.Identifiers || + this.Identifiers != null && + input.Identifiers != null && + this.Identifiers.SequenceEqual(input.Identifiers) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = hashCode * 59 + this.UniverseType.GetHashCode(); + if (this.Identifiers != null) + hashCode = hashCode * 59 + this.Identifiers.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpression.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpression.cs index 1168d7c6..7de087b0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpression.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpression.cs @@ -32,6 +32,43 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "QuantScreeningExpression")] public partial class QuantScreeningExpression : IEquatable, IValidatableObject { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpression for value: ScreeningExpression + /// + [EnumMember(Value = "ScreeningExpression")] + ScreeningExpression = 1, + + /// + /// Enum FqlExpression for value: FqlExpression + /// + [EnumMember(Value = "FqlExpression")] + FqlExpression = 2, + + /// + /// Enum UniversalScreenParameter for value: UniversalScreenParameter + /// + [EnumMember(Value = "UniversalScreenParameter")] + UniversalScreenParameter = 3, + + /// + /// Enum AllUniversalScreenParameters for value: AllUniversalScreenParameters + /// + [EnumMember(Value = "AllUniversalScreenParameters")] + AllUniversalScreenParameters = 4 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } /// /// Initializes a new instance of the class. /// @@ -42,12 +79,14 @@ protected QuantScreeningExpression() { } /// /// expr (required). /// name (required). - public QuantScreeningExpression(string expr = default(string), string name = default(string)) + /// source (required). + public QuantScreeningExpression(string expr = default(string), string name = default(string), SourceEnum source = default(SourceEnum)) { // to ensure "expr" is required (not null) this.Expr = expr ?? throw new ArgumentNullException("expr is a required property for QuantScreeningExpression and cannot be null"); // to ensure "name" is required (not null) this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantScreeningExpression and cannot be null"); + this.Source = source; } /// @@ -72,6 +111,7 @@ public override string ToString() sb.Append("class QuantScreeningExpression {\n"); sb.Append(" Expr: ").Append(Expr).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -115,6 +155,10 @@ public bool Equals(QuantScreeningExpression input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) ); } @@ -131,6 +175,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Expr.GetHashCode(); if (this.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionObsolete.cs new file mode 100644 index 00000000..f8128ba0 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionObsolete.cs @@ -0,0 +1,149 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantScreeningExpressionObsolete + /// + [DataContract(Name = "QuantScreeningExpressionObsolete")] + public partial class QuantScreeningExpressionObsolete : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantScreeningExpressionObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// expr (required). + /// name (required). + public QuantScreeningExpressionObsolete(string expr = default(string), string name = default(string)) + { + // to ensure "expr" is required (not null) + this.Expr = expr ?? throw new ArgumentNullException("expr is a required property for QuantScreeningExpressionObsolete and cannot be null"); + // to ensure "name" is required (not null) + this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantScreeningExpressionObsolete and cannot be null"); + } + + /// + /// Gets or Sets Expr + /// + [DataMember(Name = "expr", IsRequired = true, EmitDefaultValue = false)] + public string Expr { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantScreeningExpressionObsolete {\n"); + sb.Append(" Expr: ").Append(Expr).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantScreeningExpressionObsolete); + } + + /// + /// Returns true if QuantScreeningExpressionObsolete instances are equal + /// + /// Instance of QuantScreeningExpressionObsolete to be compared + /// Boolean + public bool Equals(QuantScreeningExpressionObsolete input) + { + if (input == null) + return false; + + return + ( + this.Expr == input.Expr || + (this.Expr != null && + this.Expr.Equals(input.Expr)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Expr != null) + hashCode = hashCode * 59 + this.Expr.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverse.cs index a0e73ea1..810c8342 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverse.cs @@ -58,6 +58,37 @@ public enum UniverseTypeEnum [DataMember(Name = "universeType", IsRequired = true, EmitDefaultValue = false)] public UniverseTypeEnum UniverseType { get; set; } /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpressionUniverse for value: ScreeningExpressionUniverse + /// + [EnumMember(Value = "ScreeningExpressionUniverse")] + ScreeningExpressionUniverse = 1, + + /// + /// Enum UniversalScreenUniverse for value: UniversalScreenUniverse + /// + [EnumMember(Value = "UniversalScreenUniverse")] + UniversalScreenUniverse = 2, + + /// + /// Enum IdentifierUniverse for value: IdentifierUniverse + /// + [EnumMember(Value = "IdentifierUniverse")] + IdentifierUniverse = 3 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -68,11 +99,13 @@ protected QuantScreeningExpressionUniverse() { } /// universeExpr (required). /// universeType (required). /// securityExpr. - public QuantScreeningExpressionUniverse(string universeExpr = default(string), UniverseTypeEnum universeType = default(UniverseTypeEnum), string securityExpr = default(string)) + /// source (required). + public QuantScreeningExpressionUniverse(string universeExpr = default(string), UniverseTypeEnum universeType = default(UniverseTypeEnum), string securityExpr = default(string), SourceEnum source = default(SourceEnum)) { // to ensure "universeExpr" is required (not null) this.UniverseExpr = universeExpr ?? throw new ArgumentNullException("universeExpr is a required property for QuantScreeningExpressionUniverse and cannot be null"); this.UniverseType = universeType; + this.Source = source; this.SecurityExpr = securityExpr; } @@ -99,6 +132,7 @@ public override string ToString() sb.Append(" UniverseExpr: ").Append(UniverseExpr).Append("\n"); sb.Append(" UniverseType: ").Append(UniverseType).Append("\n"); sb.Append(" SecurityExpr: ").Append(SecurityExpr).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -146,6 +180,10 @@ public bool Equals(QuantScreeningExpressionUniverse input) this.SecurityExpr == input.SecurityExpr || (this.SecurityExpr != null && this.SecurityExpr.Equals(input.SecurityExpr)) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) ); } @@ -163,6 +201,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.UniverseType.GetHashCode(); if (this.SecurityExpr != null) hashCode = hashCode * 59 + this.SecurityExpr.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverseObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverseObsolete.cs new file mode 100644 index 00000000..a69fd257 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverseObsolete.cs @@ -0,0 +1,220 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantScreeningExpressionUniverseObsolete + /// + [DataContract(Name = "QuantScreeningExpressionUniverseObsolete")] + public partial class QuantScreeningExpressionUniverseObsolete : IEquatable, IValidatableObject + { + /// + /// Defines UniverseType + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum UniverseTypeEnum + { + /// + /// Enum Equity for value: Equity + /// + [EnumMember(Value = "Equity")] + Equity = 1, + + /// + /// Enum Debt for value: Debt + /// + [EnumMember(Value = "Debt")] + Debt = 2 + + } + + /// + /// Gets or Sets UniverseType + /// + [DataMember(Name = "universeType", IsRequired = true, EmitDefaultValue = false)] + public UniverseTypeEnum UniverseType { get; set; } + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpressionUniverse for value: ScreeningExpressionUniverse + /// + [EnumMember(Value = "ScreeningExpressionUniverse")] + ScreeningExpressionUniverse = 1, + + /// + /// Enum UniversalScreenUniverse for value: UniversalScreenUniverse + /// + [EnumMember(Value = "UniversalScreenUniverse")] + UniversalScreenUniverse = 2, + + /// + /// Enum IdentifierUniverse for value: IdentifierUniverse + /// + [EnumMember(Value = "IdentifierUniverse")] + IdentifierUniverse = 3 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public SourceEnum? Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantScreeningExpressionUniverseObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// universeExpr (required). + /// universeType (required). + /// securityExpr. + /// source. + public QuantScreeningExpressionUniverseObsolete(string universeExpr = default(string), UniverseTypeEnum universeType = default(UniverseTypeEnum), string securityExpr = default(string), SourceEnum? source = default(SourceEnum?)) + { + // to ensure "universeExpr" is required (not null) + this.UniverseExpr = universeExpr ?? throw new ArgumentNullException("universeExpr is a required property for QuantScreeningExpressionUniverseObsolete and cannot be null"); + this.UniverseType = universeType; + this.SecurityExpr = securityExpr; + this.Source = source; + } + + /// + /// Gets or Sets UniverseExpr + /// + [DataMember(Name = "universeExpr", IsRequired = true, EmitDefaultValue = false)] + public string UniverseExpr { get; set; } + + /// + /// Gets or Sets SecurityExpr + /// + [DataMember(Name = "securityExpr", EmitDefaultValue = false)] + public string SecurityExpr { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantScreeningExpressionUniverseObsolete {\n"); + sb.Append(" UniverseExpr: ").Append(UniverseExpr).Append("\n"); + sb.Append(" UniverseType: ").Append(UniverseType).Append("\n"); + sb.Append(" SecurityExpr: ").Append(SecurityExpr).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantScreeningExpressionUniverseObsolete); + } + + /// + /// Returns true if QuantScreeningExpressionUniverseObsolete instances are equal + /// + /// Instance of QuantScreeningExpressionUniverseObsolete to be compared + /// Boolean + public bool Equals(QuantScreeningExpressionUniverseObsolete input) + { + if (input == null) + return false; + + return + ( + this.UniverseExpr == input.UniverseExpr || + (this.UniverseExpr != null && + this.UniverseExpr.Equals(input.UniverseExpr)) + ) && + ( + this.UniverseType == input.UniverseType || + this.UniverseType.Equals(input.UniverseType) + ) && + ( + this.SecurityExpr == input.SecurityExpr || + (this.SecurityExpr != null && + this.SecurityExpr.Equals(input.SecurityExpr)) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.UniverseExpr != null) + hashCode = hashCode * 59 + this.UniverseExpr.GetHashCode(); + hashCode = hashCode * 59 + this.UniverseType.GetHashCode(); + if (this.SecurityExpr != null) + hashCode = hashCode * 59 + this.SecurityExpr.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameter.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameter.cs index 3e599b99..4087eaa6 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameter.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameter.cs @@ -32,6 +32,43 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "QuantUniversalScreenParameter")] public partial class QuantUniversalScreenParameter : IEquatable, IValidatableObject { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpression for value: ScreeningExpression + /// + [EnumMember(Value = "ScreeningExpression")] + ScreeningExpression = 1, + + /// + /// Enum FqlExpression for value: FqlExpression + /// + [EnumMember(Value = "FqlExpression")] + FqlExpression = 2, + + /// + /// Enum UniversalScreenParameter for value: UniversalScreenParameter + /// + [EnumMember(Value = "UniversalScreenParameter")] + UniversalScreenParameter = 3, + + /// + /// Enum AllUniversalScreenParameters for value: AllUniversalScreenParameters + /// + [EnumMember(Value = "AllUniversalScreenParameters")] + AllUniversalScreenParameters = 4 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } /// /// Initializes a new instance of the class. /// @@ -42,12 +79,14 @@ protected QuantUniversalScreenParameter() { } /// /// referenceName (required). /// name (required). - public QuantUniversalScreenParameter(string referenceName = default(string), string name = default(string)) + /// source (required). + public QuantUniversalScreenParameter(string referenceName = default(string), string name = default(string), SourceEnum source = default(SourceEnum)) { // to ensure "referenceName" is required (not null) this.ReferenceName = referenceName ?? throw new ArgumentNullException("referenceName is a required property for QuantUniversalScreenParameter and cannot be null"); // to ensure "name" is required (not null) this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantUniversalScreenParameter and cannot be null"); + this.Source = source; } /// @@ -72,6 +111,7 @@ public override string ToString() sb.Append("class QuantUniversalScreenParameter {\n"); sb.Append(" ReferenceName: ").Append(ReferenceName).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -115,6 +155,10 @@ public bool Equals(QuantUniversalScreenParameter input) this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) ); } @@ -131,6 +175,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.ReferenceName.GetHashCode(); if (this.Name != null) hashCode = hashCode * 59 + this.Name.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameterObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameterObsolete.cs new file mode 100644 index 00000000..da892591 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameterObsolete.cs @@ -0,0 +1,149 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantUniversalScreenParameterObsolete + /// + [DataContract(Name = "QuantUniversalScreenParameterObsolete")] + public partial class QuantUniversalScreenParameterObsolete : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantUniversalScreenParameterObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// referenceName (required). + /// name (required). + public QuantUniversalScreenParameterObsolete(string referenceName = default(string), string name = default(string)) + { + // to ensure "referenceName" is required (not null) + this.ReferenceName = referenceName ?? throw new ArgumentNullException("referenceName is a required property for QuantUniversalScreenParameterObsolete and cannot be null"); + // to ensure "name" is required (not null) + this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantUniversalScreenParameterObsolete and cannot be null"); + } + + /// + /// Gets or Sets ReferenceName + /// + [DataMember(Name = "referenceName", IsRequired = true, EmitDefaultValue = false)] + public string ReferenceName { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantUniversalScreenParameterObsolete {\n"); + sb.Append(" ReferenceName: ").Append(ReferenceName).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantUniversalScreenParameterObsolete); + } + + /// + /// Returns true if QuantUniversalScreenParameterObsolete instances are equal + /// + /// Instance of QuantUniversalScreenParameterObsolete to be compared + /// Boolean + public bool Equals(QuantUniversalScreenParameterObsolete input) + { + if (input == null) + return false; + + return + ( + this.ReferenceName == input.ReferenceName || + (this.ReferenceName != null && + this.ReferenceName.Equals(input.ReferenceName)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ReferenceName != null) + hashCode = hashCode * 59 + this.ReferenceName.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverse.cs index 57ff784d..d43fb79c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverse.cs @@ -32,6 +32,37 @@ namespace FactSet.AnalyticsAPI.Engines.Model [DataContract(Name = "QuantUniversalScreenUniverse")] public partial class QuantUniversalScreenUniverse : IEquatable, IValidatableObject { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpressionUniverse for value: ScreeningExpressionUniverse + /// + [EnumMember(Value = "ScreeningExpressionUniverse")] + ScreeningExpressionUniverse = 1, + + /// + /// Enum UniversalScreenUniverse for value: UniversalScreenUniverse + /// + [EnumMember(Value = "UniversalScreenUniverse")] + UniversalScreenUniverse = 2, + + /// + /// Enum IdentifierUniverse for value: IdentifierUniverse + /// + [EnumMember(Value = "IdentifierUniverse")] + IdentifierUniverse = 3 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } /// /// Initializes a new instance of the class. /// @@ -41,10 +72,12 @@ protected QuantUniversalScreenUniverse() { } /// Initializes a new instance of the class. /// /// screen (required). - public QuantUniversalScreenUniverse(string screen = default(string)) + /// source (required). + public QuantUniversalScreenUniverse(string screen = default(string), SourceEnum source = default(SourceEnum)) { // to ensure "screen" is required (not null) this.Screen = screen ?? throw new ArgumentNullException("screen is a required property for QuantUniversalScreenUniverse and cannot be null"); + this.Source = source; } /// @@ -62,6 +95,7 @@ public override string ToString() var sb = new StringBuilder(); sb.Append("class QuantUniversalScreenUniverse {\n"); sb.Append(" Screen: ").Append(Screen).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -100,6 +134,10 @@ public bool Equals(QuantUniversalScreenUniverse input) this.Screen == input.Screen || (this.Screen != null && this.Screen.Equals(input.Screen)) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) ); } @@ -114,6 +152,7 @@ public override int GetHashCode() int hashCode = 41; if (this.Screen != null) hashCode = hashCode * 59 + this.Screen.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverseObsolete.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverseObsolete.cs new file mode 100644 index 00000000..4dc7e964 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverseObsolete.cs @@ -0,0 +1,171 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantUniversalScreenUniverseObsolete + /// + [DataContract(Name = "QuantUniversalScreenUniverseObsolete")] + public partial class QuantUniversalScreenUniverseObsolete : IEquatable, IValidatableObject + { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpressionUniverse for value: ScreeningExpressionUniverse + /// + [EnumMember(Value = "ScreeningExpressionUniverse")] + ScreeningExpressionUniverse = 1, + + /// + /// Enum UniversalScreenUniverse for value: UniversalScreenUniverse + /// + [EnumMember(Value = "UniversalScreenUniverse")] + UniversalScreenUniverse = 2, + + /// + /// Enum IdentifierUniverse for value: IdentifierUniverse + /// + [EnumMember(Value = "IdentifierUniverse")] + IdentifierUniverse = 3 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", EmitDefaultValue = false)] + public SourceEnum? Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantUniversalScreenUniverseObsolete() { } + /// + /// Initializes a new instance of the class. + /// + /// screen (required). + /// source. + public QuantUniversalScreenUniverseObsolete(string screen = default(string), SourceEnum? source = default(SourceEnum?)) + { + // to ensure "screen" is required (not null) + this.Screen = screen ?? throw new ArgumentNullException("screen is a required property for QuantUniversalScreenUniverseObsolete and cannot be null"); + this.Source = source; + } + + /// + /// Gets or Sets Screen + /// + [DataMember(Name = "screen", IsRequired = true, EmitDefaultValue = false)] + public string Screen { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantUniversalScreenUniverseObsolete {\n"); + sb.Append(" Screen: ").Append(Screen).Append("\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantUniversalScreenUniverseObsolete); + } + + /// + /// Returns true if QuantUniversalScreenUniverseObsolete instances are equal + /// + /// Instance of QuantUniversalScreenUniverseObsolete to be compared + /// Boolean + public bool Equals(QuantUniversalScreenUniverseObsolete input) + { + if (input == null) + return false; + + return + ( + this.Screen == input.Screen || + (this.Screen != null && + this.Screen.Equals(input.Screen)) + ) && + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Screen != null) + hashCode = hashCode * 59 + this.Screen.GetHashCode(); + hashCode = hashCode * 59 + this.Source.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniverse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniverse.cs new file mode 100644 index 00000000..aca16ae1 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniverse.cs @@ -0,0 +1,154 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// QuantUniverse + /// + [DataContract(Name = "QuantUniverse")] + public partial class QuantUniverse : IEquatable, IValidatableObject + { + /// + /// Defines Source + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SourceEnum + { + /// + /// Enum ScreeningExpressionUniverse for value: ScreeningExpressionUniverse + /// + [EnumMember(Value = "ScreeningExpressionUniverse")] + ScreeningExpressionUniverse = 1, + + /// + /// Enum UniversalScreenUniverse for value: UniversalScreenUniverse + /// + [EnumMember(Value = "UniversalScreenUniverse")] + UniversalScreenUniverse = 2, + + /// + /// Enum IdentifierUniverse for value: IdentifierUniverse + /// + [EnumMember(Value = "IdentifierUniverse")] + IdentifierUniverse = 3 + + } + + /// + /// Gets or Sets Source + /// + [DataMember(Name = "source", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected QuantUniverse() { } + /// + /// Initializes a new instance of the class. + /// + /// source (required). + public QuantUniverse(SourceEnum source = default(SourceEnum)) + { + this.Source = source; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class QuantUniverse {\n"); + sb.Append(" Source: ").Append(Source).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as QuantUniverse); + } + + /// + /// Returns true if QuantUniverse instances are equal + /// + /// Instance of QuantUniverse to be compared + /// Boolean + public bool Equals(QuantUniverse input) + { + if (input == null) + return false; + + return + ( + this.Source == input.Source || + this.Source.Equals(input.Source) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = hashCode * 59 + this.Source.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ReturnType.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ReturnType.cs new file mode 100644 index 00000000..1920ca70 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ReturnType.cs @@ -0,0 +1,142 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// ReturnType + /// + [DataContract(Name = "ReturnType")] + public partial class ReturnType : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// name. + /// id. + public ReturnType(string name = default(string), string id = default(string)) + { + this.Name = name; + this.Id = id; + } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class ReturnType {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ReturnType); + } + + /// + /// Returns true if ReturnType instances are equal + /// + /// Instance of ReturnType to be compared + /// Boolean + public bool Equals(ReturnType input) + { + if (input == null) + return false; + + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccounts.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccounts.cs new file mode 100644 index 00000000..21ddff9b --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccounts.cs @@ -0,0 +1,128 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// SPARAccounts + /// + [DataContract(Name = "SPARAccounts")] + public partial class SPARAccounts : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// List of SPAR returnsType. + public SPARAccounts(List returnsType = default(List)) + { + this.ReturnsType = returnsType; + } + + /// + /// List of SPAR returnsType + /// + /// List of SPAR returnsType + [DataMember(Name = "returnsType", EmitDefaultValue = false)] + public List ReturnsType { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SPARAccounts {\n"); + sb.Append(" ReturnsType: ").Append(ReturnsType).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SPARAccounts); + } + + /// + /// Returns true if SPARAccounts instances are equal + /// + /// Instance of SPARAccounts to be compared + /// Boolean + public bool Equals(SPARAccounts input) + { + if (input == null) + return false; + + return + ( + this.ReturnsType == input.ReturnsType || + this.ReturnsType != null && + input.ReturnsType != null && + this.ReturnsType.SequenceEqual(input.ReturnsType) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ReturnsType != null) + hashCode = hashCode * 59 + this.ReturnsType.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccountsRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccountsRoot.cs new file mode 100644 index 00000000..f7839c2b --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccountsRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// SPARAccountsRoot + /// + [DataContract(Name = "SPARAccountsRoot")] + public partial class SPARAccountsRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected SPARAccountsRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public SPARAccountsRoot(SPARAccounts data = default(SPARAccounts), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for SPARAccountsRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public SPARAccounts Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class SPARAccountsRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as SPARAccountsRoot); + } + + /// + /// Returns true if SPARAccountsRoot instances are equal + /// + /// Instance of SPARAccountsRoot to be compared + /// Boolean + public bool Equals(SPARAccountsRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmarkRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmarkRoot.cs index f7972a7f..ee537bf8 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmarkRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmarkRoot.cs @@ -58,7 +58,7 @@ protected SPARBenchmarkRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParameters.cs index 52614087..9ec37734 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParameters.cs @@ -44,13 +44,15 @@ protected SPARCalculationParameters() { } /// List of accounts for SPAR calculation.. /// benchmark. /// dates. - public SPARCalculationParameters(string componentid = default(string), List accounts = default(List), SPARIdentifier benchmark = default(SPARIdentifier), SPARDateParameters dates = default(SPARDateParameters)) + /// Currency ISO code for calculation.. + public SPARCalculationParameters(string componentid = default(string), List accounts = default(List), SPARIdentifier benchmark = default(SPARIdentifier), SPARDateParameters dates = default(SPARDateParameters), string currencyisocode = default(string)) { // to ensure "componentid" is required (not null) this.Componentid = componentid ?? throw new ArgumentNullException("componentid is a required property for SPARCalculationParameters and cannot be null"); this.Accounts = accounts; this.Benchmark = benchmark; this.Dates = dates; + this.Currencyisocode = currencyisocode; } /// @@ -79,6 +81,13 @@ protected SPARCalculationParameters() { } [DataMember(Name = "dates", EmitDefaultValue = false)] public SPARDateParameters Dates { get; set; } + /// + /// Currency ISO code for calculation. + /// + /// Currency ISO code for calculation. + [DataMember(Name = "currencyisocode", EmitDefaultValue = false)] + public string Currencyisocode { get; set; } + /// /// Returns the string presentation of the object /// @@ -91,6 +100,7 @@ public override string ToString() sb.Append(" Accounts: ").Append(Accounts).Append("\n"); sb.Append(" Benchmark: ").Append(Benchmark).Append("\n"); sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Currencyisocode: ").Append(Currencyisocode).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -145,6 +155,11 @@ public bool Equals(SPARCalculationParameters input) this.Dates == input.Dates || (this.Dates != null && this.Dates.Equals(input.Dates)) + ) && + ( + this.Currencyisocode == input.Currencyisocode || + (this.Currencyisocode != null && + this.Currencyisocode.Equals(input.Currencyisocode)) ); } @@ -165,6 +180,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Benchmark.GetHashCode(); if (this.Dates != null) hashCode = hashCode * 59 + this.Dates.GetHashCode(); + if (this.Currencyisocode != null) + hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplateContentTypes.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplateContentTypes.cs new file mode 100644 index 00000000..3f7c72e3 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplateContentTypes.cs @@ -0,0 +1,164 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// TemplateContentTypes + /// + [DataContract(Name = "TemplateContentTypes")] + public partial class TemplateContentTypes : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Template mandatory fields. + /// Template optional fields. + /// Template locked fields. + public TemplateContentTypes(List mandatory = default(List), List optional = default(List), List locked = default(List)) + { + this.Mandatory = mandatory; + this.Optional = optional; + this.Locked = locked; + } + + /// + /// Template mandatory fields + /// + /// Template mandatory fields + [DataMember(Name = "mandatory", EmitDefaultValue = false)] + public List Mandatory { get; set; } + + /// + /// Template optional fields + /// + /// Template optional fields + [DataMember(Name = "optional", EmitDefaultValue = false)] + public List Optional { get; set; } + + /// + /// Template locked fields + /// + /// Template locked fields + [DataMember(Name = "locked", EmitDefaultValue = false)] + public List Locked { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplateContentTypes {\n"); + sb.Append(" Mandatory: ").Append(Mandatory).Append("\n"); + sb.Append(" Optional: ").Append(Optional).Append("\n"); + sb.Append(" Locked: ").Append(Locked).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplateContentTypes); + } + + /// + /// Returns true if TemplateContentTypes instances are equal + /// + /// Instance of TemplateContentTypes to be compared + /// Boolean + public bool Equals(TemplateContentTypes input) + { + if (input == null) + return false; + + return + ( + this.Mandatory == input.Mandatory || + this.Mandatory != null && + input.Mandatory != null && + this.Mandatory.SequenceEqual(input.Mandatory) + ) && + ( + this.Optional == input.Optional || + this.Optional != null && + input.Optional != null && + this.Optional.SequenceEqual(input.Optional) + ) && + ( + this.Locked == input.Locked || + this.Locked != null && + input.Locked != null && + this.Locked.SequenceEqual(input.Locked) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Mandatory != null) + hashCode = hashCode * 59 + this.Mandatory.GetHashCode(); + if (this.Optional != null) + hashCode = hashCode * 59 + this.Optional.GetHashCode(); + if (this.Locked != null) + hashCode = hashCode * 59 + this.Locked.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParameters.cs new file mode 100644 index 00000000..7217328a --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParameters.cs @@ -0,0 +1,184 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// TemplatedPAComponentParameters + /// + [DataContract(Name = "TemplatedPAComponentParameters")] + public partial class TemplatedPAComponentParameters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplatedPAComponentParameters() { } + /// + /// Initializes a new instance of the class. + /// + /// Directory to create templated components (required). + /// Parent template id (required). + /// Component description.. + /// componentData. + public TemplatedPAComponentParameters(string directory = default(string), string parentTemplateId = default(string), string description = default(string), PAComponentData componentData = default(PAComponentData)) + { + // to ensure "directory" is required (not null) + this.Directory = directory ?? throw new ArgumentNullException("directory is a required property for TemplatedPAComponentParameters and cannot be null"); + // to ensure "parentTemplateId" is required (not null) + this.ParentTemplateId = parentTemplateId ?? throw new ArgumentNullException("parentTemplateId is a required property for TemplatedPAComponentParameters and cannot be null"); + this.Description = description; + this.ComponentData = componentData; + } + + /// + /// Directory to create templated components + /// + /// Directory to create templated components + [DataMember(Name = "directory", IsRequired = true, EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Parent template id + /// + /// Parent template id + [DataMember(Name = "parentTemplateId", IsRequired = true, EmitDefaultValue = false)] + public string ParentTemplateId { get; set; } + + /// + /// Component description. + /// + /// Component description. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets ComponentData + /// + [DataMember(Name = "componentData", EmitDefaultValue = false)] + public PAComponentData ComponentData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentParameters {\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" ParentTemplateId: ").Append(ParentTemplateId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ComponentData: ").Append(ComponentData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatedPAComponentParameters); + } + + /// + /// Returns true if TemplatedPAComponentParameters instances are equal + /// + /// Instance of TemplatedPAComponentParameters to be compared + /// Boolean + public bool Equals(TemplatedPAComponentParameters input) + { + if (input == null) + return false; + + return + ( + this.Directory == input.Directory || + (this.Directory != null && + this.Directory.Equals(input.Directory)) + ) && + ( + this.ParentTemplateId == input.ParentTemplateId || + (this.ParentTemplateId != null && + this.ParentTemplateId.Equals(input.ParentTemplateId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ComponentData == input.ComponentData || + (this.ComponentData != null && + this.ComponentData.Equals(input.ComponentData)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Directory != null) + hashCode = hashCode * 59 + this.Directory.GetHashCode(); + if (this.ParentTemplateId != null) + hashCode = hashCode * 59 + this.ParentTemplateId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ComponentData != null) + hashCode = hashCode * 59 + this.ComponentData.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParametersRoot.cs new file mode 100644 index 00000000..21e8bafd --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParametersRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// TemplatedPAComponentParametersRoot + /// + [DataContract(Name = "TemplatedPAComponentParametersRoot")] + public partial class TemplatedPAComponentParametersRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplatedPAComponentParametersRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public TemplatedPAComponentParametersRoot(TemplatedPAComponentParameters data = default(TemplatedPAComponentParameters), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for TemplatedPAComponentParametersRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public TemplatedPAComponentParameters Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentParametersRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatedPAComponentParametersRoot); + } + + /// + /// Returns true if TemplatedPAComponentParametersRoot instances are equal + /// + /// Instance of TemplatedPAComponentParametersRoot to be compared + /// Boolean + public bool Equals(TemplatedPAComponentParametersRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummary.cs new file mode 100644 index 00000000..e0f8d24f --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummary.cs @@ -0,0 +1,174 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// TemplatedPAComponentSummary + /// + [DataContract(Name = "TemplatedPAComponentSummary")] + public partial class TemplatedPAComponentSummary : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// description. + /// name. + /// parentTemplateId. + /// type. + public TemplatedPAComponentSummary(string description = default(string), string name = default(string), string parentTemplateId = default(string), string type = default(string)) + { + this.Description = description; + this.Name = name; + this.ParentTemplateId = parentTemplateId; + this.Type = type; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets ParentTemplateId + /// + [DataMember(Name = "parentTemplateId", EmitDefaultValue = false)] + public string ParentTemplateId { get; set; } + + /// + /// Gets or Sets Type + /// + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentSummary {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" ParentTemplateId: ").Append(ParentTemplateId).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatedPAComponentSummary); + } + + /// + /// Returns true if TemplatedPAComponentSummary instances are equal + /// + /// Instance of TemplatedPAComponentSummary to be compared + /// Boolean + public bool Equals(TemplatedPAComponentSummary input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.ParentTemplateId == input.ParentTemplateId || + (this.ParentTemplateId != null && + this.ParentTemplateId.Equals(input.ParentTemplateId)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.ParentTemplateId != null) + hashCode = hashCode * 59 + this.ParentTemplateId.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummaryRoot.cs new file mode 100644 index 00000000..e8612adf --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummaryRoot.cs @@ -0,0 +1,149 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// TemplatedPAComponentSummaryRoot + /// + [DataContract(Name = "TemplatedPAComponentSummaryRoot")] + public partial class TemplatedPAComponentSummaryRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplatedPAComponentSummaryRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public TemplatedPAComponentSummaryRoot(Dictionary data = default(Dictionary), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for TemplatedPAComponentSummaryRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public Dictionary Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentSummaryRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatedPAComponentSummaryRoot); + } + + /// + /// Returns true if TemplatedPAComponentSummaryRoot instances are equal + /// + /// Instance of TemplatedPAComponentSummaryRoot to be compared + /// Boolean + public bool Equals(TemplatedPAComponentSummaryRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + input.Data != null && + this.Data.SequenceEqual(input.Data) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParameters.cs new file mode 100644 index 00000000..bf8e734d --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParameters.cs @@ -0,0 +1,160 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// TemplatedPAComponentUpdateParameters + /// + [DataContract(Name = "TemplatedPAComponentUpdateParameters")] + public partial class TemplatedPAComponentUpdateParameters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Parent template id. + /// Component description.. + /// componentData. + public TemplatedPAComponentUpdateParameters(string parentTemplateId = default(string), string description = default(string), PAComponentData componentData = default(PAComponentData)) + { + this.ParentTemplateId = parentTemplateId; + this.Description = description; + this.ComponentData = componentData; + } + + /// + /// Parent template id + /// + /// Parent template id + [DataMember(Name = "parentTemplateId", EmitDefaultValue = false)] + public string ParentTemplateId { get; set; } + + /// + /// Component description. + /// + /// Component description. + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets ComponentData + /// + [DataMember(Name = "componentData", EmitDefaultValue = false)] + public PAComponentData ComponentData { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentUpdateParameters {\n"); + sb.Append(" ParentTemplateId: ").Append(ParentTemplateId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" ComponentData: ").Append(ComponentData).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatedPAComponentUpdateParameters); + } + + /// + /// Returns true if TemplatedPAComponentUpdateParameters instances are equal + /// + /// Instance of TemplatedPAComponentUpdateParameters to be compared + /// Boolean + public bool Equals(TemplatedPAComponentUpdateParameters input) + { + if (input == null) + return false; + + return + ( + this.ParentTemplateId == input.ParentTemplateId || + (this.ParentTemplateId != null && + this.ParentTemplateId.Equals(input.ParentTemplateId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.ComponentData == input.ComponentData || + (this.ComponentData != null && + this.ComponentData.Equals(input.ComponentData)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ParentTemplateId != null) + hashCode = hashCode * 59 + this.ParentTemplateId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.ComponentData != null) + hashCode = hashCode * 59 + this.ComponentData.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParametersRoot.cs new file mode 100644 index 00000000..6b395661 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParametersRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// TemplatedPAComponentUpdateParametersRoot + /// + [DataContract(Name = "TemplatedPAComponentUpdateParametersRoot")] + public partial class TemplatedPAComponentUpdateParametersRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplatedPAComponentUpdateParametersRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public TemplatedPAComponentUpdateParametersRoot(TemplatedPAComponentUpdateParameters data = default(TemplatedPAComponentUpdateParameters), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for TemplatedPAComponentUpdateParametersRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public TemplatedPAComponentUpdateParameters Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentUpdateParametersRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as TemplatedPAComponentUpdateParametersRoot); + } + + /// + /// Returns true if TemplatedPAComponentUpdateParametersRoot instances are equal + /// + /// Instance of TemplatedPAComponentUpdateParametersRoot to be compared + /// Boolean + public bool Equals(TemplatedPAComponentUpdateParametersRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplate.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplate.cs new file mode 100644 index 00000000..4ab54641 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplate.cs @@ -0,0 +1,352 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplate + /// + [DataContract(Name = "UnlinkedPATemplate")] + public partial class UnlinkedPATemplate : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// directory. + /// id. + /// templateTypeId. + /// snapshot. + /// accounts. + /// benchmarks. + /// columns. + /// dates. + /// groups. + /// currencyisocode. + /// componentdetail. + /// content. + /// description. + /// name. + /// category. + public UnlinkedPATemplate(string directory = default(string), string id = default(string), string templateTypeId = default(string), bool snapshot = default(bool), List accounts = default(List), List benchmarks = default(List), List columns = default(List), PADateParameters dates = default(PADateParameters), List groups = default(List), string currencyisocode = default(string), string componentdetail = default(string), TemplateContentTypes content = default(TemplateContentTypes), string description = default(string), string name = default(string), string category = default(string)) + { + this.Directory = directory; + this.Id = id; + this.TemplateTypeId = templateTypeId; + this.Snapshot = snapshot; + this.Accounts = accounts; + this.Benchmarks = benchmarks; + this.Columns = columns; + this.Dates = dates; + this.Groups = groups; + this.Currencyisocode = currencyisocode; + this.Componentdetail = componentdetail; + this.Content = content; + this.Description = description; + this.Name = name; + this.Category = category; + } + + /// + /// Gets or Sets Directory + /// + [DataMember(Name = "directory", EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets TemplateTypeId + /// + [DataMember(Name = "templateTypeId", EmitDefaultValue = false)] + public string TemplateTypeId { get; set; } + + /// + /// Gets or Sets Snapshot + /// + [DataMember(Name = "snapshot", EmitDefaultValue = false)] + public bool Snapshot { get; set; } + + /// + /// Gets or Sets Accounts + /// + [DataMember(Name = "accounts", EmitDefaultValue = false)] + public List Accounts { get; set; } + + /// + /// Gets or Sets Benchmarks + /// + [DataMember(Name = "benchmarks", EmitDefaultValue = false)] + public List Benchmarks { get; set; } + + /// + /// Gets or Sets Columns + /// + [DataMember(Name = "columns", EmitDefaultValue = false)] + public List Columns { get; set; } + + /// + /// Gets or Sets Dates + /// + [DataMember(Name = "dates", EmitDefaultValue = false)] + public PADateParameters Dates { get; set; } + + /// + /// Gets or Sets Groups + /// + [DataMember(Name = "groups", EmitDefaultValue = false)] + public List Groups { get; set; } + + /// + /// Gets or Sets Currencyisocode + /// + [DataMember(Name = "currencyisocode", EmitDefaultValue = false)] + public string Currencyisocode { get; set; } + + /// + /// Gets or Sets Componentdetail + /// + [DataMember(Name = "componentdetail", EmitDefaultValue = false)] + public string Componentdetail { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public TemplateContentTypes Content { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Category + /// + [DataMember(Name = "category", EmitDefaultValue = false)] + public string Category { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplate {\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" TemplateTypeId: ").Append(TemplateTypeId).Append("\n"); + sb.Append(" Snapshot: ").Append(Snapshot).Append("\n"); + sb.Append(" Accounts: ").Append(Accounts).Append("\n"); + sb.Append(" Benchmarks: ").Append(Benchmarks).Append("\n"); + sb.Append(" Columns: ").Append(Columns).Append("\n"); + sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Currencyisocode: ").Append(Currencyisocode).Append("\n"); + sb.Append(" Componentdetail: ").Append(Componentdetail).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplate); + } + + /// + /// Returns true if UnlinkedPATemplate instances are equal + /// + /// Instance of UnlinkedPATemplate to be compared + /// Boolean + public bool Equals(UnlinkedPATemplate input) + { + if (input == null) + return false; + + return + ( + this.Directory == input.Directory || + (this.Directory != null && + this.Directory.Equals(input.Directory)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.TemplateTypeId == input.TemplateTypeId || + (this.TemplateTypeId != null && + this.TemplateTypeId.Equals(input.TemplateTypeId)) + ) && + ( + this.Snapshot == input.Snapshot || + this.Snapshot.Equals(input.Snapshot) + ) && + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) + ) && + ( + this.Benchmarks == input.Benchmarks || + this.Benchmarks != null && + input.Benchmarks != null && + this.Benchmarks.SequenceEqual(input.Benchmarks) + ) && + ( + this.Columns == input.Columns || + this.Columns != null && + input.Columns != null && + this.Columns.SequenceEqual(input.Columns) + ) && + ( + this.Dates == input.Dates || + (this.Dates != null && + this.Dates.Equals(input.Dates)) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + input.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Currencyisocode == input.Currencyisocode || + (this.Currencyisocode != null && + this.Currencyisocode.Equals(input.Currencyisocode)) + ) && + ( + this.Componentdetail == input.Componentdetail || + (this.Componentdetail != null && + this.Componentdetail.Equals(input.Componentdetail)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Directory != null) + hashCode = hashCode * 59 + this.Directory.GetHashCode(); + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.TemplateTypeId != null) + hashCode = hashCode * 59 + this.TemplateTypeId.GetHashCode(); + hashCode = hashCode * 59 + this.Snapshot.GetHashCode(); + if (this.Accounts != null) + hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + if (this.Benchmarks != null) + hashCode = hashCode * 59 + this.Benchmarks.GetHashCode(); + if (this.Columns != null) + hashCode = hashCode * 59 + this.Columns.GetHashCode(); + if (this.Dates != null) + hashCode = hashCode * 59 + this.Dates.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Currencyisocode != null) + hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); + if (this.Componentdetail != null) + hashCode = hashCode * 59 + this.Componentdetail.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndType.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndType.cs new file mode 100644 index 00000000..711fb024 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndType.cs @@ -0,0 +1,144 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateCategoryAndType + /// + [DataContract(Name = "UnlinkedPATemplateCategoryAndType")] + public partial class UnlinkedPATemplateCategoryAndType : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Unlinked template category. + /// Unlinked template type. + public UnlinkedPATemplateCategoryAndType(string category = default(string), string name = default(string)) + { + this.Category = category; + this.Name = name; + } + + /// + /// Unlinked template category + /// + /// Unlinked template category + [DataMember(Name = "category", EmitDefaultValue = false)] + public string Category { get; set; } + + /// + /// Unlinked template type + /// + /// Unlinked template type + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateCategoryAndType {\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateCategoryAndType); + } + + /// + /// Returns true if UnlinkedPATemplateCategoryAndType instances are equal + /// + /// Instance of UnlinkedPATemplateCategoryAndType to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateCategoryAndType input) + { + if (input == null) + return false; + + return + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetails.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetails.cs new file mode 100644 index 00000000..5c02ae41 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetails.cs @@ -0,0 +1,161 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateCategoryAndTypeDetails + /// + [DataContract(Name = "UnlinkedPATemplateCategoryAndTypeDetails")] + public partial class UnlinkedPATemplateCategoryAndTypeDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Type Id. + /// Unlinked template category. + /// Unlinked template type. + public UnlinkedPATemplateCategoryAndTypeDetails(string id = default(string), string category = default(string), string name = default(string)) + { + this.Id = id; + this.Category = category; + this.Name = name; + } + + /// + /// Type Id + /// + /// Type Id + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Unlinked template category + /// + /// Unlinked template category + [DataMember(Name = "category", EmitDefaultValue = false)] + public string Category { get; set; } + + /// + /// Unlinked template type + /// + /// Unlinked template type + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateCategoryAndTypeDetails {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateCategoryAndTypeDetails); + } + + /// + /// Returns true if UnlinkedPATemplateCategoryAndTypeDetails instances are equal + /// + /// Instance of UnlinkedPATemplateCategoryAndTypeDetails to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateCategoryAndTypeDetails input) + { + if (input == null) + return false; + + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + hashCode = hashCode * 59 + this.Id.GetHashCode(); + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetailsRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetailsRoot.cs new file mode 100644 index 00000000..90fc8586 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetailsRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateCategoryAndTypeDetailsRoot + /// + [DataContract(Name = "UnlinkedPATemplateCategoryAndTypeDetailsRoot")] + public partial class UnlinkedPATemplateCategoryAndTypeDetailsRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplateCategoryAndTypeDetailsRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public UnlinkedPATemplateCategoryAndTypeDetailsRoot(UnlinkedPATemplateCategoryAndTypeDetails data = default(UnlinkedPATemplateCategoryAndTypeDetails), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for UnlinkedPATemplateCategoryAndTypeDetailsRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public UnlinkedPATemplateCategoryAndTypeDetails Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateCategoryAndTypeDetailsRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateCategoryAndTypeDetailsRoot); + } + + /// + /// Returns true if UnlinkedPATemplateCategoryAndTypeDetailsRoot instances are equal + /// + /// Instance of UnlinkedPATemplateCategoryAndTypeDetailsRoot to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateCategoryAndTypeDetailsRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeRoot.cs new file mode 100644 index 00000000..e0d709b8 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeRoot.cs @@ -0,0 +1,149 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateCategoryAndTypeRoot + /// + [DataContract(Name = "UnlinkedPATemplateCategoryAndTypeRoot")] + public partial class UnlinkedPATemplateCategoryAndTypeRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplateCategoryAndTypeRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public UnlinkedPATemplateCategoryAndTypeRoot(Dictionary data = default(Dictionary), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for UnlinkedPATemplateCategoryAndTypeRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public Dictionary Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateCategoryAndTypeRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateCategoryAndTypeRoot); + } + + /// + /// Returns true if UnlinkedPATemplateCategoryAndTypeRoot instances are equal + /// + /// Instance of UnlinkedPATemplateCategoryAndTypeRoot to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateCategoryAndTypeRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + input.Data != null && + this.Data.SequenceEqual(input.Data) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParameters.cs new file mode 100644 index 00000000..3c10de63 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParameters.cs @@ -0,0 +1,306 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateParameters + /// + [DataContract(Name = "UnlinkedPATemplateParameters")] + public partial class UnlinkedPATemplateParameters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplateParameters() { } + /// + /// Initializes a new instance of the class. + /// + /// The directory to create an unlinked PA template (required). + /// Template type id (required). + /// Template description. + /// List of accounts. + /// List of benchmarks. + /// List of columns for the PA calculation. + /// dates. + /// List of groupings for the PA calculation. + /// Currency ISO code for calculation.. + /// PA storage type. It can be GROUPS or TOTALS or SECURITIES.. + /// content. + public UnlinkedPATemplateParameters(string directory = default(string), string templateTypeId = default(string), string description = default(string), List accounts = default(List), List benchmarks = default(List), List columns = default(List), PADateParameters dates = default(PADateParameters), List groups = default(List), string currencyisocode = default(string), string componentdetail = default(string), TemplateContentTypes content = default(TemplateContentTypes)) + { + // to ensure "directory" is required (not null) + this.Directory = directory ?? throw new ArgumentNullException("directory is a required property for UnlinkedPATemplateParameters and cannot be null"); + // to ensure "templateTypeId" is required (not null) + this.TemplateTypeId = templateTypeId ?? throw new ArgumentNullException("templateTypeId is a required property for UnlinkedPATemplateParameters and cannot be null"); + this.Description = description; + this.Accounts = accounts; + this.Benchmarks = benchmarks; + this.Columns = columns; + this.Dates = dates; + this.Groups = groups; + this.Currencyisocode = currencyisocode; + this.Componentdetail = componentdetail; + this.Content = content; + } + + /// + /// The directory to create an unlinked PA template + /// + /// The directory to create an unlinked PA template + [DataMember(Name = "directory", IsRequired = true, EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Template type id + /// + /// Template type id + [DataMember(Name = "templateTypeId", IsRequired = true, EmitDefaultValue = false)] + public string TemplateTypeId { get; set; } + + /// + /// Template description + /// + /// Template description + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// List of accounts + /// + /// List of accounts + [DataMember(Name = "accounts", EmitDefaultValue = false)] + public List Accounts { get; set; } + + /// + /// List of benchmarks + /// + /// List of benchmarks + [DataMember(Name = "benchmarks", EmitDefaultValue = false)] + public List Benchmarks { get; set; } + + /// + /// List of columns for the PA calculation + /// + /// List of columns for the PA calculation + [DataMember(Name = "columns", EmitDefaultValue = false)] + public List Columns { get; set; } + + /// + /// Gets or Sets Dates + /// + [DataMember(Name = "dates", EmitDefaultValue = false)] + public PADateParameters Dates { get; set; } + + /// + /// List of groupings for the PA calculation + /// + /// List of groupings for the PA calculation + [DataMember(Name = "groups", EmitDefaultValue = false)] + public List Groups { get; set; } + + /// + /// Currency ISO code for calculation. + /// + /// Currency ISO code for calculation. + [DataMember(Name = "currencyisocode", EmitDefaultValue = false)] + public string Currencyisocode { get; set; } + + /// + /// PA storage type. It can be GROUPS or TOTALS or SECURITIES. + /// + /// PA storage type. It can be GROUPS or TOTALS or SECURITIES. + [DataMember(Name = "componentdetail", EmitDefaultValue = false)] + public string Componentdetail { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public TemplateContentTypes Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateParameters {\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" TemplateTypeId: ").Append(TemplateTypeId).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Accounts: ").Append(Accounts).Append("\n"); + sb.Append(" Benchmarks: ").Append(Benchmarks).Append("\n"); + sb.Append(" Columns: ").Append(Columns).Append("\n"); + sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Currencyisocode: ").Append(Currencyisocode).Append("\n"); + sb.Append(" Componentdetail: ").Append(Componentdetail).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateParameters); + } + + /// + /// Returns true if UnlinkedPATemplateParameters instances are equal + /// + /// Instance of UnlinkedPATemplateParameters to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateParameters input) + { + if (input == null) + return false; + + return + ( + this.Directory == input.Directory || + (this.Directory != null && + this.Directory.Equals(input.Directory)) + ) && + ( + this.TemplateTypeId == input.TemplateTypeId || + (this.TemplateTypeId != null && + this.TemplateTypeId.Equals(input.TemplateTypeId)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) + ) && + ( + this.Benchmarks == input.Benchmarks || + this.Benchmarks != null && + input.Benchmarks != null && + this.Benchmarks.SequenceEqual(input.Benchmarks) + ) && + ( + this.Columns == input.Columns || + this.Columns != null && + input.Columns != null && + this.Columns.SequenceEqual(input.Columns) + ) && + ( + this.Dates == input.Dates || + (this.Dates != null && + this.Dates.Equals(input.Dates)) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + input.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Currencyisocode == input.Currencyisocode || + (this.Currencyisocode != null && + this.Currencyisocode.Equals(input.Currencyisocode)) + ) && + ( + this.Componentdetail == input.Componentdetail || + (this.Componentdetail != null && + this.Componentdetail.Equals(input.Componentdetail)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Directory != null) + hashCode = hashCode * 59 + this.Directory.GetHashCode(); + if (this.TemplateTypeId != null) + hashCode = hashCode * 59 + this.TemplateTypeId.GetHashCode(); + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Accounts != null) + hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + if (this.Benchmarks != null) + hashCode = hashCode * 59 + this.Benchmarks.GetHashCode(); + if (this.Columns != null) + hashCode = hashCode * 59 + this.Columns.GetHashCode(); + if (this.Dates != null) + hashCode = hashCode * 59 + this.Dates.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Currencyisocode != null) + hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); + if (this.Componentdetail != null) + hashCode = hashCode * 59 + this.Componentdetail.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParametersRoot.cs new file mode 100644 index 00000000..c053b525 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParametersRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateParametersRoot + /// + [DataContract(Name = "UnlinkedPATemplateParametersRoot")] + public partial class UnlinkedPATemplateParametersRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplateParametersRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public UnlinkedPATemplateParametersRoot(UnlinkedPATemplateParameters data = default(UnlinkedPATemplateParameters), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for UnlinkedPATemplateParametersRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public UnlinkedPATemplateParameters Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateParametersRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateParametersRoot); + } + + /// + /// Returns true if UnlinkedPATemplateParametersRoot instances are equal + /// + /// Instance of UnlinkedPATemplateParametersRoot to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateParametersRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateRoot.cs new file mode 100644 index 00000000..760d6fd4 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateRoot + /// + [DataContract(Name = "UnlinkedPATemplateRoot")] + public partial class UnlinkedPATemplateRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplateRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public UnlinkedPATemplateRoot(UnlinkedPATemplate data = default(UnlinkedPATemplate), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for UnlinkedPATemplateRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public UnlinkedPATemplate Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateRoot); + } + + /// + /// Returns true if UnlinkedPATemplateRoot instances are equal + /// + /// Instance of UnlinkedPATemplateRoot to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummary.cs new file mode 100644 index 00000000..efcc375e --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummary.cs @@ -0,0 +1,158 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateSummary + /// + [DataContract(Name = "UnlinkedPATemplateSummary")] + public partial class UnlinkedPATemplateSummary : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// description. + /// name. + /// category. + public UnlinkedPATemplateSummary(string description = default(string), string name = default(string), string category = default(string)) + { + this.Description = description; + this.Name = name; + this.Category = category; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Category + /// + [DataMember(Name = "category", EmitDefaultValue = false)] + public string Category { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateSummary {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateSummary); + } + + /// + /// Returns true if UnlinkedPATemplateSummary instances are equal + /// + /// Instance of UnlinkedPATemplateSummary to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateSummary input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Name != null) + hashCode = hashCode * 59 + this.Name.GetHashCode(); + if (this.Category != null) + hashCode = hashCode * 59 + this.Category.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummaryRoot.cs new file mode 100644 index 00000000..8f6d4650 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummaryRoot.cs @@ -0,0 +1,149 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateSummaryRoot + /// + [DataContract(Name = "UnlinkedPATemplateSummaryRoot")] + public partial class UnlinkedPATemplateSummaryRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplateSummaryRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public UnlinkedPATemplateSummaryRoot(Dictionary data = default(Dictionary), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for UnlinkedPATemplateSummaryRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public Dictionary Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateSummaryRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateSummaryRoot); + } + + /// + /// Returns true if UnlinkedPATemplateSummaryRoot instances are equal + /// + /// Instance of UnlinkedPATemplateSummaryRoot to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateSummaryRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + this.Data != null && + input.Data != null && + this.Data.SequenceEqual(input.Data) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParameters.cs new file mode 100644 index 00000000..c29ef22b --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParameters.cs @@ -0,0 +1,265 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateUpdateParameters + /// + [DataContract(Name = "UnlinkedPATemplateUpdateParameters")] + public partial class UnlinkedPATemplateUpdateParameters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Template description. + /// List of accounts. + /// List of benchmarks. + /// List of columns for the PA calculation. + /// dates. + /// List of groupings for the PA calculation. + /// Currency ISO code for calculation.. + /// PA storage type. It can be GROUPS or TOTALS or SECURITIES.. + /// content. + public UnlinkedPATemplateUpdateParameters(string description = default(string), List accounts = default(List), List benchmarks = default(List), List columns = default(List), PADateParameters dates = default(PADateParameters), List groups = default(List), string currencyisocode = default(string), string componentdetail = default(string), TemplateContentTypes content = default(TemplateContentTypes)) + { + this.Description = description; + this.Accounts = accounts; + this.Benchmarks = benchmarks; + this.Columns = columns; + this.Dates = dates; + this.Groups = groups; + this.Currencyisocode = currencyisocode; + this.Componentdetail = componentdetail; + this.Content = content; + } + + /// + /// Template description + /// + /// Template description + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + + /// + /// List of accounts + /// + /// List of accounts + [DataMember(Name = "accounts", EmitDefaultValue = false)] + public List Accounts { get; set; } + + /// + /// List of benchmarks + /// + /// List of benchmarks + [DataMember(Name = "benchmarks", EmitDefaultValue = false)] + public List Benchmarks { get; set; } + + /// + /// List of columns for the PA calculation + /// + /// List of columns for the PA calculation + [DataMember(Name = "columns", EmitDefaultValue = false)] + public List Columns { get; set; } + + /// + /// Gets or Sets Dates + /// + [DataMember(Name = "dates", EmitDefaultValue = false)] + public PADateParameters Dates { get; set; } + + /// + /// List of groupings for the PA calculation + /// + /// List of groupings for the PA calculation + [DataMember(Name = "groups", EmitDefaultValue = false)] + public List Groups { get; set; } + + /// + /// Currency ISO code for calculation. + /// + /// Currency ISO code for calculation. + [DataMember(Name = "currencyisocode", EmitDefaultValue = false)] + public string Currencyisocode { get; set; } + + /// + /// PA storage type. It can be GROUPS or TOTALS or SECURITIES. + /// + /// PA storage type. It can be GROUPS or TOTALS or SECURITIES. + [DataMember(Name = "componentdetail", EmitDefaultValue = false)] + public string Componentdetail { get; set; } + + /// + /// Gets or Sets Content + /// + [DataMember(Name = "content", EmitDefaultValue = false)] + public TemplateContentTypes Content { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateUpdateParameters {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Accounts: ").Append(Accounts).Append("\n"); + sb.Append(" Benchmarks: ").Append(Benchmarks).Append("\n"); + sb.Append(" Columns: ").Append(Columns).Append("\n"); + sb.Append(" Dates: ").Append(Dates).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Currencyisocode: ").Append(Currencyisocode).Append("\n"); + sb.Append(" Componentdetail: ").Append(Componentdetail).Append("\n"); + sb.Append(" Content: ").Append(Content).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateUpdateParameters); + } + + /// + /// Returns true if UnlinkedPATemplateUpdateParameters instances are equal + /// + /// Instance of UnlinkedPATemplateUpdateParameters to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateUpdateParameters input) + { + if (input == null) + return false; + + return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && + ( + this.Accounts == input.Accounts || + this.Accounts != null && + input.Accounts != null && + this.Accounts.SequenceEqual(input.Accounts) + ) && + ( + this.Benchmarks == input.Benchmarks || + this.Benchmarks != null && + input.Benchmarks != null && + this.Benchmarks.SequenceEqual(input.Benchmarks) + ) && + ( + this.Columns == input.Columns || + this.Columns != null && + input.Columns != null && + this.Columns.SequenceEqual(input.Columns) + ) && + ( + this.Dates == input.Dates || + (this.Dates != null && + this.Dates.Equals(input.Dates)) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + input.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Currencyisocode == input.Currencyisocode || + (this.Currencyisocode != null && + this.Currencyisocode.Equals(input.Currencyisocode)) + ) && + ( + this.Componentdetail == input.Componentdetail || + (this.Componentdetail != null && + this.Componentdetail.Equals(input.Componentdetail)) + ) && + ( + this.Content == input.Content || + (this.Content != null && + this.Content.Equals(input.Content)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Description != null) + hashCode = hashCode * 59 + this.Description.GetHashCode(); + if (this.Accounts != null) + hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + if (this.Benchmarks != null) + hashCode = hashCode * 59 + this.Benchmarks.GetHashCode(); + if (this.Columns != null) + hashCode = hashCode * 59 + this.Columns.GetHashCode(); + if (this.Dates != null) + hashCode = hashCode * 59 + this.Dates.GetHashCode(); + if (this.Groups != null) + hashCode = hashCode * 59 + this.Groups.GetHashCode(); + if (this.Currencyisocode != null) + hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); + if (this.Componentdetail != null) + hashCode = hashCode * 59 + this.Componentdetail.GetHashCode(); + if (this.Content != null) + hashCode = hashCode * 59 + this.Content.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParametersRoot.cs new file mode 100644 index 00000000..ac3a8869 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParametersRoot.cs @@ -0,0 +1,148 @@ +/* + * Engines API + * + * Allow clients to fetch Analytics through APIs. + * + * The version of the OpenAPI document: v3:[pa,spar,vault,pub,quant,fi,axp,afi,npo,bpm,fpo,others],v1:[fiab] + * Contact: analytics.api.support@factset.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// UnlinkedPATemplateUpdateParametersRoot + /// + [DataContract(Name = "UnlinkedPATemplateUpdateParametersRoot")] + public partial class UnlinkedPATemplateUpdateParametersRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplateUpdateParametersRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public UnlinkedPATemplateUpdateParametersRoot(UnlinkedPATemplateUpdateParameters data = default(UnlinkedPATemplateUpdateParameters), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + this.Data = data ?? throw new ArgumentNullException("data is a required property for UnlinkedPATemplateUpdateParametersRoot and cannot be null"); + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public UnlinkedPATemplateUpdateParameters Data { get; set; } + + /// + /// Gets or Sets Meta + /// + [DataMember(Name = "meta", EmitDefaultValue = true)] + public Object Meta { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateUpdateParametersRoot {\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Meta: ").Append(Meta).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as UnlinkedPATemplateUpdateParametersRoot); + } + + /// + /// Returns true if UnlinkedPATemplateUpdateParametersRoot instances are equal + /// + /// Instance of UnlinkedPATemplateUpdateParametersRoot to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateUpdateParametersRoot input) + { + if (input == null) + return false; + + return + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Meta == input.Meta || + (this.Meta != null && + this.Meta.Equals(input.Meta)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Data != null) + hashCode = hashCode * 59 + this.Data.GetHashCode(); + if (this.Meta != null) + hashCode = hashCode * 59 + this.Meta.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponent.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponent.cs index 0e8ec220..8b1ac421 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponent.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponent.cs @@ -43,7 +43,8 @@ public partial class VaultComponent : IEquatable, IValidatableOb /// Snapshot. /// Component name.. /// Component category.. - public VaultComponent(string id = default(string), VaultIdentifier account = default(VaultIdentifier), VaultIdentifier benchmark = default(VaultIdentifier), string currencyisocode = default(string), VaultDateParameters dates = default(VaultDateParameters), bool snapshot = default(bool), string name = default(string), string category = default(string)) + /// Component type.. + public VaultComponent(string id = default(string), VaultIdentifier account = default(VaultIdentifier), VaultIdentifier benchmark = default(VaultIdentifier), string currencyisocode = default(string), VaultDateParameters dates = default(VaultDateParameters), bool snapshot = default(bool), string name = default(string), string category = default(string), string type = default(string)) { this.Id = id; this.Account = account; @@ -53,6 +54,7 @@ public partial class VaultComponent : IEquatable, IValidatableOb this.Snapshot = snapshot; this.Name = name; this.Category = category; + this.Type = type; } /// @@ -108,6 +110,13 @@ public partial class VaultComponent : IEquatable, IValidatableOb [DataMember(Name = "category", EmitDefaultValue = false)] public string Category { get; set; } + /// + /// Component type. + /// + /// Component type. + [DataMember(Name = "type", EmitDefaultValue = false)] + public string Type { get; set; } + /// /// Returns the string presentation of the object /// @@ -124,6 +133,7 @@ public override string ToString() sb.Append(" Snapshot: ").Append(Snapshot).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -196,6 +206,11 @@ public bool Equals(VaultComponent input) this.Category == input.Category || (this.Category != null && this.Category.Equals(input.Category)) + ) && + ( + this.Type == input.Type || + (this.Type != null && + this.Type.Equals(input.Type)) ); } @@ -223,6 +238,8 @@ public override int GetHashCode() hashCode = hashCode * 59 + this.Name.GetHashCode(); if (this.Category != null) hashCode = hashCode * 59 + this.Category.GetHashCode(); + if (this.Type != null) + hashCode = hashCode * 59 + this.Type.GetHashCode(); return hashCode; } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponentRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponentRoot.cs index 2d70f9d8..4abf87a2 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponentRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponentRoot.cs @@ -58,7 +58,7 @@ protected VaultComponentRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationRoot.cs index 846dc39d..07680d6a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationRoot.cs @@ -58,7 +58,7 @@ protected VaultConfigurationRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummaryRoot.cs index c91951c8..a4bfd9b4 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummaryRoot.cs @@ -58,7 +58,7 @@ protected VaultConfigurationSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// From b6a08fc8364deb00de612e157c756bd222fb98e9 Mon Sep 17 00:00:00 2001 From: factset-sdk-bot Date: Mon, 13 Sep 2021 18:46:47 +0000 Subject: [PATCH 2/4] feat(sdk): Auto-commit from 'analyticsapi-engines-sdk-generator' repository PR 43 for SDK version v5.2.0 --- .../Api/AFIOptimizerApi.cs | 280 +++++------------- .../Api/AXPOptimizerApi.cs | 280 +++++------------- .../Api/AccountsApi.cs | 36 +-- .../Api/BPMOptimizerApi.cs | 280 +++++------------- .../Api/BenchmarksApi.cs | 19 +- .../Api/ColumnStatisticsApi.cs | 15 +- .../Api/ColumnsApi.cs | 32 +- .../Api/ComponentsApi.cs | 87 +----- .../Api/ConfigurationsApi.cs | 36 +-- .../Api/CurrenciesApi.cs | 15 +- .../Api/DatesApi.cs | 36 +-- .../Api/DocumentsApi.cs | 70 +---- .../Api/FIABCalculationsApi.cs | 69 ++--- .../Api/FICalculationsApi.cs | 280 +++++------------- .../Api/FPOOptimizerApi.cs | 280 +++++------------- .../Api/FrequenciesApi.cs | 41 +-- .../Api/GroupsApi.cs | 15 +- .../Api/LinkedPATemplatesApi.cs | 99 ++----- .../Api/NPOOptimizerApi.cs | 280 +++++------------- .../Api/PACalculationsApi.cs | 250 ++++------------ .../Api/PubCalculationsApi.cs | 250 ++++------------ .../Api/QuantCalculationsApi.cs | 267 ++++------------- .../Api/SPARCalculationsApi.cs | 250 ++++------------ .../Api/StrategyDocumentsApi.cs | 87 +----- .../Api/TemplatedPAComponentsApi.cs | 65 +--- .../Api/UnlinkedPATemplatesApi.cs | 127 ++------ .../Api/VaultCalculationsApi.cs | 250 ++++------------ .../Client/ApiClient.cs | 166 +++-------- .../Client/ApiResponse.cs | 2 +- .../Client/RequestOptions.cs | 5 - .../FactSet.AnalyticsAPI.Engines.csproj | 3 +- 31 files changed, 920 insertions(+), 3052 deletions(-) diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs index 07647d06..45208d62 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of Object(null) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get AFI optimization parameters by id /// @@ -98,10 +98,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - object GetOptimizationStatusById(string id); + /// ObjectRoot + ObjectRoot GetOptimizationStatusById(string id); /// /// Get AFI optimization status by id @@ -111,10 +109,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run AFI optimization /// @@ -125,10 +121,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); /// /// Create and Run AFI optimization @@ -140,10 +134,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); /// /// Create or Update AFI optimization and run it. /// @@ -155,10 +147,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); /// /// Create or Update AFI optimization and run it. @@ -171,10 +161,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -205,8 +193,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization parameters by id /// @@ -228,7 +216,7 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of AFIOptimizationParametersRoot + /// Task of ApiResponse (AFIOptimizationParametersRoot) System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization result by id @@ -251,7 +239,7 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get AFI optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization status by id @@ -262,10 +250,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization status by id @@ -276,10 +262,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run AFI optimization /// @@ -291,10 +275,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run AFI optimization @@ -307,10 +289,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update AFI optimization and run it. /// @@ -323,10 +303,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update AFI optimization and run it. @@ -340,10 +318,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -480,8 +456,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -499,12 +475,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -527,7 +497,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -556,8 +526,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -576,11 +546,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -605,7 +570,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -650,13 +615,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(AFIOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -709,7 +667,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of AFIOptimizationParametersRoot + /// Task of ApiResponse (AFIOptimizationParametersRoot) public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -727,12 +685,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(AFIOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -802,13 +754,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -861,7 +806,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get AFI optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -879,12 +824,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -925,12 +864,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - public object GetOptimizationStatusById(string id) + /// ObjectRoot + public ObjectRoot GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -939,10 +876,8 @@ public object GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -958,13 +893,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +915,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1004,12 +932,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1019,10 +945,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1039,12 +963,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1069,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1087,12 +1005,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); return localVarResponse.Data; } @@ -1103,10 +1019,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1119,14 +1033,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1157,7 +1063,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1176,12 +1082,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1193,10 +1097,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1210,13 +1112,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1249,7 +1144,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1268,12 +1163,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); return localVarResponse.Data; } @@ -1285,10 +1178,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1305,15 +1196,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1345,7 +1227,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1365,12 +1247,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1383,10 +1263,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1404,14 +1282,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1445,7 +1315,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1457,4 +1327,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs index d4edee1e..7e7d120a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of Object(null) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get Axioma optimization parameters by id /// @@ -98,10 +98,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - object GetOptimizationStatusById(string id); + /// ObjectRoot + ObjectRoot GetOptimizationStatusById(string id); /// /// Get Axioma optimization status by id @@ -111,10 +109,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run Axioma optimization /// @@ -125,10 +121,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); /// /// Create and Run Axioma optimization @@ -140,10 +134,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); /// /// Create or Update Axioma optimization and run it. /// @@ -155,10 +147,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); /// /// Create or Update Axioma optimization and run it. @@ -171,10 +161,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -205,8 +193,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization parameters by id /// @@ -228,7 +216,7 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of AxiomaEquityOptimizationParametersRoot + /// Task of ApiResponse (AxiomaEquityOptimizationParametersRoot) System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization result by id @@ -251,7 +239,7 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get Axioma optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization status by id @@ -262,10 +250,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization status by id @@ -276,10 +262,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Axioma optimization /// @@ -291,10 +275,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Axioma optimization @@ -307,10 +289,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Axioma optimization and run it. /// @@ -323,10 +303,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Axioma optimization and run it. @@ -340,10 +318,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -480,8 +456,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -499,12 +475,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -527,7 +497,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -556,8 +526,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -576,11 +546,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -605,7 +570,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -650,13 +615,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(AxiomaEquityOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -709,7 +667,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of AxiomaEquityOptimizationParametersRoot + /// Task of ApiResponse (AxiomaEquityOptimizationParametersRoot) public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -727,12 +685,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(AxiomaEquityOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -802,13 +754,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -861,7 +806,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get Axioma optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -879,12 +824,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -925,12 +864,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - public object GetOptimizationStatusById(string id) + /// ObjectRoot + public ObjectRoot GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -939,10 +876,8 @@ public object GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -958,13 +893,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +915,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1004,12 +932,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1019,10 +945,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1039,12 +963,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1069,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1087,12 +1005,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); return localVarResponse.Data; } @@ -1103,10 +1019,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1119,14 +1033,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1157,7 +1063,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1176,12 +1082,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1193,10 +1097,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1210,13 +1112,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1249,7 +1144,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1268,12 +1163,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); return localVarResponse.Data; } @@ -1285,10 +1178,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1305,15 +1196,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1345,7 +1227,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1365,12 +1247,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1383,10 +1263,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1404,14 +1282,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1445,7 +1315,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1457,4 +1327,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs index 95d0b53f..3cb03ef4 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs @@ -99,7 +99,7 @@ public interface IAccountsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the accounts and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of AccountDirectoriesRoot + /// Task of ApiResponse (AccountDirectoriesRoot) System.Threading.Tasks.Task> GetAccountsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR account returns type details @@ -122,7 +122,7 @@ public interface IAccountsApiAsync : IApiAccessor /// Thrown when fails to make API call /// URL encoded account path /// Cancellation Token to cancel the request. - /// Task of ApiResponse of SPARAccountsRoot + /// Task of ApiResponse (SPARAccountsRoot) System.Threading.Tasks.Task> GetSPARReturnsTypeWithHttpInfoAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -278,13 +278,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(AccountDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -337,7 +330,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G /// Thrown when fails to make API call /// The directory to get the accounts and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of AccountDirectoriesRoot + /// Task of ApiResponse (AccountDirectoriesRoot) public async System.Threading.Tasks.Task> GetAccountsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -355,12 +348,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(AccountDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -430,13 +417,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(SPARAccountsRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -489,7 +469,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR /// Thrown when fails to make API call /// URL encoded account path /// Cancellation Token to cancel the request. - /// Task of ApiResponse of SPARAccountsRoot + /// Task of ApiResponse (SPARAccountsRoot) public async System.Threading.Tasks.Task> GetSPARReturnsTypeWithHttpInfoAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'accountPath' is set @@ -507,12 +487,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(SPARAccountsRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -549,4 +523,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs index 95323450..ec96cb66 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of Object(null) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get BPM optimization parameters by id /// @@ -98,10 +98,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - object GetOptimizationStatusById(string id); + /// ObjectRoot + ObjectRoot GetOptimizationStatusById(string id); /// /// Get BPM optimization status by id @@ -111,10 +109,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run BPM optimization /// @@ -125,10 +121,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); /// /// Create and Run BPM optimization @@ -140,10 +134,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); /// /// Create or Update BPM optimization and run it. /// @@ -155,10 +147,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); /// /// Create or Update BPM optimization and run it. @@ -171,10 +161,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -205,8 +193,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization parameters by id /// @@ -228,7 +216,7 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of BPMOptimizationParametersRoot + /// Task of ApiResponse (BPMOptimizationParametersRoot) System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization result by id @@ -251,7 +239,7 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get BPM optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization status by id @@ -262,10 +250,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization status by id @@ -276,10 +262,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run BPM optimization /// @@ -291,10 +275,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run BPM optimization @@ -307,10 +289,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update BPM optimization and run it. /// @@ -323,10 +303,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update BPM optimization and run it. @@ -340,10 +318,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -480,8 +456,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -499,12 +475,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -527,7 +497,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -556,8 +526,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -576,11 +546,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -605,7 +570,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -650,13 +615,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(BPMOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -709,7 +667,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of BPMOptimizationParametersRoot + /// Task of ApiResponse (BPMOptimizationParametersRoot) public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -727,12 +685,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(BPMOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -802,13 +754,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -861,7 +806,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get BPM optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -879,12 +824,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -925,12 +864,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - public object GetOptimizationStatusById(string id) + /// ObjectRoot + public ObjectRoot GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -939,10 +876,8 @@ public object GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -958,13 +893,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +915,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1004,12 +932,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1019,10 +945,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1039,12 +963,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1069,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1087,12 +1005,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); return localVarResponse.Data; } @@ -1103,10 +1019,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1119,14 +1033,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1157,7 +1063,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1176,12 +1082,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1193,10 +1097,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1210,13 +1112,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1249,7 +1144,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1268,12 +1163,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); return localVarResponse.Data; } @@ -1285,10 +1178,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1305,15 +1196,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1345,7 +1227,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1365,12 +1247,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1383,10 +1263,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1404,14 +1282,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1445,7 +1315,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1457,4 +1327,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs index 74190fdf..1f2e4e1b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs @@ -78,7 +78,7 @@ public interface IBenchmarksApiAsync : IApiAccessor /// Thrown when fails to make API call /// Benchmark Identifier /// Cancellation Token to cancel the request. - /// Task of ApiResponse of SPARBenchmarkRoot + /// Task of ApiResponse (SPARBenchmarkRoot) System.Threading.Tasks.Task> GetSPARBenchmarkByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -234,13 +234,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(SPARBenchmarkRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -293,7 +286,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA /// Thrown when fails to make API call /// Benchmark Identifier /// Cancellation Token to cancel the request. - /// Task of ApiResponse of SPARBenchmarkRoot + /// Task of ApiResponse (SPARBenchmarkRoot) public async System.Threading.Tasks.Task> GetSPARBenchmarkByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -311,12 +304,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(SPARBenchmarkRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -353,4 +340,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs index c17acca0..1e95041f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs @@ -74,7 +74,7 @@ public interface IColumnStatisticsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ColumnStatisticRoot + /// Task of ApiResponse (ColumnStatisticRoot) System.Threading.Tasks.Task> GetPAColumnStatisticsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -224,11 +224,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ColumnStatisticRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -278,7 +273,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ColumnStatisticRoot + /// Task of ApiResponse (ColumnStatisticRoot) public async System.Threading.Tasks.Task> GetPAColumnStatisticsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -292,10 +287,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ColumnStatisticRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -331,4 +322,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs index d978805b..87832ce8 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs @@ -103,7 +103,7 @@ public interface IColumnsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a column /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ColumnRoot + /// Task of ApiResponse (ColumnRoot) System.Threading.Tasks.Task> GetPAColumnByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA columns @@ -130,7 +130,7 @@ public interface IColumnsApiAsync : IApiAccessor /// Column category (optional, default to "") /// The directory to get the columns in (optional, default to "") /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ColumnSummaryRoot + /// Task of ApiResponse (ColumnSummaryRoot) System.Threading.Tasks.Task> GetPAColumnsWithHttpInfoAsync(string name = default(string), string category = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -286,13 +286,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ColumnRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -345,7 +338,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy /// Thrown when fails to make API call /// Unique identifier for a column /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ColumnRoot + /// Task of ApiResponse (ColumnRoot) public async System.Threading.Tasks.Task> GetPAColumnByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -363,12 +356,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ColumnRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -438,11 +425,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ColumnSummaryRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -510,7 +492,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy /// Column category (optional, default to "") /// The directory to get the columns in (optional, default to "") /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ColumnSummaryRoot + /// Task of ApiResponse (ColumnSummaryRoot) public async System.Threading.Tasks.Task> GetPAColumnsWithHttpInfoAsync(string name = default(string), string category = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -524,10 +506,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ColumnSummaryRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -575,4 +553,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs index c64484a0..39dcc0d1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs @@ -164,7 +164,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse of PAComponentRoot + /// Task of ApiResponse (PAComponentRoot) System.Threading.Tasks.Task> GetPAComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA components @@ -189,7 +189,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Document Name (optional) /// Directory to get the components (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ComponentSummaryRoot + /// Task of ApiResponse (ComponentSummaryRoot) System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR components @@ -212,7 +212,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ComponentSummaryRoot + /// Task of ApiResponse (ComponentSummaryRoot) System.Threading.Tasks.Task> GetSPARComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault component by id @@ -235,7 +235,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a vault component /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultComponentRoot + /// Task of ApiResponse (VaultComponentRoot) System.Threading.Tasks.Task> GetVaultComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault components @@ -258,7 +258,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ComponentSummaryRoot + /// Task of ApiResponse (ComponentSummaryRoot) System.Threading.Tasks.Task> GetVaultComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -414,13 +414,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(PAComponentRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -473,7 +466,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Thrown when fails to make API call /// Unique identifier for a PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse of PAComponentRoot + /// Task of ApiResponse (PAComponentRoot) public async System.Threading.Tasks.Task> GetPAComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -491,12 +484,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(PAComponentRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -564,13 +551,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -632,7 +612,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Document Name (optional) /// Directory to get the components (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ComponentSummaryRoot + /// Task of ApiResponse (ComponentSummaryRoot) public async System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -646,12 +626,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -728,13 +702,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -787,7 +754,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ComponentSummaryRoot + /// Task of ApiResponse (ComponentSummaryRoot) public async System.Threading.Tasks.Task> GetSPARComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'document' is set @@ -805,12 +772,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -880,13 +841,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(VaultComponentRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -939,7 +893,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa /// Thrown when fails to make API call /// Unique identifier for a vault component /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultComponentRoot + /// Task of ApiResponse (VaultComponentRoot) public async System.Threading.Tasks.Task> GetVaultComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -957,12 +911,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(VaultComponentRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1032,13 +980,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1091,7 +1032,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ComponentSummaryRoot + /// Task of ApiResponse (ComponentSummaryRoot) public async System.Threading.Tasks.Task> GetVaultComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'document' is set @@ -1109,12 +1050,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1151,4 +1086,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs index b1b5441f..818ed743 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs @@ -99,7 +99,7 @@ public interface IConfigurationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Vault configuration id to get the details of /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultConfigurationRoot + /// Task of ApiResponse (VaultConfigurationRoot) System.Threading.Tasks.Task> GetVaultConfigurationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault configurations @@ -122,7 +122,7 @@ public interface IConfigurationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Required account query parameter to filter configurations for a specific account /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultConfigurationSummaryRoot + /// Task of ApiResponse (VaultConfigurationSummaryRoot) System.Threading.Tasks.Task> GetVaultConfigurationsWithHttpInfoAsync(string account, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -278,13 +278,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(VaultConfigurationRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -337,7 +330,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G /// Thrown when fails to make API call /// Vault configuration id to get the details of /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultConfigurationRoot + /// Task of ApiResponse (VaultConfigurationRoot) public async System.Threading.Tasks.Task> GetVaultConfigurationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -355,12 +348,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(VaultConfigurationRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -430,13 +417,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(VaultConfigurationSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -489,7 +469,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Required account query parameter to filter configurations for a specific account /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultConfigurationSummaryRoot + /// Task of ApiResponse (VaultConfigurationSummaryRoot) public async System.Threading.Tasks.Task> GetVaultConfigurationsWithHttpInfoAsync(string account, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'account' is set @@ -507,12 +487,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(VaultConfigurationSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -549,4 +523,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CurrencyRoot + /// Task of ApiResponse (CurrencyRoot) System.Threading.Tasks.Task> GetCurrenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -224,11 +224,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CurrencyRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -278,7 +273,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CurrencyRoot + /// Task of ApiResponse (CurrencyRoot) public async System.Threading.Tasks.Task> GetCurrenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -292,10 +287,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CurrencyRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -331,4 +322,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs index 77465d62..04935c77 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs @@ -117,7 +117,7 @@ public interface IDatesApiAsync : IApiAccessor /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DateParametersSummaryRoot + /// Task of ApiResponse (DateParametersSummaryRoot) System.Threading.Tasks.Task> ConvertPADatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Convert Vault dates to absolute format @@ -146,7 +146,7 @@ public interface IDatesApiAsync : IApiAccessor /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DateParametersSummaryRoot + /// Task of ApiResponse (DateParametersSummaryRoot) System.Threading.Tasks.Task> ConvertVaultDatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -316,13 +316,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DateParametersSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -387,7 +380,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DateParametersSummaryRoot + /// Task of ApiResponse (DateParametersSummaryRoot) public async System.Threading.Tasks.Task> ConvertPADatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'enddate' is set @@ -413,12 +406,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DateParametersSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -508,13 +495,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DateParametersSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -579,7 +559,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DateParametersSummaryRoot + /// Task of ApiResponse (DateParametersSummaryRoot) public async System.Threading.Tasks.Task> ConvertVaultDatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'enddate' is set @@ -605,12 +585,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DateParametersSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -653,4 +627,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs index b0ab1c1c..3641c235 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs @@ -141,7 +141,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetPA3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Gets Publisher documents and sub-directories in a directory @@ -164,7 +164,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetPubDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Gets SPAR3 documents and sub-directories in a directory @@ -187,7 +187,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetSPAR3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault documents and sub-directories in a directory @@ -210,7 +210,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetVaultDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -366,13 +366,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -425,7 +418,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetPA3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -443,12 +436,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -518,13 +505,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -577,7 +557,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetPubDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -595,12 +575,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -670,13 +644,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -729,7 +696,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetSPAR3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -747,12 +714,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -822,13 +783,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -881,7 +835,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetVaultDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -899,12 +853,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -941,4 +889,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs index 9862401d..34c8f3f8 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs @@ -55,7 +55,7 @@ public interface IFIABCalculationsApiSync : IApiAccessor /// This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// Dictionary + /// Dictionary<string, FIABCalculationStatusSummary> Dictionary GetCalculationStatusSummaries(); /// @@ -65,7 +65,7 @@ public interface IFIABCalculationsApiSync : IApiAccessor /// This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary + /// ApiResponse of Dictionary<string, FIABCalculationStatusSummary> ApiResponse> GetCalculationStatusSummariesWithHttpInfo(); /// /// Run FIAB calculation @@ -86,8 +86,8 @@ public interface IFIABCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// (optional) - /// ApiResponse of Object(null) - ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)); + /// ApiResponse of Object(void) + ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)); #endregion Synchronous Operations } @@ -118,7 +118,7 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Run FIAB Calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FIABCalculationStatus + /// Task of ApiResponse (FIABCalculationStatus) System.Threading.Tasks.Task> GetCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get all FIAB calculation summaries @@ -128,7 +128,7 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary + /// Task of Dictionary<string, FIABCalculationStatusSummary> System.Threading.Tasks.Task> GetCalculationStatusSummariesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// @@ -139,7 +139,7 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Dictionary + /// Task of ApiResponse (Dictionary<string, FIABCalculationStatusSummary>) System.Threading.Tasks.Task>> GetCalculationStatusSummariesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Run FIAB calculation @@ -162,8 +162,8 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -318,12 +318,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FIABCalculationStatus) }, - { 202, typeof(FIABCalculationStatus) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -376,7 +370,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Run FIAB Calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FIABCalculationStatus + /// Task of ApiResponse (FIABCalculationStatus) public async System.Threading.Tasks.Task> GetCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -394,11 +388,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FIABCalculationStatus) }, - { 202, typeof(FIABCalculationStatus) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -438,7 +427,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Get all FIAB calculation summaries This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// Dictionary + /// Dictionary<string, FIABCalculationStatusSummary> public Dictionary GetCalculationStatusSummaries() { FactSet.AnalyticsAPI.Engines.Client.ApiResponse> localVarResponse = GetCalculationStatusSummariesWithHttpInfo(); @@ -449,7 +438,7 @@ public Dictionary GetCalculationStatusSumm /// Get all FIAB calculation summaries This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary + /// ApiResponse of Dictionary<string, FIABCalculationStatusSummary> public FactSet.AnalyticsAPI.Engines.Client.ApiResponse> GetCalculationStatusSummariesWithHttpInfo() { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -462,11 +451,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(Dictionary) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -504,7 +488,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary + /// Task of Dictionary<string, FIABCalculationStatusSummary> public async System.Threading.Tasks.Task> GetCalculationStatusSummariesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.ApiResponse> localVarResponse = await GetCalculationStatusSummariesWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); @@ -516,7 +500,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Dictionary + /// Task of ApiResponse (Dictionary<string, FIABCalculationStatusSummary>) public async System.Threading.Tasks.Task>> GetCalculationStatusSummariesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -530,10 +514,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(Dictionary) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -584,8 +564,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// (optional) - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -597,10 +577,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -623,7 +599,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -652,8 +628,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -666,9 +642,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -693,7 +666,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -705,4 +678,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of Object(null) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get FI calculation parameters by id /// @@ -98,10 +98,8 @@ public interface IFICalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - object GetCalculationStatusById(string id); + /// ObjectRoot + ObjectRoot GetCalculationStatusById(string id); /// /// Get FI calculation status by id @@ -111,10 +109,8 @@ public interface IFICalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - ApiResponse GetCalculationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot + ApiResponse GetCalculationStatusByIdWithHttpInfo(string id); /// /// Create and Run FI calculation /// @@ -125,10 +121,8 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// ObjectRoot + ObjectRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); /// /// Create and Run FI calculation @@ -140,10 +134,8 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); /// /// Create or Update FI calculation and run it. /// @@ -155,10 +147,8 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// ObjectRoot + ObjectRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); /// /// Create or Update FI calculation and run it. @@ -171,10 +161,8 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); #endregion Synchronous Operations } @@ -205,8 +193,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation parameters by id /// @@ -228,7 +216,7 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FICalculationParametersRoot + /// Task of ApiResponse (FICalculationParametersRoot) System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation result by id @@ -251,7 +239,7 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get FI calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetCalculationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation status by id @@ -262,10 +250,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation status by id @@ -276,10 +262,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FI calculation /// @@ -291,10 +275,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FI calculation @@ -307,10 +289,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FI calculation and run it. /// @@ -323,10 +303,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FI calculation and run it. @@ -340,10 +318,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -480,8 +456,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -499,12 +475,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -527,7 +497,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -556,8 +526,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -576,11 +546,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -605,7 +570,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -650,13 +615,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(FICalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -709,7 +667,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FICalculationParametersRoot + /// Task of ApiResponse (FICalculationParametersRoot) public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -727,12 +685,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(FICalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -803,13 +755,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -862,7 +807,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Thrown when fails to make API call /// from url, provided from the location header in the Get FI calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetCalculationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -881,12 +826,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -927,12 +866,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - public object GetCalculationStatusById(string id) + /// ObjectRoot + public ObjectRoot GetCalculationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetCalculationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetCalculationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -941,10 +878,8 @@ public object GetCalculationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -961,13 +896,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -990,7 +918,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1007,12 +935,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - public async System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetCalculationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetCalculationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1022,10 +948,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1043,12 +967,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1073,7 +991,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1091,12 +1009,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// ObjectRoot + public ObjectRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); return localVarResponse.Data; } @@ -1107,10 +1023,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1124,14 +1038,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1162,7 +1068,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1181,12 +1087,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1198,10 +1102,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1216,13 +1118,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1255,7 +1150,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1274,12 +1169,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// ObjectRoot + public ObjectRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); return localVarResponse.Data; } @@ -1291,10 +1184,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1312,15 +1203,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1352,7 +1234,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1372,12 +1254,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1390,10 +1270,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1412,14 +1290,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1453,7 +1323,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1465,4 +1335,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationSta } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs index 4f6bd5a9..a2099123 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of Object(null) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get FPO optimization parameters by id /// @@ -100,10 +100,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - object GetOptimizationStatusById(string id); + /// ObjectRoot + ObjectRoot GetOptimizationStatusById(string id); /// /// Get FPO optimization status by id @@ -113,10 +111,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run FPO optimization /// @@ -127,10 +123,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); /// /// Create and Run FPO optimization @@ -142,10 +136,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); /// /// Create or Update FPO optimization and run it. /// @@ -157,10 +149,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); /// /// Create or Update FPO optimization and run it. @@ -173,10 +163,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -207,8 +195,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization parameters by id /// @@ -230,7 +218,7 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FPOOptimizationParametersRoot + /// Task of ApiResponse (FPOOptimizationParametersRoot) System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization result by id @@ -255,7 +243,7 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// from url, provided from the location header in the Get FPO optimization status by id endpoint /// Standard HTTP header. Value can be gzip, compress, deflate, br, identity and/or * (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, string accept = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization status by id @@ -266,10 +254,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization status by id @@ -280,10 +266,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FPO optimization /// @@ -295,10 +279,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FPO optimization @@ -311,10 +293,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FPO optimization and run it. /// @@ -327,10 +307,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FPO optimization and run it. @@ -344,10 +322,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -484,8 +460,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -503,12 +479,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -531,7 +501,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -560,8 +530,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -580,11 +550,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -609,7 +574,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -654,13 +619,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(FPOOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -713,7 +671,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FPOOptimizationParametersRoot + /// Task of ApiResponse (FPOOptimizationParametersRoot) public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -731,12 +689,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(FPOOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -808,13 +760,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -873,7 +818,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponsefrom url, provided from the location header in the Get FPO optimization status by id endpoint /// Standard HTTP header. Value can be gzip, compress, deflate, br, identity and/or * (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, string accept = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -891,12 +836,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -941,12 +880,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - public object GetOptimizationStatusById(string id) + /// ObjectRoot + public ObjectRoot GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -955,10 +892,8 @@ public object GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -974,13 +909,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1003,7 +931,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1020,12 +948,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1035,10 +961,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1055,12 +979,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1085,7 +1003,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1103,12 +1021,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1119,10 +1035,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1135,14 +1049,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1173,7 +1079,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1192,12 +1098,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1209,10 +1113,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1226,13 +1128,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1265,7 +1160,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1284,12 +1179,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1301,10 +1194,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1321,15 +1212,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1361,7 +1243,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1381,12 +1263,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1399,10 +1279,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1420,14 +1298,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1461,7 +1331,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1473,4 +1343,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs index 0bb30a20..45dd9945 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs @@ -112,7 +112,7 @@ public interface IFrequenciesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FrequencyRoot + /// Task of ApiResponse (FrequencyRoot) System.Threading.Tasks.Task> GetPAFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR frequencies @@ -133,7 +133,7 @@ public interface IFrequenciesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FrequencyRoot + /// Task of ApiResponse (FrequencyRoot) System.Threading.Tasks.Task> GetSPARFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault frequencies @@ -154,7 +154,7 @@ public interface IFrequenciesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FrequencyRoot + /// Task of ApiResponse (FrequencyRoot) System.Threading.Tasks.Task> GetVaultFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -304,11 +304,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FrequencyRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -358,7 +353,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FrequencyRoot + /// Task of ApiResponse (FrequencyRoot) public async System.Threading.Tasks.Task> GetPAFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -372,10 +367,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FrequencyRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -438,11 +429,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FrequencyRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -492,7 +478,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FrequencyRoot + /// Task of ApiResponse (FrequencyRoot) public async System.Threading.Tasks.Task> GetSPARFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -506,10 +492,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FrequencyRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -572,11 +554,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FrequencyRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -626,7 +603,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of FrequencyRoot + /// Task of ApiResponse (FrequencyRoot) public async System.Threading.Tasks.Task> GetVaultFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -640,10 +617,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(FrequencyRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -679,4 +652,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs index 789068af..f41c1932 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs @@ -74,7 +74,7 @@ public interface IGroupsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of GroupRoot + /// Task of ApiResponse (GroupRoot) System.Threading.Tasks.Task> GetPAGroupsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -224,11 +224,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(GroupRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -278,7 +273,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of GroupRoot + /// Task of ApiResponse (GroupRoot) public async System.Threading.Tasks.Task> GetPAGroupsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -292,10 +287,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(GroupRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -331,4 +322,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs index 3e93b032..09fea4b4 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs @@ -67,8 +67,8 @@ public interface ILinkedPATemplatesApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Unique identifier for a linked PA template - /// ApiResponse of Object(null) - ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id); /// /// Get linked PA templates /// @@ -168,7 +168,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateSummaryRoot + /// Task of ApiResponse (LinkedPATemplateSummaryRoot) System.Threading.Tasks.Task> CreateLinkedPATemplatesWithHttpInfoAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete a linked PA template. @@ -191,8 +191,8 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get linked PA templates /// @@ -218,7 +218,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Get linked PA templates for documents in document path (optional) /// Get linked PA templates for documents by document name (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateSummaryRoot + /// Task of ApiResponse (LinkedPATemplateSummaryRoot) System.Threading.Tasks.Task> GetLinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get linked PA template by id @@ -241,7 +241,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateRoot + /// Task of ApiResponse (LinkedPATemplateRoot) System.Threading.Tasks.Task> GetLinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update a linked PA template @@ -266,7 +266,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Unique identifier for a linked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateSummaryRoot + /// Task of ApiResponse (LinkedPATemplateSummaryRoot) System.Threading.Tasks.Task> UpdateLinkedPATemplatesWithHttpInfoAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -423,12 +423,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 201, typeof(LinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -481,7 +475,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateSummaryRoot + /// Task of ApiResponse (LinkedPATemplateSummaryRoot) public async System.Threading.Tasks.Task> CreateLinkedPATemplatesWithHttpInfoAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'linkedPATemplateParametersRoot' is set @@ -500,11 +494,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 201, typeof(LinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -556,8 +545,8 @@ public void DeleteLinkedPATemplates(string id) /// /// Thrown when fails to make API call /// Unique identifier for a linked PA template - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -575,12 +564,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -603,7 +586,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -632,8 +615,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -652,11 +635,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -681,7 +659,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -726,13 +704,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(LinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -800,7 +771,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem /// Get linked PA templates for documents in document path (optional) /// Get linked PA templates for documents by document name (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateSummaryRoot + /// Task of ApiResponse (LinkedPATemplateSummaryRoot) public async System.Threading.Tasks.Task> GetLinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -814,12 +785,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(LinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -900,13 +865,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(LinkedPATemplateRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -959,7 +917,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateRoot + /// Task of ApiResponse (LinkedPATemplateRoot) public async System.Threading.Tasks.Task> GetLinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -977,12 +935,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(LinkedPATemplateRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1059,13 +1011,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(LinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1121,7 +1066,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseUnique identifier for a linked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of LinkedPATemplateSummaryRoot + /// Task of ApiResponse (LinkedPATemplateSummaryRoot) public async System.Threading.Tasks.Task> UpdateLinkedPATemplatesWithHttpInfoAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1144,12 +1089,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(LinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1187,4 +1126,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of Object(null) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get NPO optimization parameters by id /// @@ -98,10 +98,8 @@ public interface INPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - object GetOptimizationStatusById(string id); + /// ObjectRoot + ObjectRoot GetOptimizationStatusById(string id); /// /// Get NPO optimization status by id @@ -111,10 +109,8 @@ public interface INPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run NPO optimization /// @@ -125,10 +121,8 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); /// /// Create and Run NPO optimization @@ -140,10 +134,8 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); /// /// Create or Update NPO optimization and run it. /// @@ -155,10 +147,8 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// ObjectRoot + ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); /// /// Create or Update NPO optimization and run it. @@ -171,10 +161,8 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// ApiResponse of ObjectRoot + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -205,8 +193,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization parameters by id /// @@ -228,7 +216,7 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of NPOOptimizationParametersRoot + /// Task of ApiResponse (NPOOptimizationParametersRoot) System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization result by id @@ -251,7 +239,7 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get NPO optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization status by id @@ -262,10 +250,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization status by id @@ -276,10 +262,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run NPO optimization /// @@ -291,10 +275,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run NPO optimization @@ -307,10 +289,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update NPO optimization and run it. /// @@ -323,10 +303,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update NPO optimization and run it. @@ -340,10 +318,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (ObjectRoot) + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -480,8 +456,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -499,12 +475,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -527,7 +497,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -556,8 +526,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -576,11 +546,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -605,7 +570,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -650,13 +615,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(NPOOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -709,7 +667,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of NPOOptimizationParametersRoot + /// Task of ApiResponse (NPOOptimizationParametersRoot) public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -727,12 +685,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(NPOOptimizationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -802,13 +754,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -861,7 +806,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get NPO optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -879,12 +824,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -925,12 +864,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ObjectRoot for 201 status - /// null for 202 status - - public object GetOptimizationStatusById(string id) + /// ObjectRoot + public ObjectRoot GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -939,10 +876,8 @@ public object GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of null for 202 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -958,13 +893,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +915,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1004,12 +932,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot for 201 status - /// Task of null for 202 status - - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1019,10 +945,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of null for 202 status - - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1039,12 +963,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1069,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1087,12 +1005,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1103,10 +1019,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1119,14 +1033,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1157,7 +1063,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1176,12 +1082,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1193,10 +1097,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1210,13 +1112,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1249,7 +1144,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1268,12 +1163,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// CalculationInfoRoot for 202 status - /// ObjectRoot for 201 status - - public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// ObjectRoot + public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1285,10 +1178,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of CalculationInfoRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// ApiResponse of ObjectRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1305,15 +1196,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1345,7 +1227,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1365,12 +1247,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationInfoRoot for 202 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1383,10 +1263,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationInfoRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (ObjectRoot) + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1404,14 +1282,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationInfoRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1445,7 +1315,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1457,4 +1327,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationSt } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs index fd9dc591..09431b08 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs @@ -46,8 +46,8 @@ public interface IPACalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint - /// ApiResponse of Object(null) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get PA calculation parameters by id /// @@ -123,11 +123,8 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// ObjectRoot for 201 status - /// CalculationStatusRoot for 200 status - - object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); /// /// Create and Run PA calculation @@ -139,11 +136,8 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of CalculationStatusRoot for 200 status - - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); /// /// Create or Update PA calculation and run it. /// @@ -155,11 +149,8 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); /// /// Create or Update PA calculation and run it. @@ -172,11 +163,8 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); #endregion Synchronous Operations } @@ -207,8 +195,8 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA calculation parameters by id /// @@ -230,7 +218,7 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of PACalculationParametersRoot + /// Task of ApiResponse (PACalculationParametersRoot) System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA calculation status by id @@ -253,7 +241,7 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA calculation result by id @@ -278,7 +266,7 @@ public interface IPACalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get PA calculation status by id endpoint /// from url, provided from the location header in the Get PA calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run PA calculation @@ -291,11 +279,8 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of ObjectRoot for 201 status - /// Task of CalculationStatusRoot for 200 status - - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run PA calculation @@ -308,11 +293,8 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update PA calculation and run it. /// @@ -325,11 +307,8 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update PA calculation and run it. @@ -343,11 +322,8 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -484,8 +460,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -503,12 +479,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -531,7 +501,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -560,8 +530,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -580,11 +550,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -609,7 +574,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -654,13 +619,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(PACalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -713,7 +671,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of PACalculationParametersRoot + /// Task of ApiResponse (PACalculationParametersRoot) public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -731,12 +689,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(PACalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,14 +758,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -866,7 +810,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -884,13 +828,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -967,13 +904,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1029,7 +959,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// from url, provided from the location header in the Get PA calculation status by id endpoint /// from url, provided from the location header in the Get PA calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1052,12 +982,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1101,13 +1025,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// ObjectRoot for 201 status - /// CalculationStatusRoot for 200 status - - public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); return localVarResponse.Data; } @@ -1118,11 +1039,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of CalculationStatusRoot for 200 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1136,15 +1054,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1175,7 +1084,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1194,13 +1103,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of ObjectRoot for 201 status - /// Task of CalculationStatusRoot for 200 status - - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1212,11 +1118,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1231,14 +1134,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1271,7 +1166,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1290,13 +1185,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); return localVarResponse.Data; } @@ -1308,11 +1200,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1330,16 +1219,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1371,7 +1250,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1391,13 +1270,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1410,11 +1286,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1433,15 +1306,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1475,7 +1339,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1487,4 +1351,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs index 980e55da..c7b009b9 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs @@ -46,8 +46,8 @@ public interface IPubCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint - /// ApiResponse of Object(null) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get Pub calculation parameters by id /// @@ -123,11 +123,8 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// File for 201 status - - object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); /// /// Create and Run Pub calculation @@ -139,11 +136,8 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of File for 201 status - - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); /// /// Create or Update Pub calculation and run it. /// @@ -155,11 +149,8 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// File for 201 status - - object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); /// /// Create or Update Pub calculation and run it. @@ -172,11 +163,8 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of File for 201 status - - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); #endregion Synchronous Operations } @@ -207,8 +195,8 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Pub calculation parameters by id /// @@ -230,7 +218,7 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of PubCalculationParametersRoot + /// Task of ApiResponse (PubCalculationParametersRoot) System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Pub calculation status by id @@ -253,7 +241,7 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Pub calculation result by id @@ -278,7 +266,7 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of System.IO.Stream + /// Task of ApiResponse (System.IO.Stream) System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Pub calculation @@ -291,11 +279,8 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of File for 201 status - - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Pub calculation @@ -308,11 +293,8 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of File for 201 status - - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Pub calculation and run it. /// @@ -325,11 +307,8 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of File for 201 status - - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Pub calculation and run it. @@ -343,11 +322,8 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of File for 201 status - - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -484,8 +460,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -503,12 +479,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -531,7 +501,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -560,8 +530,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -580,11 +550,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -609,7 +574,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -654,13 +619,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(PubCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -713,7 +671,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of PubCalculationParametersRoot + /// Task of ApiResponse (PubCalculationParametersRoot) public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -731,12 +689,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(PubCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,14 +758,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -866,7 +810,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -884,13 +828,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -968,13 +905,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1030,7 +960,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of System.IO.Stream + /// Task of ApiResponse (System.IO.Stream) public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1054,12 +984,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1103,13 +1027,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// File for 201 status - - public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); return localVarResponse.Data; } @@ -1120,11 +1041,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of File for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1138,15 +1056,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/vnd.openxmlformats-officedocument.presentationml.presentation" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1177,7 +1086,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1196,13 +1105,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of File for 201 status - - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1214,11 +1120,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of File for 201 status - - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1233,14 +1136,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/vnd.openxmlformats-officedocument.presentationml.presentation" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1273,7 +1168,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1292,13 +1187,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// File for 201 status - - public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); return localVarResponse.Data; } @@ -1310,11 +1202,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of File for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1331,16 +1220,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1372,7 +1251,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1392,13 +1271,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of File for 201 status - - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1411,11 +1287,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of File for 201 status - - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1433,15 +1306,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1475,7 +1339,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1487,4 +1351,4 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs index d22d84c3..f80bf008 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs @@ -46,8 +46,8 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint - /// ApiResponse of Object(null) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get Quant Engine calculation parameters by id /// @@ -145,11 +145,8 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// CalculationStatusRoot for 202 status - /// ObjectRoot for 201 status - /// CalculationStatusRoot for 200 status - - object PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); /// /// Create and Run Quant Engine calculation @@ -160,11 +157,8 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of CalculationStatusRoot for 200 status - - ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); /// /// Create or update Quant Engine calculation and run it. /// @@ -175,11 +169,8 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - object PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); /// /// Create or update Quant Engine calculation and run it. @@ -191,11 +182,8 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); #endregion Synchronous Operations } @@ -226,8 +214,8 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation parameters by id /// @@ -249,7 +237,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of QuantCalculationParametersRoot + /// Task of ApiResponse (QuantCalculationParametersRoot) System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation status by id @@ -272,7 +260,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation metadata information by id @@ -297,7 +285,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of System.IO.Stream + /// Task of ApiResponse (System.IO.Stream) System.Threading.Tasks.Task> GetCalculationUnitInfoByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation result by id @@ -322,7 +310,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of System.IO.Stream + /// Task of ApiResponse (System.IO.Stream) System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Quant Engine calculation @@ -334,11 +322,8 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of ObjectRoot for 201 status - /// Task of CalculationStatusRoot for 200 status - - System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Quant Engine calculation @@ -350,11 +335,8 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or update Quant Engine calculation and run it. /// @@ -366,11 +348,8 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or update Quant Engine calculation and run it. @@ -383,11 +362,8 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -524,8 +500,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -543,12 +519,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -571,7 +541,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -600,8 +570,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -620,11 +590,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -649,7 +614,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -694,13 +659,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(QuantCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -753,7 +711,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of QuantCalculationParametersRoot + /// Task of ApiResponse (QuantCalculationParametersRoot) public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -771,12 +729,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(QuantCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -846,14 +798,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -906,7 +850,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -924,13 +868,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1008,13 +945,6 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) "application/octet-stream" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1070,7 +1000,7 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of System.IO.Stream + /// Task of ApiResponse (System.IO.Stream) public async System.Threading.Tasks.Task> GetCalculationUnitInfoByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1094,12 +1024,6 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) "application/octet-stream" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1178,13 +1102,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/octet-stream" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1240,7 +1157,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of System.IO.Stream + /// Task of ApiResponse (System.IO.Stream) public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1264,12 +1181,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/octet-stream" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(System.IO.Stream) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1312,13 +1223,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// CalculationStatusRoot for 202 status - /// ObjectRoot for 201 status - /// CalculationStatusRoot for 200 status - - public object PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(cacheControl, quantCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(cacheControl, quantCalculationParametersRoot); return localVarResponse.Data; } @@ -1328,11 +1236,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of ObjectRoot for 201 status - /// ApiResponse of CalculationStatusRoot for 200 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1346,15 +1251,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1381,7 +1277,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1399,13 +1295,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of ObjectRoot for 201 status - /// Task of CalculationStatusRoot for 200 status - - public async System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1416,11 +1309,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of ObjectRoot for 201 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1435,14 +1325,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1471,7 +1353,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1489,13 +1371,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - public object PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, cacheControl, quantCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, cacheControl, quantCalculationParametersRoot); return localVarResponse.Data; } @@ -1506,11 +1385,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1528,16 +1404,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1565,7 +1431,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1584,13 +1450,10 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1602,11 +1465,8 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1625,15 +1485,6 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1663,7 +1514,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1675,4 +1526,4 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs index e8806c1a..e2cbcdd2 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs @@ -46,8 +46,8 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint - /// ApiResponse of Object(null) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get SPAR calculation parameters by id /// @@ -123,11 +123,8 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); /// /// Create and Run SPAR calculation @@ -139,11 +136,8 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); /// /// Create or Update SPAR calculation and run it. /// @@ -155,11 +149,8 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); /// /// Create or Update SPAR calculation and run it. @@ -172,11 +163,8 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); #endregion Synchronous Operations } @@ -207,8 +195,8 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR calculation parameters by id /// @@ -230,7 +218,7 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of SPARCalculationParametersRoot + /// Task of ApiResponse (SPARCalculationParametersRoot) System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR calculation status by id @@ -253,7 +241,7 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR calculation result by id @@ -278,7 +266,7 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run SPAR calculation @@ -291,11 +279,8 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run SPAR calculation @@ -308,11 +293,8 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update SPAR calculation and run it. /// @@ -325,11 +307,8 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update SPAR calculation and run it. @@ -343,11 +322,8 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -484,8 +460,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -503,12 +479,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -531,7 +501,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -560,8 +530,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -580,11 +550,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -609,7 +574,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -654,13 +619,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(SPARCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -713,7 +671,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of SPARCalculationParametersRoot + /// Task of ApiResponse (SPARCalculationParametersRoot) public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -731,12 +689,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(SPARCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,14 +758,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -866,7 +810,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -884,13 +828,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -967,13 +904,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1029,7 +959,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1052,12 +982,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1101,13 +1025,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); return localVarResponse.Data; } @@ -1118,11 +1039,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1136,15 +1054,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1175,7 +1084,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1194,13 +1103,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1212,11 +1118,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1231,14 +1134,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1271,7 +1166,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1290,13 +1185,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); return localVarResponse.Data; } @@ -1308,11 +1200,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1330,16 +1219,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1371,7 +1250,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1391,13 +1270,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1410,11 +1286,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1433,15 +1306,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1475,7 +1339,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1487,4 +1351,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs index 16ebe98c..3d62fa29 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs @@ -162,7 +162,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetAxiomaEquityStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma FI strategy documents and sub-directories in a directory @@ -185,7 +185,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetAxiomaFIStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Barra strategy documents and sub-directories in a directory @@ -208,7 +208,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetBarraStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FactSet Portfolio Optimizer strategy documents and sub-directories in a directory @@ -231,7 +231,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetFPOStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Northfield strategy documents and sub-directories in a directory @@ -254,7 +254,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) System.Threading.Tasks.Task> GetNorthfieldStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -410,13 +410,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -469,7 +462,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetAxiomaEquityStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -487,12 +480,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -562,13 +549,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -621,7 +601,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetAxiomaFIStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -639,12 +619,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -714,13 +688,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -773,7 +740,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetBarraStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -791,12 +758,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -866,13 +827,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -925,7 +879,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetFPOStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -943,12 +897,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1018,13 +966,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1077,7 +1018,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse of DocumentDirectoriesRoot + /// Task of ApiResponse (DocumentDirectoriesRoot) public async System.Threading.Tasks.Task> GetNorthfieldStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -1095,12 +1036,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(DocumentDirectoriesRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1137,4 +1072,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs index 1d636eac..7902a699 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs @@ -67,8 +67,8 @@ public interface ITemplatedPAComponentsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Unique identifier for a templated PA component - /// ApiResponse of Object(null) - ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id); /// /// Update templated PA component /// @@ -122,7 +122,7 @@ public interface ITemplatedPAComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) System.Threading.Tasks.Task> CreateTemplatedPAComponentsWithHttpInfoAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete templated PA component @@ -145,8 +145,8 @@ public interface ITemplatedPAComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a templated PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update templated PA component /// @@ -170,7 +170,7 @@ public interface ITemplatedPAComponentsApiAsync : IApiAccessor /// Unique identifier for a templated PA component /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) System.Threading.Tasks.Task> UpdateTemplatedPAComponentsWithHttpInfoAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -329,12 +329,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 201, typeof(TemplatedPAComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -387,7 +381,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) public async System.Threading.Tasks.Task> CreateTemplatedPAComponentsWithHttpInfoAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templatedPAComponentParametersRoot' is set @@ -408,11 +402,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 201, typeof(TemplatedPAComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -464,8 +453,8 @@ public void DeleteTemplatedPAComponents(string id) /// /// Thrown when fails to make API call /// Unique identifier for a templated PA component - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -483,12 +472,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -511,7 +494,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -540,8 +523,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA /// Thrown when fails to make API call /// Unique identifier for a templated PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -560,11 +543,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -589,7 +567,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -641,13 +619,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(TemplatedPAComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -703,7 +674,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseUnique identifier for a templated PA component /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) public async System.Threading.Tasks.Task> UpdateTemplatedPAComponentsWithHttpInfoAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -726,12 +697,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(TemplatedPAComponentSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -769,4 +734,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template - /// ApiResponse of Object(null) - ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id); /// /// Get default unlinked PA template types. /// @@ -206,7 +206,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) System.Threading.Tasks.Task> CreateUnlinkedPATemplatesWithHttpInfoAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete unlinked PA template @@ -229,8 +229,8 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get default unlinked PA template types. /// @@ -250,7 +250,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot + /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeRoot) System.Threading.Tasks.Task> GetDefaultUnlinkedPATemplateTypesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get unlinked PA template type details by id. @@ -273,7 +273,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template type /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot + /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeDetailsRoot) System.Threading.Tasks.Task> GetDetailsTypeWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get unlinked PA templates @@ -298,7 +298,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Get unlinked PA templates in path. (optional) /// Get unlinked PA templates by category. (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) System.Threading.Tasks.Task> GetUnlinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get unlinked PA template details by id @@ -321,7 +321,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateRoot + /// Task of ApiResponse (UnlinkedPATemplateRoot) System.Threading.Tasks.Task> GetUnlinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update unlinked PA template @@ -346,7 +346,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Unique identifier for an unlinked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) System.Threading.Tasks.Task> UpdateUnlinkedPATemplatesWithHttpInfoAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -503,12 +503,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 201, typeof(UnlinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -561,7 +555,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) public async System.Threading.Tasks.Task> CreateUnlinkedPATemplatesWithHttpInfoAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'unlinkedPATemplateParametersRoot' is set @@ -580,11 +574,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 201, typeof(UnlinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -636,8 +625,8 @@ public void DeleteUnlinkedPATemplates(string id) /// /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -653,12 +642,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -681,7 +664,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -710,8 +693,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -728,11 +711,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -757,7 +735,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -796,11 +774,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateCategoryAndTypeRoot) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -850,7 +823,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot + /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeRoot) public async System.Threading.Tasks.Task> GetDefaultUnlinkedPATemplateTypesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -864,10 +837,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateCategoryAndTypeRoot) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -936,13 +905,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateCategoryAndTypeDetailsRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -995,7 +957,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Unique identifier for an unlinked PA template type /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot + /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeDetailsRoot) public async System.Threading.Tasks.Task> GetDetailsTypeWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1013,12 +975,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateCategoryAndTypeDetailsRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1086,12 +1042,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1153,7 +1103,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseGet unlinked PA templates in path. (optional) /// Get unlinked PA templates by category. (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) public async System.Threading.Tasks.Task> GetUnlinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -1167,11 +1117,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1248,13 +1193,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(UnlinkedPATemplateRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1307,7 +1245,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateRoot + /// Task of ApiResponse (UnlinkedPATemplateRoot) public async System.Threading.Tasks.Task> GetUnlinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1325,12 +1263,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(UnlinkedPATemplateRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1407,13 +1339,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1469,7 +1394,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseUnique identifier for an unlinked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot + /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) public async System.Threading.Tasks.Task> UpdateUnlinkedPATemplatesWithHttpInfoAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1492,12 +1417,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(UnlinkedPATemplateSummaryRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1535,4 +1454,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint - /// ApiResponse of Object(null) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(void) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get Vault calculation parameters by id /// @@ -123,11 +123,8 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); /// /// Create and Run Vault calculation @@ -139,11 +136,8 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); /// /// Create or Update Vault calculation and run it. /// @@ -155,11 +149,8 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// CalculationStatusRoot + CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); /// /// Create or Update Vault calculation and run it. @@ -172,11 +163,8 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); #endregion Synchronous Operations } @@ -207,8 +195,8 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault calculation parameters by id /// @@ -230,7 +218,7 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultCalculationParametersRoot + /// Task of ApiResponse (VaultCalculationParametersRoot) System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault calculation status by id @@ -253,7 +241,7 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault calculation result by id @@ -278,7 +266,7 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Vault calculation @@ -291,11 +279,8 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Vault calculation @@ -308,11 +293,8 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Vault calculation and run it. /// @@ -325,11 +307,8 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Vault calculation and run it. @@ -343,11 +322,8 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (CalculationStatusRoot) + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -484,8 +460,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint - /// ApiResponse of Object(null) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(void) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -503,12 +479,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -531,7 +501,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -560,8 +530,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of Object(null) - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -580,11 +550,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -609,7 +574,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -654,13 +619,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(VaultCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -713,7 +671,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of VaultCalculationParametersRoot + /// Task of ApiResponse (VaultCalculationParametersRoot) public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -731,12 +689,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse - { - { 200, typeof(VaultCalculationParametersRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,14 +758,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -866,7 +810,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot + /// Task of ApiResponse (CalculationStatusRoot) public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -884,13 +828,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(CalculationStatusRoot) }, - { 202, typeof(CalculationStatusRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -967,13 +904,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1029,7 +959,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse of ObjectRoot + /// Task of ApiResponse (ObjectRoot) public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1052,12 +982,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 200, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1101,13 +1025,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); return localVarResponse.Data; } @@ -1118,11 +1039,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1136,15 +1054,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1175,7 +1084,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1194,13 +1103,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1212,11 +1118,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1231,14 +1134,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1271,7 +1166,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1290,13 +1185,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot for 202 status - /// CalculationStatusRoot for 200 status - /// ObjectRoot for 201 status - - public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// CalculationStatusRoot + public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); return localVarResponse.Data; } @@ -1308,11 +1200,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot for 202 status - /// ApiResponse of CalculationStatusRoot for 200 status - /// ApiResponse of ObjectRoot for 201 status - - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1330,16 +1219,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; - var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1371,7 +1250,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1391,13 +1270,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot for 202 status - /// Task of CalculationStatusRoot for 200 status - /// Task of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1410,11 +1286,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse of CalculationStatusRoot for 202 status - /// Task of ApiResponse of CalculationStatusRoot for 200 status - /// Task of ApiResponse of ObjectRoot for 201 status - - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (CalculationStatusRoot) + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1433,15 +1306,6 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; - localVarRequestOptions.ResponseReturnTypes = new Dictionary - { - { 202, typeof(CalculationStatusRoot) }, - { 200, typeof(CalculationStatusRoot) }, - { 201, typeof(ObjectRoot) }, - { 400, typeof(ClientErrorResponse) }, - { 404, typeof(ClientErrorResponse) }, - { 409, typeof(ClientErrorResponse) }, - }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1475,7 +1339,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1487,4 +1351,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs index 07b557fa..a910ac8a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs @@ -31,8 +31,6 @@ using RestSharpMethod = RestSharp.Method; using Polly; -using FactSet.AnalyticsAPI.Engines.Model; - namespace FactSet.AnalyticsAPI.Engines.Client { /// @@ -429,7 +427,7 @@ private ApiResponse ToApiResponse(IRestResponse response) return transformed; } - private ApiResponse Exec(RestRequest req, IReadableConfiguration configuration, Dictionary returnTypes = null) + private ApiResponse Exec(RestRequest req, IReadableConfiguration configuration) { RestClient client = new RestClient(_baseUrl); @@ -457,6 +455,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura client.AddHandler("application/xml", () => xmlDeserializer); client.AddHandler("text/xml", () => xmlDeserializer); client.AddHandler("*+xml", () => xmlDeserializer); + client.AddHandler("*", () => xmlDeserializer); client.Timeout = configuration.Timeout; @@ -493,64 +492,14 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura response = client.Execute(req); } - var status = (int)response.StatusCode; - - if (returnTypes.ContainsKey(status)) + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(FactSet.AnalyticsAPI.Engines.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { - var type = returnTypes[status]; - var JsonSerializer = new CustomJsonCodec(SerializerSettings, configuration); - - if (!response.IsSuccessful) - { - var clientErrorResponse = (ClientErrorResponse)JsonSerializer.Deserialize(response, type); - - String reason = ""; - if (clientErrorResponse != null && clientErrorResponse.Errors.Any() && !string.IsNullOrWhiteSpace(clientErrorResponse.Errors.FirstOrDefault().Detail)) - { - List errors = clientErrorResponse.Errors; - reason = errors.FirstOrDefault().Detail; - for (int i = 1; i < errors.Count; i++) - { - if (string.IsNullOrWhiteSpace(errors[i].Detail)) - reason = reason + " ||| " + errors[i].Detail; - } - } - - if (clientErrorResponse == null && response.Headers != null) - { - Error error = new Error(); - foreach(var header in response.Headers) - { - if (string.Equals(header.Name, "x-factset-api-request-key", StringComparison.CurrentCultureIgnoreCase)) - { - error.Id = header.Value.ToString(); - } - } - - clientErrorResponse = new ClientErrorResponse() - { - Errors = new List() { error } - }; - } - - Multimap responseHeaders = new Multimap(); - foreach (var header in response.Headers) - { - responseHeaders.Add(header.Name, header.Value.ToString()); - } - - throw new ApiException(status, "error", reason, responseHeaders, clientErrorResponse); - } - - - if (typeof(T).Name == "Stream") // for binary response - { - response.Data = (T)(object)new MemoryStream(response.RawBytes); - } - else - { - response.Data = (T)JsonSerializer.Deserialize(response, type); - } + response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + } + else if (typeof(T).Name == "Stream") // for binary response + { + response.Data = (T)(object)new MemoryStream(response.RawBytes); } InterceptResponse(req, response); @@ -590,7 +539,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura return result; } - private async Task> ExecAsync(RestRequest req, IReadableConfiguration configuration, Dictionary returnTypes = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async Task> ExecAsync(RestRequest req, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { RestClient client = new RestClient(_baseUrl); @@ -618,6 +567,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura client.AddHandler("application/xml", () => xmlDeserializer); client.AddHandler("text/xml", () => xmlDeserializer); client.AddHandler("*+xml", () => xmlDeserializer); + client.AddHandler("*", () => xmlDeserializer); client.Timeout = configuration.Timeout; @@ -654,64 +604,14 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura response = await client.ExecuteAsync(req, cancellationToken).ConfigureAwait(false); } - var status = (int)response.StatusCode; - - if (returnTypes.ContainsKey(status)) + // if the response type is oneOf/anyOf, call FromJSON to deserialize the data + if (typeof(FactSet.AnalyticsAPI.Engines.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) { - var type = returnTypes[status]; - var JsonSerializer = new CustomJsonCodec(SerializerSettings, configuration); - - if (!response.IsSuccessful) - { - var clientErrorResponse = (ClientErrorResponse)JsonSerializer.Deserialize(response, type); - - String reason = ""; - if (clientErrorResponse != null && clientErrorResponse.Errors.Any() && !string.IsNullOrWhiteSpace(clientErrorResponse.Errors.FirstOrDefault().Detail)) - { - List errors = clientErrorResponse.Errors; - reason = errors.FirstOrDefault().Detail; - for (int i = 1; i < errors.Count; i++) - { - if (string.IsNullOrWhiteSpace(errors[i].Detail)) - reason = reason + " ||| " + errors[i].Detail; - } - } - - if (clientErrorResponse == null && response.Headers != null) - { - Error error = new Error(); - foreach(var header in response.Headers) - { - if (string.Equals(header.Name, "x-factset-api-request-key", StringComparison.CurrentCultureIgnoreCase)) - { - error.Id = header.Value.ToString(); - } - } - - clientErrorResponse = new ClientErrorResponse() - { - Errors = new List() { error } - }; - } - - Multimap responseHeaders = new Multimap(); - foreach (var header in response.Headers) - { - responseHeaders.Add(header.Name, header.Value.ToString()); - } - - throw new ApiException(status, "error", reason, responseHeaders, clientErrorResponse); - } - - - if (typeof(T).Name == "Stream") // for binary response - { - response.Data = (T)(object)new MemoryStream(response.RawBytes); - } - else - { - response.Data = (T)JsonSerializer.Deserialize(response, type); - } + response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); + } + else if (typeof(T).Name == "Stream") // for binary response + { + response.Data = (T)(object)new MemoryStream(response.RawBytes); } InterceptResponse(req, response); @@ -764,7 +664,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), config, options.ResponseReturnTypes, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), config, cancellationToken); } /// @@ -779,7 +679,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), config, options.ResponseReturnTypes, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), config, cancellationToken); } /// @@ -794,7 +694,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), config, options.ResponseReturnTypes, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), config, cancellationToken); } /// @@ -809,7 +709,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), config, options.ResponseReturnTypes, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), config, cancellationToken); } /// @@ -824,7 +724,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), config, options.ResponseReturnTypes, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), config, cancellationToken); } /// @@ -839,7 +739,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), config, options.ResponseReturnTypes, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), config, cancellationToken); } /// @@ -854,7 +754,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), config, options.ResponseReturnTypes, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), config, cancellationToken); } #endregion IAsynchronousClient @@ -870,7 +770,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Get, path, options, config), config, options.ResponseReturnTypes); + return Exec(NewRequest(HttpMethod.Get, path, options, config), config); } /// @@ -884,7 +784,7 @@ public ApiResponse Get(string path, RequestOptions options, IReadableConfi public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Post, path, options, config), config, options.ResponseReturnTypes); + return Exec(NewRequest(HttpMethod.Post, path, options, config), config); } /// @@ -898,7 +798,7 @@ public ApiResponse Post(string path, RequestOptions options, IReadableConf public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Put, path, options, config), config, options.ResponseReturnTypes); + return Exec(NewRequest(HttpMethod.Put, path, options, config), config); } /// @@ -912,7 +812,7 @@ public ApiResponse Put(string path, RequestOptions options, IReadableConfi public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Delete, path, options, config), config, options.ResponseReturnTypes); + return Exec(NewRequest(HttpMethod.Delete, path, options, config), config); } /// @@ -926,7 +826,7 @@ public ApiResponse Delete(string path, RequestOptions options, IReadableCo public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Head, path, options, config), config, options.ResponseReturnTypes); + return Exec(NewRequest(HttpMethod.Head, path, options, config), config); } /// @@ -940,7 +840,7 @@ public ApiResponse Head(string path, RequestOptions options, IReadableConf public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Options, path, options, config), config, options.ResponseReturnTypes); + return Exec(NewRequest(HttpMethod.Options, path, options, config), config); } /// @@ -954,8 +854,8 @@ public ApiResponse Options(string path, RequestOptions options, IReadableC public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Patch, path, options, config), config, options.ResponseReturnTypes); + return Exec(NewRequest(HttpMethod.Patch, path, options, config), config); } #endregion ISynchronousClient } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs index ad8e95f5..f6df3d6f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs @@ -164,4 +164,4 @@ public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, n #endregion Constructors } -} \ No newline at end of file +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs index 7932823a..0d02522f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs @@ -54,11 +54,6 @@ public class RequestOptions /// public List Cookies { get; set; } - /// - /// Response return types for each status code. - /// - public Dictionary ResponseReturnTypes { get; set; } - /// /// Any data associated with a request body. /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj index b9413717..5c1b68b1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj @@ -27,7 +27,6 @@ - - \ No newline at end of file + From ff74f0ff7bb593ba46b10f13f554305716b25e89 Mon Sep 17 00:00:00 2001 From: factset-sdk-bot Date: Mon, 13 Sep 2021 20:43:51 +0000 Subject: [PATCH 3/4] feat(sdk): Auto-commit from 'analyticsapi-engines-sdk-generator' repository PR 43 for SDK version v5.2.0 --- .../Api/AFIOptimizerApi.cs | 280 +++++++++++++----- .../Api/AXPOptimizerApi.cs | 280 +++++++++++++----- .../Api/AccountsApi.cs | 36 ++- .../Api/BPMOptimizerApi.cs | 280 +++++++++++++----- .../Api/BenchmarksApi.cs | 19 +- .../Api/ColumnStatisticsApi.cs | 15 +- .../Api/ColumnsApi.cs | 32 +- .../Api/ComponentsApi.cs | 87 +++++- .../Api/ConfigurationsApi.cs | 36 ++- .../Api/CurrenciesApi.cs | 15 +- .../Api/DatesApi.cs | 36 ++- .../Api/DocumentsApi.cs | 70 ++++- .../Api/FIABCalculationsApi.cs | 69 +++-- .../Api/FICalculationsApi.cs | 280 +++++++++++++----- .../Api/FPOOptimizerApi.cs | 280 +++++++++++++----- .../Api/FrequenciesApi.cs | 41 ++- .../Api/GroupsApi.cs | 15 +- .../Api/LinkedPATemplatesApi.cs | 99 +++++-- .../Api/NPOOptimizerApi.cs | 280 +++++++++++++----- .../Api/PACalculationsApi.cs | 250 ++++++++++++---- .../Api/PubCalculationsApi.cs | 250 ++++++++++++---- .../Api/QuantCalculationsApi.cs | 267 +++++++++++++---- .../Api/SPARCalculationsApi.cs | 250 ++++++++++++---- .../Api/StrategyDocumentsApi.cs | 87 +++++- .../Api/TemplatedPAComponentsApi.cs | 65 +++- .../Api/UnlinkedPATemplatesApi.cs | 127 ++++++-- .../Api/VaultCalculationsApi.cs | 250 ++++++++++++---- .../Client/ApiClient.cs | 166 ++++++++--- .../Client/ApiResponse.cs | 2 +- .../Client/RequestOptions.cs | 5 + .../FactSet.AnalyticsAPI.Engines.csproj | 3 +- 31 files changed, 3052 insertions(+), 920 deletions(-) diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs index 45208d62..07647d06 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AFIOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of Object(void) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get AFI optimization parameters by id /// @@ -98,8 +98,10 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ObjectRoot - ObjectRoot GetOptimizationStatusById(string id); + /// ObjectRoot for 201 status + /// null for 202 status + + object GetOptimizationStatusById(string id); /// /// Get AFI optimization status by id @@ -109,8 +111,10 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of ObjectRoot - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run AFI optimization /// @@ -121,8 +125,10 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); /// /// Create and Run AFI optimization @@ -134,8 +140,10 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); /// /// Create or Update AFI optimization and run it. /// @@ -147,8 +155,10 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); /// /// Create or Update AFI optimization and run it. @@ -161,8 +171,10 @@ public interface IAFIOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -193,8 +205,8 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization parameters by id /// @@ -216,7 +228,7 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (AFIOptimizationParametersRoot) + /// Task of ApiResponse of AFIOptimizationParametersRoot System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization result by id @@ -239,7 +251,7 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get AFI optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization status by id @@ -250,8 +262,10 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get AFI optimization status by id @@ -262,8 +276,10 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run AFI optimization /// @@ -275,8 +291,10 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run AFI optimization @@ -289,8 +307,10 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update AFI optimization and run it. /// @@ -303,8 +323,10 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update AFI optimization and run it. @@ -318,8 +340,10 @@ public interface IAFIOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -456,8 +480,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -475,6 +499,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -497,7 +527,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -526,8 +556,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -546,6 +576,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -570,7 +605,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -615,6 +650,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(AFIOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -667,7 +709,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (AFIOptimizationParametersRoot) + /// Task of ApiResponse of AFIOptimizationParametersRoot public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -685,6 +727,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(AFIOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -754,6 +802,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,7 +861,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get AFI optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -824,6 +879,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -864,10 +925,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ObjectRoot - public ObjectRoot GetOptimizationStatusById(string id) + /// ObjectRoot for 201 status + /// null for 202 status + + public object GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -876,8 +939,10 @@ public ObjectRoot GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -893,6 +958,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -915,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -932,10 +1004,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -945,8 +1019,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run AFI optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -963,6 +1039,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +1069,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/afi/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1005,10 +1087,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); return localVarResponse.Data; } @@ -1019,8 +1103,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1033,6 +1119,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1063,7 +1157,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1082,10 +1176,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1097,8 +1193,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1112,6 +1210,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1144,7 +1249,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/afi/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1163,10 +1268,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot); return localVarResponse.Data; } @@ -1178,8 +1285,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1196,6 +1305,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1227,7 +1345,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1247,10 +1365,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, aFIOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1263,8 +1383,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AFIOptimizationParametersRoot aFIOptimizationParametersRoot = default(AFIOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1282,6 +1404,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1315,7 +1445,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/afi/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1327,4 +1457,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs index 7e7d120a..d4edee1e 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AXPOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of Object(void) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get Axioma optimization parameters by id /// @@ -98,8 +98,10 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ObjectRoot - ObjectRoot GetOptimizationStatusById(string id); + /// ObjectRoot for 201 status + /// null for 202 status + + object GetOptimizationStatusById(string id); /// /// Get Axioma optimization status by id @@ -109,8 +111,10 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of ObjectRoot - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run Axioma optimization /// @@ -121,8 +125,10 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); /// /// Create and Run Axioma optimization @@ -134,8 +140,10 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); /// /// Create or Update Axioma optimization and run it. /// @@ -147,8 +155,10 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); /// /// Create or Update Axioma optimization and run it. @@ -161,8 +171,10 @@ public interface IAXPOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -193,8 +205,8 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization parameters by id /// @@ -216,7 +228,7 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (AxiomaEquityOptimizationParametersRoot) + /// Task of ApiResponse of AxiomaEquityOptimizationParametersRoot System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization result by id @@ -239,7 +251,7 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get Axioma optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization status by id @@ -250,8 +262,10 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma optimization status by id @@ -262,8 +276,10 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Axioma optimization /// @@ -275,8 +291,10 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Axioma optimization @@ -289,8 +307,10 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Axioma optimization and run it. /// @@ -303,8 +323,10 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Axioma optimization and run it. @@ -318,8 +340,10 @@ public interface IAXPOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -456,8 +480,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -475,6 +499,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -497,7 +527,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -526,8 +556,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -546,6 +576,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -570,7 +605,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -615,6 +650,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(AxiomaEquityOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -667,7 +709,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (AxiomaEquityOptimizationParametersRoot) + /// Task of ApiResponse of AxiomaEquityOptimizationParametersRoot public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -685,6 +727,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(AxiomaEquityOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -754,6 +802,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,7 +861,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get Axioma optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -824,6 +879,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -864,10 +925,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ObjectRoot - public ObjectRoot GetOptimizationStatusById(string id) + /// ObjectRoot for 201 status + /// null for 202 status + + public object GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -876,8 +939,10 @@ public ObjectRoot GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -893,6 +958,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -915,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -932,10 +1004,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -945,8 +1019,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Axioma optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -963,6 +1039,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +1069,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/axp/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1005,10 +1087,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); return localVarResponse.Data; } @@ -1019,8 +1103,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1033,6 +1119,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1063,7 +1157,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1082,10 +1176,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1097,8 +1193,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1112,6 +1210,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1144,7 +1249,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/axp/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1163,10 +1268,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot); return localVarResponse.Data; } @@ -1178,8 +1285,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1196,6 +1305,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1227,7 +1345,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1247,10 +1365,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, axiomaEquityOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1263,8 +1383,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), AxiomaEquityOptimizationParametersRoot axiomaEquityOptimizationParametersRoot = default(AxiomaEquityOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1282,6 +1404,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1315,7 +1445,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/axp/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1327,4 +1457,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs index 3cb03ef4..95d0b53f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/AccountsApi.cs @@ -99,7 +99,7 @@ public interface IAccountsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the accounts and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (AccountDirectoriesRoot) + /// Task of ApiResponse of AccountDirectoriesRoot System.Threading.Tasks.Task> GetAccountsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR account returns type details @@ -122,7 +122,7 @@ public interface IAccountsApiAsync : IApiAccessor /// Thrown when fails to make API call /// URL encoded account path /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SPARAccountsRoot) + /// Task of ApiResponse of SPARAccountsRoot System.Threading.Tasks.Task> GetSPARReturnsTypeWithHttpInfoAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -278,6 +278,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(AccountDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -330,7 +337,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G /// Thrown when fails to make API call /// The directory to get the accounts and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (AccountDirectoriesRoot) + /// Task of ApiResponse of AccountDirectoriesRoot public async System.Threading.Tasks.Task> GetAccountsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -348,6 +355,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(AccountDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -417,6 +430,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(SPARAccountsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -469,7 +489,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR /// Thrown when fails to make API call /// URL encoded account path /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SPARAccountsRoot) + /// Task of ApiResponse of SPARAccountsRoot public async System.Threading.Tasks.Task> GetSPARReturnsTypeWithHttpInfoAsync(string accountPath, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'accountPath' is set @@ -487,6 +507,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(SPARAccountsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -523,4 +549,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPAR } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs index ec96cb66..95323450 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BPMOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of Object(void) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get BPM optimization parameters by id /// @@ -98,8 +98,10 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ObjectRoot - ObjectRoot GetOptimizationStatusById(string id); + /// ObjectRoot for 201 status + /// null for 202 status + + object GetOptimizationStatusById(string id); /// /// Get BPM optimization status by id @@ -109,8 +111,10 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of ObjectRoot - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run BPM optimization /// @@ -121,8 +125,10 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); /// /// Create and Run BPM optimization @@ -134,8 +140,10 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); /// /// Create or Update BPM optimization and run it. /// @@ -147,8 +155,10 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); /// /// Create or Update BPM optimization and run it. @@ -161,8 +171,10 @@ public interface IBPMOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -193,8 +205,8 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization parameters by id /// @@ -216,7 +228,7 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (BPMOptimizationParametersRoot) + /// Task of ApiResponse of BPMOptimizationParametersRoot System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization result by id @@ -239,7 +251,7 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get BPM optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization status by id @@ -250,8 +262,10 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get BPM optimization status by id @@ -262,8 +276,10 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run BPM optimization /// @@ -275,8 +291,10 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run BPM optimization @@ -289,8 +307,10 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update BPM optimization and run it. /// @@ -303,8 +323,10 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update BPM optimization and run it. @@ -318,8 +340,10 @@ public interface IBPMOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -456,8 +480,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -475,6 +499,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -497,7 +527,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -526,8 +556,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -546,6 +576,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -570,7 +605,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -615,6 +650,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(BPMOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -667,7 +709,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (BPMOptimizationParametersRoot) + /// Task of ApiResponse of BPMOptimizationParametersRoot public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -685,6 +727,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(BPMOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -754,6 +802,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,7 +861,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get BPM optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -824,6 +879,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -864,10 +925,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ObjectRoot - public ObjectRoot GetOptimizationStatusById(string id) + /// ObjectRoot for 201 status + /// null for 202 status + + public object GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -876,8 +939,10 @@ public ObjectRoot GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -893,6 +958,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -915,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -932,10 +1004,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -945,8 +1019,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run BPM optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -963,6 +1039,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +1069,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/bpm/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1005,10 +1087,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); return localVarResponse.Data; } @@ -1019,8 +1103,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1033,6 +1119,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1063,7 +1157,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1082,10 +1176,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1097,8 +1193,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1112,6 +1210,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1144,7 +1249,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/bpm/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1163,10 +1268,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot); return localVarResponse.Data; } @@ -1178,8 +1285,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1196,6 +1305,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1227,7 +1345,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1247,10 +1365,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, bPMOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1263,8 +1383,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), BPMOptimizationParametersRoot bPMOptimizationParametersRoot = default(BPMOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1282,6 +1404,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1315,7 +1445,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/bpm/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1327,4 +1457,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs index 1f2e4e1b..74190fdf 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/BenchmarksApi.cs @@ -78,7 +78,7 @@ public interface IBenchmarksApiAsync : IApiAccessor /// Thrown when fails to make API call /// Benchmark Identifier /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SPARBenchmarkRoot) + /// Task of ApiResponse of SPARBenchmarkRoot System.Threading.Tasks.Task> GetSPARBenchmarkByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -234,6 +234,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(SPARBenchmarkRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -286,7 +293,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA /// Thrown when fails to make API call /// Benchmark Identifier /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SPARBenchmarkRoot) + /// Task of ApiResponse of SPARBenchmarkRoot public async System.Threading.Tasks.Task> GetSPARBenchmarkByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -304,6 +311,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(SPARBenchmarkRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -340,4 +353,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPA } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs index 1e95041f..c17acca0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnStatisticsApi.cs @@ -74,7 +74,7 @@ public interface IColumnStatisticsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ColumnStatisticRoot) + /// Task of ApiResponse of ColumnStatisticRoot System.Threading.Tasks.Task> GetPAColumnStatisticsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -224,6 +224,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ColumnStatisticRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -273,7 +278,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ColumnStatisticRoot) + /// Task of ApiResponse of ColumnStatisticRoot public async System.Threading.Tasks.Task> GetPAColumnStatisticsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -287,6 +292,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ColumnStatisticRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -322,4 +331,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetP } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs index 87832ce8..d978805b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ColumnsApi.cs @@ -103,7 +103,7 @@ public interface IColumnsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a column /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ColumnRoot) + /// Task of ApiResponse of ColumnRoot System.Threading.Tasks.Task> GetPAColumnByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA columns @@ -130,7 +130,7 @@ public interface IColumnsApiAsync : IApiAccessor /// Column category (optional, default to "") /// The directory to get the columns in (optional, default to "") /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ColumnSummaryRoot) + /// Task of ApiResponse of ColumnSummaryRoot System.Threading.Tasks.Task> GetPAColumnsWithHttpInfoAsync(string name = default(string), string category = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -286,6 +286,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ColumnRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -338,7 +345,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy /// Thrown when fails to make API call /// Unique identifier for a column /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ColumnRoot) + /// Task of ApiResponse of ColumnRoot public async System.Threading.Tasks.Task> GetPAColumnByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -356,6 +363,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ColumnRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -425,6 +438,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ColumnSummaryRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -492,7 +510,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy /// Column category (optional, default to "") /// The directory to get the columns in (optional, default to "") /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ColumnSummaryRoot) + /// Task of ApiResponse of ColumnSummaryRoot public async System.Threading.Tasks.Task> GetPAColumnsWithHttpInfoAsync(string name = default(string), string category = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -506,6 +524,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ColumnSummaryRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -553,4 +575,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAColumnBy } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs index 39dcc0d1..c64484a0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs @@ -164,7 +164,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PAComponentRoot) + /// Task of ApiResponse of PAComponentRoot System.Threading.Tasks.Task> GetPAComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA components @@ -189,7 +189,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Document Name (optional) /// Directory to get the components (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ComponentSummaryRoot) + /// Task of ApiResponse of ComponentSummaryRoot System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR components @@ -212,7 +212,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ComponentSummaryRoot) + /// Task of ApiResponse of ComponentSummaryRoot System.Threading.Tasks.Task> GetSPARComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault component by id @@ -235,7 +235,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a vault component /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultComponentRoot) + /// Task of ApiResponse of VaultComponentRoot System.Threading.Tasks.Task> GetVaultComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault components @@ -258,7 +258,7 @@ public interface IComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ComponentSummaryRoot) + /// Task of ApiResponse of ComponentSummaryRoot System.Threading.Tasks.Task> GetVaultComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -414,6 +414,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(PAComponentRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -466,7 +473,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Thrown when fails to make API call /// Unique identifier for a PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PAComponentRoot) + /// Task of ApiResponse of PAComponentRoot public async System.Threading.Tasks.Task> GetPAComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -484,6 +491,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(PAComponentRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -551,6 +564,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -612,7 +632,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Document Name (optional) /// Directory to get the components (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ComponentSummaryRoot) + /// Task of ApiResponse of ComponentSummaryRoot public async System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -626,6 +646,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -702,6 +728,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -754,7 +787,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ComponentSummaryRoot) + /// Task of ApiResponse of ComponentSummaryRoot public async System.Threading.Tasks.Task> GetSPARComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'document' is set @@ -772,6 +805,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -841,6 +880,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(VaultComponentRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -893,7 +939,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa /// Thrown when fails to make API call /// Unique identifier for a vault component /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultComponentRoot) + /// Task of ApiResponse of VaultComponentRoot public async System.Threading.Tasks.Task> GetVaultComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -911,6 +957,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVa "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(VaultComponentRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -980,6 +1032,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1032,7 +1091,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get /// Thrown when fails to make API call /// Document Name /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ComponentSummaryRoot) + /// Task of ApiResponse of ComponentSummaryRoot public async System.Threading.Tasks.Task> GetVaultComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'document' is set @@ -1050,6 +1109,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1086,4 +1151,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs index 818ed743..b1b5441f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ConfigurationsApi.cs @@ -99,7 +99,7 @@ public interface IConfigurationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Vault configuration id to get the details of /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultConfigurationRoot) + /// Task of ApiResponse of VaultConfigurationRoot System.Threading.Tasks.Task> GetVaultConfigurationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault configurations @@ -122,7 +122,7 @@ public interface IConfigurationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Required account query parameter to filter configurations for a specific account /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultConfigurationSummaryRoot) + /// Task of ApiResponse of VaultConfigurationSummaryRoot System.Threading.Tasks.Task> GetVaultConfigurationsWithHttpInfoAsync(string account, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -278,6 +278,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(VaultConfigurationRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -330,7 +337,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G /// Thrown when fails to make API call /// Vault configuration id to get the details of /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultConfigurationRoot) + /// Task of ApiResponse of VaultConfigurationRoot public async System.Threading.Tasks.Task> GetVaultConfigurationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -348,6 +355,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(VaultConfigurationRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -417,6 +430,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(VaultConfigurationSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -469,7 +489,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Required account query parameter to filter configurations for a specific account /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultConfigurationSummaryRoot) + /// Task of ApiResponse of VaultConfigurationSummaryRoot public async System.Threading.Tasks.Task> GetVaultConfigurationsWithHttpInfoAsync(string account, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'account' is set @@ -487,6 +507,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(VaultConfigurationSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -523,4 +549,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CurrencyRoot) + /// Task of ApiResponse of CurrencyRoot System.Threading.Tasks.Task> GetCurrenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -224,6 +224,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CurrencyRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -273,7 +278,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CurrencyRoot) + /// Task of ApiResponse of CurrencyRoot public async System.Threading.Tasks.Task> GetCurrenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -287,6 +292,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CurrencyRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -322,4 +331,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCurrenci } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs index 04935c77..77465d62 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DatesApi.cs @@ -117,7 +117,7 @@ public interface IDatesApiAsync : IApiAccessor /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DateParametersSummaryRoot) + /// Task of ApiResponse of DateParametersSummaryRoot System.Threading.Tasks.Task> ConvertPADatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Convert Vault dates to absolute format @@ -146,7 +146,7 @@ public interface IDatesApiAsync : IApiAccessor /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DateParametersSummaryRoot) + /// Task of ApiResponse of DateParametersSummaryRoot System.Threading.Tasks.Task> ConvertVaultDatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -316,6 +316,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DateParametersSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -380,7 +387,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DateParametersSummaryRoot) + /// Task of ApiResponse of DateParametersSummaryRoot public async System.Threading.Tasks.Task> ConvertPADatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'enddate' is set @@ -406,6 +413,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DateParametersSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -495,6 +508,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DateParametersSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -559,7 +579,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory /// Account /// Start Date (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DateParametersSummaryRoot) + /// Task of ApiResponse of DateParametersSummaryRoot public async System.Threading.Tasks.Task> ConvertVaultDatesToAbsoluteFormatWithHttpInfoAsync(string enddate, string componentid, string account, string startdate = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'enddate' is set @@ -585,6 +605,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DateParametersSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -627,4 +653,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ExceptionFactory ExceptionFactory } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs index 3641c235..b0ab1c1c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/DocumentsApi.cs @@ -141,7 +141,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetPA3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Gets Publisher documents and sub-directories in a directory @@ -164,7 +164,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetPubDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Gets SPAR3 documents and sub-directories in a directory @@ -187,7 +187,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetSPAR3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault documents and sub-directories in a directory @@ -210,7 +210,7 @@ public interface IDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetVaultDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -366,6 +366,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -418,7 +425,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetPA3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -436,6 +443,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -505,6 +518,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -557,7 +577,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetPubDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -575,6 +595,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -644,6 +670,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -696,7 +729,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetSPAR3DocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -714,6 +747,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -783,6 +822,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -835,7 +881,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the documents in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetVaultDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -853,6 +899,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -889,4 +941,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs index 34c8f3f8..9862401d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FIABCalculationsApi.cs @@ -55,7 +55,7 @@ public interface IFIABCalculationsApiSync : IApiAccessor /// This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// Dictionary<string, FIABCalculationStatusSummary> + /// Dictionary Dictionary GetCalculationStatusSummaries(); /// @@ -65,7 +65,7 @@ public interface IFIABCalculationsApiSync : IApiAccessor /// This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary<string, FIABCalculationStatusSummary> + /// ApiResponse of Dictionary ApiResponse> GetCalculationStatusSummariesWithHttpInfo(); /// /// Run FIAB calculation @@ -86,8 +86,8 @@ public interface IFIABCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// (optional) - /// ApiResponse of Object(void) - ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)); + /// ApiResponse of Object(null) + ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)); #endregion Synchronous Operations } @@ -118,7 +118,7 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Run FIAB Calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FIABCalculationStatus) + /// Task of ApiResponse of FIABCalculationStatus System.Threading.Tasks.Task> GetCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get all FIAB calculation summaries @@ -128,7 +128,7 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, FIABCalculationStatusSummary> + /// Task of Dictionary System.Threading.Tasks.Task> GetCalculationStatusSummariesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// @@ -139,7 +139,7 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, FIABCalculationStatusSummary>) + /// Task of ApiResponse of Dictionary System.Threading.Tasks.Task>> GetCalculationStatusSummariesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Run FIAB calculation @@ -162,8 +162,8 @@ public interface IFIABCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -318,6 +318,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FIABCalculationStatus) }, + { 202, typeof(FIABCalculationStatus) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -370,7 +376,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Run FIAB Calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FIABCalculationStatus) + /// Task of ApiResponse of FIABCalculationStatus public async System.Threading.Tasks.Task> GetCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -388,6 +394,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FIABCalculationStatus) }, + { 202, typeof(FIABCalculationStatus) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -427,7 +438,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Get all FIAB calculation summaries This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// Dictionary<string, FIABCalculationStatusSummary> + /// Dictionary public Dictionary GetCalculationStatusSummaries() { FactSet.AnalyticsAPI.Engines.Client.ApiResponse> localVarResponse = GetCalculationStatusSummariesWithHttpInfo(); @@ -438,7 +449,7 @@ public Dictionary GetCalculationStatusSumm /// Get all FIAB calculation summaries This endpoints returns all FIAB calculation requests. /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary<string, FIABCalculationStatusSummary> + /// ApiResponse of Dictionary public FactSet.AnalyticsAPI.Engines.Client.ApiResponse> GetCalculationStatusSummariesWithHttpInfo() { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -451,6 +462,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(Dictionary) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -488,7 +504,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, FIABCalculationStatusSummary> + /// Task of Dictionary public async System.Threading.Tasks.Task> GetCalculationStatusSummariesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.ApiResponse> localVarResponse = await GetCalculationStatusSummariesWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); @@ -500,7 +516,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, FIABCalculationStatusSummary>) + /// Task of ApiResponse of Dictionary public async System.Threading.Tasks.Task>> GetCalculationStatusSummariesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -514,6 +530,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(Dictionary) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -564,8 +584,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// (optional) - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse RunCalculationWithHttpInfo(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -577,6 +597,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -599,7 +623,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -628,8 +652,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> RunCalculationWithHttpInfoAsync(FIABCalculationParameters fIABCalculationParameters = default(FIABCalculationParameters), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -642,6 +666,9 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -666,7 +693,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fiab/v1/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -678,4 +705,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of Object(void) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get FI calculation parameters by id /// @@ -98,8 +98,10 @@ public interface IFICalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ObjectRoot - ObjectRoot GetCalculationStatusById(string id); + /// ObjectRoot for 201 status + /// null for 202 status + + object GetCalculationStatusById(string id); /// /// Get FI calculation status by id @@ -109,8 +111,10 @@ public interface IFICalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of ObjectRoot - ApiResponse GetCalculationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + ApiResponse GetCalculationStatusByIdWithHttpInfo(string id); /// /// Create and Run FI calculation /// @@ -121,8 +125,10 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ObjectRoot - ObjectRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); /// /// Create and Run FI calculation @@ -134,8 +140,10 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); /// /// Create or Update FI calculation and run it. /// @@ -147,8 +155,10 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ObjectRoot - ObjectRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); /// /// Create or Update FI calculation and run it. @@ -161,8 +171,10 @@ public interface IFICalculationsApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)); #endregion Synchronous Operations } @@ -193,8 +205,8 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation parameters by id /// @@ -216,7 +228,7 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FICalculationParametersRoot) + /// Task of ApiResponse of FICalculationParametersRoot System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation result by id @@ -239,7 +251,7 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get FI calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetCalculationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation status by id @@ -250,8 +262,10 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FI calculation status by id @@ -262,8 +276,10 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FI calculation /// @@ -275,8 +291,10 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FI calculation @@ -289,8 +307,10 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FI calculation and run it. /// @@ -303,8 +323,10 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FI calculation and run it. @@ -318,8 +340,10 @@ public interface IFICalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -456,8 +480,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -475,6 +499,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -497,7 +527,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -526,8 +556,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -546,6 +576,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -570,7 +605,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -615,6 +650,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(FICalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -667,7 +709,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FICalculationParametersRoot) + /// Task of ApiResponse of FICalculationParametersRoot public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -685,6 +727,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(FICalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -755,6 +803,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -807,7 +862,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Thrown when fails to make API call /// from url, provided from the location header in the Get FI calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetCalculationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -826,6 +881,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -866,10 +927,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ObjectRoot - public ObjectRoot GetCalculationStatusById(string id) + /// ObjectRoot for 201 status + /// null for 202 status + + public object GetCalculationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetCalculationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetCalculationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -878,8 +941,10 @@ public ObjectRoot GetCalculationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -896,6 +961,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -918,7 +990,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -935,10 +1007,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + public async System.Threading.Tasks.Task GetCalculationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetCalculationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetCalculationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -948,8 +1022,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FI calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -967,6 +1043,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -991,7 +1073,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fi/v3/calculations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1009,10 +1091,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ObjectRoot - public ObjectRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); return localVarResponse.Data; } @@ -1023,8 +1107,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1038,6 +1124,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1068,7 +1162,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1087,10 +1181,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1102,8 +1198,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1118,6 +1216,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1150,7 +1255,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fi/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1169,10 +1274,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ObjectRoot - public ObjectRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot); return localVarResponse.Data; } @@ -1184,8 +1291,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1203,6 +1312,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1234,7 +1352,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1254,10 +1372,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fICalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1270,8 +1390,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FICalculationParametersRoot fICalculationParametersRoot = default(FICalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1290,6 +1412,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1323,7 +1453,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fi/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1335,4 +1465,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs index a2099123..4f6bd5a9 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FPOOptimizerApi.cs @@ -46,8 +46,8 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of Object(void) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get FPO optimization parameters by id /// @@ -100,8 +100,10 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ObjectRoot - ObjectRoot GetOptimizationStatusById(string id); + /// ObjectRoot for 201 status + /// null for 202 status + + object GetOptimizationStatusById(string id); /// /// Get FPO optimization status by id @@ -111,8 +113,10 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of ObjectRoot - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run FPO optimization /// @@ -123,8 +127,10 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); /// /// Create and Run FPO optimization @@ -136,8 +142,10 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); /// /// Create or Update FPO optimization and run it. /// @@ -149,8 +157,10 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); /// /// Create or Update FPO optimization and run it. @@ -163,8 +173,10 @@ public interface IFPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -195,8 +207,8 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization parameters by id /// @@ -218,7 +230,7 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FPOOptimizationParametersRoot) + /// Task of ApiResponse of FPOOptimizationParametersRoot System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization result by id @@ -243,7 +255,7 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// from url, provided from the location header in the Get FPO optimization status by id endpoint /// Standard HTTP header. Value can be gzip, compress, deflate, br, identity and/or * (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, string accept = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization status by id @@ -254,8 +266,10 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FPO optimization status by id @@ -266,8 +280,10 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FPO optimization /// @@ -279,8 +295,10 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run FPO optimization @@ -293,8 +311,10 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FPO optimization and run it. /// @@ -307,8 +327,10 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update FPO optimization and run it. @@ -322,8 +344,10 @@ public interface IFPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -460,8 +484,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -479,6 +503,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -501,7 +531,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -530,8 +560,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -550,6 +580,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -574,7 +609,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -619,6 +654,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(FPOOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -671,7 +713,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FPOOptimizationParametersRoot) + /// Task of ApiResponse of FPOOptimizationParametersRoot public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -689,6 +731,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(FPOOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -760,6 +808,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -818,7 +873,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponsefrom url, provided from the location header in the Get FPO optimization status by id endpoint /// Standard HTTP header. Value can be gzip, compress, deflate, br, identity and/or * (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, string accept = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -836,6 +891,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -880,10 +941,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ObjectRoot - public ObjectRoot GetOptimizationStatusById(string id) + /// ObjectRoot for 201 status + /// null for 202 status + + public object GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -892,8 +955,10 @@ public ObjectRoot GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -909,6 +974,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -931,7 +1003,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -948,10 +1020,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -961,8 +1035,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run FPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -979,6 +1055,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1003,7 +1085,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/fpo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1021,10 +1103,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1035,8 +1119,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1049,6 +1135,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1079,7 +1173,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1098,10 +1192,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1113,8 +1209,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1128,6 +1226,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1160,7 +1265,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/fpo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1179,10 +1284,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1194,8 +1301,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1212,6 +1321,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1243,7 +1361,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1263,10 +1381,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, fPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1279,8 +1399,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), FPOOptimizationParametersRoot fPOOptimizationParametersRoot = default(FPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1298,6 +1420,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1331,7 +1461,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/fpo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1343,4 +1473,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs index 45dd9945..0bb30a20 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/FrequenciesApi.cs @@ -112,7 +112,7 @@ public interface IFrequenciesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FrequencyRoot) + /// Task of ApiResponse of FrequencyRoot System.Threading.Tasks.Task> GetPAFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR frequencies @@ -133,7 +133,7 @@ public interface IFrequenciesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FrequencyRoot) + /// Task of ApiResponse of FrequencyRoot System.Threading.Tasks.Task> GetSPARFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault frequencies @@ -154,7 +154,7 @@ public interface IFrequenciesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FrequencyRoot) + /// Task of ApiResponse of FrequencyRoot System.Threading.Tasks.Task> GetVaultFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -304,6 +304,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FrequencyRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -353,7 +358,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FrequencyRoot) + /// Task of ApiResponse of FrequencyRoot public async System.Threading.Tasks.Task> GetPAFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -367,6 +372,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAFrequ "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FrequencyRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -429,6 +438,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FrequencyRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -478,7 +492,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FrequencyRoot) + /// Task of ApiResponse of FrequencyRoot public async System.Threading.Tasks.Task> GetSPARFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -492,6 +506,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetSPARFre "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FrequencyRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -554,6 +572,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FrequencyRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -603,7 +626,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (FrequencyRoot) + /// Task of ApiResponse of FrequencyRoot public async System.Threading.Tasks.Task> GetVaultFrequenciesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -617,6 +640,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(FrequencyRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -652,4 +679,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetVaultFr } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs index f41c1932..789068af 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/GroupsApi.cs @@ -74,7 +74,7 @@ public interface IGroupsApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GroupRoot) + /// Task of ApiResponse of GroupRoot System.Threading.Tasks.Task> GetPAGroupsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -224,6 +224,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(GroupRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -273,7 +278,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (GroupRoot) + /// Task of ApiResponse of GroupRoot public async System.Threading.Tasks.Task> GetPAGroupsWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -287,6 +292,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(GroupRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -322,4 +331,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAGroupsWit } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs index 09fea4b4..3e93b032 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/LinkedPATemplatesApi.cs @@ -67,8 +67,8 @@ public interface ILinkedPATemplatesApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Unique identifier for a linked PA template - /// ApiResponse of Object(void) - ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id); /// /// Get linked PA templates /// @@ -168,7 +168,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateSummaryRoot) + /// Task of ApiResponse of LinkedPATemplateSummaryRoot System.Threading.Tasks.Task> CreateLinkedPATemplatesWithHttpInfoAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete a linked PA template. @@ -191,8 +191,8 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get linked PA templates /// @@ -218,7 +218,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Get linked PA templates for documents in document path (optional) /// Get linked PA templates for documents by document name (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateSummaryRoot) + /// Task of ApiResponse of LinkedPATemplateSummaryRoot System.Threading.Tasks.Task> GetLinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get linked PA template by id @@ -241,7 +241,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateRoot) + /// Task of ApiResponse of LinkedPATemplateRoot System.Threading.Tasks.Task> GetLinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update a linked PA template @@ -266,7 +266,7 @@ public interface ILinkedPATemplatesApiAsync : IApiAccessor /// Unique identifier for a linked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateSummaryRoot) + /// Task of ApiResponse of LinkedPATemplateSummaryRoot System.Threading.Tasks.Task> UpdateLinkedPATemplatesWithHttpInfoAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -423,6 +423,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 201, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -475,7 +481,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateSummaryRoot) + /// Task of ApiResponse of LinkedPATemplateSummaryRoot public async System.Threading.Tasks.Task> CreateLinkedPATemplatesWithHttpInfoAsync(LinkedPATemplateParametersRoot linkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'linkedPATemplateParametersRoot' is set @@ -494,6 +500,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 201, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -545,8 +556,8 @@ public void DeleteLinkedPATemplates(string id) /// /// Thrown when fails to make API call /// Unique identifier for a linked PA template - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATemplatesWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -564,6 +575,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -586,7 +603,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -615,8 +632,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> DeleteLinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -635,6 +652,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -659,7 +681,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/linked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -704,6 +726,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -771,7 +800,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem /// Get linked PA templates for documents in document path (optional) /// Get linked PA templates for documents by document name (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateSummaryRoot) + /// Task of ApiResponse of LinkedPATemplateSummaryRoot public async System.Threading.Tasks.Task> GetLinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string documentDirectory = default(string), string documentName = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -785,6 +814,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteLinkedPATem "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -865,6 +900,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -917,7 +959,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get /// Thrown when fails to make API call /// Unique identifier for a linked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateRoot) + /// Task of ApiResponse of LinkedPATemplateRoot public async System.Threading.Tasks.Task> GetLinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -935,6 +977,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Get "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(LinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1011,6 +1059,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1066,7 +1121,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseUnique identifier for a linked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (LinkedPATemplateSummaryRoot) + /// Task of ApiResponse of LinkedPATemplateSummaryRoot public async System.Threading.Tasks.Task> UpdateLinkedPATemplatesWithHttpInfoAsync(string id, LinkedPATemplateUpdateParametersRoot linkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1089,6 +1144,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(LinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1126,4 +1187,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of Object(void) - ApiResponse CancelOptimizationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelOptimizationByIdWithHttpInfo(string id); /// /// Get NPO optimization parameters by id /// @@ -98,8 +98,10 @@ public interface INPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ObjectRoot - ObjectRoot GetOptimizationStatusById(string id); + /// ObjectRoot for 201 status + /// null for 202 status + + object GetOptimizationStatusById(string id); /// /// Get NPO optimization status by id @@ -109,8 +111,10 @@ public interface INPOOptimizerApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of ObjectRoot - ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id); /// /// Create and Run NPO optimization /// @@ -121,8 +125,10 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); /// /// Create and Run NPO optimization @@ -134,8 +140,10 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); /// /// Create or Update NPO optimization and run it. /// @@ -147,8 +155,10 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); /// /// Create or Update NPO optimization and run it. @@ -161,8 +171,10 @@ public interface INPOOptimizerApiSync : IApiAccessor /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)); #endregion Synchronous Operations } @@ -193,8 +205,8 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization parameters by id /// @@ -216,7 +228,7 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (NPOOptimizationParametersRoot) + /// Task of ApiResponse of NPOOptimizationParametersRoot System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization result by id @@ -239,7 +251,7 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Get NPO optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization status by id @@ -250,8 +262,10 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get NPO optimization status by id @@ -262,8 +276,10 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run NPO optimization /// @@ -275,8 +291,10 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run NPO optimization @@ -289,8 +307,10 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update NPO optimization and run it. /// @@ -303,8 +323,10 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update NPO optimization and run it. @@ -318,8 +340,10 @@ public interface INPOOptimizerApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -456,8 +480,8 @@ public void CancelOptimizationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -475,6 +499,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -497,7 +527,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -526,8 +556,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelOptimizationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -546,6 +576,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -570,7 +605,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelOptimizatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -615,6 +650,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(NPOOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -667,7 +709,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (NPOOptimizationParametersRoot) + /// Task of ApiResponse of NPOOptimizationParametersRoot public async System.Threading.Tasks.Task> GetOptimizationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -685,6 +727,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(NPOOptimizationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -754,6 +802,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -806,7 +861,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Get NPO optimization status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetOptimizationResultWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -824,6 +879,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -864,10 +925,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ObjectRoot - public ObjectRoot GetOptimizationStatusById(string id) + /// ObjectRoot for 201 status + /// null for 202 status + + public object GetOptimizationStatusById(string id) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetOptimizationStatusByIdWithHttpInfo(id); return localVarResponse.Data; } @@ -876,8 +939,10 @@ public ObjectRoot GetOptimizationStatusById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of null for 202 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizationStatusByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -893,6 +958,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -915,7 +987,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Get("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -932,10 +1004,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ObjectRoot for 201 status + /// Task of null for 202 status + + public async System.Threading.Tasks.Task GetOptimizationStatusByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetOptimizationStatusByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -945,8 +1019,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run NPO optimization endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of null for 202 status + + public async System.Threading.Tasks.Task> GetOptimizationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -963,6 +1039,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -987,7 +1069,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync("/analytics/engines/npo/v3/optimizations/{id}/status", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1005,10 +1087,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PostAndOptimize(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndOptimizeWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1019,8 +1103,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndOptimizeWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1033,6 +1119,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1063,7 +1157,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1082,10 +1176,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndOptimizeAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndOptimizeWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1097,8 +1193,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndOptimizeWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1112,6 +1210,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1144,7 +1249,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/npo/v3/optimizations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1163,10 +1268,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ObjectRoot - public ObjectRoot PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// CalculationInfoRoot for 202 status + /// ObjectRoot for 201 status + + public object PutAndOptimize(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndOptimizeWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot); return localVarResponse.Data; } @@ -1178,8 +1285,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Long running deadline in seconds. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) - /// ApiResponse of ObjectRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) + /// ApiResponse of CalculationInfoRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndOptimizeWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1196,6 +1305,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1227,7 +1345,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1247,10 +1365,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ObjectRoot - public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationInfoRoot for 202 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndOptimizeAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndOptimizeWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, nPOOptimizationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1263,8 +1383,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati /// Standard HTTP header. Accepts max-stale. (optional) /// Optimization Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) - public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationInfoRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndOptimizeWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), NPOOptimizationParametersRoot nPOOptimizationParametersRoot = default(NPOOptimizationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1282,6 +1404,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationInfoRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1315,7 +1445,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/npo/v3/optimizations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1327,4 +1457,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetOptimizati } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs index 09431b08..fd9dc591 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PACalculationsApi.cs @@ -46,8 +46,8 @@ public interface IPACalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint - /// ApiResponse of Object(void) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get PA calculation parameters by id /// @@ -123,8 +123,11 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// ObjectRoot for 201 status + /// CalculationStatusRoot for 200 status + + object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); /// /// Create and Run PA calculation @@ -136,8 +139,11 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of CalculationStatusRoot for 200 status + + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); /// /// Create or Update PA calculation and run it. /// @@ -149,8 +155,11 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); /// /// Create or Update PA calculation and run it. @@ -163,8 +172,11 @@ public interface IPACalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)); #endregion Synchronous Operations } @@ -195,8 +207,8 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA calculation parameters by id /// @@ -218,7 +230,7 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PACalculationParametersRoot) + /// Task of ApiResponse of PACalculationParametersRoot System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA calculation status by id @@ -241,7 +253,7 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA calculation result by id @@ -266,7 +278,7 @@ public interface IPACalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get PA calculation status by id endpoint /// from url, provided from the location header in the Get PA calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run PA calculation @@ -279,8 +291,11 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of ObjectRoot for 201 status + /// Task of CalculationStatusRoot for 200 status + + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run PA calculation @@ -293,8 +308,11 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update PA calculation and run it. /// @@ -307,8 +325,11 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update PA calculation and run it. @@ -322,8 +343,11 @@ public interface IPACalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -460,8 +484,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -479,6 +503,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -501,7 +531,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -530,8 +560,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -550,6 +580,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -574,7 +609,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -619,6 +654,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(PACalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -671,7 +713,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PACalculationParametersRoot) + /// Task of ApiResponse of PACalculationParametersRoot public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -689,6 +731,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(PACalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -758,6 +806,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -810,7 +866,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run PA calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -828,6 +884,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -904,6 +967,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -959,7 +1029,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// from url, provided from the location header in the Get PA calculation status by id endpoint /// from url, provided from the location header in the Get PA calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -982,6 +1052,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1025,10 +1101,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// ObjectRoot for 201 status + /// CalculationStatusRoot for 200 status + + public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); return localVarResponse.Data; } @@ -1039,8 +1118,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of CalculationStatusRoot for 200 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1054,6 +1136,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1084,7 +1175,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1103,10 +1194,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of ObjectRoot for 201 status + /// Task of CalculationStatusRoot for 200 status + + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1118,8 +1212,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1134,6 +1231,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1166,7 +1271,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pa/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1185,10 +1290,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot); return localVarResponse.Data; } @@ -1200,8 +1308,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1219,6 +1330,16 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1250,7 +1371,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1270,10 +1391,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pACalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1286,8 +1410,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PACalculationParametersRoot pACalculationParametersRoot = default(PACalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1306,6 +1433,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1339,7 +1475,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pa/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1351,4 +1487,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs index c7b009b9..980e55da 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/PubCalculationsApi.cs @@ -46,8 +46,8 @@ public interface IPubCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint - /// ApiResponse of Object(void) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get Pub calculation parameters by id /// @@ -123,8 +123,11 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// File for 201 status + + object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); /// /// Create and Run Pub calculation @@ -136,8 +139,11 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of File for 201 status + + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); /// /// Create or Update Pub calculation and run it. /// @@ -149,8 +155,11 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// File for 201 status + + object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); /// /// Create or Update Pub calculation and run it. @@ -163,8 +172,11 @@ public interface IPubCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of File for 201 status + + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)); #endregion Synchronous Operations } @@ -195,8 +207,8 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Pub calculation parameters by id /// @@ -218,7 +230,7 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PubCalculationParametersRoot) + /// Task of ApiResponse of PubCalculationParametersRoot System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Pub calculation status by id @@ -241,7 +253,7 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Pub calculation result by id @@ -266,7 +278,7 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (System.IO.Stream) + /// Task of ApiResponse of System.IO.Stream System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Pub calculation @@ -279,8 +291,11 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of File for 201 status + + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Pub calculation @@ -293,8 +308,11 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of File for 201 status + + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Pub calculation and run it. /// @@ -307,8 +325,11 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of File for 201 status + + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Pub calculation and run it. @@ -322,8 +343,11 @@ public interface IPubCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of File for 201 status + + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -460,8 +484,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -479,6 +503,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -501,7 +531,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -530,8 +560,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -550,6 +580,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -574,7 +609,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -619,6 +654,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(PubCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -671,7 +713,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PubCalculationParametersRoot) + /// Task of ApiResponse of PubCalculationParametersRoot public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -689,6 +731,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(PubCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -758,6 +806,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -810,7 +866,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Pub calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -828,6 +884,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -905,6 +968,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -960,7 +1030,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// from url, provided from the location header in the Get Pub calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (System.IO.Stream) + /// Task of ApiResponse of System.IO.Stream public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -984,6 +1054,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1027,10 +1103,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// File for 201 status + + public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); return localVarResponse.Data; } @@ -1041,8 +1120,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of File for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1056,6 +1138,15 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/vnd.openxmlformats-officedocument.presentationml.presentation" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1086,7 +1177,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1105,10 +1196,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of File for 201 status + + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1120,8 +1214,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of File for 201 status + + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1136,6 +1233,14 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/vnd.openxmlformats-officedocument.presentationml.presentation" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1168,7 +1273,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/pub/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1187,10 +1292,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// File for 201 status + + public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot); return localVarResponse.Data; } @@ -1202,8 +1310,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of File for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1220,6 +1331,16 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1251,7 +1372,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1271,10 +1392,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of File for 201 status + + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, pubCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1287,8 +1411,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of File for 201 status + + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), PubCalculationParametersRoot pubCalculationParametersRoot = default(PubCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1306,6 +1433,15 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/pdf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1339,7 +1475,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/pub/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1351,4 +1487,4 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs index f80bf008..d22d84c3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/QuantCalculationsApi.cs @@ -46,8 +46,8 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint - /// ApiResponse of Object(void) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get Quant Engine calculation parameters by id /// @@ -145,8 +145,11 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// CalculationStatusRoot - CalculationStatusRoot PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// ObjectRoot for 201 status + /// CalculationStatusRoot for 200 status + + object PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); /// /// Create and Run Quant Engine calculation @@ -157,8 +160,11 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of CalculationStatusRoot for 200 status + + ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); /// /// Create or update Quant Engine calculation and run it. /// @@ -169,8 +175,11 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + object PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); /// /// Create or update Quant Engine calculation and run it. @@ -182,8 +191,11 @@ public interface IQuantCalculationsApiSync : IApiAccessor /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)); #endregion Synchronous Operations } @@ -214,8 +226,8 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation parameters by id /// @@ -237,7 +249,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (QuantCalculationParametersRoot) + /// Task of ApiResponse of QuantCalculationParametersRoot System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation status by id @@ -260,7 +272,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation metadata information by id @@ -285,7 +297,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (System.IO.Stream) + /// Task of ApiResponse of System.IO.Stream System.Threading.Tasks.Task> GetCalculationUnitInfoByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Quant Engine calculation result by id @@ -310,7 +322,7 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (System.IO.Stream) + /// Task of ApiResponse of System.IO.Stream System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Quant Engine calculation @@ -322,8 +334,11 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of ObjectRoot for 201 status + /// Task of CalculationStatusRoot for 200 status + + System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Quant Engine calculation @@ -335,8 +350,11 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or update Quant Engine calculation and run it. /// @@ -348,8 +366,11 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or update Quant Engine calculation and run it. @@ -362,8 +383,11 @@ public interface IQuantCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -500,8 +524,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -519,6 +543,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -541,7 +571,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -570,8 +600,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -590,6 +620,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -614,7 +649,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -659,6 +694,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(QuantCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -711,7 +753,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (QuantCalculationParametersRoot) + /// Task of ApiResponse of QuantCalculationParametersRoot public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -729,6 +771,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(QuantCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -798,6 +846,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -850,7 +906,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -868,6 +924,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -945,6 +1008,13 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) "application/octet-stream" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1000,7 +1070,7 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// from url, provided from the location header in the Get Quant calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (System.IO.Stream) + /// Task of ApiResponse of System.IO.Stream public async System.Threading.Tasks.Task> GetCalculationUnitInfoByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1024,6 +1094,12 @@ public System.IO.Stream GetCalculationUnitInfoById(string id, string unitId) "application/octet-stream" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1102,6 +1178,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/octet-stream" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1157,7 +1240,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// from url, provided from the location header in the Get Quant Engine calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (System.IO.Stream) + /// Task of ApiResponse of System.IO.Stream public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1181,6 +1264,12 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/octet-stream" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(System.IO.Stream) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1223,10 +1312,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// ObjectRoot for 201 status + /// CalculationStatusRoot for 200 status + + public object PostAndCalculate(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(cacheControl, quantCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(cacheControl, quantCalculationParametersRoot); return localVarResponse.Data; } @@ -1236,8 +1328,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Thrown when fails to make API call /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of ObjectRoot for 201 status + /// ApiResponse of CalculationStatusRoot for 200 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1251,6 +1346,15 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1277,7 +1381,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1295,10 +1399,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of ObjectRoot for 201 status + /// Task of CalculationStatusRoot for 200 status + + public async System.Threading.Tasks.Task PostAndCalculateAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1309,8 +1416,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of ObjectRoot for 201 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1325,6 +1435,14 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1353,7 +1471,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/quant/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1371,10 +1489,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + public object PutAndCalculate(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, cacheControl, quantCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, cacheControl, quantCalculationParametersRoot); return localVarResponse.Data; } @@ -1385,8 +1506,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// from url, provided from the location header in the Create and Run Quant Engine calculation endpoint /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1404,6 +1528,16 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1431,7 +1565,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1450,10 +1584,13 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, cacheControl, quantCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1465,8 +1602,11 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) /// Standard HTTP header. Accepts no-store, max-age, max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, string cacheControl = default(string), QuantCalculationParametersRoot quantCalculationParametersRoot = default(QuantCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1485,6 +1625,15 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1514,7 +1663,7 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/quant/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1526,4 +1675,4 @@ public System.IO.Stream GetCalculationUnitResultById(string id, string unitId) } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs index e2cbcdd2..e8806c1a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/SPARCalculationsApi.cs @@ -46,8 +46,8 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint - /// ApiResponse of Object(void) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get SPAR calculation parameters by id /// @@ -123,8 +123,11 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); /// /// Create and Run SPAR calculation @@ -136,8 +139,11 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); /// /// Create or Update SPAR calculation and run it. /// @@ -149,8 +155,11 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); /// /// Create or Update SPAR calculation and run it. @@ -163,8 +172,11 @@ public interface ISPARCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)); #endregion Synchronous Operations } @@ -195,8 +207,8 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR calculation parameters by id /// @@ -218,7 +230,7 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SPARCalculationParametersRoot) + /// Task of ApiResponse of SPARCalculationParametersRoot System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR calculation status by id @@ -241,7 +253,7 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR calculation result by id @@ -266,7 +278,7 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run SPAR calculation @@ -279,8 +291,11 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run SPAR calculation @@ -293,8 +308,11 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update SPAR calculation and run it. /// @@ -307,8 +325,11 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update SPAR calculation and run it. @@ -322,8 +343,11 @@ public interface ISPARCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -460,8 +484,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -479,6 +503,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -501,7 +531,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -530,8 +560,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -550,6 +580,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -574,7 +609,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -619,6 +654,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(SPARCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -671,7 +713,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (SPARCalculationParametersRoot) + /// Task of ApiResponse of SPARCalculationParametersRoot public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -689,6 +731,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(SPARCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -758,6 +806,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -810,7 +866,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run SPAR calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -828,6 +884,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -904,6 +967,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -959,7 +1029,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// from url, provided from the location header in the Get SPAR calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -982,6 +1052,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1025,10 +1101,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); return localVarResponse.Data; } @@ -1039,8 +1118,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1054,6 +1136,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1084,7 +1175,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1103,10 +1194,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1118,8 +1212,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1134,6 +1231,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1166,7 +1271,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/spar/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1185,10 +1290,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot); return localVarResponse.Data; } @@ -1200,8 +1308,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1219,6 +1330,16 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1250,7 +1371,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1270,10 +1391,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, sPARCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1286,8 +1410,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), SPARCalculationParametersRoot sPARCalculationParametersRoot = default(SPARCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1306,6 +1433,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1339,7 +1475,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/spar/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1351,4 +1487,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs index 3d62fa29..16ebe98c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/StrategyDocumentsApi.cs @@ -162,7 +162,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetAxiomaEquityStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Axioma FI strategy documents and sub-directories in a directory @@ -185,7 +185,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetAxiomaFIStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Barra strategy documents and sub-directories in a directory @@ -208,7 +208,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetBarraStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get FactSet Portfolio Optimizer strategy documents and sub-directories in a directory @@ -231,7 +231,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetFPOStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Northfield strategy documents and sub-directories in a directory @@ -254,7 +254,7 @@ public interface IStrategyDocumentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot System.Threading.Tasks.Task> GetNorthfieldStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -410,6 +410,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -462,7 +469,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetAxiomaEquityStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -480,6 +487,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -549,6 +562,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -601,7 +621,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetAxiomaFIStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -619,6 +639,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -688,6 +714,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -740,7 +773,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetBarraStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -758,6 +791,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -827,6 +866,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -879,7 +925,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetFPOStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -897,6 +943,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -966,6 +1018,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1018,7 +1077,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// The directory to get the strategy documents and sub-directories in /// Cancellation Token to cancel the request. - /// Task of ApiResponse (DocumentDirectoriesRoot) + /// Task of ApiResponse of DocumentDirectoriesRoot public async System.Threading.Tasks.Task> GetNorthfieldStrategyDocumentsWithHttpInfoAsync(string path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'path' is set @@ -1036,6 +1095,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(DocumentDirectoriesRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1072,4 +1137,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs index 7902a699..1d636eac 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs @@ -67,8 +67,8 @@ public interface ITemplatedPAComponentsApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Unique identifier for a templated PA component - /// ApiResponse of Object(void) - ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id); /// /// Update templated PA component /// @@ -122,7 +122,7 @@ public interface ITemplatedPAComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot System.Threading.Tasks.Task> CreateTemplatedPAComponentsWithHttpInfoAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete templated PA component @@ -145,8 +145,8 @@ public interface ITemplatedPAComponentsApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for a templated PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update templated PA component /// @@ -170,7 +170,7 @@ public interface ITemplatedPAComponentsApiAsync : IApiAccessor /// Unique identifier for a templated PA component /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot System.Threading.Tasks.Task> UpdateTemplatedPAComponentsWithHttpInfoAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -329,6 +329,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 201, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -381,7 +387,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot public async System.Threading.Tasks.Task> CreateTemplatedPAComponentsWithHttpInfoAsync(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'templatedPAComponentParametersRoot' is set @@ -402,6 +408,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 201, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -453,8 +464,8 @@ public void DeleteTemplatedPAComponents(string id) /// /// Thrown when fails to make API call /// Unique identifier for a templated PA component - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPAComponentsWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -472,6 +483,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -494,7 +511,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -523,8 +540,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA /// Thrown when fails to make API call /// Unique identifier for a templated PA component /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> DeleteTemplatedPAComponentsWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -543,6 +560,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -567,7 +589,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteTemplatedPA // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/templated-components/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -619,6 +641,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -674,7 +703,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseUnique identifier for a templated PA component /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (TemplatedPAComponentSummaryRoot) + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot public async System.Threading.Tasks.Task> UpdateTemplatedPAComponentsWithHttpInfoAsync(string id, TemplatedPAComponentUpdateParametersRoot templatedPAComponentUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -697,6 +726,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(TemplatedPAComponentSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -734,4 +769,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template - /// ApiResponse of Object(void) - ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id); /// /// Get default unlinked PA template types. /// @@ -206,7 +206,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot System.Threading.Tasks.Task> CreateUnlinkedPATemplatesWithHttpInfoAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete unlinked PA template @@ -229,8 +229,8 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get default unlinked PA template types. /// @@ -250,7 +250,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeRoot) + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot System.Threading.Tasks.Task> GetDefaultUnlinkedPATemplateTypesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get unlinked PA template type details by id. @@ -273,7 +273,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template type /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeDetailsRoot) + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot System.Threading.Tasks.Task> GetDetailsTypeWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get unlinked PA templates @@ -298,7 +298,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Get unlinked PA templates in path. (optional) /// Get unlinked PA templates by category. (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot System.Threading.Tasks.Task> GetUnlinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get unlinked PA template details by id @@ -321,7 +321,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateRoot) + /// Task of ApiResponse of UnlinkedPATemplateRoot System.Threading.Tasks.Task> GetUnlinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Update unlinked PA template @@ -346,7 +346,7 @@ public interface IUnlinkedPATemplatesApiAsync : IApiAccessor /// Unique identifier for an unlinked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot System.Threading.Tasks.Task> UpdateUnlinkedPATemplatesWithHttpInfoAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -503,6 +503,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 201, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -555,7 +561,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot public async System.Threading.Tasks.Task> CreateUnlinkedPATemplatesWithHttpInfoAsync(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'unlinkedPATemplateParametersRoot' is set @@ -574,6 +580,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 201, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -625,8 +636,8 @@ public void DeleteUnlinkedPATemplates(string id) /// /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPATemplatesWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -642,6 +653,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -664,7 +681,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -693,8 +710,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> DeleteUnlinkedPATemplatesWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -711,6 +728,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -735,7 +757,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse DeleteUnlinkedPAT // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/pa/v3/unlinked-templates/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -774,6 +796,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeRoot) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -823,7 +850,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeRoot) + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeRoot public async System.Threading.Tasks.Task> GetDefaultUnlinkedPATemplateTypesWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -837,6 +864,10 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeRoot) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -905,6 +936,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeDetailsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -957,7 +995,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// Unique identifier for an unlinked PA template type /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateCategoryAndTypeDetailsRoot) + /// Task of ApiResponse of UnlinkedPATemplateCategoryAndTypeDetailsRoot public async System.Threading.Tasks.Task> GetDetailsTypeWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -975,6 +1013,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateCategoryAndTypeDetailsRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1042,6 +1086,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1103,7 +1153,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseGet unlinked PA templates in path. (optional) /// Get unlinked PA templates by category. (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot public async System.Threading.Tasks.Task> GetUnlinkedPATemplatesWithHttpInfoAsync(string directory = default(string), string category = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { @@ -1117,6 +1167,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1193,6 +1248,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1245,7 +1307,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G /// Thrown when fails to make API call /// Unique identifier for an unlinked PA template /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateRoot) + /// Task of ApiResponse of UnlinkedPATemplateRoot public async System.Threading.Tasks.Task> GetUnlinkedPATemplatesByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1263,6 +1325,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse G "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(UnlinkedPATemplateRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1339,6 +1407,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1394,7 +1469,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseUnique identifier for an unlinked PA template /// Request Parameters /// Cancellation Token to cancel the request. - /// Task of ApiResponse (UnlinkedPATemplateSummaryRoot) + /// Task of ApiResponse of UnlinkedPATemplateSummaryRoot public async System.Threading.Tasks.Task> UpdateUnlinkedPATemplatesWithHttpInfoAsync(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -1417,6 +1492,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(UnlinkedPATemplateSummaryRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1454,4 +1535,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint - /// ApiResponse of Object(void) - ApiResponse CancelCalculationByIdWithHttpInfo(string id); + /// ApiResponse of Object(null) + ApiResponse CancelCalculationByIdWithHttpInfo(string id); /// /// Get Vault calculation parameters by id /// @@ -123,8 +123,11 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); /// /// Create and Run Vault calculation @@ -136,8 +139,11 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); /// /// Create or Update Vault calculation and run it. /// @@ -149,8 +155,11 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); /// /// Create or Update Vault calculation and run it. @@ -163,8 +172,11 @@ public interface IVaultCalculationsApiSync : IApiAccessor /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)); #endregion Synchronous Operations } @@ -195,8 +207,8 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of Object(null) + System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault calculation parameters by id /// @@ -218,7 +230,7 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultCalculationParametersRoot) + /// Task of ApiResponse of VaultCalculationParametersRoot System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault calculation status by id @@ -241,7 +253,7 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get Vault calculation result by id @@ -266,7 +278,7 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Vault calculation @@ -279,8 +291,11 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create and Run Vault calculation @@ -293,8 +308,11 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Vault calculation and run it. /// @@ -307,8 +325,11 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create or Update Vault calculation and run it. @@ -322,8 +343,11 @@ public interface IVaultCalculationsApiAsync : IApiAccessor /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -460,8 +484,8 @@ public void CancelCalculationById(string id) /// /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint - /// ApiResponse of Object(void) - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) + /// ApiResponse of Object(null) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculationByIdWithHttpInfo(string id) { // verify the required parameter 'id' is set if (id == null) @@ -479,6 +503,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -501,7 +531,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation } // make the HTTP request - var localVarResponse = this.Client.Delete("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Delete("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -530,8 +560,8 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse - public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of Object(null) + public async System.Threading.Tasks.Task> CancelCalculationByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -550,6 +580,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation "text/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -574,7 +609,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse CancelCalculation // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -619,6 +654,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(VaultCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -671,7 +713,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponseThrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (VaultCalculationParametersRoot) + /// Task of ApiResponse of VaultCalculationParametersRoot public async System.Threading.Tasks.Task> GetCalculationParametersWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -689,6 +731,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse + { + { 200, typeof(VaultCalculationParametersRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -758,6 +806,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -810,7 +866,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge /// Thrown when fails to make API call /// from url, provided from the location header in the Create and Run Vault calculation endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) + /// Task of ApiResponse of CalculationStatusRoot public async System.Threading.Tasks.Task> GetCalculationStatusByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -828,6 +884,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse Ge "application/json" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(CalculationStatusRoot) }, + { 202, typeof(CalculationStatusRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -904,6 +967,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -959,7 +1029,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// from url, provided from the location header in the Get Vault calculation status by id endpoint /// Cancellation Token to cancel the request. - /// Task of ApiResponse (ObjectRoot) + /// Task of ApiResponse of ObjectRoot public async System.Threading.Tasks.Task> GetCalculationUnitResultByIdWithHttpInfoAsync(string id, string unitId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set @@ -982,6 +1052,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 200, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1025,10 +1101,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + public object PostAndCalculate(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PostAndCalculateWithHttpInfo(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); return localVarResponse.Data; } @@ -1039,8 +1118,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the POST body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PostAndCalculateWithHttpInfo(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1054,6 +1136,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1084,7 +1175,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Post("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1103,10 +1194,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PostAndCalculateAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PostAndCalculateWithHttpInfoAsync(xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1118,8 +1212,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PostAndCalculateWithHttpInfoAsync(int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -1134,6 +1231,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1166,7 +1271,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/analytics/engines/vault/v3/calculations", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1185,10 +1290,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// CalculationStatusRoot - public CalculationStatusRoot PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// CalculationStatusRoot for 202 status + /// CalculationStatusRoot for 200 status + /// ObjectRoot for 201 status + + public object PutAndCalculate(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = PutAndCalculateWithHttpInfo(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot); return localVarResponse.Data; } @@ -1200,8 +1308,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Long running deadline in seconds when only one unit is passed in the PUT body. (optional) /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) - /// ApiResponse of CalculationStatusRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) + /// ApiResponse of CalculationStatusRoot for 202 status + /// ApiResponse of CalculationStatusRoot for 200 status + /// ApiResponse of ObjectRoot for 201 status + + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse PutAndCalculateWithHttpInfo(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot)) { // verify the required parameter 'id' is set if (id == null) @@ -1219,6 +1330,16 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; + var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1250,7 +1371,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } // make the HTTP request - var localVarResponse = this.Client.Put("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Put("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1270,10 +1391,13 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of CalculationStatusRoot - public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of CalculationStatusRoot for 202 status + /// Task of CalculationStatusRoot for 200 status + /// Task of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task PutAndCalculateAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await PutAndCalculateWithHttpInfoAsync(id, xFactSetApiLongRunningDeadline, cacheControl, vaultCalculationParametersRoot, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1286,8 +1410,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio /// Standard HTTP header. Accepts max-stale. (optional) /// Calculation Parameters (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (CalculationStatusRoot) - public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse of CalculationStatusRoot for 202 status + /// Task of ApiResponse of CalculationStatusRoot for 200 status + /// Task of ApiResponse of ObjectRoot for 201 status + + public async System.Threading.Tasks.Task> PutAndCalculateWithHttpInfoAsync(string id, int? xFactSetApiLongRunningDeadline = default(int?), string cacheControl = default(string), VaultCalculationParametersRoot vaultCalculationParametersRoot = default(VaultCalculationParametersRoot), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -1306,6 +1433,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio "application/x-protobuf" }; + localVarRequestOptions.ResponseReturnTypes = new Dictionary + { + { 202, typeof(CalculationStatusRoot) }, + { 200, typeof(CalculationStatusRoot) }, + { 201, typeof(ObjectRoot) }, + { 400, typeof(ClientErrorResponse) }, + { 404, typeof(ClientErrorResponse) }, + { 409, typeof(ClientErrorResponse) }, + }; var localVarContentType = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderContentType(_contentTypes); if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); @@ -1339,7 +1475,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PutAsync("/analytics/engines/vault/v3/calculations/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1351,4 +1487,4 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetCalculatio } } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs index a910ac8a..07b557fa 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiClient.cs @@ -31,6 +31,8 @@ using RestSharpMethod = RestSharp.Method; using Polly; +using FactSet.AnalyticsAPI.Engines.Model; + namespace FactSet.AnalyticsAPI.Engines.Client { /// @@ -427,7 +429,7 @@ private ApiResponse ToApiResponse(IRestResponse response) return transformed; } - private ApiResponse Exec(RestRequest req, IReadableConfiguration configuration) + private ApiResponse Exec(RestRequest req, IReadableConfiguration configuration, Dictionary returnTypes = null) { RestClient client = new RestClient(_baseUrl); @@ -455,7 +457,6 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura client.AddHandler("application/xml", () => xmlDeserializer); client.AddHandler("text/xml", () => xmlDeserializer); client.AddHandler("*+xml", () => xmlDeserializer); - client.AddHandler("*", () => xmlDeserializer); client.Timeout = configuration.Timeout; @@ -492,14 +493,64 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura response = client.Execute(req); } - // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(FactSet.AnalyticsAPI.Engines.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) - { - response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); - } - else if (typeof(T).Name == "Stream") // for binary response + var status = (int)response.StatusCode; + + if (returnTypes.ContainsKey(status)) { - response.Data = (T)(object)new MemoryStream(response.RawBytes); + var type = returnTypes[status]; + var JsonSerializer = new CustomJsonCodec(SerializerSettings, configuration); + + if (!response.IsSuccessful) + { + var clientErrorResponse = (ClientErrorResponse)JsonSerializer.Deserialize(response, type); + + String reason = ""; + if (clientErrorResponse != null && clientErrorResponse.Errors.Any() && !string.IsNullOrWhiteSpace(clientErrorResponse.Errors.FirstOrDefault().Detail)) + { + List errors = clientErrorResponse.Errors; + reason = errors.FirstOrDefault().Detail; + for (int i = 1; i < errors.Count; i++) + { + if (string.IsNullOrWhiteSpace(errors[i].Detail)) + reason = reason + " ||| " + errors[i].Detail; + } + } + + if (clientErrorResponse == null && response.Headers != null) + { + Error error = new Error(); + foreach(var header in response.Headers) + { + if (string.Equals(header.Name, "x-factset-api-request-key", StringComparison.CurrentCultureIgnoreCase)) + { + error.Id = header.Value.ToString(); + } + } + + clientErrorResponse = new ClientErrorResponse() + { + Errors = new List() { error } + }; + } + + Multimap responseHeaders = new Multimap(); + foreach (var header in response.Headers) + { + responseHeaders.Add(header.Name, header.Value.ToString()); + } + + throw new ApiException(status, "error", reason, responseHeaders, clientErrorResponse); + } + + + if (typeof(T).Name == "Stream") // for binary response + { + response.Data = (T)(object)new MemoryStream(response.RawBytes); + } + else + { + response.Data = (T)JsonSerializer.Deserialize(response, type); + } } InterceptResponse(req, response); @@ -539,7 +590,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura return result; } - private async Task> ExecAsync(RestRequest req, IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + private async Task> ExecAsync(RestRequest req, IReadableConfiguration configuration, Dictionary returnTypes = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { RestClient client = new RestClient(_baseUrl); @@ -567,7 +618,6 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura client.AddHandler("application/xml", () => xmlDeserializer); client.AddHandler("text/xml", () => xmlDeserializer); client.AddHandler("*+xml", () => xmlDeserializer); - client.AddHandler("*", () => xmlDeserializer); client.Timeout = configuration.Timeout; @@ -604,14 +654,64 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura response = await client.ExecuteAsync(req, cancellationToken).ConfigureAwait(false); } - // if the response type is oneOf/anyOf, call FromJSON to deserialize the data - if (typeof(FactSet.AnalyticsAPI.Engines.Model.AbstractOpenAPISchema).IsAssignableFrom(typeof(T))) - { - response.Data = (T) typeof(T).GetMethod("FromJson").Invoke(null, new object[] { response.Content }); - } - else if (typeof(T).Name == "Stream") // for binary response + var status = (int)response.StatusCode; + + if (returnTypes.ContainsKey(status)) { - response.Data = (T)(object)new MemoryStream(response.RawBytes); + var type = returnTypes[status]; + var JsonSerializer = new CustomJsonCodec(SerializerSettings, configuration); + + if (!response.IsSuccessful) + { + var clientErrorResponse = (ClientErrorResponse)JsonSerializer.Deserialize(response, type); + + String reason = ""; + if (clientErrorResponse != null && clientErrorResponse.Errors.Any() && !string.IsNullOrWhiteSpace(clientErrorResponse.Errors.FirstOrDefault().Detail)) + { + List errors = clientErrorResponse.Errors; + reason = errors.FirstOrDefault().Detail; + for (int i = 1; i < errors.Count; i++) + { + if (string.IsNullOrWhiteSpace(errors[i].Detail)) + reason = reason + " ||| " + errors[i].Detail; + } + } + + if (clientErrorResponse == null && response.Headers != null) + { + Error error = new Error(); + foreach(var header in response.Headers) + { + if (string.Equals(header.Name, "x-factset-api-request-key", StringComparison.CurrentCultureIgnoreCase)) + { + error.Id = header.Value.ToString(); + } + } + + clientErrorResponse = new ClientErrorResponse() + { + Errors = new List() { error } + }; + } + + Multimap responseHeaders = new Multimap(); + foreach (var header in response.Headers) + { + responseHeaders.Add(header.Name, header.Value.ToString()); + } + + throw new ApiException(status, "error", reason, responseHeaders, clientErrorResponse); + } + + + if (typeof(T).Name == "Stream") // for binary response + { + response.Data = (T)(object)new MemoryStream(response.RawBytes); + } + else + { + response.Data = (T)JsonSerializer.Deserialize(response, type); + } } InterceptResponse(req, response); @@ -664,7 +764,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), config, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Get, path, options, config), config, options.ResponseReturnTypes, cancellationToken); } /// @@ -679,7 +779,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), config, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Post, path, options, config), config, options.ResponseReturnTypes, cancellationToken); } /// @@ -694,7 +794,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), config, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Put, path, options, config), config, options.ResponseReturnTypes, cancellationToken); } /// @@ -709,7 +809,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), config, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Delete, path, options, config), config, options.ResponseReturnTypes, cancellationToken); } /// @@ -724,7 +824,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), config, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Head, path, options, config), config, options.ResponseReturnTypes, cancellationToken); } /// @@ -739,7 +839,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), config, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Options, path, options, config), config, options.ResponseReturnTypes, cancellationToken); } /// @@ -754,7 +854,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { var config = configuration ?? GlobalConfiguration.Instance; - return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), config, cancellationToken); + return ExecAsync(NewRequest(HttpMethod.Patch, path, options, config), config, options.ResponseReturnTypes, cancellationToken); } #endregion IAsynchronousClient @@ -770,7 +870,7 @@ private ApiResponse Exec(RestRequest req, IReadableConfiguration configura public ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Get, path, options, config), config); + return Exec(NewRequest(HttpMethod.Get, path, options, config), config, options.ResponseReturnTypes); } /// @@ -784,7 +884,7 @@ public ApiResponse Get(string path, RequestOptions options, IReadableConfi public ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Post, path, options, config), config); + return Exec(NewRequest(HttpMethod.Post, path, options, config), config, options.ResponseReturnTypes); } /// @@ -798,7 +898,7 @@ public ApiResponse Post(string path, RequestOptions options, IReadableConf public ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Put, path, options, config), config); + return Exec(NewRequest(HttpMethod.Put, path, options, config), config, options.ResponseReturnTypes); } /// @@ -812,7 +912,7 @@ public ApiResponse Put(string path, RequestOptions options, IReadableConfi public ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Delete, path, options, config), config); + return Exec(NewRequest(HttpMethod.Delete, path, options, config), config, options.ResponseReturnTypes); } /// @@ -826,7 +926,7 @@ public ApiResponse Delete(string path, RequestOptions options, IReadableCo public ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Head, path, options, config), config); + return Exec(NewRequest(HttpMethod.Head, path, options, config), config, options.ResponseReturnTypes); } /// @@ -840,7 +940,7 @@ public ApiResponse Head(string path, RequestOptions options, IReadableConf public ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Options, path, options, config), config); + return Exec(NewRequest(HttpMethod.Options, path, options, config), config, options.ResponseReturnTypes); } /// @@ -854,8 +954,8 @@ public ApiResponse Options(string path, RequestOptions options, IReadableC public ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null) { var config = configuration ?? GlobalConfiguration.Instance; - return Exec(NewRequest(HttpMethod.Patch, path, options, config), config); + return Exec(NewRequest(HttpMethod.Patch, path, options, config), config, options.ResponseReturnTypes); } #endregion ISynchronousClient } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs index f6df3d6f..ad8e95f5 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ApiResponse.cs @@ -164,4 +164,4 @@ public ApiResponse(HttpStatusCode statusCode, T data) : this(statusCode, data, n #endregion Constructors } -} +} \ No newline at end of file diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs index 0d02522f..7932823a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/RequestOptions.cs @@ -54,6 +54,11 @@ public class RequestOptions /// public List Cookies { get; set; } + /// + /// Response return types for each status code. + /// + public Dictionary ResponseReturnTypes { get; set; } + /// /// Any data associated with a request body. /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj index 5c1b68b1..b9413717 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/FactSet.AnalyticsAPI.Engines.csproj @@ -27,6 +27,7 @@ + - + \ No newline at end of file From 51ed73cf905ca19f5dc09703b9911b76206d7a50 Mon Sep 17 00:00:00 2001 From: factset-sdk-bot Date: Tue, 14 Sep 2021 20:29:44 +0000 Subject: [PATCH 4/4] feat(sdk): Auto-commit from 'analyticsapi-engines-sdk-generator' repository PR 43 for SDK version v5.2.0 --- auto-generated-sdk/docs/ComponentsApi.md | 10 ++- .../Api/ComponentsApi.cs | 70 ++++++++----------- 2 files changed, 32 insertions(+), 48 deletions(-) diff --git a/auto-generated-sdk/docs/ComponentsApi.md b/auto-generated-sdk/docs/ComponentsApi.md index 53f32773..613bb086 100644 --- a/auto-generated-sdk/docs/ComponentsApi.md +++ b/auto-generated-sdk/docs/ComponentsApi.md @@ -98,7 +98,7 @@ Name | Type | Description | Notes # **GetPAComponents** -> ComponentSummaryRoot GetPAComponents (string document = null, string directory = null) +> ComponentSummaryRoot GetPAComponents (string document) Get PA components @@ -127,13 +127,12 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new ComponentsApi(config); - var document = document_example; // string | Document Name (optional) - var directory = directory_example; // string | Directory to get the components (optional) + var document = document_example; // string | Document Name try { // Get PA components - ComponentSummaryRoot result = apiInstance.GetPAComponents(document, directory); + ComponentSummaryRoot result = apiInstance.GetPAComponents(document); Debug.WriteLine(result); } catch (ApiException e) @@ -151,8 +150,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **document** | **string**| Document Name | [optional] - **directory** | **string**| Directory to get the components | [optional] + **document** | **string**| Document Name | ### Return type diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs index c64484a0..8ecd0262 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs @@ -55,10 +55,9 @@ public interface IComponentsApiSync : IApiAccessor /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// ComponentSummaryRoot - ComponentSummaryRoot GetPAComponents(string document = default(string), string directory = default(string)); + ComponentSummaryRoot GetPAComponents(string document); /// /// Get PA components @@ -67,10 +66,9 @@ public interface IComponentsApiSync : IApiAccessor /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// ApiResponse of ComponentSummaryRoot - ApiResponse GetPAComponentsWithHttpInfo(string document = default(string), string directory = default(string)); + ApiResponse GetPAComponentsWithHttpInfo(string document); /// /// Get SPAR components /// @@ -173,11 +171,10 @@ public interface IComponentsApiAsync : IApiAccessor /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// Cancellation Token to cancel the request. /// Task of ComponentSummaryRoot - System.Threading.Tasks.Task GetPAComponentsAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPAComponentsAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get PA components @@ -186,11 +183,10 @@ public interface IComponentsApiAsync : IApiAccessor /// This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// Cancellation Token to cancel the request. /// Task of ApiResponse of ComponentSummaryRoot - System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get SPAR components /// @@ -536,12 +532,11 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// ComponentSummaryRoot - public ComponentSummaryRoot GetPAComponents(string document = default(string), string directory = default(string)) + public ComponentSummaryRoot GetPAComponents(string document) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetPAComponentsWithHttpInfo(document, directory); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetPAComponentsWithHttpInfo(document); return localVarResponse.Data; } @@ -549,11 +544,14 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// ApiResponse of ComponentSummaryRoot - public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAComponentsWithHttpInfo(string document = default(string), string directory = default(string)) + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPAComponentsWithHttpInfo(string document) { + // verify the required parameter 'document' is set + if (document == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'document' when calling ComponentsApi->GetPAComponents"); + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); String[] _contentTypes = new String[] { @@ -577,14 +575,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - if (document != null) - { - localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); - } - if (directory != null) - { - localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); - } + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); // authentication (Basic) required // http basic authentication required @@ -615,13 +606,12 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// Cancellation Token to cancel the request. /// Task of ComponentSummaryRoot - public async System.Threading.Tasks.Task GetPAComponentsAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPAComponentsAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetPAComponentsWithHttpInfoAsync(document, directory, cancellationToken).ConfigureAwait(false); + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetPAComponentsWithHttpInfoAsync(document, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -629,12 +619,15 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom /// Get PA components This endpoint returns 1.List of PA components in a given PA document if document name is provided. 2.List of components in given directory if directory is provided. /// /// Thrown when fails to make API call - /// Document Name (optional) - /// Directory to get the components (optional) + /// Document Name /// Cancellation Token to cancel the request. /// Task of ApiResponse of ComponentSummaryRoot - public async System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document = default(string), string directory = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPAComponentsWithHttpInfoAsync(string document, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { + // verify the required parameter 'document' is set + if (document == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'document' when calling ComponentsApi->GetPAComponents"); + FactSet.AnalyticsAPI.Engines.Client.RequestOptions localVarRequestOptions = new FactSet.AnalyticsAPI.Engines.Client.RequestOptions(); @@ -659,14 +652,7 @@ public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetPACom var localVarAccept = FactSet.AnalyticsAPI.Engines.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); - if (document != null) - { - localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); - } - if (directory != null) - { - localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); - } + localVarRequestOptions.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "document", document)); // authentication (Basic) required // http basic authentication required