diff --git a/auto-generated-sdk/.openapi-generator/FILES b/auto-generated-sdk/.openapi-generator/FILES index 1a2fe7cf..68d1eea7 100644 --- a/auto-generated-sdk/.openapi-generator/FILES +++ b/auto-generated-sdk/.openapi-generator/FILES @@ -69,31 +69,50 @@ docs/FICalculationParameters.md docs/FICalculationParametersRoot.md docs/FICalculationsApi.md docs/FIJobSettings.md +docs/FILoss.md +docs/FIPrepay.md +docs/FIReferencePrepay.md +docs/FIReferenceSecurity.md docs/FISecurity.md docs/FPOAccount.md +docs/FPOObjective.md docs/FPOOptimizationParameters.md docs/FPOOptimizationParametersRoot.md docs/FPOOptimizerApi.md +docs/FPOOptimizerStrategy.md +docs/FPOOptimizerStrategyOverrides.md docs/FrequenciesApi.md docs/Frequency.md docs/FrequencyRoot.md docs/Group.md docs/GroupRoot.md docs/GroupsApi.md +docs/LinkedPATemplate.md +docs/LinkedPATemplateParameters.md +docs/LinkedPATemplateParametersRoot.md +docs/LinkedPATemplatePostSummary.md +docs/LinkedPATemplatePostSummaryRoot.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 docs/NPOOptimizerStrategy.md docs/NPOOptimizerStrategyOverrides.md docs/ObjectRoot.md +docs/OneOfQuantDates.md +docs/OneOfQuantFormulasArray.md +docs/OneOfQuantUniverse.md docs/OptimalPortfolio.md docs/Optimization.md docs/OptimizerAccount.md docs/OptimizerAccountOverrides.md docs/OptimizerOptimalHoldings.md docs/OptimizerOutputTypes.md -docs/OptimizerStrategy.md -docs/OptimizerStrategyOverrides.md docs/OptimizerTradesList.md docs/PACalculationColumn.md docs/PACalculationGroup.md @@ -101,6 +120,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 +130,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 +165,35 @@ docs/SPARCalculationsApi.md docs/SPARDateParameters.md docs/SPARIdentifier.md docs/StrategyDocumentsApi.md +docs/TemplateContentTypes.md +docs/TemplatedPAComponent.md +docs/TemplatedPAComponentParameters.md +docs/TemplatedPAComponentParametersRoot.md +docs/TemplatedPAComponentPostSummary.md +docs/TemplatedPAComponentPostSummaryRoot.md +docs/TemplatedPAComponentRoot.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/UnlinkedPATemplateColumnDetails.md +docs/UnlinkedPATemplateGroupDetails.md +docs/UnlinkedPATemplateParameters.md +docs/UnlinkedPATemplateParametersRoot.md +docs/UnlinkedPATemplatePostSummary.md +docs/UnlinkedPATemplatePostSummaryRoot.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 +223,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 @@ -236,33 +303,52 @@ src/FactSet.AnalyticsAPI.Engines/Model/FIABIdentifier.cs src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParametersRoot.cs src/FactSet.AnalyticsAPI.Engines/Model/FIJobSettings.cs +src/FactSet.AnalyticsAPI.Engines/Model/FILoss.cs +src/FactSet.AnalyticsAPI.Engines/Model/FIPrepay.cs +src/FactSet.AnalyticsAPI.Engines/Model/FIReferencePrepay.cs +src/FactSet.AnalyticsAPI.Engines/Model/FIReferenceSecurity.cs src/FactSet.AnalyticsAPI.Engines/Model/FISecurity.cs src/FactSet.AnalyticsAPI.Engines/Model/FPOAccount.cs +src/FactSet.AnalyticsAPI.Engines/Model/FPOObjective.cs src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParameters.cs src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategy.cs +src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategyOverrides.cs 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/LinkedPATemplatePostSummary.cs +src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplatePostSummaryRoot.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 src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategyOverrides.cs src/FactSet.AnalyticsAPI.Engines/Model/ObjectRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantDates.cs +src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantFormulasArray.cs +src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantUniverse.cs src/FactSet.AnalyticsAPI.Engines/Model/OptimalPortfolio.cs src/FactSet.AnalyticsAPI.Engines/Model/Optimization.cs src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccount.cs src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccountOverrides.cs src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOptimalHoldings.cs src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOutputTypes.cs -src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategy.cs -src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategyOverrides.cs src/FactSet.AnalyticsAPI.Engines/Model/OptimizerTradesList.cs src/FactSet.AnalyticsAPI.Engines/Model/PACalculationColumn.cs 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 +357,65 @@ 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/TemplatedPAComponent.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummary.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummaryRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentRoot.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/UnlinkedPATemplateColumnDetails.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateGroupDetails.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParameters.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParametersRoot.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummary.cs +src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummaryRoot.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/.openapi-generator/VERSION b/auto-generated-sdk/.openapi-generator/VERSION index acf69b48..7d3cdbf0 100644 --- a/auto-generated-sdk/.openapi-generator/VERSION +++ b/auto-generated-sdk/.openapi-generator/VERSION @@ -1 +1 @@ -5.1.0 \ No newline at end of file +5.3.1 \ No newline at end of file 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..56ae1591 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,18 @@ 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* | [**GetTemplatedPAComponentById**](docs/TemplatedPAComponentsApi.md#gettemplatedpacomponentbyid) | **GET** /analytics/engines/pa/v3/templated-components/{id} | Get templated PA component by id +*TemplatedPAComponentsApi* | [**GetTemplatedPAComponentsInPath**](docs/TemplatedPAComponentsApi.md#gettemplatedpacomponentsinpath) | **GET** /analytics/engines/pa/v3/templated-components | Get templated PA components in path +*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 @@ -258,33 +279,52 @@ Class | Method | HTTP request | Description - [Model.FICalculationParameters](docs/FICalculationParameters.md) - [Model.FICalculationParametersRoot](docs/FICalculationParametersRoot.md) - [Model.FIJobSettings](docs/FIJobSettings.md) + - [Model.FILoss](docs/FILoss.md) + - [Model.FIPrepay](docs/FIPrepay.md) + - [Model.FIReferencePrepay](docs/FIReferencePrepay.md) + - [Model.FIReferenceSecurity](docs/FIReferenceSecurity.md) - [Model.FISecurity](docs/FISecurity.md) - [Model.FPOAccount](docs/FPOAccount.md) + - [Model.FPOObjective](docs/FPOObjective.md) - [Model.FPOOptimizationParameters](docs/FPOOptimizationParameters.md) - [Model.FPOOptimizationParametersRoot](docs/FPOOptimizationParametersRoot.md) + - [Model.FPOOptimizerStrategy](docs/FPOOptimizerStrategy.md) + - [Model.FPOOptimizerStrategyOverrides](docs/FPOOptimizerStrategyOverrides.md) - [Model.Frequency](docs/Frequency.md) - [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.LinkedPATemplatePostSummary](docs/LinkedPATemplatePostSummary.md) + - [Model.LinkedPATemplatePostSummaryRoot](docs/LinkedPATemplatePostSummaryRoot.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) - [Model.NPOOptimizerStrategyOverrides](docs/NPOOptimizerStrategyOverrides.md) - [Model.ObjectRoot](docs/ObjectRoot.md) + - [Model.OneOfQuantDates](docs/OneOfQuantDates.md) + - [Model.OneOfQuantFormulasArray](docs/OneOfQuantFormulasArray.md) + - [Model.OneOfQuantUniverse](docs/OneOfQuantUniverse.md) - [Model.OptimalPortfolio](docs/OptimalPortfolio.md) - [Model.Optimization](docs/Optimization.md) - [Model.OptimizerAccount](docs/OptimizerAccount.md) - [Model.OptimizerAccountOverrides](docs/OptimizerAccountOverrides.md) - [Model.OptimizerOptimalHoldings](docs/OptimizerOptimalHoldings.md) - [Model.OptimizerOutputTypes](docs/OptimizerOutputTypes.md) - - [Model.OptimizerStrategy](docs/OptimizerStrategy.md) - - [Model.OptimizerStrategyOverrides](docs/OptimizerStrategyOverrides.md) - [Model.OptimizerTradesList](docs/OptimizerTradesList.md) - [Model.PACalculationColumn](docs/PACalculationColumn.md) - [Model.PACalculationGroup](docs/PACalculationGroup.md) - [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 +333,65 @@ 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.TemplatedPAComponent](docs/TemplatedPAComponent.md) + - [Model.TemplatedPAComponentParameters](docs/TemplatedPAComponentParameters.md) + - [Model.TemplatedPAComponentParametersRoot](docs/TemplatedPAComponentParametersRoot.md) + - [Model.TemplatedPAComponentPostSummary](docs/TemplatedPAComponentPostSummary.md) + - [Model.TemplatedPAComponentPostSummaryRoot](docs/TemplatedPAComponentPostSummaryRoot.md) + - [Model.TemplatedPAComponentRoot](docs/TemplatedPAComponentRoot.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.UnlinkedPATemplateColumnDetails](docs/UnlinkedPATemplateColumnDetails.md) + - [Model.UnlinkedPATemplateGroupDetails](docs/UnlinkedPATemplateGroupDetails.md) + - [Model.UnlinkedPATemplateParameters](docs/UnlinkedPATemplateParameters.md) + - [Model.UnlinkedPATemplateParametersRoot](docs/UnlinkedPATemplateParametersRoot.md) + - [Model.UnlinkedPATemplatePostSummary](docs/UnlinkedPATemplatePostSummary.md) + - [Model.UnlinkedPATemplatePostSummaryRoot](docs/UnlinkedPATemplatePostSummaryRoot.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 +412,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/CalculationUnitStatus.md b/auto-generated-sdk/docs/CalculationUnitStatus.md index 03c62edd..3c33352e 100644 --- a/auto-generated-sdk/docs/CalculationUnitStatus.md +++ b/auto-generated-sdk/docs/CalculationUnitStatus.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Errors** | [**List<Error>**](Error.md) | The error in a calculation unit. | [optional] **Result** | **string** | The result URL of the calculation. | [optional] **Progress** | **string** | The progress of the calculation unit. | [optional] +**Points** | **int** | The points for the calculation unit. | [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/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/ComponentsApi.md b/auto-generated-sdk/docs/ComponentsApi.md index cae35c3b..ef1437e7 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 @@ -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 ComponentsApi(config); var document = document_example; // string | Document Name @@ -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 ComponentsApi(config); var document = document_example; // string | Document Name @@ -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 ComponentsApi(config); var id = id_example; // string | Unique identifier for a vault component @@ -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 ComponentsApi(config); var document = document_example; // string | Document Name @@ -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/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..4aac01a7 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 Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix | [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/FILoss.md b/auto-generated-sdk/docs/FILoss.md new file mode 100644 index 00000000..62f2345d --- /dev/null +++ b/auto-generated-sdk/docs/FILoss.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.FILoss + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LossName** | **string** | Loss Name | [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/FIPrepay.md b/auto-generated-sdk/docs/FIPrepay.md new file mode 100644 index 00000000..4f147b04 --- /dev/null +++ b/auto-generated-sdk/docs/FIPrepay.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.FIPrepay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrepayName** | **string** | Prepay Name | [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/FIReferencePrepay.md b/auto-generated-sdk/docs/FIReferencePrepay.md new file mode 100644 index 00000000..3fb8eef8 --- /dev/null +++ b/auto-generated-sdk/docs/FIReferencePrepay.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.FIReferencePrepay + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrepayName** | **string** | Reference Prepay Name | [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/FIReferenceSecurity.md b/auto-generated-sdk/docs/FIReferenceSecurity.md new file mode 100644 index 00000000..44cc2a68 --- /dev/null +++ b/auto-generated-sdk/docs/FIReferenceSecurity.md @@ -0,0 +1,15 @@ +# FactSet.AnalyticsAPI.Engines.Model.FIReferenceSecurity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SecurityType** | **string** | Reference Security Type | [optional] +**SecurityName** | **string** | Reference Security Name | [optional] +**CalcFromMethod** | **string** | Reference Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix | [optional] +**CalcFromValue** | **double** | Reference CalcFromValue | [optional] +**Prepay** | [**FIReferencePrepay**](FIReferencePrepay.md) | | [optional] +**Settlement** | **string** | Reference Settlement Date | [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..5590d227 100644 --- a/auto-generated-sdk/docs/FISecurity.md +++ b/auto-generated-sdk/docs/FISecurity.md @@ -5,7 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Settlement** | **string** | Settlement date | [optional] -**CalcFromMethod** | **string** | Calculation from method | +**CallMethod** | **string** | Call Method | [optional] +**ReferenceSecurity** | [**FIReferenceSecurity**](FIReferenceSecurity.md) | | [optional] +**Loss** | [**FILoss**](FILoss.md) | | [optional] +**Prepay** | [**FIPrepay**](FIPrepay.md) | | [optional] +**MatrixSpreadAdjustment** | **double** | Matrix Spread Adjustment | [optional] +**MatrixMultiplier** | **double** | Matrix Multiplier | [optional] +**CalcFromMethod** | **string** | Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix | [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/FPOObjective.md b/auto-generated-sdk/docs/FPOObjective.md new file mode 100644 index 00000000..f4325f1d --- /dev/null +++ b/auto-generated-sdk/docs/FPOObjective.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.FPOObjective + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | **string** | | [optional] +**Terms** | **Dictionary<string, 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/FPOOptimizationParameters.md b/auto-generated-sdk/docs/FPOOptimizationParameters.md index e4a84be2..ab96c790 100644 --- a/auto-generated-sdk/docs/FPOOptimizationParameters.md +++ b/auto-generated-sdk/docs/FPOOptimizationParameters.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Account** | [**FPOAccount**](FPOAccount.md) | | [optional] -**Strategy** | [**OptimizerStrategy**](OptimizerStrategy.md) | | +**Strategy** | [**FPOOptimizerStrategy**](FPOOptimizerStrategy.md) | | **Optimization** | [**Optimization**](Optimization.md) | | [optional] **OutputTypes** | [**OptimizerOutputTypes**](OptimizerOutputTypes.md) | | 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/OptimizerStrategy.md b/auto-generated-sdk/docs/FPOOptimizerStrategy.md similarity index 67% rename from auto-generated-sdk/docs/OptimizerStrategy.md rename to auto-generated-sdk/docs/FPOOptimizerStrategy.md index 4e60d305..26fb9bc8 100644 --- a/auto-generated-sdk/docs/OptimizerStrategy.md +++ b/auto-generated-sdk/docs/FPOOptimizerStrategy.md @@ -1,11 +1,11 @@ -# FactSet.AnalyticsAPI.Engines.Model.OptimizerStrategy +# FactSet.AnalyticsAPI.Engines.Model.FPOOptimizerStrategy ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Overrides** | [**FPOOptimizerStrategyOverrides**](FPOOptimizerStrategyOverrides.md) | | [optional] **Id** | **string** | OptimizerStrategy document path | -**Overrides** | [**OptimizerStrategyOverrides**](OptimizerStrategyOverrides.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/OptimizerStrategyOverrides.md b/auto-generated-sdk/docs/FPOOptimizerStrategyOverrides.md similarity index 77% rename from auto-generated-sdk/docs/OptimizerStrategyOverrides.md rename to auto-generated-sdk/docs/FPOOptimizerStrategyOverrides.md index b7011a04..8979e7f8 100644 --- a/auto-generated-sdk/docs/OptimizerStrategyOverrides.md +++ b/auto-generated-sdk/docs/FPOOptimizerStrategyOverrides.md @@ -1,10 +1,10 @@ -# FactSet.AnalyticsAPI.Engines.Model.OptimizerStrategyOverrides +# FactSet.AnalyticsAPI.Engines.Model.FPOOptimizerStrategyOverrides ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tax** | **string** | Tax | [optional] +**Objective** | [**FPOObjective**](FPOObjective.md) | | [optional] **Constraints** | **Dictionary<string, string>** | List of constraints | [optional] **Alpha** | **string** | Alpha | [optional] **TransactionCost** | **string** | Transaction cost | [optional] 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/LinkedPATemplatePostSummary.md b/auto-generated-sdk/docs/LinkedPATemplatePostSummary.md new file mode 100644 index 00000000..6c825815 --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplatePostSummary.md @@ -0,0 +1,13 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplatePostSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/LinkedPATemplatePostSummaryRoot.md b/auto-generated-sdk/docs/LinkedPATemplatePostSummaryRoot.md new file mode 100644 index 00000000..f8ea66f6 --- /dev/null +++ b/auto-generated-sdk/docs/LinkedPATemplatePostSummaryRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.LinkedPATemplatePostSummaryRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LinkedPATemplatePostSummary**](LinkedPATemplatePostSummary.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..802c7571 --- /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** +> LinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + +### 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 + LinkedPATemplatePostSummaryRoot 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 + +[**LinkedPATemplatePostSummaryRoot**](LinkedPATemplatePostSummaryRoot.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** +> LinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + +### 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 + LinkedPATemplatePostSummaryRoot 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 + +[**LinkedPATemplatePostSummaryRoot**](LinkedPATemplatePostSummaryRoot.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/OneOfQuantDates.md b/auto-generated-sdk/docs/OneOfQuantDates.md new file mode 100644 index 00000000..e726ce41 --- /dev/null +++ b/auto-generated-sdk/docs/OneOfQuantDates.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.OneOfQuantDates + +## 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/OneOfQuantFormulasArray.md b/auto-generated-sdk/docs/OneOfQuantFormulasArray.md new file mode 100644 index 00000000..e37dc66f --- /dev/null +++ b/auto-generated-sdk/docs/OneOfQuantFormulasArray.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.OneOfQuantFormulasArray + +## 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/OneOfQuantUniverse.md b/auto-generated-sdk/docs/OneOfQuantUniverse.md new file mode 100644 index 00000000..04293d89 --- /dev/null +++ b/auto-generated-sdk/docs/OneOfQuantUniverse.md @@ -0,0 +1,10 @@ +# FactSet.AnalyticsAPI.Engines.Model.OneOfQuantUniverse + +## 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/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/PACalculationParameters.md b/auto-generated-sdk/docs/PACalculationParameters.md index 2efae92d..14f33a66 100644 --- a/auto-generated-sdk/docs/PACalculationParameters.md +++ b/auto-generated-sdk/docs/PACalculationParameters.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **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] **Currencyisocode** | **string** | Currency ISO code for calculation. | [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] -**Componentdetail** | **string** | Component detail type for the PA component. It can be GROUPS or TOTALS. | [optional] +**Componentdetail** | **string** | Component detail type for the PA component. 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/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..750dabfa 100644 --- a/auto-generated-sdk/docs/PAComponent.md +++ b/auto-generated-sdk/docs/PAComponent.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Currencyisocode** | **string** | | [optional] **Dates** | [**PADateParameters**](PADateParameters.md) | | [optional] **Snapshot** | **bool** | Is the component type snapshot or subperiod. | [optional] +**Path** | **string** | The path to the document | [optional] **Name** | **string** | Component name. | [optional] **Category** | **string** | Component category. | [optional] 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..2cae1347 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** | [**OneOfQuantUniverse**](OneOfQuantUniverse.md) | | [optional] +**Dates** | [**OneOfQuantDates**](OneOfQuantDates.md) | | [optional] +**Formulas** | [**List<OneOfQuantFormulasArray>**](OneOfQuantFormulasArray.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/TemplatedPAComponent.md b/auto-generated-sdk/docs/TemplatedPAComponent.md new file mode 100644 index 00000000..642c626c --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponent.md @@ -0,0 +1,17 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponent + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] +**Directory** | **string** | | [optional] +**Snapshot** | **bool** | | [optional] +**ComponentData** | [**PAComponentData**](PAComponentData.md) | | [optional] +**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/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/TemplatedPAComponentPostSummary.md b/auto-generated-sdk/docs/TemplatedPAComponentPostSummary.md new file mode 100644 index 00000000..ba5344b2 --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentPostSummary.md @@ -0,0 +1,14 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentPostSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] +**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/TemplatedPAComponentPostSummaryRoot.md b/auto-generated-sdk/docs/TemplatedPAComponentPostSummaryRoot.md new file mode 100644 index 00000000..1bf9fd06 --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentPostSummaryRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentPostSummaryRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TemplatedPAComponentPostSummary**](TemplatedPAComponentPostSummary.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/TemplatedPAComponentRoot.md b/auto-generated-sdk/docs/TemplatedPAComponentRoot.md new file mode 100644 index 00000000..fddc3509 --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.TemplatedPAComponentRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TemplatedPAComponent**](TemplatedPAComponent.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..15d74a44 --- /dev/null +++ b/auto-generated-sdk/docs/TemplatedPAComponentsApi.md @@ -0,0 +1,438 @@ +# 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 +[**GetTemplatedPAComponentById**](TemplatedPAComponentsApi.md#gettemplatedpacomponentbyid) | **GET** /analytics/engines/pa/v3/templated-components/{id} | Get templated PA component by id +[**GetTemplatedPAComponentsInPath**](TemplatedPAComponentsApi.md#gettemplatedpacomponentsinpath) | **GET** /analytics/engines/pa/v3/templated-components | Get templated PA components in path +[**UpdateTemplatedPAComponents**](TemplatedPAComponentsApi.md#updatetemplatedpacomponents) | **PUT** /analytics/engines/pa/v3/templated-components/{id} | Update templated PA component + + + +# **CreateTemplatedPAComponents** +> TemplatedPAComponentPostSummaryRoot CreateTemplatedPAComponents (TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot) + +Create templated PA component + +This endpoint creates new component based off of linked PA template or unlinked PA template. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + +### 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 + TemplatedPAComponentPostSummaryRoot 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 + +[**TemplatedPAComponentPostSummaryRoot**](TemplatedPAComponentPostSummaryRoot.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) + + +# **GetTemplatedPAComponentById** +> TemplatedPAComponentRoot GetTemplatedPAComponentById (string id) + +Get templated PA component by id + +This endpoint fetches the templated PA component 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 GetTemplatedPAComponentByIdExample + { + 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 + { + // Get templated PA component by id + TemplatedPAComponentRoot result = apiInstance.GetTemplatedPAComponentById(id); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplatedPAComponentsApi.GetTemplatedPAComponentById: " + 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 + +[**TemplatedPAComponentRoot**](TemplatedPAComponentRoot.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, templated PA component 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** | Templated PA 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) + + +# **GetTemplatedPAComponentsInPath** +> TemplatedPAComponentSummaryRoot GetTemplatedPAComponentsInPath (string directory) + +Get templated PA components in path + +This endpoint returns the list of templated PA components in 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 GetTemplatedPAComponentsInPathExample + { + 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 directory = directory_example; // string | Get templated PA components in path + + try + { + // Get templated PA components in path + TemplatedPAComponentSummaryRoot result = apiInstance.GetTemplatedPAComponentsInPath(directory); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling TemplatedPAComponentsApi.GetTemplatedPAComponentsInPath: " + e.Message ); + Debug.Print("Status Code: "+ e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **directory** | **string**| Get templated PA components in path | + +### Return type + +[**TemplatedPAComponentSummaryRoot**](TemplatedPAComponentSummaryRoot.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 templated PA components. | * 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) + + +# **UpdateTemplatedPAComponents** +> TemplatedPAComponentPostSummaryRoot 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + +### 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 + TemplatedPAComponentPostSummaryRoot 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 + +[**TemplatedPAComponentPostSummaryRoot**](TemplatedPAComponentPostSummaryRoot.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..e3ceb147 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplate.md @@ -0,0 +1,24 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Template id. | [optional] +**Directory** | **string** | Template directory. | [optional] +**TemplateTypeId** | **string** | Template type id | [optional] +**Snapshot** | **bool** | snapshot. | [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] +**Description** | **string** | Template description. | [optional] +**Name** | **string** | Template name. | [optional] +**Category** | **string** | Unlinked template category | [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..4ca82c6a --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateCategoryAndTypeDetails.md @@ -0,0 +1,15 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateCategoryAndTypeDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Type Id | [optional] +**Columns** | [**List<UnlinkedPATemplateColumnDetails>**](UnlinkedPATemplateColumnDetails.md) | List of default columns | [optional] +**Groups** | [**List<UnlinkedPATemplateGroupDetails>**](UnlinkedPATemplateGroupDetails.md) | List of default groupings | [optional] +**Snapshot** | **bool** | Snapshot | [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/UnlinkedPATemplateColumnDetails.md b/auto-generated-sdk/docs/UnlinkedPATemplateColumnDetails.md new file mode 100644 index 00000000..80517737 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateColumnDetails.md @@ -0,0 +1,12 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateColumnDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Unlinked template column name | [optional] +**Id** | **string** | FactSet-defined or User-defined Column identifier. | [optional] +**Statistics** | **List<string>** | Column Statistic identifier | [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/UnlinkedPATemplateGroupDetails.md b/auto-generated-sdk/docs/UnlinkedPATemplateGroupDetails.md new file mode 100644 index 00000000..f30ff85d --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplateGroupDetails.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplateGroupDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Unlinked template group name | [optional] +**Id** | **string** | FactSet-defined or User-defined Group identifier. | [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/UnlinkedPATemplatePostSummary.md b/auto-generated-sdk/docs/UnlinkedPATemplatePostSummary.md new file mode 100644 index 00000000..c72b1685 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplatePostSummary.md @@ -0,0 +1,13 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplatePostSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Template id. | [optional] +**Description** | **string** | Template description. | [optional] +**Name** | **string** | Template name. | [optional] +**Category** | **string** | Unlinked template category | [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/UnlinkedPATemplatePostSummaryRoot.md b/auto-generated-sdk/docs/UnlinkedPATemplatePostSummaryRoot.md new file mode 100644 index 00000000..131e2147 --- /dev/null +++ b/auto-generated-sdk/docs/UnlinkedPATemplatePostSummaryRoot.md @@ -0,0 +1,11 @@ +# FactSet.AnalyticsAPI.Engines.Model.UnlinkedPATemplatePostSummaryRoot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**UnlinkedPATemplatePostSummary**](UnlinkedPATemplatePostSummary.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..b38afbe4 --- /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** | Template description. | [optional] +**Name** | **string** | Template name. | [optional] +**Category** | **string** | Unlinked template category | [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..c47cf7f7 --- /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** +> UnlinkedPATemplatePostSummaryRoot CreateUnlinkedPATemplates (UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot) + +Create unlinked PA template + +This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + +### 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 + UnlinkedPATemplatePostSummaryRoot 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 + +[**UnlinkedPATemplatePostSummaryRoot**](UnlinkedPATemplatePostSummaryRoot.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** +> UnlinkedPATemplatePostSummaryRoot UpdateUnlinkedPATemplates (string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot) + +Update unlinked PA template + +This endpoint updates an existing unlinked PA template. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + +### 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 + UnlinkedPATemplatePostSummaryRoot 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 + +[**UnlinkedPATemplatePostSummaryRoot**](UnlinkedPATemplatePostSummaryRoot.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/VaultCalculationParameters.md b/auto-generated-sdk/docs/VaultCalculationParameters.md index 8d8564fb..ab17bb7f 100644 --- a/auto-generated-sdk/docs/VaultCalculationParameters.md +++ b/auto-generated-sdk/docs/VaultCalculationParameters.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Account** | [**VaultIdentifier**](VaultIdentifier.md) | | **Dates** | [**VaultDateParameters**](VaultDateParameters.md) | | [optional] **Configid** | **string** | Vault Configuration identifier. | -**Componentdetail** | **string** | Component detail type for the Vault component. It can be GROUPS or TOTALS. | [optional] +**Componentdetail** | **string** | Component detail type for the Vault component. 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/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..8ee0fb38 100644 --- a/auto-generated-sdk/docs/VaultComponent.md +++ b/auto-generated-sdk/docs/VaultComponent.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Currencyisocode** | **string** | Currency iso code saved in the document | [optional] **Dates** | [**VaultDateParameters**](VaultDateParameters.md) | | [optional] **Snapshot** | **bool** | Snapshot | [optional] +**Path** | **string** | The path to the document | [optional] **Name** | **string** | Component name. | [optional] **Category** | **string** | Component category. | [optional] diff --git a/auto-generated-sdk/git_push.sh b/auto-generated-sdk/git_push.sh index 53646d0b..450d0752 100644 --- a/auto-generated-sdk/git_push.sh +++ b/auto-generated-sdk/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 @@ -38,14 +38,14 @@ git add . git commit -m "$release_note" # Sets the new remote -git_remote=`git remote` +git_remote=$(git remote) if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -55,4 +55,3 @@ git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' - 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..28757b0d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/ComponentsApi.cs @@ -431,6 +431,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 +508,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 @@ -571,6 +583,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); @@ -642,6 +660,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 +735,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 +812,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 +887,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 +964,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 +1039,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 +1116,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..2e6e8f5e --- /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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// LinkedPATemplatePostSummaryRoot + LinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// LinkedPATemplatePostSummaryRoot + LinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// ApiResponse of LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// 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 LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// LinkedPATemplatePostSummaryRoot + public LinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of LinkedPATemplatePostSummaryRoot + 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(LinkedPATemplatePostSummaryRoot) }, + { 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of LinkedPATemplatePostSummaryRoot + 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(LinkedPATemplatePostSummaryRoot) }, + { 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// LinkedPATemplatePostSummaryRoot + public LinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// ApiResponse of LinkedPATemplatePostSummaryRoot + 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(LinkedPATemplatePostSummaryRoot) }, + { 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// Thrown when fails to make API call + /// Unique identifier for a linked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of LinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Multi-horizon frequencies are not supported through this endpoint. + /// + /// 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 LinkedPATemplatePostSummaryRoot + 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(LinkedPATemplatePostSummaryRoot) }, + { 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..57427966 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Api/TemplatedPAComponentsApi.cs @@ -0,0 +1,1162 @@ +/* + * 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// TemplatedPAComponentPostSummaryRoot + TemplatedPAComponentPostSummaryRoot CreateTemplatedPAComponents(TemplatedPAComponentParametersRoot templatedPAComponentParametersRoot); + + /// + /// Create templated PA component + /// + /// + /// This endpoint creates new component based off of linked PA template or unlinked PA template. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of TemplatedPAComponentPostSummaryRoot + 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); + /// + /// Get templated PA component by id + /// + /// + /// This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// TemplatedPAComponentRoot + TemplatedPAComponentRoot GetTemplatedPAComponentById(string id); + + /// + /// Get templated PA component by id + /// + /// + /// This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// ApiResponse of TemplatedPAComponentRoot + ApiResponse GetTemplatedPAComponentByIdWithHttpInfo(string id); + /// + /// Get templated PA components in path + /// + /// + /// This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// TemplatedPAComponentSummaryRoot + TemplatedPAComponentSummaryRoot GetTemplatedPAComponentsInPath(string directory); + + /// + /// Get templated PA components in path + /// + /// + /// This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// ApiResponse of TemplatedPAComponentSummaryRoot + ApiResponse GetTemplatedPAComponentsInPathWithHttpInfo(string directory); + /// + /// Update templated PA component + /// + /// + /// This endpoint allows the user to change the request body from an existing templated PA component. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// TemplatedPAComponentPostSummaryRoot + TemplatedPAComponentPostSummaryRoot 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// ApiResponse of TemplatedPAComponentPostSummaryRoot + 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentPostSummaryRoot + 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentPostSummaryRoot + 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)); + /// + /// Get templated PA component by id + /// + /// + /// This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentRoot + System.Threading.Tasks.Task GetTemplatedPAComponentByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get templated PA component by id + /// + /// + /// This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentRoot + System.Threading.Tasks.Task> GetTemplatedPAComponentByIdWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Get templated PA components in path + /// + /// + /// This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentSummaryRoot + System.Threading.Tasks.Task GetTemplatedPAComponentsInPathAsync(string directory, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Get templated PA components in path + /// + /// + /// This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + System.Threading.Tasks.Task> GetTemplatedPAComponentsInPathWithHttpInfoAsync(string directory, 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentPostSummaryRoot + 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// 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 TemplatedPAComponentPostSummaryRoot + 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// TemplatedPAComponentPostSummaryRoot + public TemplatedPAComponentPostSummaryRoot 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of TemplatedPAComponentPostSummaryRoot + 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(TemplatedPAComponentPostSummaryRoot) }, + { 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentPostSummaryRoot + 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentPostSummaryRoot + 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(TemplatedPAComponentPostSummaryRoot) }, + { 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; + } + + /// + /// Get templated PA component by id This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// TemplatedPAComponentRoot + public TemplatedPAComponentRoot GetTemplatedPAComponentById(string id) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetTemplatedPAComponentByIdWithHttpInfo(id); + return localVarResponse.Data; + } + + /// + /// Get templated PA component by id This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// ApiResponse of TemplatedPAComponentRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetTemplatedPAComponentByIdWithHttpInfo(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->GetTemplatedPAComponentById"); + + 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(TemplatedPAComponentRoot) }, + { 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/templated-components/{id}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatedPAComponentById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get templated PA component by id This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentRoot + public async System.Threading.Tasks.Task GetTemplatedPAComponentByIdAsync(string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetTemplatedPAComponentByIdWithHttpInfoAsync(id, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get templated PA component by id This endpoint fetches the templated PA component settings. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentRoot + public async System.Threading.Tasks.Task> GetTemplatedPAComponentByIdWithHttpInfoAsync(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->GetTemplatedPAComponentById"); + + + 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(TemplatedPAComponentRoot) }, + { 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/templated-components/{id}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatedPAComponentById", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get templated PA components in path This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// TemplatedPAComponentSummaryRoot + public TemplatedPAComponentSummaryRoot GetTemplatedPAComponentsInPath(string directory) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = GetTemplatedPAComponentsInPathWithHttpInfo(directory); + return localVarResponse.Data; + } + + /// + /// Get templated PA components in path This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// ApiResponse of TemplatedPAComponentSummaryRoot + public FactSet.AnalyticsAPI.Engines.Client.ApiResponse GetTemplatedPAComponentsInPathWithHttpInfo(string directory) + { + // verify the required parameter 'directory' is set + if (directory == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'directory' when calling TemplatedPAComponentsApi->GetTemplatedPAComponentsInPath"); + + 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(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.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + + // 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/templated-components", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatedPAComponentsInPath", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get templated PA components in path This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentSummaryRoot + public async System.Threading.Tasks.Task GetTemplatedPAComponentsInPathAsync(string directory, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + FactSet.AnalyticsAPI.Engines.Client.ApiResponse localVarResponse = await GetTemplatedPAComponentsInPathWithHttpInfoAsync(directory, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get templated PA components in path This endpoint returns the list of templated PA components in path. + /// + /// Thrown when fails to make API call + /// Get templated PA components in path + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of TemplatedPAComponentSummaryRoot + public async System.Threading.Tasks.Task> GetTemplatedPAComponentsInPathWithHttpInfoAsync(string directory, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'directory' is set + if (directory == null) + throw new FactSet.AnalyticsAPI.Engines.Client.ApiException(400, "Missing required parameter 'directory' when calling TemplatedPAComponentsApi->GetTemplatedPAComponentsInPath"); + + + 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(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.QueryParameters.Add(FactSet.AnalyticsAPI.Engines.Client.ClientUtils.ParameterToMultiMap("", "directory", directory)); + + // 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/templated-components", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetTemplatedPAComponentsInPath", 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// TemplatedPAComponentPostSummaryRoot + public TemplatedPAComponentPostSummaryRoot 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// ApiResponse of TemplatedPAComponentPostSummaryRoot + 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(TemplatedPAComponentPostSummaryRoot) }, + { 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for a templated PA component + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of TemplatedPAComponentPostSummaryRoot + 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. Remarks: * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// 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 TemplatedPAComponentPostSummaryRoot + 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(TemplatedPAComponentPostSummaryRoot) }, + { 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..ec0595ba --- /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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// UnlinkedPATemplatePostSummaryRoot + UnlinkedPATemplatePostSummaryRoot CreateUnlinkedPATemplates(UnlinkedPATemplateParametersRoot unlinkedPATemplateParametersRoot); + + /// + /// Create unlinked PA template + /// + /// + /// This endpoint creates a template which is not linked to any specific PA3 tile. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// UnlinkedPATemplatePostSummaryRoot + UnlinkedPATemplatePostSummaryRoot UpdateUnlinkedPATemplates(string id, UnlinkedPATemplateUpdateParametersRoot unlinkedPATemplateUpdateParametersRoot); + + /// + /// Update unlinked PA template + /// + /// + /// This endpoint updates an existing unlinked PA template. Remarks: * Mandatory fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// ApiResponse of UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// 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 UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// UnlinkedPATemplatePostSummaryRoot + public UnlinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// ApiResponse of UnlinkedPATemplatePostSummaryRoot + 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(UnlinkedPATemplatePostSummaryRoot) }, + { 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of ApiResponse of UnlinkedPATemplatePostSummaryRoot + 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(UnlinkedPATemplatePostSummaryRoot) }, + { 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// UnlinkedPATemplatePostSummaryRoot + public UnlinkedPATemplatePostSummaryRoot 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// ApiResponse of UnlinkedPATemplatePostSummaryRoot + 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(UnlinkedPATemplatePostSummaryRoot) }, + { 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// Thrown when fails to make API call + /// Unique identifier for an unlinked PA template + /// Request Parameters + /// Cancellation Token to cancel the request. + /// Task of UnlinkedPATemplatePostSummaryRoot + 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 fields are required to be passed in POST requests and Optional fields are not necessary. If no mandatory fields are passed, then we can use the template as a component and skip the component creation. * Mandatory, optional and locked fields can be \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"dates\", \"currencyisocode\" and \"componentdetail\". * We cannot override the Locked fields when creating the Component. * Mandatory and locked strings are mutually exclusive. * Any settings in the POST body will act as a one-time override over the settings saved in the PA template. * Multi-horizon frequencies are not supported through this endpoint. * Componentdetail supports securities, groups, and totals as well but if we don't pass anything that defaults to securities. + /// + /// 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 UnlinkedPATemplatePostSummaryRoot + 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(UnlinkedPATemplatePostSummaryRoot) }, + { 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/ClientUtils.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ClientUtils.cs index ccb8119e..8889c6b3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ClientUtils.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ClientUtils.cs @@ -111,7 +111,7 @@ public static string ParameterToString(object obj, IReadableConfiguration config /// URL encode a string /// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50 /// - /// String to be URL encoded + /// string to be URL encoded /// Byte array public static string UrlEncode(string input) { @@ -145,7 +145,7 @@ public static string UrlEncode(string input) /// /// Encode string in base64 format. /// - /// String to be encoded. + /// string to be encoded. /// Encoded string. public static string Base64Encode(string text) { @@ -173,7 +173,7 @@ public static byte[] ReadAsBytes(Stream inputStream) /// /// The Content-Type array to select from. /// The Content-Type header to use. - public static String SelectHeaderContentType(String[] contentTypes) + public static string SelectHeaderContentType(string[] contentTypes) { if (contentTypes.Length == 0) return null; @@ -194,7 +194,7 @@ public static String SelectHeaderContentType(String[] contentTypes) /// /// The accepts array to select from. /// The Accept header to use. - public static String SelectHeaderAccept(String[] accepts) + public static string SelectHeaderAccept(string[] accepts) { if (accepts.Length == 0) return null; @@ -202,7 +202,7 @@ public static String SelectHeaderAccept(String[] accepts) if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) return "application/json"; - return String.Join(",", accepts); + return string.Join(",", accepts); } /// @@ -220,9 +220,9 @@ public static String SelectHeaderAccept(String[] accepts) /// /// MIME /// Returns True if MIME type is json. - public static bool IsJsonMime(String mime) + public static bool IsJsonMime(string mime) { - if (String.IsNullOrWhiteSpace(mime)) return false; + if (string.IsNullOrWhiteSpace(mime)) return false; return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); } 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..f0966012 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 @@ -68,11 +68,11 @@ public class Configuration : IReadableConfiguration /// Defines the base path of the target API server. /// Example: http://localhost:3000/v1/ /// - private String _basePath; + private string _basePath; /// /// Gets or sets the API key based on the authentication name. - /// This is the key and value comprising the "secret" for acessing an API. + /// This is the key and value comprising the "secret" for accessing an API. /// /// The API key. private IDictionary _apiKey; @@ -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(); @@ -426,7 +426,7 @@ public string GetServerUrl(int index, Dictionary inputVariables) } else { - // use defualt value + // use default value url = url.Replace("{" + variable.Key + "}", (string)serverVariables["default_value"]); } } @@ -441,13 +441,13 @@ public string GetServerUrl(int index, Dictionary inputVariables) /// /// Returns a string with essential information for debugging. /// - public static String ToDebugReport() + public static string ToDebugReport() { - String report = "C# SDK (FactSet.AnalyticsAPI.Engines) Debug Report:\n"; + string report = "C# SDK (FactSet.AnalyticsAPI.Engines) Debug Report:\n"; 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/Client/IApiAccessor.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IApiAccessor.cs index c472c82f..4c412089 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IApiAccessor.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IApiAccessor.cs @@ -28,7 +28,7 @@ public interface IApiAccessor /// Gets the base path of the API client. /// /// The base path - String GetBasePath(); + string GetBasePath(); /// /// Provides a factory method hook for the creation of exceptions. diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IAsynchronousClient.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IAsynchronousClient.cs index 518370ce..a601d6b2 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IAsynchronousClient.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IAsynchronousClient.cs @@ -30,7 +30,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> GetAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the POST http verb. @@ -41,7 +41,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PostAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PostAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PUT http verb. @@ -52,7 +52,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PutAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PutAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the DELETE http verb. @@ -63,7 +63,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> DeleteAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> DeleteAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the HEAD http verb. @@ -74,7 +74,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> HeadAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> HeadAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the OPTIONS http verb. @@ -85,7 +85,7 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> OptionsAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> OptionsAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Executes a non-blocking call to some using the PATCH http verb. @@ -96,6 +96,6 @@ public interface IAsynchronousClient /// Cancellation Token to cancel the request. /// The return type. /// A task eventually representing the response data, decorated with - Task> PatchAsync(String path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PatchAsync(string path, RequestOptions options, IReadableConfiguration configuration = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); } } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IReadableConfiguration.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IReadableConfiguration.cs index ed1ee0f0..6b0fe169 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IReadableConfiguration.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/IReadableConfiguration.cs @@ -48,7 +48,7 @@ public interface IReadableConfiguration /// /// Gets the date time format. /// - /// Date time foramt. + /// Date time format. string DateTimeFormat { get; } /// diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ISynchronousClient.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ISynchronousClient.cs index 68afe554..7aac7718 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ISynchronousClient.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Client/ISynchronousClient.cs @@ -29,7 +29,7 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Get(String path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Get(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the POST http verb. @@ -39,7 +39,7 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Post(String path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Post(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the PUT http verb. @@ -49,7 +49,7 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Put(String path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Put(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the DELETE http verb. @@ -59,7 +59,7 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Delete(String path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Delete(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the HEAD http verb. @@ -69,7 +69,7 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Head(String path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Head(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the OPTIONS http verb. @@ -79,7 +79,7 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Options(String path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Options(string path, RequestOptions options, IReadableConfiguration configuration = null); /// /// Executes a blocking call to some using the PATCH http verb. @@ -89,6 +89,6 @@ public interface ISynchronousClient /// Per-request configurable settings. /// The return type. /// The response data, decorated with - ApiResponse Patch(String path, RequestOptions options, IReadableConfiguration configuration = null); + ApiResponse Patch(string path, RequestOptions options, IReadableConfiguration configuration = null); } } 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/AFIOptimizationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizationParameters.cs index 6716a0fb..bcaa402b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizationParameters.cs @@ -47,9 +47,15 @@ protected AFIOptimizationParameters() { } public AFIOptimizationParameters(AFIOptimizerStrategy strategy = default(AFIOptimizerStrategy), OptimizerAccount account = default(OptimizerAccount), Optimization optimization = default(Optimization), OptimizerOutputTypes outputTypes = default(OptimizerOutputTypes)) { // to ensure "strategy" is required (not null) - this.Strategy = strategy ?? throw new ArgumentNullException("strategy is a required property for AFIOptimizationParameters and cannot be null"); + if (strategy == null) { + throw new ArgumentNullException("strategy is a required property for AFIOptimizationParameters and cannot be null"); + } + this.Strategy = strategy; // to ensure "outputTypes" is required (not null) - this.OutputTypes = outputTypes ?? throw new ArgumentNullException("outputTypes is a required property for AFIOptimizationParameters and cannot be null"); + if (outputTypes == null) { + throw new ArgumentNullException("outputTypes is a required property for AFIOptimizationParameters and cannot be null"); + } + this.OutputTypes = outputTypes; this.Account = account; this.Optimization = optimization; } @@ -84,7 +90,7 @@ protected AFIOptimizationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AFIOptimizationParameters {\n"); sb.Append(" Strategy: ").Append(Strategy).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); @@ -121,8 +127,9 @@ public override bool Equals(object input) public bool Equals(AFIOptimizationParameters input) { if (input == null) + { return false; - + } return ( this.Strategy == input.Strategy || @@ -156,13 +163,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Strategy != null) - hashCode = hashCode * 59 + this.Strategy.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Strategy.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Optimization != null) - hashCode = hashCode * 59 + this.Optimization.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Optimization.GetHashCode(); + } if (this.OutputTypes != null) - hashCode = hashCode * 59 + this.OutputTypes.GetHashCode(); + { + hashCode = (hashCode * 59) + this.OutputTypes.GetHashCode(); + } return hashCode; } } @@ -172,7 +187,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizationParametersRoot.cs index ff8c6c64..b57b2dd4 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizationParametersRoot.cs @@ -61,7 +61,7 @@ public partial class AFIOptimizationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AFIOptimizationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -96,8 +96,9 @@ public override bool Equals(object input) public bool Equals(AFIOptimizationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -121,9 +122,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -133,7 +138,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategy.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategy.cs index d511577c..d9001adf 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategy.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategy.cs @@ -45,7 +45,10 @@ protected AFIOptimizerStrategy() { } public AFIOptimizerStrategy(AFIOptimizerStrategyOverrides overrides = default(AFIOptimizerStrategyOverrides), string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for AFIOptimizerStrategy and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for AFIOptimizerStrategy and cannot be null"); + } + this.Id = id; this.Overrides = overrides; } @@ -68,7 +71,7 @@ protected AFIOptimizerStrategy() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AFIOptimizerStrategy {\n"); sb.Append(" Overrides: ").Append(Overrides).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -103,8 +106,9 @@ public override bool Equals(object input) public bool Equals(AFIOptimizerStrategy input) { if (input == null) + { return false; - + } return ( this.Overrides == input.Overrides || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Overrides != null) - hashCode = hashCode * 59 + this.Overrides.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Overrides.GetHashCode(); + } if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategyOverrides.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategyOverrides.cs index d0891541..34da2862 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategyOverrides.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AFIOptimizerStrategyOverrides.cs @@ -53,6 +53,7 @@ public enum InnerEnum } + /// /// List of constraints /// @@ -110,7 +111,7 @@ public enum InnerEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AFIOptimizerStrategyOverrides {\n"); sb.Append(" Objective: ").Append(Objective).Append("\n"); sb.Append(" Tax: ").Append(Tax).Append("\n"); @@ -148,8 +149,9 @@ public override bool Equals(object input) public bool Equals(AFIOptimizerStrategyOverrides input) { if (input == null) + { return false; - + } return ( this.Objective == input.Objective || @@ -187,14 +189,22 @@ public override int GetHashCode() { int hashCode = 41; if (this.Objective != null) - hashCode = hashCode * 59 + this.Objective.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Objective.GetHashCode(); + } if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - hashCode = hashCode * 59 + this.Constraints.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Tax.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Constraints.GetHashCode(); if (this.Alpha != null) - hashCode = hashCode * 59 + this.Alpha.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Alpha.GetHashCode(); + } if (this.TransactionCost != null) - hashCode = hashCode * 59 + this.TransactionCost.GetHashCode(); + { + hashCode = (hashCode * 59) + this.TransactionCost.GetHashCode(); + } return hashCode; } } @@ -204,7 +214,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectories.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectories.cs index 607c02b8..0c0a7892 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectories.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectories.cs @@ -63,7 +63,7 @@ public partial class AccountDirectories : IEquatable, IValid /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AccountDirectories {\n"); sb.Append(" Accounts: ").Append(Accounts).Append("\n"); sb.Append(" Directories: ").Append(Directories).Append("\n"); @@ -98,8 +98,9 @@ public override bool Equals(object input) public bool Equals(AccountDirectories input) { if (input == null) + { return false; - + } return ( this.Accounts == input.Accounts || @@ -125,9 +126,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Accounts != null) - hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Accounts.GetHashCode(); + } if (this.Directories != null) - hashCode = hashCode * 59 + this.Directories.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Directories.GetHashCode(); + } return hashCode; } } @@ -137,7 +142,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..2effaf8a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectoriesRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AccountDirectoriesRoot.cs @@ -45,7 +45,10 @@ protected AccountDirectoriesRoot() { } public AccountDirectoriesRoot(AccountDirectories data = default(AccountDirectories), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for AccountDirectoriesRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for AccountDirectoriesRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected AccountDirectoriesRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected AccountDirectoriesRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AccountDirectoriesRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(AccountDirectoriesRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParameters.cs index a33eb05f..84b36a9f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParameters.cs @@ -47,9 +47,15 @@ protected AxiomaEquityOptimizationParameters() { } public AxiomaEquityOptimizationParameters(AxiomaEquityOptimizerStrategy strategy = default(AxiomaEquityOptimizerStrategy), OptimizerAccount account = default(OptimizerAccount), Optimization optimization = default(Optimization), OptimizerOutputTypes outputTypes = default(OptimizerOutputTypes)) { // to ensure "strategy" is required (not null) - this.Strategy = strategy ?? throw new ArgumentNullException("strategy is a required property for AxiomaEquityOptimizationParameters and cannot be null"); + if (strategy == null) { + throw new ArgumentNullException("strategy is a required property for AxiomaEquityOptimizationParameters and cannot be null"); + } + this.Strategy = strategy; // to ensure "outputTypes" is required (not null) - this.OutputTypes = outputTypes ?? throw new ArgumentNullException("outputTypes is a required property for AxiomaEquityOptimizationParameters and cannot be null"); + if (outputTypes == null) { + throw new ArgumentNullException("outputTypes is a required property for AxiomaEquityOptimizationParameters and cannot be null"); + } + this.OutputTypes = outputTypes; this.Account = account; this.Optimization = optimization; } @@ -84,7 +90,7 @@ protected AxiomaEquityOptimizationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AxiomaEquityOptimizationParameters {\n"); sb.Append(" Strategy: ").Append(Strategy).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); @@ -121,8 +127,9 @@ public override bool Equals(object input) public bool Equals(AxiomaEquityOptimizationParameters input) { if (input == null) + { return false; - + } return ( this.Strategy == input.Strategy || @@ -156,13 +163,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Strategy != null) - hashCode = hashCode * 59 + this.Strategy.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Strategy.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Optimization != null) - hashCode = hashCode * 59 + this.Optimization.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Optimization.GetHashCode(); + } if (this.OutputTypes != null) - hashCode = hashCode * 59 + this.OutputTypes.GetHashCode(); + { + hashCode = (hashCode * 59) + this.OutputTypes.GetHashCode(); + } return hashCode; } } @@ -172,7 +187,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParametersRoot.cs index 08fb42ad..90091678 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizationParametersRoot.cs @@ -61,7 +61,7 @@ public partial class AxiomaEquityOptimizationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AxiomaEquityOptimizationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -96,8 +96,9 @@ public override bool Equals(object input) public bool Equals(AxiomaEquityOptimizationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -121,9 +122,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -133,7 +138,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategy.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategy.cs index 7b1b72f8..5bec22ba 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategy.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategy.cs @@ -45,7 +45,10 @@ protected AxiomaEquityOptimizerStrategy() { } public AxiomaEquityOptimizerStrategy(AxiomaEquityOptimizerStrategyOverrides overrides = default(AxiomaEquityOptimizerStrategyOverrides), string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for AxiomaEquityOptimizerStrategy and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for AxiomaEquityOptimizerStrategy and cannot be null"); + } + this.Id = id; this.Overrides = overrides; } @@ -68,7 +71,7 @@ protected AxiomaEquityOptimizerStrategy() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AxiomaEquityOptimizerStrategy {\n"); sb.Append(" Overrides: ").Append(Overrides).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -103,8 +106,9 @@ public override bool Equals(object input) public bool Equals(AxiomaEquityOptimizerStrategy input) { if (input == null) + { return false; - + } return ( this.Overrides == input.Overrides || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Overrides != null) - hashCode = hashCode * 59 + this.Overrides.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Overrides.GetHashCode(); + } if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategyOverrides.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategyOverrides.cs index 1786a2d8..79f074d1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategyOverrides.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/AxiomaEquityOptimizerStrategyOverrides.cs @@ -53,6 +53,7 @@ public enum InnerEnum } + /// /// List of constraints /// @@ -110,7 +111,7 @@ public enum InnerEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class AxiomaEquityOptimizerStrategyOverrides {\n"); sb.Append(" Objective: ").Append(Objective).Append("\n"); sb.Append(" Tax: ").Append(Tax).Append("\n"); @@ -148,8 +149,9 @@ public override bool Equals(object input) public bool Equals(AxiomaEquityOptimizerStrategyOverrides input) { if (input == null) + { return false; - + } return ( this.Objective == input.Objective || @@ -187,14 +189,22 @@ public override int GetHashCode() { int hashCode = 41; if (this.Objective != null) - hashCode = hashCode * 59 + this.Objective.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Objective.GetHashCode(); + } if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - hashCode = hashCode * 59 + this.Constraints.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Tax.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Constraints.GetHashCode(); if (this.Alpha != null) - hashCode = hashCode * 59 + this.Alpha.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Alpha.GetHashCode(); + } if (this.TransactionCost != null) - hashCode = hashCode * 59 + this.TransactionCost.GetHashCode(); + { + hashCode = (hashCode * 59) + this.TransactionCost.GetHashCode(); + } return hashCode; } } @@ -204,7 +214,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimization.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimization.cs index af344355..7fdd87ea 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimization.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimization.cs @@ -60,7 +60,7 @@ public partial class BPMOptimization : IEquatable, IValidatable /// Optimization invest all cash /// /// Optimization invest all cash - [DataMember(Name = "investAllCash", EmitDefaultValue = false)] + [DataMember(Name = "investAllCash", EmitDefaultValue = true)] public bool InvestAllCash { get; set; } /// @@ -90,7 +90,7 @@ public partial class BPMOptimization : IEquatable, IValidatable /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BPMOptimization {\n"); sb.Append(" Market: ").Append(Market).Append("\n"); sb.Append(" InvestAllCash: ").Append(InvestAllCash).Append("\n"); @@ -128,8 +128,9 @@ public override bool Equals(object input) public bool Equals(BPMOptimization input) { if (input == null) + { return false; - + } return ( this.Market == input.Market || @@ -167,14 +168,22 @@ public override int GetHashCode() { int hashCode = 41; if (this.Market != null) - hashCode = hashCode * 59 + this.Market.GetHashCode(); - hashCode = hashCode * 59 + this.InvestAllCash.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Market.GetHashCode(); + } + hashCode = (hashCode * 59) + this.InvestAllCash.GetHashCode(); if (this.RiskModelDate != null) - hashCode = hashCode * 59 + this.RiskModelDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.RiskModelDate.GetHashCode(); + } if (this.BacktestDate != null) - hashCode = hashCode * 59 + this.BacktestDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.BacktestDate.GetHashCode(); + } if (this.Cashflow != null) - hashCode = hashCode * 59 + this.Cashflow.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Cashflow.GetHashCode(); + } return hashCode; } } @@ -184,7 +193,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParameters.cs index cfad02fa..cb19ebc8 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParameters.cs @@ -47,9 +47,15 @@ protected BPMOptimizationParameters() { } public BPMOptimizationParameters(BPMOptimizerStrategy strategy = default(BPMOptimizerStrategy), BPMOptimization optimization = default(BPMOptimization), OptimizerAccount account = default(OptimizerAccount), OptimizerOutputTypes outputTypes = default(OptimizerOutputTypes)) { // to ensure "strategy" is required (not null) - this.Strategy = strategy ?? throw new ArgumentNullException("strategy is a required property for BPMOptimizationParameters and cannot be null"); + if (strategy == null) { + throw new ArgumentNullException("strategy is a required property for BPMOptimizationParameters and cannot be null"); + } + this.Strategy = strategy; // to ensure "outputTypes" is required (not null) - this.OutputTypes = outputTypes ?? throw new ArgumentNullException("outputTypes is a required property for BPMOptimizationParameters and cannot be null"); + if (outputTypes == null) { + throw new ArgumentNullException("outputTypes is a required property for BPMOptimizationParameters and cannot be null"); + } + this.OutputTypes = outputTypes; this.Optimization = optimization; this.Account = account; } @@ -84,7 +90,7 @@ protected BPMOptimizationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BPMOptimizationParameters {\n"); sb.Append(" Strategy: ").Append(Strategy).Append("\n"); sb.Append(" Optimization: ").Append(Optimization).Append("\n"); @@ -121,8 +127,9 @@ public override bool Equals(object input) public bool Equals(BPMOptimizationParameters input) { if (input == null) + { return false; - + } return ( this.Strategy == input.Strategy || @@ -156,13 +163,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Strategy != null) - hashCode = hashCode * 59 + this.Strategy.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Strategy.GetHashCode(); + } if (this.Optimization != null) - hashCode = hashCode * 59 + this.Optimization.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Optimization.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.OutputTypes != null) - hashCode = hashCode * 59 + this.OutputTypes.GetHashCode(); + { + hashCode = (hashCode * 59) + this.OutputTypes.GetHashCode(); + } return hashCode; } } @@ -172,7 +187,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParametersRoot.cs index e1166dde..2056f7d3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizationParametersRoot.cs @@ -61,7 +61,7 @@ public partial class BPMOptimizationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BPMOptimizationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -96,8 +96,9 @@ public override bool Equals(object input) public bool Equals(BPMOptimizationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -121,9 +122,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -133,7 +138,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategy.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategy.cs index 1ab9bdf8..12bb2303 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategy.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategy.cs @@ -45,7 +45,10 @@ protected BPMOptimizerStrategy() { } public BPMOptimizerStrategy(BPMOptimizerStrategyOverrides overrides = default(BPMOptimizerStrategyOverrides), string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for BPMOptimizerStrategy and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for BPMOptimizerStrategy and cannot be null"); + } + this.Id = id; this.Overrides = overrides; } @@ -68,7 +71,7 @@ protected BPMOptimizerStrategy() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BPMOptimizerStrategy {\n"); sb.Append(" Overrides: ").Append(Overrides).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -103,8 +106,9 @@ public override bool Equals(object input) public bool Equals(BPMOptimizerStrategy input) { if (input == null) + { return false; - + } return ( this.Overrides == input.Overrides || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Overrides != null) - hashCode = hashCode * 59 + this.Overrides.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Overrides.GetHashCode(); + } if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyAlphaOverride.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyAlphaOverride.cs index 9da4f077..7d3c3ede 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyAlphaOverride.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyAlphaOverride.cs @@ -70,6 +70,7 @@ public enum ReturnTypeEnum } + /// /// Gets or Sets ReturnType /// @@ -106,7 +107,7 @@ public enum ReturnTypeEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BPMOptimizerStrategyAlphaOverride {\n"); sb.Append(" Formula: ").Append(Formula).Append("\n"); sb.Append(" ReturnType: ").Append(ReturnType).Append("\n"); @@ -142,8 +143,9 @@ public override bool Equals(object input) public bool Equals(BPMOptimizerStrategyAlphaOverride input) { if (input == null) + { return false; - + } return ( this.Formula == input.Formula || @@ -171,10 +173,14 @@ public override int GetHashCode() { int hashCode = 41; if (this.Formula != null) - hashCode = hashCode * 59 + this.Formula.GetHashCode(); - hashCode = hashCode * 59 + this.ReturnType.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Formula.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ReturnType.GetHashCode(); if (this.ReturnMultiplier != null) - hashCode = hashCode * 59 + this.ReturnMultiplier.GetHashCode(); + { + hashCode = (hashCode * 59) + this.ReturnMultiplier.GetHashCode(); + } return hashCode; } } @@ -184,7 +190,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyOverrides.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyOverrides.cs index a6183a44..ba8e9394 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyOverrides.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/BPMOptimizerStrategyOverrides.cs @@ -80,7 +80,7 @@ public partial class BPMOptimizerStrategyOverrides : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class BPMOptimizerStrategyOverrides {\n"); sb.Append(" Constraints: ").Append(Constraints).Append("\n"); sb.Append(" Alpha: ").Append(Alpha).Append("\n"); @@ -117,8 +117,9 @@ public override bool Equals(object input) public bool Equals(BPMOptimizerStrategyOverrides input) { if (input == null) + { return false; - + } return ( this.Constraints == input.Constraints || @@ -153,13 +154,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Constraints != null) - hashCode = hashCode * 59 + this.Constraints.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Constraints.GetHashCode(); + } if (this.Alpha != null) - hashCode = hashCode * 59 + this.Alpha.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Alpha.GetHashCode(); + } if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Tax.GetHashCode(); + } if (this.TransactionCost != null) - hashCode = hashCode * 59 + this.TransactionCost.GetHashCode(); + { + hashCode = (hashCode * 59) + this.TransactionCost.GetHashCode(); + } return hashCode; } } @@ -169,7 +178,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfo.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfo.cs index 8ebd6d7a..3c122a0b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfo.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfo.cs @@ -54,7 +54,7 @@ public partial class CalculationInfo : IEquatable, IValidatable /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationInfo {\n"); sb.Append(" CalculationId: ").Append(CalculationId).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(CalculationInfo input) { if (input == null) + { return false; - + } return ( this.CalculationId == input.CalculationId || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.CalculationId != null) - hashCode = hashCode * 59 + this.CalculationId.GetHashCode(); + { + hashCode = (hashCode * 59) + this.CalculationId.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..51947ef2 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfoRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationInfoRoot.cs @@ -45,7 +45,10 @@ protected CalculationInfoRoot() { } public CalculationInfoRoot(CalculationInfo data = default(CalculationInfo), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for CalculationInfoRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for CalculationInfoRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected CalculationInfoRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected CalculationInfoRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationInfoRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(CalculationInfoRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationMeta.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationMeta.cs index 262a2426..787c96f3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationMeta.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationMeta.cs @@ -64,10 +64,12 @@ public enum ContentorganizationEnum } + /// /// Gets or Sets Contentorganization /// [DataMember(Name = "contentorganization", EmitDefaultValue = false)] + [Obsolete] public ContentorganizationEnum? Contentorganization { get; set; } /// /// Defines StachContentOrganization @@ -101,6 +103,7 @@ public enum StachContentOrganizationEnum } + /// /// Gets or Sets StachContentOrganization /// @@ -126,10 +129,12 @@ public enum ContenttypeEnum } + /// /// Gets or Sets Contenttype /// [DataMember(Name = "contenttype", EmitDefaultValue = false)] + [Obsolete] public ContenttypeEnum? Contenttype { get; set; } /// /// Defines Format @@ -193,6 +198,7 @@ public enum FormatEnum } + /// /// Gets or Sets Format /// @@ -219,7 +225,7 @@ public CalculationMeta(ContentorganizationEnum? contentorganization = Contentorg /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationMeta {\n"); sb.Append(" Contentorganization: ").Append(Contentorganization).Append("\n"); sb.Append(" StachContentOrganization: ").Append(StachContentOrganization).Append("\n"); @@ -256,8 +262,9 @@ public override bool Equals(object input) public bool Equals(CalculationMeta input) { if (input == null) + { return false; - + } return ( this.Contentorganization == input.Contentorganization || @@ -286,10 +293,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = hashCode * 59 + this.Contentorganization.GetHashCode(); - hashCode = hashCode * 59 + this.StachContentOrganization.GetHashCode(); - hashCode = hashCode * 59 + this.Contenttype.GetHashCode(); - hashCode = hashCode * 59 + this.Format.GetHashCode(); + hashCode = (hashCode * 59) + this.Contentorganization.GetHashCode(); + hashCode = (hashCode * 59) + this.StachContentOrganization.GetHashCode(); + hashCode = (hashCode * 59) + this.Contenttype.GetHashCode(); + hashCode = (hashCode * 59) + this.Format.GetHashCode(); return hashCode; } } @@ -299,7 +306,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatus.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatus.cs index f99830bd..92e35684 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatus.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatus.cs @@ -65,6 +65,7 @@ public enum StatusEnum } + /// /// Calculation's status /// @@ -104,7 +105,7 @@ public enum StatusEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationStatus {\n"); sb.Append(" Calculationid: ").Append(Calculationid).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); @@ -140,8 +141,9 @@ public override bool Equals(object input) public bool Equals(CalculationStatus input) { if (input == null) + { return false; - + } return ( this.Calculationid == input.Calculationid || @@ -170,10 +172,14 @@ public override int GetHashCode() { int hashCode = 41; if (this.Calculationid != null) - hashCode = hashCode * 59 + this.Calculationid.GetHashCode(); - hashCode = hashCode * 59 + this.Status.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Calculationid.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); if (this.Units != null) - hashCode = hashCode * 59 + this.Units.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Units.GetHashCode(); + } return hashCode; } } @@ -183,7 +189,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusMeta.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusMeta.cs index 16e6a92e..79ed5f56 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusMeta.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusMeta.cs @@ -54,7 +54,7 @@ public partial class CalculationStatusMeta : IEquatable, /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationStatusMeta {\n"); sb.Append(" Units: ").Append(Units).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(CalculationStatusMeta input) { if (input == null) + { return false; - + } return ( this.Units == input.Units || @@ -109,7 +110,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Units != null) - hashCode = hashCode * 59 + this.Units.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Units.GetHashCode(); + } return hashCode; } } @@ -119,7 +122,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusRoot.cs index d4dcf776..228ca218 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationStatusRoot.cs @@ -45,7 +45,10 @@ protected CalculationStatusRoot() { } public CalculationStatusRoot(CalculationStatus data = default(CalculationStatus), CalculationStatusMeta meta = default(CalculationStatusMeta)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for CalculationStatusRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for CalculationStatusRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -67,7 +70,7 @@ protected CalculationStatusRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationStatusRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(CalculationStatusRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatus.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatus.cs index 8280d986..343c0f01 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatus.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatus.cs @@ -71,6 +71,7 @@ public enum StatusEnum } + /// /// The status of calculation unit. /// @@ -84,12 +85,14 @@ public enum StatusEnum /// The error in a calculation unit.. /// The result URL of the calculation.. /// The progress of the calculation unit.. - public CalculationUnitStatus(StatusEnum? status = default(StatusEnum?), List errors = default(List), string result = default(string), string progress = default(string)) + /// The points for the calculation unit.. + public CalculationUnitStatus(StatusEnum? status = default(StatusEnum?), List errors = default(List), string result = default(string), string progress = default(string), int points = default(int)) { this.Status = status; this.Errors = errors; this.Result = result; this.Progress = progress; + this.Points = points; } /// @@ -113,18 +116,26 @@ public enum StatusEnum [DataMember(Name = "progress", EmitDefaultValue = false)] public string Progress { get; set; } + /// + /// The points for the calculation unit. + /// + /// The points for the calculation unit. + [DataMember(Name = "points", EmitDefaultValue = false)] + public int Points { get; set; } + /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationUnitStatus {\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Errors: ").Append(Errors).Append("\n"); sb.Append(" Result: ").Append(Result).Append("\n"); sb.Append(" Progress: ").Append(Progress).Append("\n"); + sb.Append(" Points: ").Append(Points).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -156,8 +167,9 @@ public override bool Equals(object input) public bool Equals(CalculationUnitStatus input) { if (input == null) + { return false; - + } return ( this.Status == input.Status || @@ -178,6 +190,10 @@ public bool Equals(CalculationUnitStatus input) this.Progress == input.Progress || (this.Progress != null && this.Progress.Equals(input.Progress)) + ) && + ( + this.Points == input.Points || + this.Points.Equals(input.Points) ); } @@ -190,13 +206,20 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = hashCode * 59 + this.Status.GetHashCode(); + hashCode = (hashCode * 59) + this.Status.GetHashCode(); if (this.Errors != null) - hashCode = hashCode * 59 + this.Errors.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } if (this.Result != null) - hashCode = hashCode * 59 + this.Result.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Result.GetHashCode(); + } if (this.Progress != null) - hashCode = hashCode * 59 + this.Progress.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Progress.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Points.GetHashCode(); return hashCode; } } @@ -206,7 +229,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatusMeta.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatusMeta.cs index 09b77c37..4c9104b7 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatusMeta.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CalculationUnitStatusMeta.cs @@ -54,7 +54,7 @@ public partial class CalculationUnitStatusMeta : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CalculationUnitStatusMeta {\n"); sb.Append(" Info: ").Append(Info).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(CalculationUnitStatusMeta input) { if (input == null) + { return false; - + } return ( this.Info == input.Info || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Info != null) - hashCode = hashCode * 59 + this.Info.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Info.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ClientErrorResponse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ClientErrorResponse.cs index 9dda330f..a89f941e 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ClientErrorResponse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ClientErrorResponse.cs @@ -53,7 +53,7 @@ public partial class ClientErrorResponse : IEquatable, IVal /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ClientErrorResponse {\n"); sb.Append(" Errors: ").Append(Errors).Append("\n"); sb.Append("}\n"); @@ -87,8 +87,9 @@ public override bool Equals(object input) public bool Equals(ClientErrorResponse input) { if (input == null) + { return false; - + } return ( this.Errors == input.Errors || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Errors != null) - hashCode = hashCode * 59 + this.Errors.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Column.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Column.cs index 2b1527f4..89a93d84 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Column.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Column.cs @@ -81,7 +81,7 @@ public partial class Column : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Column {\n"); sb.Append(" Defaultstatisticsids: ").Append(Defaultstatisticsids).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); @@ -118,8 +118,9 @@ public override bool Equals(object input) public bool Equals(Column input) { if (input == null) + { return false; - + } return ( this.Defaultstatisticsids == input.Defaultstatisticsids || @@ -154,13 +155,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Defaultstatisticsids != null) - hashCode = hashCode * 59 + this.Defaultstatisticsids.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Defaultstatisticsids.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Directory != null) - hashCode = hashCode * 59 + this.Directory.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Directory.GetHashCode(); + } if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } return hashCode; } } @@ -170,7 +179,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..1a6f845b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnRoot.cs @@ -45,7 +45,10 @@ protected ColumnRoot() { } public ColumnRoot(Column data = default(Column), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for ColumnRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for ColumnRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected ColumnRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected ColumnRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ColumnRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(ColumnRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatistic.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatistic.cs index 7c6b6c3e..75e1dca2 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatistic.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatistic.cs @@ -54,7 +54,7 @@ public partial class ColumnStatistic : IEquatable, IValidatable /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ColumnStatistic {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(ColumnStatistic input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..ec794b18 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatisticRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnStatisticRoot.cs @@ -45,7 +45,10 @@ protected ColumnStatisticRoot() { } public ColumnStatisticRoot(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 ColumnStatisticRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for ColumnStatisticRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected ColumnStatisticRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected ColumnStatisticRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ColumnStatisticRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(ColumnStatisticRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummary.cs index 240dc7d8..ca7b8f83 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummary.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummary.cs @@ -72,7 +72,7 @@ public partial class ColumnSummary : IEquatable, IValidatableObje /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ColumnSummary {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Directory: ").Append(Directory).Append("\n"); @@ -108,8 +108,9 @@ public override bool Equals(object input) public bool Equals(ColumnSummary input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -138,11 +139,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Directory != null) - hashCode = hashCode * 59 + this.Directory.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Directory.GetHashCode(); + } if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } return hashCode; } } @@ -152,7 +159,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..331e1c27 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ColumnSummaryRoot.cs @@ -45,7 +45,10 @@ protected ColumnSummaryRoot() { } public ColumnSummaryRoot(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 ColumnSummaryRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for ColumnSummaryRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected ColumnSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected ColumnSummaryRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ColumnSummaryRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(ColumnSummaryRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..7273f8eb 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummary.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummary.cs @@ -63,7 +63,7 @@ public partial class ComponentSummary : IEquatable, IValidatab /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ComponentSummary {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Category: ").Append(Category).Append("\n"); @@ -98,8 +98,9 @@ public override bool Equals(object input) public bool Equals(ComponentSummary input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..7df32751 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ComponentSummaryRoot.cs @@ -45,7 +45,10 @@ protected ComponentSummaryRoot() { } public ComponentSummaryRoot(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 ComponentSummaryRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for ComponentSummaryRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected ComponentSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected ComponentSummaryRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ComponentSummaryRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(ComponentSummaryRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConfigurationAccount.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConfigurationAccount.cs index b129da13..9a657f4c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConfigurationAccount.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConfigurationAccount.cs @@ -99,7 +99,7 @@ public partial class ConfigurationAccount : IEquatable, IV /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ConfigurationAccount {\n"); sb.Append(" BenchmarkCode: ").Append(BenchmarkCode).Append("\n"); sb.Append(" BenchmarkName: ").Append(BenchmarkName).Append("\n"); @@ -138,8 +138,9 @@ public override bool Equals(object input) public bool Equals(ConfigurationAccount input) { if (input == null) + { return false; - + } return ( this.BenchmarkCode == input.BenchmarkCode || @@ -183,17 +184,29 @@ public override int GetHashCode() { int hashCode = 41; if (this.BenchmarkCode != null) - hashCode = hashCode * 59 + this.BenchmarkCode.GetHashCode(); + { + hashCode = (hashCode * 59) + this.BenchmarkCode.GetHashCode(); + } if (this.BenchmarkName != null) - hashCode = hashCode * 59 + this.BenchmarkName.GetHashCode(); + { + hashCode = (hashCode * 59) + this.BenchmarkName.GetHashCode(); + } if (this.MaxEndDate != null) - hashCode = hashCode * 59 + this.MaxEndDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.MaxEndDate.GetHashCode(); + } if (this.MinStartDate != null) - hashCode = hashCode * 59 + this.MinStartDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.MinStartDate.GetHashCode(); + } if (this.LockingDate != null) - hashCode = hashCode * 59 + this.LockingDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.LockingDate.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } return hashCode; } } @@ -203,7 +216,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConstraintAction.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConstraintAction.cs index c541c722..6db1f42f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConstraintAction.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ConstraintAction.cs @@ -52,6 +52,7 @@ public enum Item2Enum } + /// /// Gets or Sets Item2 /// @@ -80,7 +81,7 @@ public enum Item2Enum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ConstraintAction {\n"); sb.Append(" Item1: ").Append(Item1).Append("\n"); sb.Append(" Item2: ").Append(Item2).Append("\n"); @@ -115,8 +116,9 @@ public override bool Equals(object input) public bool Equals(ConstraintAction input) { if (input == null) + { return false; - + } return ( this.Item1 == input.Item1 || @@ -139,8 +141,10 @@ public override int GetHashCode() { int hashCode = 41; if (this.Item1 != null) - hashCode = hashCode * 59 + this.Item1.GetHashCode(); - hashCode = hashCode * 59 + this.Item2.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Item1.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Item2.GetHashCode(); return hashCode; } } @@ -150,7 +154,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Currency.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Currency.cs index fc9f3793..025ccbcb 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Currency.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Currency.cs @@ -54,7 +54,7 @@ public partial class Currency : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Currency {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(Currency input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..9ab851a6 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CurrencyRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/CurrencyRoot.cs @@ -45,7 +45,10 @@ protected CurrencyRoot() { } public CurrencyRoot(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 CurrencyRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for CurrencyRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected CurrencyRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected CurrencyRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class CurrencyRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(CurrencyRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummary.cs index e3150d45..1dc6054a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummary.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummary.cs @@ -63,7 +63,7 @@ public partial class DateParametersSummary : IEquatable, /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class DateParametersSummary {\n"); sb.Append(" Startdate: ").Append(Startdate).Append("\n"); sb.Append(" Enddate: ").Append(Enddate).Append("\n"); @@ -98,8 +98,9 @@ public override bool Equals(object input) public bool Equals(DateParametersSummary input) { if (input == null) + { return false; - + } return ( this.Startdate == input.Startdate || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Startdate != null) - hashCode = hashCode * 59 + this.Startdate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Startdate.GetHashCode(); + } if (this.Enddate != null) - hashCode = hashCode * 59 + this.Enddate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Enddate.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..81efb594 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DateParametersSummaryRoot.cs @@ -45,7 +45,10 @@ protected DateParametersSummaryRoot() { } public DateParametersSummaryRoot(DateParametersSummary data = default(DateParametersSummary), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for DateParametersSummaryRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for DateParametersSummaryRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected DateParametersSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected DateParametersSummaryRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class DateParametersSummaryRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(DateParametersSummaryRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectories.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectories.cs index 448fe700..4c4c0a2b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectories.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectories.cs @@ -63,7 +63,7 @@ public partial class DocumentDirectories : IEquatable, IVal /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class DocumentDirectories {\n"); sb.Append(" Documents: ").Append(Documents).Append("\n"); sb.Append(" Directories: ").Append(Directories).Append("\n"); @@ -98,8 +98,9 @@ public override bool Equals(object input) public bool Equals(DocumentDirectories input) { if (input == null) + { return false; - + } return ( this.Documents == input.Documents || @@ -125,9 +126,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Documents != null) - hashCode = hashCode * 59 + this.Documents.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Documents.GetHashCode(); + } if (this.Directories != null) - hashCode = hashCode * 59 + this.Directories.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Directories.GetHashCode(); + } return hashCode; } } @@ -137,7 +142,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..6370d9e9 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectoriesRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/DocumentDirectoriesRoot.cs @@ -45,7 +45,10 @@ protected DocumentDirectoriesRoot() { } public DocumentDirectoriesRoot(DocumentDirectories data = default(DocumentDirectories), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for DocumentDirectoriesRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for DocumentDirectoriesRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected DocumentDirectoriesRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected DocumentDirectoriesRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class DocumentDirectoriesRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(DocumentDirectoriesRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Error.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Error.cs index ebed3dfe..ae766c8e 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Error.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Error.cs @@ -69,7 +69,7 @@ public partial class Error : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Error {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Detail: ").Append(Detail).Append("\n"); @@ -105,8 +105,9 @@ public override bool Equals(object input) public bool Equals(Error input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -135,11 +136,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Detail != null) - hashCode = hashCode * 59 + this.Detail.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Detail.GetHashCode(); + } if (this.Source != null) - hashCode = hashCode * 59 + this.Source.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Source.GetHashCode(); + } return hashCode; } } @@ -149,7 +156,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ErrorSource.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ErrorSource.cs index 31c1369d..e3739599 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ErrorSource.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ErrorSource.cs @@ -61,7 +61,7 @@ public partial class ErrorSource : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ErrorSource {\n"); sb.Append(" Pointer: ").Append(Pointer).Append("\n"); sb.Append(" Parameter: ").Append(Parameter).Append("\n"); @@ -96,8 +96,9 @@ public override bool Equals(object input) public bool Equals(ErrorSource input) { if (input == null) + { return false; - + } return ( this.Pointer == input.Pointer || @@ -121,9 +122,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Pointer != null) - hashCode = hashCode * 59 + this.Pointer.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Pointer.GetHashCode(); + } if (this.Parameter != null) - hashCode = hashCode * 59 + this.Parameter.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Parameter.GetHashCode(); + } return hashCode; } } @@ -133,7 +138,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/EventSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/EventSummary.cs index 894c5cfe..1329dd09 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/EventSummary.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/EventSummary.cs @@ -72,7 +72,7 @@ public partial class EventSummary : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class EventSummary {\n"); sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append(" Submissiondatetime: ").Append(Submissiondatetime).Append("\n"); @@ -108,8 +108,9 @@ public override bool Equals(object input) public bool Equals(EventSummary input) { if (input == null) + { return false; - + } return ( this.Message == input.Message || @@ -138,11 +139,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Message != null) - hashCode = hashCode * 59 + this.Message.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Message.GetHashCode(); + } if (this.Submissiondatetime != null) - hashCode = hashCode * 59 + this.Submissiondatetime.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Submissiondatetime.GetHashCode(); + } if (this.Type != null) - hashCode = hashCode * 59 + this.Type.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + } return hashCode; } } @@ -152,7 +159,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationParameters.cs index c5e9cb94..84424416 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationParameters.cs @@ -48,9 +48,15 @@ protected FIABCalculationParameters() { } public FIABCalculationParameters(string fiabdocument = default(string), FIABIdentifier account = default(FIABIdentifier), FIABDateParameters dates = default(FIABDateParameters), string msl = default(string), string fisettingsdocument = default(string)) { // to ensure "account" is required (not null) - this.Account = account ?? throw new ArgumentNullException("account is a required property for FIABCalculationParameters and cannot be null"); + if (account == null) { + throw new ArgumentNullException("account is a required property for FIABCalculationParameters and cannot be null"); + } + this.Account = account; // to ensure "dates" is required (not null) - this.Dates = dates ?? throw new ArgumentNullException("dates is a required property for FIABCalculationParameters and cannot be null"); + if (dates == null) { + throw new ArgumentNullException("dates is a required property for FIABCalculationParameters and cannot be null"); + } + this.Dates = dates; this.Fiabdocument = fiabdocument; this.Msl = msl; this.Fisettingsdocument = fisettingsdocument; @@ -95,7 +101,7 @@ protected FIABCalculationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FIABCalculationParameters {\n"); sb.Append(" Fiabdocument: ").Append(Fiabdocument).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); @@ -133,8 +139,9 @@ public override bool Equals(object input) public bool Equals(FIABCalculationParameters input) { if (input == null) + { return false; - + } return ( this.Fiabdocument == input.Fiabdocument || @@ -173,15 +180,25 @@ public override int GetHashCode() { int hashCode = 41; if (this.Fiabdocument != null) - hashCode = hashCode * 59 + this.Fiabdocument.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Fiabdocument.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } if (this.Msl != null) - hashCode = hashCode * 59 + this.Msl.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Msl.GetHashCode(); + } if (this.Fisettingsdocument != null) - hashCode = hashCode * 59 + this.Fisettingsdocument.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Fisettingsdocument.GetHashCode(); + } return hashCode; } } @@ -191,7 +208,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatus.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatus.cs index eff1df01..b9d0c3af 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatus.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatus.cs @@ -77,6 +77,7 @@ public enum StatusEnum } + /// /// Calculation's status /// @@ -143,7 +144,7 @@ public enum StatusEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FIABCalculationStatus {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); @@ -182,8 +183,9 @@ public override bool Equals(object input) public bool Equals(FIABCalculationStatus input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -226,15 +228,23 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); - hashCode = hashCode * 59 + this.Status.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); if (this.Startdatetime != null) - hashCode = hashCode * 59 + this.Startdatetime.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Startdatetime.GetHashCode(); + } if (this.Completiondatetime != null) - hashCode = hashCode * 59 + this.Completiondatetime.GetHashCode(); - hashCode = hashCode * 59 + this.Progress.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Completiondatetime.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Progress.GetHashCode(); if (this.Batchevents != null) - hashCode = hashCode * 59 + this.Batchevents.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Batchevents.GetHashCode(); + } return hashCode; } } @@ -244,7 +254,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatusSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatusSummary.cs index 6a24967a..f6f4d562 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatusSummary.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABCalculationStatusSummary.cs @@ -63,7 +63,7 @@ public partial class FIABCalculationStatusSummary : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FIABCalculationStatusSummary {\n"); sb.Append(" Requesttime: ").Append(Requesttime).Append("\n"); sb.Append(" Lastpolltime: ").Append(Lastpolltime).Append("\n"); @@ -98,8 +98,9 @@ public override bool Equals(object input) public bool Equals(FIABCalculationStatusSummary input) { if (input == null) + { return false; - + } return ( this.Requesttime == input.Requesttime || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Requesttime != null) - hashCode = hashCode * 59 + this.Requesttime.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Requesttime.GetHashCode(); + } if (this.Lastpolltime != null) - hashCode = hashCode * 59 + this.Lastpolltime.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Lastpolltime.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABDateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABDateParameters.cs index 0bc8928b..d27d79ab 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABDateParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABDateParameters.cs @@ -45,9 +45,15 @@ protected FIABDateParameters() { } public FIABDateParameters(string startdate = default(string), string enddate = default(string)) { // to ensure "startdate" is required (not null) - this.Startdate = startdate ?? throw new ArgumentNullException("startdate is a required property for FIABDateParameters and cannot be null"); + if (startdate == null) { + throw new ArgumentNullException("startdate is a required property for FIABDateParameters and cannot be null"); + } + this.Startdate = startdate; // to ensure "enddate" is required (not null) - this.Enddate = enddate ?? throw new ArgumentNullException("enddate is a required property for FIABDateParameters and cannot be null"); + if (enddate == null) { + throw new ArgumentNullException("enddate is a required property for FIABDateParameters and cannot be null"); + } + this.Enddate = enddate; } /// @@ -70,7 +76,7 @@ protected FIABDateParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FIABDateParameters {\n"); sb.Append(" Startdate: ").Append(Startdate).Append("\n"); sb.Append(" Enddate: ").Append(Enddate).Append("\n"); @@ -105,8 +111,9 @@ public override bool Equals(object input) public bool Equals(FIABDateParameters input) { if (input == null) + { return false; - + } return ( this.Startdate == input.Startdate || @@ -130,9 +137,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Startdate != null) - hashCode = hashCode * 59 + this.Startdate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Startdate.GetHashCode(); + } if (this.Enddate != null) - hashCode = hashCode * 59 + this.Enddate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Enddate.GetHashCode(); + } return hashCode; } } @@ -142,7 +153,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABIdentifier.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABIdentifier.cs index 0c4c7bc8..7dba237f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABIdentifier.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIABIdentifier.cs @@ -44,7 +44,10 @@ protected FIABIdentifier() { } public FIABIdentifier(string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for FIABIdentifier and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for FIABIdentifier and cannot be null"); + } + this.Id = id; } /// @@ -60,7 +63,7 @@ protected FIABIdentifier() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FIABIdentifier {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append("}\n"); @@ -94,8 +97,9 @@ public override bool Equals(object input) public bool Equals(FIABIdentifier input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -114,7 +118,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -124,7 +130,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParameters.cs index e051b1c3..806345b1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParameters.cs @@ -46,11 +46,20 @@ protected FICalculationParameters() { } public FICalculationParameters(List securities = default(List), List calculations = default(List), FIJobSettings jobSettings = default(FIJobSettings)) { // to ensure "securities" is required (not null) - this.Securities = securities ?? throw new ArgumentNullException("securities is a required property for FICalculationParameters and cannot be null"); + if (securities == null) { + throw new ArgumentNullException("securities is a required property for FICalculationParameters and cannot be null"); + } + this.Securities = securities; // to ensure "calculations" is required (not null) - this.Calculations = calculations ?? throw new ArgumentNullException("calculations is a required property for FICalculationParameters and cannot be null"); + if (calculations == null) { + throw new ArgumentNullException("calculations is a required property for FICalculationParameters and cannot be null"); + } + this.Calculations = calculations; // to ensure "jobSettings" is required (not null) - this.JobSettings = jobSettings ?? throw new ArgumentNullException("jobSettings is a required property for FICalculationParameters and cannot be null"); + if (jobSettings == null) { + throw new ArgumentNullException("jobSettings is a required property for FICalculationParameters and cannot be null"); + } + this.JobSettings = jobSettings; } /// @@ -79,7 +88,7 @@ protected FICalculationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FICalculationParameters {\n"); sb.Append(" Securities: ").Append(Securities).Append("\n"); sb.Append(" Calculations: ").Append(Calculations).Append("\n"); @@ -115,8 +124,9 @@ public override bool Equals(object input) public bool Equals(FICalculationParameters input) { if (input == null) + { return false; - + } return ( this.Securities == input.Securities || @@ -147,11 +157,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Securities != null) - hashCode = hashCode * 59 + this.Securities.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Securities.GetHashCode(); + } if (this.Calculations != null) - hashCode = hashCode * 59 + this.Calculations.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Calculations.GetHashCode(); + } if (this.JobSettings != null) - hashCode = hashCode * 59 + this.JobSettings.GetHashCode(); + { + hashCode = (hashCode * 59) + this.JobSettings.GetHashCode(); + } return hashCode; } } @@ -161,7 +177,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParametersRoot.cs index 45755198..ea65d13f 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FICalculationParametersRoot.cs @@ -61,7 +61,7 @@ public partial class FICalculationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FICalculationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -96,8 +96,9 @@ public override bool Equals(object input) public bool Equals(FICalculationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -121,9 +122,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -133,7 +138,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..b1830525 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,46 @@ 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 +82,20 @@ protected FIJobSettings() { } /// /// As of date (required). /// Partial duration months. - public FIJobSettings(string asOfDate = default(string), List partialDurationMonths = default(List)) + /// Call Method. + /// Settlement Date. + /// Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix. + 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"); + if (asOfDate == null) { + throw new ArgumentNullException("asOfDate is a required property for FIJobSettings and cannot be null"); + } + this.AsOfDate = asOfDate; this.PartialDurationMonths = partialDurationMonths; + this.CallMethod = callMethod; + this.Settlement = settlement; + this.CalcFromMethod = calcFromMethod; } /// @@ -63,16 +112,33 @@ 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 Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix + /// + /// Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix + [DataMember(Name = "calcFromMethod", EmitDefaultValue = false)] + public string CalcFromMethod { get; set; } + /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); 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(); } @@ -104,8 +170,9 @@ public override bool Equals(object input) public bool Equals(FIJobSettings input) { if (input == null) + { return false; - + } return ( this.AsOfDate == input.AsOfDate || @@ -117,6 +184,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)) ); } @@ -130,9 +211,22 @@ public override int GetHashCode() { int hashCode = 41; if (this.AsOfDate != null) - hashCode = hashCode * 59 + this.AsOfDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.AsOfDate.GetHashCode(); + } if (this.PartialDurationMonths != null) - hashCode = hashCode * 59 + this.PartialDurationMonths.GetHashCode(); + { + 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; } } @@ -142,7 +236,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FILoss.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FILoss.cs new file mode 100644 index 00000000..ee963653 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FILoss.cs @@ -0,0 +1,130 @@ +/* + * 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 +{ + /// + /// FILoss + /// + [DataContract(Name = "FILoss")] + public partial class FILoss : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Loss Name. + public FILoss(string lossName = default(string)) + { + this.LossName = lossName; + } + + /// + /// Loss Name + /// + /// Loss Name + [DataMember(Name = "lossName", EmitDefaultValue = false)] + public string LossName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FILoss {\n"); + sb.Append(" LossName: ").Append(LossName).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 FILoss); + } + + /// + /// Returns true if FILoss instances are equal + /// + /// Instance of FILoss to be compared + /// Boolean + public bool Equals(FILoss input) + { + if (input == null) + { + return false; + } + return + ( + this.LossName == input.LossName || + (this.LossName != null && + this.LossName.Equals(input.LossName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LossName != null) + { + hashCode = (hashCode * 59) + this.LossName.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIPrepay.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIPrepay.cs new file mode 100644 index 00000000..34bc954d --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIPrepay.cs @@ -0,0 +1,130 @@ +/* + * 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 +{ + /// + /// FIPrepay + /// + [DataContract(Name = "FIPrepay")] + public partial class FIPrepay : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Prepay Name. + public FIPrepay(string prepayName = default(string)) + { + this.PrepayName = prepayName; + } + + /// + /// Prepay Name + /// + /// Prepay Name + [DataMember(Name = "prepayName", EmitDefaultValue = false)] + public string PrepayName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FIPrepay {\n"); + sb.Append(" PrepayName: ").Append(PrepayName).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 FIPrepay); + } + + /// + /// Returns true if FIPrepay instances are equal + /// + /// Instance of FIPrepay to be compared + /// Boolean + public bool Equals(FIPrepay input) + { + if (input == null) + { + return false; + } + return + ( + this.PrepayName == input.PrepayName || + (this.PrepayName != null && + this.PrepayName.Equals(input.PrepayName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PrepayName != null) + { + hashCode = (hashCode * 59) + this.PrepayName.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIReferencePrepay.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIReferencePrepay.cs new file mode 100644 index 00000000..fa1f3dde --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIReferencePrepay.cs @@ -0,0 +1,130 @@ +/* + * 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 +{ + /// + /// FIReferencePrepay + /// + [DataContract(Name = "FIReferencePrepay")] + public partial class FIReferencePrepay : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Reference Prepay Name. + public FIReferencePrepay(string prepayName = default(string)) + { + this.PrepayName = prepayName; + } + + /// + /// Reference Prepay Name + /// + /// Reference Prepay Name + [DataMember(Name = "prepayName", EmitDefaultValue = false)] + public string PrepayName { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FIReferencePrepay {\n"); + sb.Append(" PrepayName: ").Append(PrepayName).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 FIReferencePrepay); + } + + /// + /// Returns true if FIReferencePrepay instances are equal + /// + /// Instance of FIReferencePrepay to be compared + /// Boolean + public bool Equals(FIReferencePrepay input) + { + if (input == null) + { + return false; + } + return + ( + this.PrepayName == input.PrepayName || + (this.PrepayName != null && + this.PrepayName.Equals(input.PrepayName)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.PrepayName != null) + { + hashCode = (hashCode * 59) + this.PrepayName.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIReferenceSecurity.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIReferenceSecurity.cs new file mode 100644 index 00000000..f6c21c05 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FIReferenceSecurity.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 +{ + /// + /// FIReferenceSecurity + /// + [DataContract(Name = "FIReferenceSecurity")] + public partial class FIReferenceSecurity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Reference Security Type. + /// Reference Security Name. + /// Reference Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix. + /// Reference CalcFromValue. + /// prepay. + /// Reference Settlement Date. + public FIReferenceSecurity(string securityType = default(string), string securityName = default(string), string calcFromMethod = default(string), double calcFromValue = default(double), FIReferencePrepay prepay = default(FIReferencePrepay), string settlement = default(string)) + { + this.SecurityType = securityType; + this.SecurityName = securityName; + this.CalcFromMethod = calcFromMethod; + this.CalcFromValue = calcFromValue; + this.Prepay = prepay; + this.Settlement = settlement; + } + + /// + /// Reference Security Type + /// + /// Reference Security Type + [DataMember(Name = "securityType", EmitDefaultValue = false)] + public string SecurityType { get; set; } + + /// + /// Reference Security Name + /// + /// Reference Security Name + [DataMember(Name = "securityName", EmitDefaultValue = false)] + public string SecurityName { get; set; } + + /// + /// Reference Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix + /// + /// Reference Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix + [DataMember(Name = "calcFromMethod", EmitDefaultValue = false)] + public string CalcFromMethod { get; set; } + + /// + /// Reference CalcFromValue + /// + /// Reference CalcFromValue + [DataMember(Name = "calcFromValue", EmitDefaultValue = false)] + public double CalcFromValue { get; set; } + + /// + /// Gets or Sets Prepay + /// + [DataMember(Name = "prepay", EmitDefaultValue = false)] + public FIReferencePrepay Prepay { get; set; } + + /// + /// Reference Settlement Date + /// + /// Reference Settlement Date + [DataMember(Name = "settlement", EmitDefaultValue = false)] + public string Settlement { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FIReferenceSecurity {\n"); + sb.Append(" SecurityType: ").Append(SecurityType).Append("\n"); + sb.Append(" SecurityName: ").Append(SecurityName).Append("\n"); + sb.Append(" CalcFromMethod: ").Append(CalcFromMethod).Append("\n"); + sb.Append(" CalcFromValue: ").Append(CalcFromValue).Append("\n"); + sb.Append(" Prepay: ").Append(Prepay).Append("\n"); + sb.Append(" Settlement: ").Append(Settlement).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 FIReferenceSecurity); + } + + /// + /// Returns true if FIReferenceSecurity instances are equal + /// + /// Instance of FIReferenceSecurity to be compared + /// Boolean + public bool Equals(FIReferenceSecurity input) + { + if (input == null) + { + return false; + } + return + ( + this.SecurityType == input.SecurityType || + (this.SecurityType != null && + this.SecurityType.Equals(input.SecurityType)) + ) && + ( + this.SecurityName == input.SecurityName || + (this.SecurityName != null && + this.SecurityName.Equals(input.SecurityName)) + ) && + ( + this.CalcFromMethod == input.CalcFromMethod || + (this.CalcFromMethod != null && + this.CalcFromMethod.Equals(input.CalcFromMethod)) + ) && + ( + this.CalcFromValue == input.CalcFromValue || + this.CalcFromValue.Equals(input.CalcFromValue) + ) && + ( + this.Prepay == input.Prepay || + (this.Prepay != null && + this.Prepay.Equals(input.Prepay)) + ) && + ( + this.Settlement == input.Settlement || + (this.Settlement != null && + this.Settlement.Equals(input.Settlement)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.SecurityType != null) + { + hashCode = (hashCode * 59) + this.SecurityType.GetHashCode(); + } + if (this.SecurityName != null) + { + hashCode = (hashCode * 59) + this.SecurityName.GetHashCode(); + } + if (this.CalcFromMethod != null) + { + hashCode = (hashCode * 59) + this.CalcFromMethod.GetHashCode(); + } + hashCode = (hashCode * 59) + this.CalcFromValue.GetHashCode(); + if (this.Prepay != null) + { + hashCode = (hashCode * 59) + this.Prepay.GetHashCode(); + } + if (this.Settlement != null) + { + hashCode = (hashCode * 59) + this.Settlement.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} 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..34e7681a 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,46 @@ 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 /// @@ -53,6 +93,7 @@ public enum FaceTypeEnum } + /// /// Face type /// @@ -68,20 +109,34 @@ protected FISecurity() { } /// Initializes a new instance of the class. /// /// Settlement date. - /// Calculation from method (required). + /// Call Method. + /// referenceSecurity. + /// loss. + /// prepay. + /// Matrix Spread Adjustment. + /// Matrix Multiplier. + /// Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix. /// 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?), FIReferenceSecurity referenceSecurity = default(FIReferenceSecurity), FILoss loss = default(FILoss), FIPrepay prepay = default(FIPrepay), double matrixSpreadAdjustment = default(double), double matrixMultiplier = default(double), 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"); + if (symbol == null) { + throw new ArgumentNullException("symbol is a required property for FISecurity and cannot be null"); + } + this.Symbol = symbol; this.Settlement = settlement; + this.CallMethod = callMethod; + this.ReferenceSecurity = referenceSecurity; + this.Loss = loss; + this.Prepay = prepay; + this.MatrixSpreadAdjustment = matrixSpreadAdjustment; + this.MatrixMultiplier = matrixMultiplier; + this.CalcFromMethod = calcFromMethod; this.Face = face; this.FaceType = faceType; this.DiscountCurve = discountCurve; @@ -95,10 +150,42 @@ protected FISecurity() { } public string Settlement { get; set; } /// - /// Calculation from method + /// Gets or Sets ReferenceSecurity + /// + [DataMember(Name = "referenceSecurity", EmitDefaultValue = false)] + public FIReferenceSecurity ReferenceSecurity { get; set; } + + /// + /// Gets or Sets Loss /// - /// Calculation from method - [DataMember(Name = "calcFromMethod", IsRequired = true, EmitDefaultValue = false)] + [DataMember(Name = "loss", EmitDefaultValue = false)] + public FILoss Loss { get; set; } + + /// + /// Gets or Sets Prepay + /// + [DataMember(Name = "prepay", EmitDefaultValue = false)] + public FIPrepay Prepay { get; set; } + + /// + /// Matrix Spread Adjustment + /// + /// Matrix Spread Adjustment + [DataMember(Name = "matrixSpreadAdjustment", EmitDefaultValue = false)] + public double MatrixSpreadAdjustment { get; set; } + + /// + /// Matrix Multiplier + /// + /// Matrix Multiplier + [DataMember(Name = "matrixMultiplier", EmitDefaultValue = false)] + public double MatrixMultiplier { get; set; } + + /// + /// Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix + /// + /// Calculation Method. Methods : Active Spread, Actual Spread, Actual Spread To Worst Call, OAS, Price, Yield, Yield To No Call, Act/Act Yield To No Call, Bond Equivalent Yield, Yield To Worst Call, Discount Yield, Discount Margin, Implied Volatility, Bullet Spread, Bullet Spread To Worst Call, Pricing Matrix + [DataMember(Name = "calcFromMethod", EmitDefaultValue = false)] public string CalcFromMethod { get; set; } /// @@ -135,9 +222,15 @@ protected FISecurity() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FISecurity {\n"); sb.Append(" Settlement: ").Append(Settlement).Append("\n"); + sb.Append(" CallMethod: ").Append(CallMethod).Append("\n"); + sb.Append(" ReferenceSecurity: ").Append(ReferenceSecurity).Append("\n"); + sb.Append(" Loss: ").Append(Loss).Append("\n"); + sb.Append(" Prepay: ").Append(Prepay).Append("\n"); + sb.Append(" MatrixSpreadAdjustment: ").Append(MatrixSpreadAdjustment).Append("\n"); + sb.Append(" MatrixMultiplier: ").Append(MatrixMultiplier).Append("\n"); sb.Append(" CalcFromMethod: ").Append(CalcFromMethod).Append("\n"); sb.Append(" CalcFromValue: ").Append(CalcFromValue).Append("\n"); sb.Append(" Face: ").Append(Face).Append("\n"); @@ -175,14 +268,42 @@ public override bool Equals(object input) public bool Equals(FISecurity input) { if (input == null) + { return false; - + } return ( this.Settlement == input.Settlement || (this.Settlement != null && this.Settlement.Equals(input.Settlement)) ) && + ( + this.CallMethod == input.CallMethod || + this.CallMethod.Equals(input.CallMethod) + ) && + ( + this.ReferenceSecurity == input.ReferenceSecurity || + (this.ReferenceSecurity != null && + this.ReferenceSecurity.Equals(input.ReferenceSecurity)) + ) && + ( + this.Loss == input.Loss || + (this.Loss != null && + this.Loss.Equals(input.Loss)) + ) && + ( + this.Prepay == input.Prepay || + (this.Prepay != null && + this.Prepay.Equals(input.Prepay)) + ) && + ( + this.MatrixSpreadAdjustment == input.MatrixSpreadAdjustment || + this.MatrixSpreadAdjustment.Equals(input.MatrixSpreadAdjustment) + ) && + ( + this.MatrixMultiplier == input.MatrixMultiplier || + this.MatrixMultiplier.Equals(input.MatrixMultiplier) + ) && ( this.CalcFromMethod == input.CalcFromMethod || (this.CalcFromMethod != null && @@ -222,16 +343,39 @@ public override int GetHashCode() { int hashCode = 41; if (this.Settlement != null) - hashCode = hashCode * 59 + this.Settlement.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Settlement.GetHashCode(); + } + hashCode = (hashCode * 59) + this.CallMethod.GetHashCode(); + if (this.ReferenceSecurity != null) + { + hashCode = (hashCode * 59) + this.ReferenceSecurity.GetHashCode(); + } + if (this.Loss != null) + { + hashCode = (hashCode * 59) + this.Loss.GetHashCode(); + } + if (this.Prepay != null) + { + hashCode = (hashCode * 59) + this.Prepay.GetHashCode(); + } + hashCode = (hashCode * 59) + this.MatrixSpreadAdjustment.GetHashCode(); + hashCode = (hashCode * 59) + this.MatrixMultiplier.GetHashCode(); if (this.CalcFromMethod != null) - hashCode = hashCode * 59 + this.CalcFromMethod.GetHashCode(); - hashCode = hashCode * 59 + this.CalcFromValue.GetHashCode(); - hashCode = hashCode * 59 + this.Face.GetHashCode(); - hashCode = hashCode * 59 + this.FaceType.GetHashCode(); + { + hashCode = (hashCode * 59) + this.CalcFromMethod.GetHashCode(); + } + hashCode = (hashCode * 59) + this.CalcFromValue.GetHashCode(); + hashCode = (hashCode * 59) + this.Face.GetHashCode(); + hashCode = (hashCode * 59) + this.FaceType.GetHashCode(); if (this.Symbol != null) - hashCode = hashCode * 59 + this.Symbol.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Symbol.GetHashCode(); + } if (this.DiscountCurve != null) - hashCode = hashCode * 59 + this.DiscountCurve.GetHashCode(); + { + hashCode = (hashCode * 59) + this.DiscountCurve.GetHashCode(); + } return hashCode; } } @@ -241,7 +385,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOAccount.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOAccount.cs index d7e54745..0c45a5b3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOAccount.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOAccount.cs @@ -46,7 +46,10 @@ protected FPOAccount() { } public FPOAccount(PaDoc paDocument = default(PaDoc), string id = default(string), OptimizerAccountOverrides overrides = default(OptimizerAccountOverrides)) { // to ensure "paDocument" is required (not null) - this.PaDocument = paDocument ?? throw new ArgumentNullException("paDocument is a required property for FPOAccount and cannot be null"); + if (paDocument == null) { + throw new ArgumentNullException("paDocument is a required property for FPOAccount and cannot be null"); + } + this.PaDocument = paDocument; this.Id = id; this.Overrides = overrides; } @@ -76,7 +79,7 @@ protected FPOAccount() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FPOAccount {\n"); sb.Append(" PaDocument: ").Append(PaDocument).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -112,8 +115,9 @@ public override bool Equals(object input) public bool Equals(FPOAccount input) { if (input == null) + { return false; - + } return ( this.PaDocument == input.PaDocument || @@ -142,11 +146,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.PaDocument != null) - hashCode = hashCode * 59 + this.PaDocument.GetHashCode(); + { + hashCode = (hashCode * 59) + this.PaDocument.GetHashCode(); + } if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Overrides != null) - hashCode = hashCode * 59 + this.Overrides.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Overrides.GetHashCode(); + } return hashCode; } } @@ -156,7 +166,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOObjective.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOObjective.cs new file mode 100644 index 00000000..94c6a975 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOObjective.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 +{ + /// + /// FPOObjective + /// + [DataContract(Name = "FPOObjective")] + public partial class FPOObjective : IEquatable, IValidatableObject + { + /// + /// Defines Inner + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum InnerEnum + { + /// + /// Enum Disable for value: Disable + /// + [EnumMember(Value = "Disable")] + Disable = 1, + + /// + /// Enum Enable for value: Enable + /// + [EnumMember(Value = "Enable")] + Enable = 2 + + } + + + + /// + /// Gets or Sets Terms + /// + [DataMember(Name = "terms", EmitDefaultValue = false)] + public Dictionary Terms { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// active. + /// terms. + public FPOObjective(string active = default(string), Dictionary terms = default(Dictionary)) + { + this.Active = active; + this.Terms = terms; + } + + /// + /// Gets or Sets Active + /// + [DataMember(Name = "active", EmitDefaultValue = false)] + public string Active { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FPOObjective {\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" Terms: ").Append(Terms).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 FPOObjective); + } + + /// + /// Returns true if FPOObjective instances are equal + /// + /// Instance of FPOObjective to be compared + /// Boolean + public bool Equals(FPOObjective input) + { + if (input == null) + { + return false; + } + return + ( + this.Active == input.Active || + (this.Active != null && + this.Active.Equals(input.Active)) + ) && + ( + this.Terms == input.Terms || + this.Terms.SequenceEqual(input.Terms) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Active != null) + { + hashCode = (hashCode * 59) + this.Active.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Terms.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParameters.cs index 8b2d453f..3150bb1b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParameters.cs @@ -44,12 +44,18 @@ protected FPOOptimizationParameters() { } /// strategy (required). /// optimization. /// outputTypes (required). - public FPOOptimizationParameters(FPOAccount account = default(FPOAccount), OptimizerStrategy strategy = default(OptimizerStrategy), Optimization optimization = default(Optimization), OptimizerOutputTypes outputTypes = default(OptimizerOutputTypes)) + public FPOOptimizationParameters(FPOAccount account = default(FPOAccount), FPOOptimizerStrategy strategy = default(FPOOptimizerStrategy), Optimization optimization = default(Optimization), OptimizerOutputTypes outputTypes = default(OptimizerOutputTypes)) { // to ensure "strategy" is required (not null) - this.Strategy = strategy ?? throw new ArgumentNullException("strategy is a required property for FPOOptimizationParameters and cannot be null"); + if (strategy == null) { + throw new ArgumentNullException("strategy is a required property for FPOOptimizationParameters and cannot be null"); + } + this.Strategy = strategy; // to ensure "outputTypes" is required (not null) - this.OutputTypes = outputTypes ?? throw new ArgumentNullException("outputTypes is a required property for FPOOptimizationParameters and cannot be null"); + if (outputTypes == null) { + throw new ArgumentNullException("outputTypes is a required property for FPOOptimizationParameters and cannot be null"); + } + this.OutputTypes = outputTypes; this.Account = account; this.Optimization = optimization; } @@ -64,7 +70,7 @@ protected FPOOptimizationParameters() { } /// Gets or Sets Strategy /// [DataMember(Name = "strategy", IsRequired = true, EmitDefaultValue = false)] - public OptimizerStrategy Strategy { get; set; } + public FPOOptimizerStrategy Strategy { get; set; } /// /// Gets or Sets Optimization @@ -84,7 +90,7 @@ protected FPOOptimizationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FPOOptimizationParameters {\n"); sb.Append(" Account: ").Append(Account).Append("\n"); sb.Append(" Strategy: ").Append(Strategy).Append("\n"); @@ -121,8 +127,9 @@ public override bool Equals(object input) public bool Equals(FPOOptimizationParameters input) { if (input == null) + { return false; - + } return ( this.Account == input.Account || @@ -156,13 +163,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Strategy != null) - hashCode = hashCode * 59 + this.Strategy.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Strategy.GetHashCode(); + } if (this.Optimization != null) - hashCode = hashCode * 59 + this.Optimization.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Optimization.GetHashCode(); + } if (this.OutputTypes != null) - hashCode = hashCode * 59 + this.OutputTypes.GetHashCode(); + { + hashCode = (hashCode * 59) + this.OutputTypes.GetHashCode(); + } return hashCode; } } @@ -172,7 +187,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParametersRoot.cs index aea73331..cafc30aa 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizationParametersRoot.cs @@ -61,7 +61,7 @@ public partial class FPOOptimizationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FPOOptimizationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -96,8 +96,9 @@ public override bool Equals(object input) public bool Equals(FPOOptimizationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -121,9 +122,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -133,7 +138,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategy.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategy.cs similarity index 71% rename from auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategy.cs rename to auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategy.cs index 80363a04..0a31efd2 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategy.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategy.cs @@ -27,28 +27,37 @@ namespace FactSet.AnalyticsAPI.Engines.Model { /// - /// OptimizerStrategy + /// FPOOptimizerStrategy /// - [DataContract(Name = "OptimizerStrategy")] - public partial class OptimizerStrategy : IEquatable, IValidatableObject + [DataContract(Name = "FPOOptimizerStrategy")] + public partial class FPOOptimizerStrategy : IEquatable, IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected OptimizerStrategy() { } + protected FPOOptimizerStrategy() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// OptimizerStrategy document path (required). /// overrides. - public OptimizerStrategy(string id = default(string), OptimizerStrategyOverrides overrides = default(OptimizerStrategyOverrides)) + /// OptimizerStrategy document path (required). + public FPOOptimizerStrategy(FPOOptimizerStrategyOverrides overrides = default(FPOOptimizerStrategyOverrides), string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for OptimizerStrategy and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for FPOOptimizerStrategy and cannot be null"); + } + this.Id = id; this.Overrides = overrides; } + /// + /// Gets or Sets Overrides + /// + [DataMember(Name = "overrides", EmitDefaultValue = false)] + public FPOOptimizerStrategyOverrides Overrides { get; set; } + /// /// OptimizerStrategy document path /// @@ -56,22 +65,16 @@ protected OptimizerStrategy() { } [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = false)] public string Id { get; set; } - /// - /// Gets or Sets Overrides - /// - [DataMember(Name = "overrides", EmitDefaultValue = false)] - public OptimizerStrategyOverrides Overrides { 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 OptimizerStrategy {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); + StringBuilder sb = new StringBuilder(); + sb.Append("class FPOOptimizerStrategy {\n"); sb.Append(" Overrides: ").Append(Overrides).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -92,29 +95,30 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as OptimizerStrategy); + return this.Equals(input as FPOOptimizerStrategy); } /// - /// Returns true if OptimizerStrategy instances are equal + /// Returns true if FPOOptimizerStrategy instances are equal /// - /// Instance of OptimizerStrategy to be compared + /// Instance of FPOOptimizerStrategy to be compared /// Boolean - public bool Equals(OptimizerStrategy input) + public bool Equals(FPOOptimizerStrategy input) { if (input == null) + { return false; - + } return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && ( this.Overrides == input.Overrides || (this.Overrides != null && this.Overrides.Equals(input.Overrides)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ); } @@ -127,10 +131,14 @@ 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.Overrides != null) - hashCode = hashCode * 59 + this.Overrides.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Overrides.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategyOverrides.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategyOverrides.cs similarity index 71% rename from auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategyOverrides.cs rename to auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategyOverrides.cs index 9c75ceb5..495378db 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerStrategyOverrides.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FPOOptimizerStrategyOverrides.cs @@ -27,10 +27,10 @@ namespace FactSet.AnalyticsAPI.Engines.Model { /// - /// OptimizerStrategyOverrides + /// FPOOptimizerStrategyOverrides /// - [DataContract(Name = "OptimizerStrategyOverrides")] - public partial class OptimizerStrategyOverrides : IEquatable, IValidatableObject + [DataContract(Name = "FPOOptimizerStrategyOverrides")] + public partial class FPOOptimizerStrategyOverrides : IEquatable, IValidatableObject { /// /// Defines Inner @@ -53,6 +53,7 @@ public enum InnerEnum } + /// /// List of constraints /// @@ -60,26 +61,25 @@ public enum InnerEnum [DataMember(Name = "constraints", EmitDefaultValue = false)] public Dictionary Constraints { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Tax. + /// objective. /// List of constraints. /// Alpha. /// Transaction cost. - public OptimizerStrategyOverrides(string tax = default(string), Dictionary constraints = default(Dictionary), string alpha = default(string), string transactionCost = default(string)) + public FPOOptimizerStrategyOverrides(FPOObjective objective = default(FPOObjective), Dictionary constraints = default(Dictionary), string alpha = default(string), string transactionCost = default(string)) { - this.Tax = tax; + this.Objective = objective; this.Constraints = constraints; this.Alpha = alpha; this.TransactionCost = transactionCost; } /// - /// Tax + /// Gets or Sets Objective /// - /// Tax - [DataMember(Name = "tax", EmitDefaultValue = false)] - public string Tax { get; set; } + [DataMember(Name = "objective", EmitDefaultValue = false)] + public FPOObjective Objective { get; set; } /// /// Alpha @@ -101,9 +101,9 @@ public enum InnerEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class OptimizerStrategyOverrides {\n"); - sb.Append(" Tax: ").Append(Tax).Append("\n"); + StringBuilder sb = new StringBuilder(); + sb.Append("class FPOOptimizerStrategyOverrides {\n"); + sb.Append(" Objective: ").Append(Objective).Append("\n"); sb.Append(" Constraints: ").Append(Constraints).Append("\n"); sb.Append(" Alpha: ").Append(Alpha).Append("\n"); sb.Append(" TransactionCost: ").Append(TransactionCost).Append("\n"); @@ -127,24 +127,25 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as OptimizerStrategyOverrides); + return this.Equals(input as FPOOptimizerStrategyOverrides); } /// - /// Returns true if OptimizerStrategyOverrides instances are equal + /// Returns true if FPOOptimizerStrategyOverrides instances are equal /// - /// Instance of OptimizerStrategyOverrides to be compared + /// Instance of FPOOptimizerStrategyOverrides to be compared /// Boolean - public bool Equals(OptimizerStrategyOverrides input) + public bool Equals(FPOOptimizerStrategyOverrides input) { if (input == null) + { return false; - + } return ( - this.Tax == input.Tax || - (this.Tax != null && - this.Tax.Equals(input.Tax)) + this.Objective == input.Objective || + (this.Objective != null && + this.Objective.Equals(input.Objective)) ) && ( this.Constraints == input.Constraints || @@ -171,13 +172,19 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); - hashCode = hashCode * 59 + this.Constraints.GetHashCode(); + if (this.Objective != null) + { + hashCode = (hashCode * 59) + this.Objective.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Constraints.GetHashCode(); if (this.Alpha != null) - hashCode = hashCode * 59 + this.Alpha.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Alpha.GetHashCode(); + } if (this.TransactionCost != null) - hashCode = hashCode * 59 + this.TransactionCost.GetHashCode(); + { + hashCode = (hashCode * 59) + this.TransactionCost.GetHashCode(); + } return hashCode; } } @@ -187,7 +194,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Frequency.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Frequency.cs index 3e8f5768..50c897ba 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Frequency.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Frequency.cs @@ -54,7 +54,7 @@ public partial class Frequency : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Frequency {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(Frequency input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..0cf0f120 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FrequencyRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/FrequencyRoot.cs @@ -45,7 +45,10 @@ protected FrequencyRoot() { } public FrequencyRoot(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 FrequencyRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for FrequencyRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected FrequencyRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected FrequencyRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class FrequencyRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(FrequencyRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Group.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Group.cs index 6088be18..f778c939 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Group.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Group.cs @@ -72,7 +72,7 @@ public partial class Group : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Group {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Directory: ").Append(Directory).Append("\n"); @@ -108,8 +108,9 @@ public override bool Equals(object input) public bool Equals(Group input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -138,11 +139,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Directory != null) - hashCode = hashCode * 59 + this.Directory.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Directory.GetHashCode(); + } if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } return hashCode; } } @@ -152,7 +159,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..4f555f9d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/GroupRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/GroupRoot.cs @@ -45,7 +45,10 @@ protected GroupRoot() { } public GroupRoot(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 GroupRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for GroupRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected GroupRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected GroupRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class GroupRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(GroupRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..84b2bbbc --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplate.cs @@ -0,0 +1,239 @@ +/* + * 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 = true)] + 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() + { + StringBuilder 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 + public IEnumerable 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..d33f573d --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParameters.cs @@ -0,0 +1,199 @@ +/* + * 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) + if (directory == null) { + throw new ArgumentNullException("directory is a required property for LinkedPATemplateParameters and cannot be null"); + } + this.Directory = directory; + // to ensure "parentComponentId" is required (not null) + if (parentComponentId == null) { + throw new ArgumentNullException("parentComponentId is a required property for LinkedPATemplateParameters and cannot be null"); + } + this.ParentComponentId = parentComponentId; + 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() + { + StringBuilder 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 + public IEnumerable 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..ce73e5f0 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateParametersRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for LinkedPATemplateParametersRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplatePostSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplatePostSummary.cs new file mode 100644 index 00000000..19090219 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplatePostSummary.cs @@ -0,0 +1,187 @@ +/* + * 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 +{ + /// + /// LinkedPATemplatePostSummary + /// + [DataContract(Name = "LinkedPATemplatePostSummary")] + public partial class LinkedPATemplatePostSummary : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Template id.. + /// Template description.. + /// Template name.. + /// Template parent tile.. + public LinkedPATemplatePostSummary(string id = default(string), string description = default(string), string name = default(string), string parentComponentId = default(string)) + { + this.Id = id; + this.Description = description; + this.Name = name; + this.ParentComponentId = parentComponentId; + } + + /// + /// 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LinkedPATemplatePostSummary {\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 LinkedPATemplatePostSummary); + } + + /// + /// Returns true if LinkedPATemplatePostSummary instances are equal + /// + /// Instance of LinkedPATemplatePostSummary to be compared + /// Boolean + public bool Equals(LinkedPATemplatePostSummary input) + { + if (input == null) + { + return false; + } + return + ( + 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.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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplatePostSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplatePostSummaryRoot.cs new file mode 100644 index 00000000..3faef373 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplatePostSummaryRoot.cs @@ -0,0 +1,156 @@ +/* + * 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 +{ + /// + /// LinkedPATemplatePostSummaryRoot + /// + [DataContract(Name = "LinkedPATemplatePostSummaryRoot")] + public partial class LinkedPATemplatePostSummaryRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected LinkedPATemplatePostSummaryRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public LinkedPATemplatePostSummaryRoot(LinkedPATemplatePostSummary data = default(LinkedPATemplatePostSummary), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + if (data == null) { + throw new ArgumentNullException("data is a required property for LinkedPATemplatePostSummaryRoot and cannot be null"); + } + this.Data = data; + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public LinkedPATemplatePostSummary 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class LinkedPATemplatePostSummaryRoot {\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 LinkedPATemplatePostSummaryRoot); + } + + /// + /// Returns true if LinkedPATemplatePostSummaryRoot instances are equal + /// + /// Instance of LinkedPATemplatePostSummaryRoot to be compared + /// Boolean + public bool Equals(LinkedPATemplatePostSummaryRoot 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 + public IEnumerable 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..2820d64f --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for LinkedPATemplateRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable 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..533969fb --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummary.cs @@ -0,0 +1,168 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..af380c73 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateSummaryRoot.cs @@ -0,0 +1,157 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for LinkedPATemplateSummaryRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable 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..a4fd1ab8 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParameters.cs @@ -0,0 +1,167 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..9766b507 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/LinkedPATemplateUpdateParametersRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for LinkedPATemplateUpdateParametersRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParameters.cs index 5739fe84..ee25da8d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParameters.cs @@ -47,9 +47,15 @@ protected NPOOptimizationParameters() { } public NPOOptimizationParameters(NPOOptimizerStrategy strategy = default(NPOOptimizerStrategy), OptimizerAccount account = default(OptimizerAccount), Optimization optimization = default(Optimization), OptimizerOutputTypes outputTypes = default(OptimizerOutputTypes)) { // to ensure "strategy" is required (not null) - this.Strategy = strategy ?? throw new ArgumentNullException("strategy is a required property for NPOOptimizationParameters and cannot be null"); + if (strategy == null) { + throw new ArgumentNullException("strategy is a required property for NPOOptimizationParameters and cannot be null"); + } + this.Strategy = strategy; // to ensure "outputTypes" is required (not null) - this.OutputTypes = outputTypes ?? throw new ArgumentNullException("outputTypes is a required property for NPOOptimizationParameters and cannot be null"); + if (outputTypes == null) { + throw new ArgumentNullException("outputTypes is a required property for NPOOptimizationParameters and cannot be null"); + } + this.OutputTypes = outputTypes; this.Account = account; this.Optimization = optimization; } @@ -84,7 +90,7 @@ protected NPOOptimizationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NPOOptimizationParameters {\n"); sb.Append(" Strategy: ").Append(Strategy).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); @@ -121,8 +127,9 @@ public override bool Equals(object input) public bool Equals(NPOOptimizationParameters input) { if (input == null) + { return false; - + } return ( this.Strategy == input.Strategy || @@ -156,13 +163,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Strategy != null) - hashCode = hashCode * 59 + this.Strategy.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Strategy.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Optimization != null) - hashCode = hashCode * 59 + this.Optimization.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Optimization.GetHashCode(); + } if (this.OutputTypes != null) - hashCode = hashCode * 59 + this.OutputTypes.GetHashCode(); + { + hashCode = (hashCode * 59) + this.OutputTypes.GetHashCode(); + } return hashCode; } } @@ -172,7 +187,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParametersRoot.cs index e19c1f61..623adf1b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizationParametersRoot.cs @@ -61,7 +61,7 @@ public partial class NPOOptimizationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NPOOptimizationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -96,8 +96,9 @@ public override bool Equals(object input) public bool Equals(NPOOptimizationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -121,9 +122,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -133,7 +138,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategy.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategy.cs index 978db68c..808609fa 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategy.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategy.cs @@ -45,7 +45,10 @@ protected NPOOptimizerStrategy() { } public NPOOptimizerStrategy(NPOOptimizerStrategyOverrides overrides = default(NPOOptimizerStrategyOverrides), string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for NPOOptimizerStrategy and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for NPOOptimizerStrategy and cannot be null"); + } + this.Id = id; this.Overrides = overrides; } @@ -68,7 +71,7 @@ protected NPOOptimizerStrategy() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NPOOptimizerStrategy {\n"); sb.Append(" Overrides: ").Append(Overrides).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -103,8 +106,9 @@ public override bool Equals(object input) public bool Equals(NPOOptimizerStrategy input) { if (input == null) + { return false; - + } return ( this.Overrides == input.Overrides || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Overrides != null) - hashCode = hashCode * 59 + this.Overrides.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Overrides.GetHashCode(); + } if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategyOverrides.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategyOverrides.cs index 8e4f3497..82f11bc6 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategyOverrides.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/NPOOptimizerStrategyOverrides.cs @@ -90,7 +90,7 @@ public partial class NPOOptimizerStrategyOverrides : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class NPOOptimizerStrategyOverrides {\n"); sb.Append(" Objective: ").Append(Objective).Append("\n"); sb.Append(" Constraints: ").Append(Constraints).Append("\n"); @@ -128,8 +128,9 @@ public override bool Equals(object input) public bool Equals(NPOOptimizerStrategyOverrides input) { if (input == null) + { return false; - + } return ( this.Objective == input.Objective || @@ -170,15 +171,25 @@ public override int GetHashCode() { int hashCode = 41; if (this.Objective != null) - hashCode = hashCode * 59 + this.Objective.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Objective.GetHashCode(); + } if (this.Constraints != null) - hashCode = hashCode * 59 + this.Constraints.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Constraints.GetHashCode(); + } if (this.Tax != null) - hashCode = hashCode * 59 + this.Tax.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Tax.GetHashCode(); + } if (this.TransactionCost != null) - hashCode = hashCode * 59 + this.TransactionCost.GetHashCode(); + { + hashCode = (hashCode * 59) + this.TransactionCost.GetHashCode(); + } if (this.Alpha != null) - hashCode = hashCode * 59 + this.Alpha.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Alpha.GetHashCode(); + } return hashCode; } } @@ -188,7 +199,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable 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..c9dfa2bb 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ObjectRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ObjectRoot.cs @@ -45,20 +45,23 @@ protected ObjectRoot() { } public ObjectRoot(Object data = default(Object), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for ObjectRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for ObjectRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } /// /// 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; } /// @@ -67,7 +70,7 @@ protected ObjectRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class ObjectRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(ObjectRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantDates.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantDates.cs new file mode 100644 index 00000000..81701933 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantDates.cs @@ -0,0 +1,324 @@ +/* + * 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 JsonSubTypes; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// OneOfQuantDates + /// + [JsonConverter(typeof(OneOfQuantDatesJsonConverter))] + [DataContract(Name = "OneOfQuantDates")] + public partial class OneOfQuantDates : AbstractOpenAPISchema, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantDateList. + public OneOfQuantDates(QuantDateList actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantFdsDate. + public OneOfQuantDates(QuantFdsDate actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(QuantDateList)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(QuantFdsDate)) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: QuantDateList, QuantFdsDate"); + } + } + } + + /// + /// Get the actual instance of `QuantDateList`. If the actual instance is not `QuantDateList`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantDateList + public QuantDateList GetQuantDateList() + { + return (QuantDateList)this.ActualInstance; + } + + /// + /// Get the actual instance of `QuantFdsDate`. If the actual instance is not `QuantFdsDate`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantFdsDate + public QuantFdsDate GetQuantFdsDate() + { + return (QuantFdsDate)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneOfQuantDates {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, OneOfQuantDates.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of OneOfQuantDates + /// + /// JSON string + /// An instance of OneOfQuantDates + public static OneOfQuantDates FromJson(string jsonString) + { + OneOfQuantDates newOneOfQuantDates = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newOneOfQuantDates; + } + + try + { + var discriminatorObj = JObject.Parse(jsonString)["source"]; + string discriminatorValue = discriminatorObj == null ?string.Empty :discriminatorObj.ToString(); + switch (discriminatorValue) + { + case "DateList": + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantDates; + case "FdsDate": + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantDates; + case "QuantDateList": + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantDates; + case "QuantFdsDate": + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantDates; + default: + System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for OneOfQuantDates. Possible values: DateList FdsDate QuantDateList QuantFdsDate", discriminatorValue)); + break; + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Failed to parse the json data : `{0}` {1}", jsonString, ex.ToString())); + } + + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantDateList).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.SerializerSettings)); + } + else + { + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantDateList"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantDateList: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantFdsDate).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.SerializerSettings)); + } + else + { + newOneOfQuantDates = new OneOfQuantDates(JsonConvert.DeserializeObject(jsonString, OneOfQuantDates.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantFdsDate"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantFdsDate: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newOneOfQuantDates; + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneOfQuantDates); + } + + /// + /// Returns true if OneOfQuantDates instances are equal + /// + /// Instance of OneOfQuantDates to be compared + /// Boolean + public bool Equals(OneOfQuantDates input) + { + if (input == null) + return false; + + return this.ActualInstance.Equals(input.ActualInstance); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ActualInstance != null) + hashCode = hashCode * 59 + this.ActualInstance.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for OneOfQuantDates + /// + public class OneOfQuantDatesJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(OneOfQuantDates).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + if(reader.TokenType != JsonToken.Null) + { + return OneOfQuantDates.FromJson(JObject.Load(reader).ToString(Formatting.None)); + } + return null; + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantFormulasArray.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantFormulasArray.cs new file mode 100644 index 00000000..9d05554a --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantFormulasArray.cs @@ -0,0 +1,428 @@ +/* + * 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 JsonSubTypes; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// OneOfQuantFormulasArray + /// + [JsonConverter(typeof(OneOfQuantFormulasArrayJsonConverter))] + [DataContract(Name = "OneOfQuantFormulasArray")] + public partial class OneOfQuantFormulasArray : AbstractOpenAPISchema, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantAllUniversalScreenParameters. + public OneOfQuantFormulasArray(QuantAllUniversalScreenParameters actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantFqlExpression. + public OneOfQuantFormulasArray(QuantFqlExpression actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantScreeningExpression. + public OneOfQuantFormulasArray(QuantScreeningExpression actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantUniversalScreenParameter. + public OneOfQuantFormulasArray(QuantUniversalScreenParameter actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(QuantAllUniversalScreenParameters)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(QuantFqlExpression)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(QuantScreeningExpression)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(QuantUniversalScreenParameter)) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: QuantAllUniversalScreenParameters, QuantFqlExpression, QuantScreeningExpression, QuantUniversalScreenParameter"); + } + } + } + + /// + /// Get the actual instance of `QuantAllUniversalScreenParameters`. If the actual instance is not `QuantAllUniversalScreenParameters`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantAllUniversalScreenParameters + public QuantAllUniversalScreenParameters GetQuantAllUniversalScreenParameters() + { + return (QuantAllUniversalScreenParameters)this.ActualInstance; + } + + /// + /// Get the actual instance of `QuantFqlExpression`. If the actual instance is not `QuantFqlExpression`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantFqlExpression + public QuantFqlExpression GetQuantFqlExpression() + { + return (QuantFqlExpression)this.ActualInstance; + } + + /// + /// Get the actual instance of `QuantScreeningExpression`. If the actual instance is not `QuantScreeningExpression`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantScreeningExpression + public QuantScreeningExpression GetQuantScreeningExpression() + { + return (QuantScreeningExpression)this.ActualInstance; + } + + /// + /// Get the actual instance of `QuantUniversalScreenParameter`. If the actual instance is not `QuantUniversalScreenParameter`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantUniversalScreenParameter + public QuantUniversalScreenParameter GetQuantUniversalScreenParameter() + { + return (QuantUniversalScreenParameter)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneOfQuantFormulasArray {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, OneOfQuantFormulasArray.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of OneOfQuantFormulasArray + /// + /// JSON string + /// An instance of OneOfQuantFormulasArray + public static OneOfQuantFormulasArray FromJson(string jsonString) + { + OneOfQuantFormulasArray newOneOfQuantFormulasArray = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newOneOfQuantFormulasArray; + } + + try + { + var discriminatorObj = JObject.Parse(jsonString)["source"]; + string discriminatorValue = discriminatorObj == null ?string.Empty :discriminatorObj.ToString(); + switch (discriminatorValue) + { + case "AllUniversalScreenParameters": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + case "FqlExpression": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + case "QuantAllUniversalScreenParameters": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + case "QuantFqlExpression": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + case "QuantScreeningExpression": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + case "QuantUniversalScreenParameter": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + case "ScreeningExpression": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + case "UniversalScreenParameter": + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantFormulasArray; + default: + System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for OneOfQuantFormulasArray. Possible values: AllUniversalScreenParameters FqlExpression QuantAllUniversalScreenParameters QuantFqlExpression QuantScreeningExpression QuantUniversalScreenParameter ScreeningExpression UniversalScreenParameter", discriminatorValue)); + break; + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Failed to parse the json data : `{0}` {1}", jsonString, ex.ToString())); + } + + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantAllUniversalScreenParameters).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.SerializerSettings)); + } + else + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantAllUniversalScreenParameters"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantAllUniversalScreenParameters: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantFqlExpression).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.SerializerSettings)); + } + else + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantFqlExpression"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantFqlExpression: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantScreeningExpression).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.SerializerSettings)); + } + else + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantScreeningExpression"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantScreeningExpression: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantUniversalScreenParameter).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.SerializerSettings)); + } + else + { + newOneOfQuantFormulasArray = new OneOfQuantFormulasArray(JsonConvert.DeserializeObject(jsonString, OneOfQuantFormulasArray.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantUniversalScreenParameter"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantUniversalScreenParameter: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newOneOfQuantFormulasArray; + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneOfQuantFormulasArray); + } + + /// + /// Returns true if OneOfQuantFormulasArray instances are equal + /// + /// Instance of OneOfQuantFormulasArray to be compared + /// Boolean + public bool Equals(OneOfQuantFormulasArray input) + { + if (input == null) + return false; + + return this.ActualInstance.Equals(input.ActualInstance); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ActualInstance != null) + hashCode = hashCode * 59 + this.ActualInstance.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for OneOfQuantFormulasArray + /// + public class OneOfQuantFormulasArrayJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(OneOfQuantFormulasArray).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + if(reader.TokenType != JsonToken.Null) + { + return OneOfQuantFormulasArray.FromJson(JObject.Load(reader).ToString(Formatting.None)); + } + return null; + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantUniverse.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantUniverse.cs new file mode 100644 index 00000000..c67fc593 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OneOfQuantUniverse.cs @@ -0,0 +1,376 @@ +/* + * 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 JsonSubTypes; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = FactSet.AnalyticsAPI.Engines.Client.OpenAPIDateConverter; +using System.Reflection; + +namespace FactSet.AnalyticsAPI.Engines.Model +{ + /// + /// OneOfQuantUniverse + /// + [JsonConverter(typeof(OneOfQuantUniverseJsonConverter))] + [DataContract(Name = "OneOfQuantUniverse")] + public partial class OneOfQuantUniverse : AbstractOpenAPISchema, IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantIdentifierUniverse. + public OneOfQuantUniverse(QuantIdentifierUniverse actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantScreeningExpressionUniverse. + public OneOfQuantUniverse(QuantScreeningExpressionUniverse actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of QuantUniversalScreenUniverse. + public OneOfQuantUniverse(QuantUniversalScreenUniverse actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + + + private Object _actualInstance; + + /// + /// Gets or Sets ActualInstance + /// + public override Object ActualInstance + { + get + { + return _actualInstance; + } + set + { + if (value.GetType() == typeof(QuantIdentifierUniverse)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(QuantScreeningExpressionUniverse)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(QuantUniversalScreenUniverse)) + { + this._actualInstance = value; + } + else + { + throw new ArgumentException("Invalid instance found. Must be the following types: QuantIdentifierUniverse, QuantScreeningExpressionUniverse, QuantUniversalScreenUniverse"); + } + } + } + + /// + /// Get the actual instance of `QuantIdentifierUniverse`. If the actual instance is not `QuantIdentifierUniverse`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantIdentifierUniverse + public QuantIdentifierUniverse GetQuantIdentifierUniverse() + { + return (QuantIdentifierUniverse)this.ActualInstance; + } + + /// + /// Get the actual instance of `QuantScreeningExpressionUniverse`. If the actual instance is not `QuantScreeningExpressionUniverse`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantScreeningExpressionUniverse + public QuantScreeningExpressionUniverse GetQuantScreeningExpressionUniverse() + { + return (QuantScreeningExpressionUniverse)this.ActualInstance; + } + + /// + /// Get the actual instance of `QuantUniversalScreenUniverse`. If the actual instance is not `QuantUniversalScreenUniverse`, + /// the InvalidClassException will be thrown + /// + /// An instance of QuantUniversalScreenUniverse + public QuantUniversalScreenUniverse GetQuantUniversalScreenUniverse() + { + return (QuantUniversalScreenUniverse)this.ActualInstance; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + var sb = new StringBuilder(); + sb.Append("class OneOfQuantUniverse {\n"); + sb.Append(" ActualInstance: ").Append(this.ActualInstance).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public override string ToJson() + { + return JsonConvert.SerializeObject(this.ActualInstance, OneOfQuantUniverse.SerializerSettings); + } + + /// + /// Converts the JSON string into an instance of OneOfQuantUniverse + /// + /// JSON string + /// An instance of OneOfQuantUniverse + public static OneOfQuantUniverse FromJson(string jsonString) + { + OneOfQuantUniverse newOneOfQuantUniverse = null; + + if (string.IsNullOrEmpty(jsonString)) + { + return newOneOfQuantUniverse; + } + + try + { + var discriminatorObj = JObject.Parse(jsonString)["source"]; + string discriminatorValue = discriminatorObj == null ?string.Empty :discriminatorObj.ToString(); + switch (discriminatorValue) + { + case "IdentifierUniverse": + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantUniverse; + case "QuantIdentifierUniverse": + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantUniverse; + case "QuantScreeningExpressionUniverse": + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantUniverse; + case "QuantUniversalScreenUniverse": + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantUniverse; + case "ScreeningExpressionUniverse": + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantUniverse; + case "UniversalScreenUniverse": + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + return newOneOfQuantUniverse; + default: + System.Diagnostics.Debug.WriteLine(string.Format("Failed to lookup discriminator value `{0}` for OneOfQuantUniverse. Possible values: IdentifierUniverse QuantIdentifierUniverse QuantScreeningExpressionUniverse QuantUniversalScreenUniverse ScreeningExpressionUniverse UniversalScreenUniverse", discriminatorValue)); + break; + } + } + catch (Exception ex) + { + System.Diagnostics.Debug.WriteLine(string.Format("Failed to parse the json data : `{0}` {1}", jsonString, ex.ToString())); + } + + int match = 0; + List matchedTypes = new List(); + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantIdentifierUniverse).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.SerializerSettings)); + } + else + { + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantIdentifierUniverse"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantIdentifierUniverse: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantScreeningExpressionUniverse).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.SerializerSettings)); + } + else + { + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantScreeningExpressionUniverse"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantScreeningExpressionUniverse: {1}", jsonString, exception.ToString())); + } + + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(QuantUniversalScreenUniverse).GetProperty("AdditionalProperties") == null) + { + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.SerializerSettings)); + } + else + { + newOneOfQuantUniverse = new OneOfQuantUniverse(JsonConvert.DeserializeObject(jsonString, OneOfQuantUniverse.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("QuantUniversalScreenUniverse"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into QuantUniversalScreenUniverse: {1}", jsonString, exception.ToString())); + } + + if (match == 0) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` cannot be deserialized into any schema defined."); + } + else if (match > 1) + { + throw new InvalidDataException("The JSON string `" + jsonString + "` incorrectly matches more than one schema (should be exactly one match): " + matchedTypes); + } + + // deserialization is considered successful at this point if no exception has been thrown. + return newOneOfQuantUniverse; + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as OneOfQuantUniverse); + } + + /// + /// Returns true if OneOfQuantUniverse instances are equal + /// + /// Instance of OneOfQuantUniverse to be compared + /// Boolean + public bool Equals(OneOfQuantUniverse input) + { + if (input == null) + return false; + + return this.ActualInstance.Equals(input.ActualInstance); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ActualInstance != null) + hashCode = hashCode * 59 + this.ActualInstance.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + + /// + /// Custom JSON converter for OneOfQuantUniverse + /// + public class OneOfQuantUniverseJsonConverter : JsonConverter + { + /// + /// To write the JSON string + /// + /// JSON writer + /// Object to be converted into a JSON string + /// JSON Serializer + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteRawValue((string)(typeof(OneOfQuantUniverse).GetMethod("ToJson").Invoke(value, null))); + } + + /// + /// To convert a JSON string into an object + /// + /// JSON reader + /// Object type + /// Existing value + /// JSON Serializer + /// The object converted from the JSON string + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + if(reader.TokenType != JsonToken.Null) + { + return OneOfQuantUniverse.FromJson(JObject.Load(reader).ToString(Formatting.None)); + } + return null; + } + + /// + /// Check if the object can be converted + /// + /// Object type + /// True if the object can be converted + public override bool CanConvert(Type objectType) + { + return false; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimalPortfolio.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimalPortfolio.cs index bb91da80..e7510db0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimalPortfolio.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimalPortfolio.cs @@ -59,6 +59,7 @@ public enum IfAcctExistsEnum } + /// /// Archive action if account exists /// @@ -92,6 +93,7 @@ public enum IfOfdbDateExistsEnum } + /// /// Action if ofdb date exists /// @@ -126,7 +128,7 @@ public enum IfOfdbDateExistsEnum /// Exclude zero /// /// Exclude zero - [DataMember(Name = "excludeZero", EmitDefaultValue = false)] + [DataMember(Name = "excludeZero", EmitDefaultValue = true)] public bool ExcludeZero { get; set; } /// @@ -142,7 +144,7 @@ public enum IfOfdbDateExistsEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class OptimalPortfolio {\n"); sb.Append(" AcctName: ").Append(AcctName).Append("\n"); sb.Append(" ExcludeZero: ").Append(ExcludeZero).Append("\n"); @@ -180,8 +182,9 @@ public override bool Equals(object input) public bool Equals(OptimalPortfolio input) { if (input == null) + { return false; - + } return ( this.AcctName == input.AcctName || @@ -217,12 +220,16 @@ public override int GetHashCode() { int hashCode = 41; if (this.AcctName != null) - hashCode = hashCode * 59 + this.AcctName.GetHashCode(); - hashCode = hashCode * 59 + this.ExcludeZero.GetHashCode(); + { + hashCode = (hashCode * 59) + this.AcctName.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ExcludeZero.GetHashCode(); if (this.ArchiveDate != null) - hashCode = hashCode * 59 + this.ArchiveDate.GetHashCode(); - hashCode = hashCode * 59 + this.IfAcctExists.GetHashCode(); - hashCode = hashCode * 59 + this.IfOfdbDateExists.GetHashCode(); + { + hashCode = (hashCode * 59) + this.ArchiveDate.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IfAcctExists.GetHashCode(); + hashCode = (hashCode * 59) + this.IfOfdbDateExists.GetHashCode(); return hashCode; } } @@ -232,7 +239,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Optimization.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Optimization.cs index 9bba864a..1eb34280 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Optimization.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/Optimization.cs @@ -72,7 +72,7 @@ public partial class Optimization : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class Optimization {\n"); sb.Append(" RiskModelDate: ").Append(RiskModelDate).Append("\n"); sb.Append(" BacktestDate: ").Append(BacktestDate).Append("\n"); @@ -108,8 +108,9 @@ public override bool Equals(object input) public bool Equals(Optimization input) { if (input == null) + { return false; - + } return ( this.RiskModelDate == input.RiskModelDate || @@ -138,11 +139,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.RiskModelDate != null) - hashCode = hashCode * 59 + this.RiskModelDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.RiskModelDate.GetHashCode(); + } if (this.BacktestDate != null) - hashCode = hashCode * 59 + this.BacktestDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.BacktestDate.GetHashCode(); + } if (this.Cashflow != null) - hashCode = hashCode * 59 + this.Cashflow.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Cashflow.GetHashCode(); + } return hashCode; } } @@ -152,7 +159,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccount.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccount.cs index 4894cd48..95fb49ec 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccount.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccount.cs @@ -62,7 +62,7 @@ public partial class OptimizerAccount : IEquatable, IValidatab /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class OptimizerAccount {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Overrides: ").Append(Overrides).Append("\n"); @@ -97,8 +97,9 @@ public override bool Equals(object input) public bool Equals(OptimizerAccount input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -122,9 +123,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Overrides != null) - hashCode = hashCode * 59 + this.Overrides.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Overrides.GetHashCode(); + } return hashCode; } } @@ -134,7 +139,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccountOverrides.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccountOverrides.cs index 86497512..9e81c217 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccountOverrides.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerAccountOverrides.cs @@ -81,7 +81,7 @@ public partial class OptimizerAccountOverrides : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class OptimizerAccountOverrides {\n"); sb.Append(" Portfolio: ").Append(Portfolio).Append("\n"); sb.Append(" Benchmark: ").Append(Benchmark).Append("\n"); @@ -118,8 +118,9 @@ public override bool Equals(object input) public bool Equals(OptimizerAccountOverrides input) { if (input == null) + { return false; - + } return ( this.Portfolio == input.Portfolio || @@ -153,13 +154,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Portfolio != null) - hashCode = hashCode * 59 + this.Portfolio.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Portfolio.GetHashCode(); + } if (this.Benchmark != null) - hashCode = hashCode * 59 + this.Benchmark.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Benchmark.GetHashCode(); + } if (this.RiskModelId != null) - hashCode = hashCode * 59 + this.RiskModelId.GetHashCode(); + { + hashCode = (hashCode * 59) + this.RiskModelId.GetHashCode(); + } if (this.Currency != null) - hashCode = hashCode * 59 + this.Currency.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + } return hashCode; } } @@ -169,7 +178,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOptimalHoldings.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOptimalHoldings.cs index e197117b..382cad4a 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOptimalHoldings.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerOptimalHoldings.cs @@ -101,6 +101,7 @@ public enum IdentifierTypeEnum } + /// /// Identifier type /// @@ -124,14 +125,14 @@ public enum IdentifierTypeEnum /// Include cash /// /// Include cash - [DataMember(Name = "includeCash", EmitDefaultValue = false)] + [DataMember(Name = "includeCash", EmitDefaultValue = true)] public bool IncludeCash { get; set; } /// /// Exclude zero /// /// Exclude zero - [DataMember(Name = "excludeZero", EmitDefaultValue = false)] + [DataMember(Name = "excludeZero", EmitDefaultValue = true)] public bool ExcludeZero { get; set; } /// @@ -140,7 +141,7 @@ public enum IdentifierTypeEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class OptimizerOptimalHoldings {\n"); sb.Append(" IdentifierType: ").Append(IdentifierType).Append("\n"); sb.Append(" IncludeCash: ").Append(IncludeCash).Append("\n"); @@ -176,8 +177,9 @@ public override bool Equals(object input) public bool Equals(OptimizerOptimalHoldings input) { if (input == null) + { return false; - + } return ( this.IdentifierType == input.IdentifierType || @@ -202,9 +204,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = hashCode * 59 + this.IdentifierType.GetHashCode(); - hashCode = hashCode * 59 + this.IncludeCash.GetHashCode(); - hashCode = hashCode * 59 + this.ExcludeZero.GetHashCode(); + hashCode = (hashCode * 59) + this.IdentifierType.GetHashCode(); + hashCode = (hashCode * 59) + this.IncludeCash.GetHashCode(); + hashCode = (hashCode * 59) + this.ExcludeZero.GetHashCode(); return hashCode; } } @@ -214,7 +216,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..9f572dd9 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,17 +65,24 @@ 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 /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class OptimizerOutputTypes {\n"); 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(); } @@ -105,8 +114,9 @@ public override bool Equals(object input) public bool Equals(OptimizerOutputTypes input) { if (input == null) + { return false; - + } return ( this.Trades == input.Trades || @@ -122,6 +132,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)) ); } @@ -135,11 +150,21 @@ public override int GetHashCode() { int hashCode = 41; if (this.Trades != null) - hashCode = hashCode * 59 + this.Trades.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Trades.GetHashCode(); + } if (this.Optimal != null) - hashCode = hashCode * 59 + this.Optimal.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Optimal.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } + if (this.Stats != null) + { + hashCode = (hashCode * 59) + this.Stats.GetHashCode(); + } return hashCode; } } @@ -149,7 +174,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerTradesList.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerTradesList.cs index a9c57483..78d15292 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerTradesList.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/OptimizerTradesList.cs @@ -101,6 +101,7 @@ public enum IdentifierTypeEnum } + /// /// Identifier type /// @@ -122,7 +123,7 @@ public enum IdentifierTypeEnum /// Include cash /// /// Include cash - [DataMember(Name = "includeCash", EmitDefaultValue = false)] + [DataMember(Name = "includeCash", EmitDefaultValue = true)] public bool IncludeCash { get; set; } /// @@ -131,7 +132,7 @@ public enum IdentifierTypeEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class OptimizerTradesList {\n"); sb.Append(" IdentifierType: ").Append(IdentifierType).Append("\n"); sb.Append(" IncludeCash: ").Append(IncludeCash).Append("\n"); @@ -166,8 +167,9 @@ public override bool Equals(object input) public bool Equals(OptimizerTradesList input) { if (input == null) + { return false; - + } return ( this.IdentifierType == input.IdentifierType || @@ -188,8 +190,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = hashCode * 59 + this.IdentifierType.GetHashCode(); - hashCode = hashCode * 59 + this.IncludeCash.GetHashCode(); + hashCode = (hashCode * 59) + this.IdentifierType.GetHashCode(); + hashCode = (hashCode * 59) + this.IncludeCash.GetHashCode(); return hashCode; } } @@ -199,7 +201,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationColumn.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationColumn.cs index 2061fc6e..5d73624b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationColumn.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationColumn.cs @@ -63,7 +63,7 @@ public partial class PACalculationColumn : IEquatable, IVal /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PACalculationColumn {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Statistics: ").Append(Statistics).Append("\n"); @@ -98,8 +98,9 @@ public override bool Equals(object input) public bool Equals(PACalculationColumn input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -124,9 +125,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Statistics != null) - hashCode = hashCode * 59 + this.Statistics.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Statistics.GetHashCode(); + } return hashCode; } } @@ -136,7 +141,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationGroup.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationGroup.cs index 35b74f7c..5bf12248 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationGroup.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationGroup.cs @@ -54,7 +54,7 @@ public partial class PACalculationGroup : IEquatable, IValid /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PACalculationGroup {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(PACalculationGroup input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParameters.cs index 83e7501b..b6f911b6 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParameters.cs @@ -47,11 +47,14 @@ protected PACalculationParameters() { } /// List of groupings for the PA calculation. This will take precedence over the groupings saved in the PA document.. /// Currency ISO code for calculation.. /// List of columns for the PA calculation. This will take precedence over the columns saved in the PA document.. - /// Component detail type for the PA component. It can be GROUPS or TOTALS.. + /// Component detail type for the PA component. It can be GROUPS or TOTALS or SECURITIES.. public PACalculationParameters(string componentid = default(string), List accounts = default(List), List benchmarks = default(List), PADateParameters dates = default(PADateParameters), List groups = default(List), string currencyisocode = default(string), List columns = default(List), string componentdetail = default(string)) { // to ensure "componentid" is required (not null) - this.Componentid = componentid ?? throw new ArgumentNullException("componentid is a required property for PACalculationParameters and cannot be null"); + if (componentid == null) { + throw new ArgumentNullException("componentid is a required property for PACalculationParameters and cannot be null"); + } + this.Componentid = componentid; this.Accounts = accounts; this.Benchmarks = benchmarks; this.Dates = dates; @@ -110,9 +113,9 @@ protected PACalculationParameters() { } public List Columns { get; set; } /// - /// Component detail type for the PA component. It can be GROUPS or TOTALS. + /// Component detail type for the PA component. It can be GROUPS or TOTALS or SECURITIES. /// - /// Component detail type for the PA component. It can be GROUPS or TOTALS. + /// Component detail type for the PA component. It can be GROUPS or TOTALS or SECURITIES. [DataMember(Name = "componentdetail", EmitDefaultValue = false)] public string Componentdetail { get; set; } @@ -122,7 +125,7 @@ protected PACalculationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PACalculationParameters {\n"); sb.Append(" Componentid: ").Append(Componentid).Append("\n"); sb.Append(" Accounts: ").Append(Accounts).Append("\n"); @@ -163,8 +166,9 @@ public override bool Equals(object input) public bool Equals(PACalculationParameters input) { if (input == null) + { return false; - + } return ( this.Componentid == input.Componentid || @@ -222,21 +226,37 @@ public override int GetHashCode() { int hashCode = 41; if (this.Componentid != null) - hashCode = hashCode * 59 + this.Componentid.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Componentid.GetHashCode(); + } if (this.Accounts != null) - hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Accounts.GetHashCode(); + } if (this.Benchmarks != null) - hashCode = hashCode * 59 + this.Benchmarks.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Benchmarks.GetHashCode(); + } if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } if (this.Groups != null) - hashCode = hashCode * 59 + this.Groups.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Groups.GetHashCode(); + } if (this.Currencyisocode != null) - hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Currencyisocode.GetHashCode(); + } if (this.Columns != null) - hashCode = hashCode * 59 + this.Columns.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Columns.GetHashCode(); + } if (this.Componentdetail != null) - hashCode = hashCode * 59 + this.Componentdetail.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Componentdetail.GetHashCode(); + } return hashCode; } } @@ -246,7 +266,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParametersRoot.cs index f98d6dd6..33098ef3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PACalculationParametersRoot.cs @@ -62,7 +62,7 @@ public partial class PACalculationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PACalculationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -97,8 +97,9 @@ public override bool Equals(object input) public bool Equals(PACalculationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..942202c1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponent.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponent.cs @@ -41,9 +41,10 @@ public partial class PAComponent : IEquatable, IValidatableObject /// currencyisocode. /// dates. /// Is the component type snapshot or subperiod.. + /// The path to the document. /// 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)) + 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 path = default(string), string name = default(string), string category = default(string)) { this.Id = id; this.Accounts = accounts; @@ -51,6 +52,7 @@ public partial class PAComponent : IEquatable, IValidatableObject this.Currencyisocode = currencyisocode; this.Dates = dates; this.Snapshot = snapshot; + this.Path = path; this.Name = name; this.Category = category; } @@ -92,9 +94,16 @@ public partial class PAComponent : IEquatable, IValidatableObject /// Is the component type snapshot or subperiod. /// /// Is the component type snapshot or subperiod. - [DataMember(Name = "snapshot", EmitDefaultValue = false)] + [DataMember(Name = "snapshot", EmitDefaultValue = true)] public bool Snapshot { get; set; } + /// + /// The path to the document + /// + /// The path to the document + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + /// /// Component name. /// @@ -115,7 +124,7 @@ public partial class PAComponent : IEquatable, IValidatableObject /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PAComponent {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Accounts: ").Append(Accounts).Append("\n"); @@ -123,6 +132,7 @@ public override string ToString() sb.Append(" Currencyisocode: ").Append(Currencyisocode).Append("\n"); sb.Append(" Dates: ").Append(Dates).Append("\n"); sb.Append(" Snapshot: ").Append(Snapshot).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Category: ").Append(Category).Append("\n"); sb.Append("}\n"); @@ -156,8 +166,9 @@ public override bool Equals(object input) public bool Equals(PAComponent input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -190,6 +201,11 @@ public bool Equals(PAComponent input) this.Snapshot == input.Snapshot || this.Snapshot.Equals(input.Snapshot) ) && + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && ( this.Name == input.Name || (this.Name != null && @@ -212,20 +228,38 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Accounts != null) - hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Accounts.GetHashCode(); + } if (this.Benchmarks != null) - hashCode = hashCode * 59 + this.Benchmarks.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Benchmarks.GetHashCode(); + } if (this.Currencyisocode != null) - hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Currencyisocode.GetHashCode(); + } if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); - hashCode = hashCode * 59 + this.Snapshot.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Snapshot.GetHashCode(); + if (this.Path != null) + { + hashCode = (hashCode * 59) + this.Path.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } return hashCode; } } @@ -235,7 +269,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..17eaade2 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentData.cs @@ -0,0 +1,247 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..b349e788 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAComponentRoot.cs @@ -45,7 +45,10 @@ protected PAComponentRoot() { } public PAComponentRoot(PAComponent data = default(PAComponent), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for PAComponentRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for PAComponentRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected PAComponentRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected PAComponentRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PAComponentRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(PAComponentRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PADateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PADateParameters.cs index dc986e3b..49213b8d 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PADateParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PADateParameters.cs @@ -46,9 +46,15 @@ protected PADateParameters() { } public PADateParameters(string startdate = default(string), string enddate = default(string), string frequency = default(string)) { // to ensure "enddate" is required (not null) - this.Enddate = enddate ?? throw new ArgumentNullException("enddate is a required property for PADateParameters and cannot be null"); + if (enddate == null) { + throw new ArgumentNullException("enddate is a required property for PADateParameters and cannot be null"); + } + this.Enddate = enddate; // to ensure "frequency" is required (not null) - this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for PADateParameters and cannot be null"); + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for PADateParameters and cannot be null"); + } + this.Frequency = frequency; this.Startdate = startdate; } @@ -79,7 +85,7 @@ protected PADateParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PADateParameters {\n"); sb.Append(" Startdate: ").Append(Startdate).Append("\n"); sb.Append(" Enddate: ").Append(Enddate).Append("\n"); @@ -115,8 +121,9 @@ public override bool Equals(object input) public bool Equals(PADateParameters input) { if (input == null) + { return false; - + } return ( this.Startdate == input.Startdate || @@ -145,11 +152,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Startdate != null) - hashCode = hashCode * 59 + this.Startdate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Startdate.GetHashCode(); + } if (this.Enddate != null) - hashCode = hashCode * 59 + this.Enddate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Enddate.GetHashCode(); + } if (this.Frequency != null) - hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Frequency.GetHashCode(); + } return hashCode; } } @@ -159,7 +172,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAIdentifier.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAIdentifier.cs index a850067c..b8983089 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAIdentifier.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PAIdentifier.cs @@ -45,7 +45,10 @@ protected PAIdentifier() { } public PAIdentifier(string id = default(string), string holdingsmode = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for PAIdentifier and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for PAIdentifier and cannot be null"); + } + this.Id = id; this.Holdingsmode = holdingsmode; } @@ -69,7 +72,7 @@ protected PAIdentifier() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PAIdentifier {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Holdingsmode: ").Append(Holdingsmode).Append("\n"); @@ -104,8 +107,9 @@ public override bool Equals(object input) public bool Equals(PAIdentifier input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -129,9 +133,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Holdingsmode != null) - hashCode = hashCode * 59 + this.Holdingsmode.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Holdingsmode.GetHashCode(); + } return hashCode; } } @@ -141,7 +149,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PaDoc.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PaDoc.cs index 7391a76e..f7a4af57 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PaDoc.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PaDoc.cs @@ -44,7 +44,10 @@ protected PaDoc() { } public PaDoc(string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for PaDoc and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for PaDoc and cannot be null"); + } + this.Id = id; } /// @@ -60,7 +63,7 @@ protected PaDoc() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PaDoc {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append("}\n"); @@ -94,8 +97,9 @@ public override bool Equals(object input) public bool Equals(PaDoc input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -114,7 +118,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -124,7 +130,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParameters.cs index e7c9ae07..2a714cd3 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParameters.cs @@ -46,11 +46,20 @@ protected PubCalculationParameters() { } public PubCalculationParameters(string document = default(string), PubIdentifier account = default(PubIdentifier), PubDateParameters dates = default(PubDateParameters)) { // to ensure "document" is required (not null) - this.Document = document ?? throw new ArgumentNullException("document is a required property for PubCalculationParameters and cannot be null"); + if (document == null) { + throw new ArgumentNullException("document is a required property for PubCalculationParameters and cannot be null"); + } + this.Document = document; // to ensure "account" is required (not null) - this.Account = account ?? throw new ArgumentNullException("account is a required property for PubCalculationParameters and cannot be null"); + if (account == null) { + throw new ArgumentNullException("account is a required property for PubCalculationParameters and cannot be null"); + } + this.Account = account; // to ensure "dates" is required (not null) - this.Dates = dates ?? throw new ArgumentNullException("dates is a required property for PubCalculationParameters and cannot be null"); + if (dates == null) { + throw new ArgumentNullException("dates is a required property for PubCalculationParameters and cannot be null"); + } + this.Dates = dates; } /// @@ -78,7 +87,7 @@ protected PubCalculationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PubCalculationParameters {\n"); sb.Append(" Document: ").Append(Document).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); @@ -114,8 +123,9 @@ public override bool Equals(object input) public bool Equals(PubCalculationParameters input) { if (input == null) + { return false; - + } return ( this.Document == input.Document || @@ -144,11 +154,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Document != null) - hashCode = hashCode * 59 + this.Document.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Document.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } return hashCode; } } @@ -158,7 +174,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParametersRoot.cs index ac2c857a..e8afa154 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubCalculationParametersRoot.cs @@ -62,7 +62,7 @@ public partial class PubCalculationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PubCalculationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -97,8 +97,9 @@ public override bool Equals(object input) public bool Equals(PubCalculationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubDateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubDateParameters.cs index d11ba4b5..3958f26c 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubDateParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubDateParameters.cs @@ -45,7 +45,10 @@ protected PubDateParameters() { } public PubDateParameters(string startdate = default(string), string enddate = default(string)) { // to ensure "enddate" is required (not null) - this.Enddate = enddate ?? throw new ArgumentNullException("enddate is a required property for PubDateParameters and cannot be null"); + if (enddate == null) { + throw new ArgumentNullException("enddate is a required property for PubDateParameters and cannot be null"); + } + this.Enddate = enddate; this.Startdate = startdate; } @@ -69,7 +72,7 @@ protected PubDateParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PubDateParameters {\n"); sb.Append(" Startdate: ").Append(Startdate).Append("\n"); sb.Append(" Enddate: ").Append(Enddate).Append("\n"); @@ -104,8 +107,9 @@ public override bool Equals(object input) public bool Equals(PubDateParameters input) { if (input == null) + { return false; - + } return ( this.Startdate == input.Startdate || @@ -129,9 +133,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Startdate != null) - hashCode = hashCode * 59 + this.Startdate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Startdate.GetHashCode(); + } if (this.Enddate != null) - hashCode = hashCode * 59 + this.Enddate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Enddate.GetHashCode(); + } return hashCode; } } @@ -141,7 +149,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubIdentifier.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubIdentifier.cs index 8edfc615..4665fdd7 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubIdentifier.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/PubIdentifier.cs @@ -45,7 +45,10 @@ protected PubIdentifier() { } public PubIdentifier(string id = default(string), string holdingsmode = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for PubIdentifier and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for PubIdentifier and cannot be null"); + } + this.Id = id; this.Holdingsmode = holdingsmode; } @@ -69,7 +72,7 @@ protected PubIdentifier() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class PubIdentifier {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Holdingsmode: ").Append(Holdingsmode).Append("\n"); @@ -104,8 +107,9 @@ public override bool Equals(object input) public bool Equals(PubIdentifier input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -129,9 +133,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Holdingsmode != null) - hashCode = hashCode * 59 + this.Holdingsmode.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Holdingsmode.GetHashCode(); + } return hashCode; } } @@ -141,7 +149,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..18c18d42 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantAllUniversalScreenParameters.cs @@ -0,0 +1,162 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationMeta.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationMeta.cs index 9f0f6e7d..32c479a7 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationMeta.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationMeta.cs @@ -64,10 +64,12 @@ public enum ContentorganizationEnum } + /// /// Gets or Sets Contentorganization /// [DataMember(Name = "contentorganization", EmitDefaultValue = false)] + [Obsolete] public ContentorganizationEnum? Contentorganization { get; set; } /// /// Defines StachContentOrganization @@ -101,6 +103,7 @@ public enum StachContentOrganizationEnum } + /// /// Gets or Sets StachContentOrganization /// @@ -126,10 +129,12 @@ public enum ContenttypeEnum } + /// /// Gets or Sets Contenttype /// [DataMember(Name = "contenttype", EmitDefaultValue = false)] + [Obsolete] public ContenttypeEnum? Contenttype { get; set; } /// /// Defines Format @@ -193,6 +198,7 @@ public enum FormatEnum } + /// /// Gets or Sets Format /// @@ -218,7 +224,7 @@ public enum FormatEnum /// /// Gets or Sets AllowArrayData /// - [DataMember(Name = "allowArrayData", EmitDefaultValue = false)] + [DataMember(Name = "allowArrayData", EmitDefaultValue = true)] public bool AllowArrayData { get; set; } /// @@ -227,7 +233,7 @@ public enum FormatEnum /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class QuantCalculationMeta {\n"); sb.Append(" AllowArrayData: ").Append(AllowArrayData).Append("\n"); sb.Append(" Contentorganization: ").Append(Contentorganization).Append("\n"); @@ -265,8 +271,9 @@ public override bool Equals(object input) public bool Equals(QuantCalculationMeta input) { if (input == null) + { return false; - + } return ( this.AllowArrayData == input.AllowArrayData || @@ -299,11 +306,11 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = hashCode * 59 + this.AllowArrayData.GetHashCode(); - hashCode = hashCode * 59 + this.Contentorganization.GetHashCode(); - hashCode = hashCode * 59 + this.StachContentOrganization.GetHashCode(); - hashCode = hashCode * 59 + this.Contenttype.GetHashCode(); - hashCode = hashCode * 59 + this.Format.GetHashCode(); + hashCode = (hashCode * 59) + this.AllowArrayData.GetHashCode(); + hashCode = (hashCode * 59) + this.Contentorganization.GetHashCode(); + hashCode = (hashCode * 59) + this.StachContentOrganization.GetHashCode(); + hashCode = (hashCode * 59) + this.Contenttype.GetHashCode(); + hashCode = (hashCode * 59) + this.Format.GetHashCode(); return hashCode; } } @@ -313,7 +320,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable 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..0d59c5c3 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(OneOfQuantUniverse universe = default(OneOfQuantUniverse), OneOfQuantDates dates = default(OneOfQuantDates), 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 OneOfQuantUniverse 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 OneOfQuantDates 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 @@ -117,17 +69,11 @@ public partial class QuantCalculationParameters : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder 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(); } @@ -159,57 +105,25 @@ public override bool Equals(object input) public bool Equals(QuantCalculationParameters input) { if (input == null) + { return false; - + } 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 +136,18 @@ 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; } } @@ -249,7 +157,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParametersRoot.cs index 4f461d70..8ff3c7bd 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantCalculationParametersRoot.cs @@ -62,7 +62,7 @@ public partial class QuantCalculationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class QuantCalculationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -97,8 +97,9 @@ public override bool Equals(object input) public bool Equals(QuantCalculationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..cd261b57 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDate.cs @@ -0,0 +1,194 @@ +/* + * 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) + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for QuantDate and cannot be null"); + } + this.Frequency = frequency; + // to ensure "calendar" is required (not null) + if (calendar == null) { + throw new ArgumentNullException("calendar is a required property for QuantDate and cannot be null"); + } + this.Calendar = calendar; + } + + /// + /// 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() + { + StringBuilder 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 + public IEnumerable 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..9ae213c7 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,32 @@ 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,14 +67,22 @@ 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"); + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for QuantDateList and cannot be null"); + } + this.Frequency = frequency; // to ensure "calendar" is required (not null) - this.Calendar = calendar ?? throw new ArgumentNullException("calendar is a required property for QuantDateList and cannot be null"); + if (calendar == null) { + throw new ArgumentNullException("calendar is a required property for QuantDateList and cannot be null"); + } + this.Calendar = calendar; this.Dates = dates; } @@ -76,9 +110,10 @@ protected QuantDateList() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder 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"); @@ -112,8 +147,9 @@ public override bool Equals(object input) public bool Equals(QuantDateList input) { if (input == null) + { return false; - + } return ( this.Dates == input.Dates || @@ -121,6 +157,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 && @@ -143,11 +183,18 @@ public override int GetHashCode() { int hashCode = 41; if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); if (this.Frequency != null) - hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Frequency.GetHashCode(); + } if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Calendar.GetHashCode(); + } return hashCode; } } @@ -157,7 +204,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..32c79d29 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantDateListObsolete.cs @@ -0,0 +1,179 @@ +/* + * 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) + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for QuantDateListObsolete and cannot be null"); + } + this.Frequency = frequency; + // to ensure "calendar" is required (not null) + if (calendar == null) { + throw new ArgumentNullException("calendar is a required property for QuantDateListObsolete and cannot be null"); + } + this.Calendar = calendar; + 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() + { + StringBuilder 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 + public IEnumerable 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..0d3f9d47 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,32 @@ 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,18 +68,32 @@ 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"); + if (startDate == null) { + throw new ArgumentNullException("startDate is a required property for QuantFdsDate and cannot be null"); + } + this.StartDate = startDate; // to ensure "endDate" is required (not null) - this.EndDate = endDate ?? throw new ArgumentNullException("endDate is a required property for QuantFdsDate and cannot be null"); + if (endDate == null) { + throw new ArgumentNullException("endDate is a required property for QuantFdsDate and cannot be null"); + } + this.EndDate = endDate; + 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"); + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for QuantFdsDate and cannot be null"); + } + this.Frequency = frequency; // to ensure "calendar" is required (not null) - this.Calendar = calendar ?? throw new ArgumentNullException("calendar is a required property for QuantFdsDate and cannot be null"); + if (calendar == null) { + throw new ArgumentNullException("calendar is a required property for QuantFdsDate and cannot be null"); + } + this.Calendar = calendar; } /// @@ -86,10 +126,11 @@ protected QuantFdsDate() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); 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"); @@ -123,8 +164,9 @@ public override bool Equals(object input) public bool Equals(QuantFdsDate input) { if (input == null) + { return false; - + } return ( this.StartDate == input.StartDate || @@ -136,6 +178,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 && @@ -158,13 +204,22 @@ public override int GetHashCode() { int hashCode = 41; if (this.StartDate != null) - hashCode = hashCode * 59 + this.StartDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.StartDate.GetHashCode(); + } if (this.EndDate != null) - hashCode = hashCode * 59 + this.EndDate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.EndDate.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); if (this.Frequency != null) - hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Frequency.GetHashCode(); + } if (this.Calendar != null) - hashCode = hashCode * 59 + this.Calendar.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Calendar.GetHashCode(); + } return hashCode; } } @@ -174,7 +229,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..64456962 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFdsDateObsolete.cs @@ -0,0 +1,204 @@ +/* + * 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) + if (startDate == null) { + throw new ArgumentNullException("startDate is a required property for QuantFdsDateObsolete and cannot be null"); + } + this.StartDate = startDate; + // to ensure "endDate" is required (not null) + if (endDate == null) { + throw new ArgumentNullException("endDate is a required property for QuantFdsDateObsolete and cannot be null"); + } + this.EndDate = endDate; + // to ensure "frequency" is required (not null) + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for QuantFdsDateObsolete and cannot be null"); + } + this.Frequency = frequency; + // to ensure "calendar" is required (not null) + if (calendar == null) { + throw new ArgumentNullException("calendar is a required property for QuantFdsDateObsolete and cannot be null"); + } + this.Calendar = calendar; + } + + /// + /// 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() + { + StringBuilder 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 + public IEnumerable 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..d27d1d18 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFormula.cs @@ -0,0 +1,162 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..1236ad45 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,44 @@ 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 +80,20 @@ 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"); + if (expr == null) { + throw new ArgumentNullException("expr is a required property for QuantFqlExpression and cannot be null"); + } + this.Expr = expr; // to ensure "name" is required (not null) - this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantFqlExpression and cannot be null"); + if (name == null) { + throw new ArgumentNullException("name is a required property for QuantFqlExpression and cannot be null"); + } + this.Name = name; + this.Source = source; } /// @@ -68,10 +114,11 @@ protected QuantFqlExpression() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); 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(); } @@ -103,8 +150,9 @@ public override bool Equals(object input) public bool Equals(QuantFqlExpression input) { if (input == null) + { return false; - + } return ( this.Expr == input.Expr || @@ -115,6 +163,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) ); } @@ -128,9 +180,14 @@ public override int GetHashCode() { int hashCode = 41; if (this.Expr != null) - hashCode = hashCode * 59 + this.Expr.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Expr.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); return hashCode; } } @@ -140,7 +197,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..c4eee3fe --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantFqlExpressionObsolete.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 +{ + /// + /// 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) + if (expr == null) { + throw new ArgumentNullException("expr is a required property for QuantFqlExpressionObsolete and cannot be null"); + } + this.Expr = expr; + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for QuantFqlExpressionObsolete and cannot be null"); + } + this.Name = name; + } + + /// + /// 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() + { + StringBuilder 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 + public IEnumerable 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..0095f295 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverse.cs @@ -52,12 +52,45 @@ public enum UniverseTypeEnum } + /// /// 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", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -67,11 +100,16 @@ 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"); + if (identifiers == null) { + throw new ArgumentNullException("identifiers is a required property for QuantIdentifierUniverse and cannot be null"); + } + this.Identifiers = identifiers; + this.Source = source; } /// @@ -86,10 +124,11 @@ protected QuantIdentifierUniverse() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); 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(); } @@ -121,8 +160,9 @@ public override bool Equals(object input) public bool Equals(QuantIdentifierUniverse input) { if (input == null) + { return false; - + } return ( this.UniverseType == input.UniverseType || @@ -133,6 +173,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) ); } @@ -145,9 +189,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = hashCode * 59 + this.UniverseType.GetHashCode(); + hashCode = (hashCode * 59) + this.UniverseType.GetHashCode(); if (this.Identifiers != null) - hashCode = hashCode * 59 + this.Identifiers.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Identifiers.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); return hashCode; } } @@ -157,7 +204,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..990fcc27 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantIdentifierUniverseObsolete.cs @@ -0,0 +1,213 @@ +/* + * 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) + if (identifiers == null) { + throw new ArgumentNullException("identifiers is a required property for QuantIdentifierUniverseObsolete and cannot be null"); + } + this.Identifiers = identifiers; + 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() + { + StringBuilder 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 + public IEnumerable 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..6dbd186e 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,44 @@ 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 +80,20 @@ 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"); + if (expr == null) { + throw new ArgumentNullException("expr is a required property for QuantScreeningExpression and cannot be null"); + } + this.Expr = expr; // to ensure "name" is required (not null) - this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantScreeningExpression and cannot be null"); + if (name == null) { + throw new ArgumentNullException("name is a required property for QuantScreeningExpression and cannot be null"); + } + this.Name = name; + this.Source = source; } /// @@ -68,10 +114,11 @@ protected QuantScreeningExpression() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); 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(); } @@ -103,8 +150,9 @@ public override bool Equals(object input) public bool Equals(QuantScreeningExpression input) { if (input == null) + { return false; - + } return ( this.Expr == input.Expr || @@ -115,6 +163,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) ); } @@ -128,9 +180,14 @@ public override int GetHashCode() { int hashCode = 41; if (this.Expr != null) - hashCode = hashCode * 59 + this.Expr.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Expr.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); return hashCode; } } @@ -140,7 +197,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..e3991258 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionObsolete.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 +{ + /// + /// 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) + if (expr == null) { + throw new ArgumentNullException("expr is a required property for QuantScreeningExpressionObsolete and cannot be null"); + } + this.Expr = expr; + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for QuantScreeningExpressionObsolete and cannot be null"); + } + this.Name = name; + } + + /// + /// 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() + { + StringBuilder 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 + public IEnumerable 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..491201af 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverse.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverse.cs @@ -52,12 +52,45 @@ public enum UniverseTypeEnum } + /// /// 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", IsRequired = true, EmitDefaultValue = false)] + public SourceEnum Source { get; set; } + /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] @@ -68,11 +101,16 @@ 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"); + if (universeExpr == null) { + throw new ArgumentNullException("universeExpr is a required property for QuantScreeningExpressionUniverse and cannot be null"); + } + this.UniverseExpr = universeExpr; this.UniverseType = universeType; + this.Source = source; this.SecurityExpr = securityExpr; } @@ -94,11 +132,12 @@ protected QuantScreeningExpressionUniverse() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class QuantScreeningExpressionUniverse {\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(); } @@ -130,8 +169,9 @@ public override bool Equals(object input) public bool Equals(QuantScreeningExpressionUniverse input) { if (input == null) + { return false; - + } return ( this.UniverseExpr == input.UniverseExpr || @@ -146,6 +186,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) ); } @@ -159,10 +203,15 @@ public override int GetHashCode() { int hashCode = 41; if (this.UniverseExpr != null) - hashCode = hashCode * 59 + this.UniverseExpr.GetHashCode(); - hashCode = hashCode * 59 + this.UniverseType.GetHashCode(); + { + 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.SecurityExpr.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); return hashCode; } } @@ -172,7 +221,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..9a47eb9b --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantScreeningExpressionUniverseObsolete.cs @@ -0,0 +1,230 @@ +/* + * 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) + if (universeExpr == null) { + throw new ArgumentNullException("universeExpr is a required property for QuantScreeningExpressionUniverseObsolete and cannot be null"); + } + this.UniverseExpr = universeExpr; + 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() + { + StringBuilder 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 + public IEnumerable 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..81107108 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,44 @@ 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 +80,20 @@ 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"); + if (referenceName == null) { + throw new ArgumentNullException("referenceName is a required property for QuantUniversalScreenParameter and cannot be null"); + } + this.ReferenceName = referenceName; // to ensure "name" is required (not null) - this.Name = name ?? throw new ArgumentNullException("name is a required property for QuantUniversalScreenParameter and cannot be null"); + if (name == null) { + throw new ArgumentNullException("name is a required property for QuantUniversalScreenParameter and cannot be null"); + } + this.Name = name; + this.Source = source; } /// @@ -68,10 +114,11 @@ protected QuantUniversalScreenParameter() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); 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(); } @@ -103,8 +150,9 @@ public override bool Equals(object input) public bool Equals(QuantUniversalScreenParameter input) { if (input == null) + { return false; - + } return ( this.ReferenceName == input.ReferenceName || @@ -115,6 +163,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) ); } @@ -128,9 +180,14 @@ public override int GetHashCode() { int hashCode = 41; if (this.ReferenceName != null) - hashCode = hashCode * 59 + this.ReferenceName.GetHashCode(); + { + hashCode = (hashCode * 59) + this.ReferenceName.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); return hashCode; } } @@ -140,7 +197,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..d7a6bcf2 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenParameterObsolete.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 +{ + /// + /// 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) + if (referenceName == null) { + throw new ArgumentNullException("referenceName is a required property for QuantUniversalScreenParameterObsolete and cannot be null"); + } + this.ReferenceName = referenceName; + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for QuantUniversalScreenParameterObsolete and cannot be null"); + } + this.Name = name; + } + + /// + /// 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() + { + StringBuilder 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 + public IEnumerable 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..c69addad 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,38 @@ 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 +73,15 @@ 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"); + if (screen == null) { + throw new ArgumentNullException("screen is a required property for QuantUniversalScreenUniverse and cannot be null"); + } + this.Screen = screen; + this.Source = source; } /// @@ -59,9 +96,10 @@ protected QuantUniversalScreenUniverse() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder 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(); } @@ -93,13 +131,18 @@ public override bool Equals(object input) public bool Equals(QuantUniversalScreenUniverse 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) ); } @@ -113,7 +156,10 @@ public override int GetHashCode() { int hashCode = 41; if (this.Screen != null) - hashCode = hashCode * 59 + this.Screen.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Screen.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Source.GetHashCode(); return hashCode; } } @@ -123,7 +169,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..2d21a5c5 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniversalScreenUniverseObsolete.cs @@ -0,0 +1,178 @@ +/* + * 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) + if (screen == null) { + throw new ArgumentNullException("screen is a required property for QuantUniversalScreenUniverseObsolete and cannot be null"); + } + this.Screen = screen; + 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() + { + StringBuilder 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 + public IEnumerable 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..df828d0d --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/QuantUniverse.cs @@ -0,0 +1,156 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..73dc78bd --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/ReturnType.cs @@ -0,0 +1,147 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..bcc1d2f5 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccounts.cs @@ -0,0 +1,131 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..b9d2639b --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARAccountsRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for SPARAccountsRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmark.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmark.cs index 5a1fb562..4df84141 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmark.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmark.cs @@ -72,7 +72,7 @@ public partial class SPARBenchmark : IEquatable, IValidatableObje /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SPARBenchmark {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); @@ -108,8 +108,9 @@ public override bool Equals(object input) public bool Equals(SPARBenchmark input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -139,11 +140,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Identifiers != null) - hashCode = hashCode * 59 + this.Identifiers.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Identifiers.GetHashCode(); + } return hashCode; } } @@ -153,7 +160,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable 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..e9a1fa89 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmarkRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARBenchmarkRoot.cs @@ -45,7 +45,10 @@ protected SPARBenchmarkRoot() { } public SPARBenchmarkRoot(SPARBenchmark data = default(SPARBenchmark), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for SPARBenchmarkRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for SPARBenchmarkRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected SPARBenchmarkRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected SPARBenchmarkRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SPARBenchmarkRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(SPARBenchmarkRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..aafb6cd6 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,18 @@ 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"); + if (componentid == null) { + throw new ArgumentNullException("componentid is a required property for SPARCalculationParameters and cannot be null"); + } + this.Componentid = componentid; this.Accounts = accounts; this.Benchmark = benchmark; this.Dates = dates; + this.Currencyisocode = currencyisocode; } /// @@ -79,18 +84,26 @@ 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 /// /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SPARCalculationParameters {\n"); sb.Append(" Componentid: ").Append(Componentid).Append("\n"); 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(); } @@ -122,8 +135,9 @@ public override bool Equals(object input) public bool Equals(SPARCalculationParameters input) { if (input == null) + { return false; - + } return ( this.Componentid == input.Componentid || @@ -145,6 +159,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)) ); } @@ -158,13 +177,25 @@ public override int GetHashCode() { int hashCode = 41; if (this.Componentid != null) - hashCode = hashCode * 59 + this.Componentid.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Componentid.GetHashCode(); + } if (this.Accounts != null) - hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Accounts.GetHashCode(); + } if (this.Benchmark != null) - hashCode = hashCode * 59 + this.Benchmark.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Benchmark.GetHashCode(); + } if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } + if (this.Currencyisocode != null) + { + hashCode = (hashCode * 59) + this.Currencyisocode.GetHashCode(); + } return hashCode; } } @@ -174,7 +205,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParametersRoot.cs index 99e249aa..5fa12a0e 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARCalculationParametersRoot.cs @@ -62,7 +62,7 @@ public partial class SPARCalculationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SPARCalculationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -97,8 +97,9 @@ public override bool Equals(object input) public bool Equals(SPARCalculationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARDateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARDateParameters.cs index 9d6ccade..e588f466 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARDateParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARDateParameters.cs @@ -46,11 +46,20 @@ protected SPARDateParameters() { } public SPARDateParameters(string startdate = default(string), string enddate = default(string), string frequency = default(string)) { // to ensure "startdate" is required (not null) - this.Startdate = startdate ?? throw new ArgumentNullException("startdate is a required property for SPARDateParameters and cannot be null"); + if (startdate == null) { + throw new ArgumentNullException("startdate is a required property for SPARDateParameters and cannot be null"); + } + this.Startdate = startdate; // to ensure "enddate" is required (not null) - this.Enddate = enddate ?? throw new ArgumentNullException("enddate is a required property for SPARDateParameters and cannot be null"); + if (enddate == null) { + throw new ArgumentNullException("enddate is a required property for SPARDateParameters and cannot be null"); + } + this.Enddate = enddate; // to ensure "frequency" is required (not null) - this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for SPARDateParameters and cannot be null"); + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for SPARDateParameters and cannot be null"); + } + this.Frequency = frequency; } /// @@ -80,7 +89,7 @@ protected SPARDateParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SPARDateParameters {\n"); sb.Append(" Startdate: ").Append(Startdate).Append("\n"); sb.Append(" Enddate: ").Append(Enddate).Append("\n"); @@ -116,8 +125,9 @@ public override bool Equals(object input) public bool Equals(SPARDateParameters input) { if (input == null) + { return false; - + } return ( this.Startdate == input.Startdate || @@ -146,11 +156,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Startdate != null) - hashCode = hashCode * 59 + this.Startdate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Startdate.GetHashCode(); + } if (this.Enddate != null) - hashCode = hashCode * 59 + this.Enddate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Enddate.GetHashCode(); + } if (this.Frequency != null) - hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Frequency.GetHashCode(); + } return hashCode; } } @@ -160,7 +176,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARIdentifier.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARIdentifier.cs index d4996689..6470b3d1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARIdentifier.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/SPARIdentifier.cs @@ -46,7 +46,10 @@ protected SPARIdentifier() { } public SPARIdentifier(string id = default(string), string returntype = default(string), string prefix = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for SPARIdentifier and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for SPARIdentifier and cannot be null"); + } + this.Id = id; this.Returntype = returntype; this.Prefix = prefix; } @@ -78,7 +81,7 @@ protected SPARIdentifier() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class SPARIdentifier {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Returntype: ").Append(Returntype).Append("\n"); @@ -114,8 +117,9 @@ public override bool Equals(object input) public bool Equals(SPARIdentifier input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -144,11 +148,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Returntype != null) - hashCode = hashCode * 59 + this.Returntype.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Returntype.GetHashCode(); + } if (this.Prefix != null) - hashCode = hashCode * 59 + this.Prefix.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Prefix.GetHashCode(); + } return hashCode; } } @@ -158,7 +168,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..ada69d73 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplateContentTypes.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 +{ + /// + /// 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponent.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponent.cs new file mode 100644 index 00000000..8cd031c7 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponent.cs @@ -0,0 +1,251 @@ +/* + * 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 +{ + /// + /// TemplatedPAComponent + /// + [DataContract(Name = "TemplatedPAComponent")] + public partial class TemplatedPAComponent : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// directory. + /// snapshot. + /// componentData. + /// description. + /// name. + /// parentTemplateId. + /// type. + public TemplatedPAComponent(string id = default(string), string directory = default(string), bool snapshot = default(bool), PAComponentData componentData = default(PAComponentData), string description = default(string), string name = default(string), string parentTemplateId = default(string), string type = default(string)) + { + this.Id = id; + this.Directory = directory; + this.Snapshot = snapshot; + this.ComponentData = componentData; + this.Description = description; + this.Name = name; + this.ParentTemplateId = parentTemplateId; + this.Type = type; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Directory + /// + [DataMember(Name = "directory", EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Gets or Sets Snapshot + /// + [DataMember(Name = "snapshot", EmitDefaultValue = true)] + public bool Snapshot { get; set; } + + /// + /// Gets or Sets ComponentData + /// + [DataMember(Name = "componentData", EmitDefaultValue = false)] + public PAComponentData ComponentData { 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 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplatedPAComponent {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Directory: ").Append(Directory).Append("\n"); + sb.Append(" Snapshot: ").Append(Snapshot).Append("\n"); + sb.Append(" ComponentData: ").Append(ComponentData).Append("\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 TemplatedPAComponent); + } + + /// + /// Returns true if TemplatedPAComponent instances are equal + /// + /// Instance of TemplatedPAComponent to be compared + /// Boolean + public bool Equals(TemplatedPAComponent input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Directory == input.Directory || + (this.Directory != null && + this.Directory.Equals(input.Directory)) + ) && + ( + this.Snapshot == input.Snapshot || + this.Snapshot.Equals(input.Snapshot) + ) && + ( + this.ComponentData == input.ComponentData || + (this.ComponentData != null && + this.ComponentData.Equals(input.ComponentData)) + ) && + ( + 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.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Directory != null) + { + hashCode = (hashCode * 59) + this.Directory.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Snapshot.GetHashCode(); + if (this.ComponentData != null) + { + hashCode = (hashCode * 59) + this.ComponentData.GetHashCode(); + } + 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 + public IEnumerable 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..77bd7bd3 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParameters.cs @@ -0,0 +1,199 @@ +/* + * 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) + if (directory == null) { + throw new ArgumentNullException("directory is a required property for TemplatedPAComponentParameters and cannot be null"); + } + this.Directory = directory; + // to ensure "parentTemplateId" is required (not null) + if (parentTemplateId == null) { + throw new ArgumentNullException("parentTemplateId is a required property for TemplatedPAComponentParameters and cannot be null"); + } + this.ParentTemplateId = parentTemplateId; + 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() + { + StringBuilder 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 + public IEnumerable 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..1631e6be --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentParametersRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for TemplatedPAComponentParametersRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummary.cs new file mode 100644 index 00000000..4c9b42f2 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummary.cs @@ -0,0 +1,201 @@ +/* + * 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 +{ + /// + /// TemplatedPAComponentPostSummary + /// + [DataContract(Name = "TemplatedPAComponentPostSummary")] + public partial class TemplatedPAComponentPostSummary : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// id. + /// description. + /// name. + /// parentTemplateId. + /// type. + public TemplatedPAComponentPostSummary(string id = default(string), string description = default(string), string name = default(string), string parentTemplateId = default(string), string type = default(string)) + { + this.Id = id; + this.Description = description; + this.Name = name; + this.ParentTemplateId = parentTemplateId; + this.Type = type; + } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { 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 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentPostSummary {\n"); + sb.Append(" Id: ").Append(Id).Append("\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 TemplatedPAComponentPostSummary); + } + + /// + /// Returns true if TemplatedPAComponentPostSummary instances are equal + /// + /// Instance of TemplatedPAComponentPostSummary to be compared + /// Boolean + public bool Equals(TemplatedPAComponentPostSummary input) + { + if (input == null) + { + return false; + } + return + ( + 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.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.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.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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummaryRoot.cs new file mode 100644 index 00000000..ecb42632 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentPostSummaryRoot.cs @@ -0,0 +1,156 @@ +/* + * 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 +{ + /// + /// TemplatedPAComponentPostSummaryRoot + /// + [DataContract(Name = "TemplatedPAComponentPostSummaryRoot")] + public partial class TemplatedPAComponentPostSummaryRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplatedPAComponentPostSummaryRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public TemplatedPAComponentPostSummaryRoot(TemplatedPAComponentPostSummary data = default(TemplatedPAComponentPostSummary), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + if (data == null) { + throw new ArgumentNullException("data is a required property for TemplatedPAComponentPostSummaryRoot and cannot be null"); + } + this.Data = data; + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public TemplatedPAComponentPostSummary 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentPostSummaryRoot {\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 TemplatedPAComponentPostSummaryRoot); + } + + /// + /// Returns true if TemplatedPAComponentPostSummaryRoot instances are equal + /// + /// Instance of TemplatedPAComponentPostSummaryRoot to be compared + /// Boolean + public bool Equals(TemplatedPAComponentPostSummaryRoot 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentRoot.cs new file mode 100644 index 00000000..fb7769bb --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentRoot.cs @@ -0,0 +1,156 @@ +/* + * 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 +{ + /// + /// TemplatedPAComponentRoot + /// + [DataContract(Name = "TemplatedPAComponentRoot")] + public partial class TemplatedPAComponentRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected TemplatedPAComponentRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public TemplatedPAComponentRoot(TemplatedPAComponent data = default(TemplatedPAComponent), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + if (data == null) { + throw new ArgumentNullException("data is a required property for TemplatedPAComponentRoot and cannot be null"); + } + this.Data = data; + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public TemplatedPAComponent 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class TemplatedPAComponentRoot {\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 TemplatedPAComponentRoot); + } + + /// + /// Returns true if TemplatedPAComponentRoot instances are equal + /// + /// Instance of TemplatedPAComponentRoot to be compared + /// Boolean + public bool Equals(TemplatedPAComponentRoot 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 + public IEnumerable 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..8b81a157 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummary.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 +{ + /// + /// 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() + { + StringBuilder 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 + public IEnumerable 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..60b6d742 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentSummaryRoot.cs @@ -0,0 +1,157 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for TemplatedPAComponentSummaryRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable 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..f17138fd --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParameters.cs @@ -0,0 +1,167 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..c7954901 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/TemplatedPAComponentUpdateParametersRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for TemplatedPAComponentUpdateParametersRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable 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..a270c3ea --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplate.cs @@ -0,0 +1,394 @@ +/* + * 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. + /// + /// Template id.. + /// Template directory.. + /// Template type id. + /// snapshot.. + /// 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. + /// Template description.. + /// Template name.. + /// Unlinked template category. + public UnlinkedPATemplate(string id = default(string), string directory = 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.Id = id; + this.Directory = directory; + 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; + } + + /// + /// Template id. + /// + /// Template id. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Template directory. + /// + /// Template directory. + [DataMember(Name = "directory", EmitDefaultValue = false)] + public string Directory { get; set; } + + /// + /// Template type id + /// + /// Template type id + [DataMember(Name = "templateTypeId", EmitDefaultValue = false)] + public string TemplateTypeId { get; set; } + + /// + /// snapshot. + /// + /// snapshot. + [DataMember(Name = "snapshot", EmitDefaultValue = true)] + public bool Snapshot { 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; } + + /// + /// 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; } + + /// + /// Unlinked template category + /// + /// Unlinked template 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplate {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Directory: ").Append(Directory).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.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + 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.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.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Directory != null) + { + hashCode = (hashCode * 59) + this.Directory.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 + public IEnumerable 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..42f1d936 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndType.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 +{ + /// + /// 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() + { + StringBuilder 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 + public IEnumerable 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..b78b8d45 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetails.cs @@ -0,0 +1,223 @@ +/* + * 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. + /// List of default columns. + /// List of default groupings. + /// Snapshot. + /// Unlinked template category. + /// Unlinked template type. + public UnlinkedPATemplateCategoryAndTypeDetails(string id = default(string), List columns = default(List), List groups = default(List), bool snapshot = default(bool), string category = default(string), string name = default(string)) + { + this.Id = id; + this.Columns = columns; + this.Groups = groups; + this.Snapshot = snapshot; + this.Category = category; + this.Name = name; + } + + /// + /// Type Id + /// + /// Type Id + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// List of default columns + /// + /// List of default columns + [DataMember(Name = "columns", EmitDefaultValue = false)] + public List Columns { get; set; } + + /// + /// List of default groupings + /// + /// List of default groupings + [DataMember(Name = "groups", EmitDefaultValue = false)] + public List Groups { get; set; } + + /// + /// Snapshot + /// + /// Snapshot + [DataMember(Name = "snapshot", EmitDefaultValue = true)] + public bool Snapshot { 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateCategoryAndTypeDetails {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Columns: ").Append(Columns).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); + sb.Append(" Snapshot: ").Append(Snapshot).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.Columns == input.Columns || + this.Columns != null && + input.Columns != null && + this.Columns.SequenceEqual(input.Columns) + ) && + ( + this.Groups == input.Groups || + this.Groups != null && + input.Groups != null && + this.Groups.SequenceEqual(input.Groups) + ) && + ( + this.Snapshot == input.Snapshot || + this.Snapshot.Equals(input.Snapshot) + ) && + ( + 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.Columns != null) + { + hashCode = (hashCode * 59) + this.Columns.GetHashCode(); + } + if (this.Groups != null) + { + hashCode = (hashCode * 59) + this.Groups.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Snapshot.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 + public IEnumerable 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..8f7a9a15 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeDetailsRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for UnlinkedPATemplateCategoryAndTypeDetailsRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable 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..15cf1f85 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateCategoryAndTypeRoot.cs @@ -0,0 +1,157 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for UnlinkedPATemplateCategoryAndTypeRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateColumnDetails.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateColumnDetails.cs new file mode 100644 index 00000000..2acaf568 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateColumnDetails.cs @@ -0,0 +1,169 @@ +/* + * 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 +{ + /// + /// UnlinkedPATemplateColumnDetails + /// + [DataContract(Name = "UnlinkedPATemplateColumnDetails")] + public partial class UnlinkedPATemplateColumnDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Unlinked template column name. + /// FactSet-defined or User-defined Column identifier.. + /// Column Statistic identifier. + public UnlinkedPATemplateColumnDetails(string name = default(string), string id = default(string), List statistics = default(List)) + { + this.Name = name; + this.Id = id; + this.Statistics = statistics; + } + + /// + /// Unlinked template column name + /// + /// Unlinked template column name + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// FactSet-defined or User-defined Column identifier. + /// + /// FactSet-defined or User-defined Column identifier. + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Column Statistic identifier + /// + /// Column Statistic identifier + [DataMember(Name = "statistics", EmitDefaultValue = false)] + public List Statistics { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateColumnDetails {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Statistics: ").Append(Statistics).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 UnlinkedPATemplateColumnDetails); + } + + /// + /// Returns true if UnlinkedPATemplateColumnDetails instances are equal + /// + /// Instance of UnlinkedPATemplateColumnDetails to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateColumnDetails 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)) + ) && + ( + this.Statistics == input.Statistics || + this.Statistics != null && + input.Statistics != null && + this.Statistics.SequenceEqual(input.Statistics) + ); + } + + /// + /// 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(); + } + if (this.Statistics != null) + { + hashCode = (hashCode * 59) + this.Statistics.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateGroupDetails.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateGroupDetails.cs new file mode 100644 index 00000000..8e770dc6 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateGroupDetails.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 +{ + /// + /// UnlinkedPATemplateGroupDetails + /// + [DataContract(Name = "UnlinkedPATemplateGroupDetails")] + public partial class UnlinkedPATemplateGroupDetails : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Unlinked template group name. + /// FactSet-defined or User-defined Group identifier.. + public UnlinkedPATemplateGroupDetails(string name = default(string), string id = default(string)) + { + this.Name = name; + this.Id = id; + } + + /// + /// Unlinked template group name + /// + /// Unlinked template group name + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// FactSet-defined or User-defined Group identifier. + /// + /// FactSet-defined or User-defined Group identifier. + [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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplateGroupDetails {\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 UnlinkedPATemplateGroupDetails); + } + + /// + /// Returns true if UnlinkedPATemplateGroupDetails instances are equal + /// + /// Instance of UnlinkedPATemplateGroupDetails to be compared + /// Boolean + public bool Equals(UnlinkedPATemplateGroupDetails 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 + public IEnumerable 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..737ec817 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParameters.cs @@ -0,0 +1,335 @@ +/* + * 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) + if (directory == null) { + throw new ArgumentNullException("directory is a required property for UnlinkedPATemplateParameters and cannot be null"); + } + this.Directory = directory; + // to ensure "templateTypeId" is required (not null) + if (templateTypeId == null) { + throw new ArgumentNullException("templateTypeId is a required property for UnlinkedPATemplateParameters and cannot be null"); + } + this.TemplateTypeId = templateTypeId; + 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() + { + StringBuilder 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 + public IEnumerable 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..21399d5c --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateParametersRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for UnlinkedPATemplateParametersRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummary.cs new file mode 100644 index 00000000..3c2969d5 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummary.cs @@ -0,0 +1,187 @@ +/* + * 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 +{ + /// + /// UnlinkedPATemplatePostSummary + /// + [DataContract(Name = "UnlinkedPATemplatePostSummary")] + public partial class UnlinkedPATemplatePostSummary : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Template id.. + /// Template description.. + /// Template name.. + /// Unlinked template category. + public UnlinkedPATemplatePostSummary(string id = default(string), string description = default(string), string name = default(string), string category = default(string)) + { + this.Id = id; + this.Description = description; + this.Name = name; + this.Category = category; + } + + /// + /// 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; } + + /// + /// Unlinked template category + /// + /// Unlinked template 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplatePostSummary {\n"); + sb.Append(" Id: ").Append(Id).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 UnlinkedPATemplatePostSummary); + } + + /// + /// Returns true if UnlinkedPATemplatePostSummary instances are equal + /// + /// Instance of UnlinkedPATemplatePostSummary to be compared + /// Boolean + public bool Equals(UnlinkedPATemplatePostSummary input) + { + if (input == null) + { + return false; + } + return + ( + 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.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.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.Category != null) + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummaryRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummaryRoot.cs new file mode 100644 index 00000000..8dd192f0 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplatePostSummaryRoot.cs @@ -0,0 +1,156 @@ +/* + * 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 +{ + /// + /// UnlinkedPATemplatePostSummaryRoot + /// + [DataContract(Name = "UnlinkedPATemplatePostSummaryRoot")] + public partial class UnlinkedPATemplatePostSummaryRoot : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected UnlinkedPATemplatePostSummaryRoot() { } + /// + /// Initializes a new instance of the class. + /// + /// data (required). + /// meta. + public UnlinkedPATemplatePostSummaryRoot(UnlinkedPATemplatePostSummary data = default(UnlinkedPATemplatePostSummary), Object meta = default(Object)) + { + // to ensure "data" is required (not null) + if (data == null) { + throw new ArgumentNullException("data is a required property for UnlinkedPATemplatePostSummaryRoot and cannot be null"); + } + this.Data = data; + this.Meta = meta; + } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = false)] + public UnlinkedPATemplatePostSummary 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() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class UnlinkedPATemplatePostSummaryRoot {\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 UnlinkedPATemplatePostSummaryRoot); + } + + /// + /// Returns true if UnlinkedPATemplatePostSummaryRoot instances are equal + /// + /// Instance of UnlinkedPATemplatePostSummaryRoot to be compared + /// Boolean + public bool Equals(UnlinkedPATemplatePostSummaryRoot 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 + public IEnumerable 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..ada35b22 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for UnlinkedPATemplateRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable 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..4c0aa298 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummary.cs @@ -0,0 +1,168 @@ +/* + * 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. + /// + /// Template description.. + /// Template name.. + /// Unlinked template category. + public UnlinkedPATemplateSummary(string description = default(string), string name = default(string), string category = default(string)) + { + this.Description = description; + this.Name = name; + this.Category = category; + } + + /// + /// 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; } + + /// + /// Unlinked template category + /// + /// Unlinked template 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() + { + StringBuilder 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 + public IEnumerable 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..6205496e --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateSummaryRoot.cs @@ -0,0 +1,157 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for UnlinkedPATemplateSummaryRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable 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..3e56b822 --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParameters.cs @@ -0,0 +1,284 @@ +/* + * 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() + { + StringBuilder 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 + public IEnumerable 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..a5b5c00b --- /dev/null +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/UnlinkedPATemplateUpdateParametersRoot.cs @@ -0,0 +1,156 @@ +/* + * 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) + if (data == null) { + throw new ArgumentNullException("data is a required property for UnlinkedPATemplateUpdateParametersRoot and cannot be null"); + } + this.Data = data; + 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() + { + StringBuilder 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 + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParameters.cs index a4526b36..74df1dc7 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParameters.cs @@ -44,15 +44,24 @@ protected VaultCalculationParameters() { } /// account (required). /// dates. /// Vault Configuration identifier. (required). - /// Component detail type for the Vault component. It can be GROUPS or TOTALS.. + /// Component detail type for the Vault component. It can be GROUPS or TOTALS or SECURITIES.. public VaultCalculationParameters(string componentid = default(string), VaultIdentifier account = default(VaultIdentifier), VaultDateParameters dates = default(VaultDateParameters), string configid = default(string), string componentdetail = default(string)) { // to ensure "componentid" is required (not null) - this.Componentid = componentid ?? throw new ArgumentNullException("componentid is a required property for VaultCalculationParameters and cannot be null"); + if (componentid == null) { + throw new ArgumentNullException("componentid is a required property for VaultCalculationParameters and cannot be null"); + } + this.Componentid = componentid; // to ensure "account" is required (not null) - this.Account = account ?? throw new ArgumentNullException("account is a required property for VaultCalculationParameters and cannot be null"); + if (account == null) { + throw new ArgumentNullException("account is a required property for VaultCalculationParameters and cannot be null"); + } + this.Account = account; // to ensure "configid" is required (not null) - this.Configid = configid ?? throw new ArgumentNullException("configid is a required property for VaultCalculationParameters and cannot be null"); + if (configid == null) { + throw new ArgumentNullException("configid is a required property for VaultCalculationParameters and cannot be null"); + } + this.Configid = configid; this.Dates = dates; this.Componentdetail = componentdetail; } @@ -84,9 +93,9 @@ protected VaultCalculationParameters() { } public string Configid { get; set; } /// - /// Component detail type for the Vault component. It can be GROUPS or TOTALS. + /// Component detail type for the Vault component. It can be GROUPS or TOTALS or SECURITIES. /// - /// Component detail type for the Vault component. It can be GROUPS or TOTALS. + /// Component detail type for the Vault component. It can be GROUPS or TOTALS or SECURITIES. [DataMember(Name = "componentdetail", EmitDefaultValue = false)] public string Componentdetail { get; set; } @@ -96,7 +105,7 @@ protected VaultCalculationParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultCalculationParameters {\n"); sb.Append(" Componentid: ").Append(Componentid).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); @@ -134,8 +143,9 @@ public override bool Equals(object input) public bool Equals(VaultCalculationParameters input) { if (input == null) + { return false; - + } return ( this.Componentid == input.Componentid || @@ -174,15 +184,25 @@ public override int GetHashCode() { int hashCode = 41; if (this.Componentid != null) - hashCode = hashCode * 59 + this.Componentid.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Componentid.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } if (this.Configid != null) - hashCode = hashCode * 59 + this.Configid.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Configid.GetHashCode(); + } if (this.Componentdetail != null) - hashCode = hashCode * 59 + this.Componentdetail.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Componentdetail.GetHashCode(); + } return hashCode; } } @@ -192,7 +212,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParametersRoot.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParametersRoot.cs index 8a768664..ba13e6c1 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParametersRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultCalculationParametersRoot.cs @@ -62,7 +62,7 @@ public partial class VaultCalculationParametersRoot : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultCalculationParametersRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -97,8 +97,9 @@ public override bool Equals(object input) public bool Equals(VaultCalculationParametersRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable 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..0d69ecc0 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponent.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponent.cs @@ -41,9 +41,10 @@ public partial class VaultComponent : IEquatable, IValidatableOb /// Currency iso code saved in the document. /// dates. /// Snapshot. + /// The path to the document. /// 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)) + 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 path = default(string), string name = default(string), string category = default(string)) { this.Id = id; this.Account = account; @@ -51,6 +52,7 @@ public partial class VaultComponent : IEquatable, IValidatableOb this.Currencyisocode = currencyisocode; this.Dates = dates; this.Snapshot = snapshot; + this.Path = path; this.Name = name; this.Category = category; } @@ -91,9 +93,16 @@ public partial class VaultComponent : IEquatable, IValidatableOb /// Snapshot /// /// Snapshot - [DataMember(Name = "snapshot", EmitDefaultValue = false)] + [DataMember(Name = "snapshot", EmitDefaultValue = true)] public bool Snapshot { get; set; } + /// + /// The path to the document + /// + /// The path to the document + [DataMember(Name = "path", EmitDefaultValue = false)] + public string Path { get; set; } + /// /// Component name. /// @@ -114,7 +123,7 @@ public partial class VaultComponent : IEquatable, IValidatableOb /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultComponent {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Account: ").Append(Account).Append("\n"); @@ -122,6 +131,7 @@ public override string ToString() sb.Append(" Currencyisocode: ").Append(Currencyisocode).Append("\n"); sb.Append(" Dates: ").Append(Dates).Append("\n"); sb.Append(" Snapshot: ").Append(Snapshot).Append("\n"); + sb.Append(" Path: ").Append(Path).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Category: ").Append(Category).Append("\n"); sb.Append("}\n"); @@ -155,8 +165,9 @@ public override bool Equals(object input) public bool Equals(VaultComponent input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -187,6 +198,11 @@ public bool Equals(VaultComponent input) this.Snapshot == input.Snapshot || this.Snapshot.Equals(input.Snapshot) ) && + ( + this.Path == input.Path || + (this.Path != null && + this.Path.Equals(input.Path)) + ) && ( this.Name == input.Name || (this.Name != null && @@ -209,20 +225,38 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Account != null) - hashCode = hashCode * 59 + this.Account.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Account.GetHashCode(); + } if (this.Benchmark != null) - hashCode = hashCode * 59 + this.Benchmark.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Benchmark.GetHashCode(); + } if (this.Currencyisocode != null) - hashCode = hashCode * 59 + this.Currencyisocode.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Currencyisocode.GetHashCode(); + } if (this.Dates != null) - hashCode = hashCode * 59 + this.Dates.GetHashCode(); - hashCode = hashCode * 59 + this.Snapshot.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Dates.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Snapshot.GetHashCode(); + if (this.Path != null) + { + hashCode = (hashCode * 59) + this.Path.GetHashCode(); + } if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Category != null) - hashCode = hashCode * 59 + this.Category.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Category.GetHashCode(); + } return hashCode; } } @@ -232,7 +266,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..10671d63 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponentRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultComponentRoot.cs @@ -45,7 +45,10 @@ protected VaultComponentRoot() { } public VaultComponentRoot(VaultComponent data = default(VaultComponent), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for VaultComponentRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for VaultComponentRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected VaultComponentRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected VaultComponentRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultComponentRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(VaultComponentRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfiguration.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfiguration.cs index 5652d652..00fb76d6 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfiguration.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfiguration.cs @@ -62,7 +62,7 @@ public partial class VaultConfiguration : IEquatable, IValid /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultConfiguration {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Accounts: ").Append(Accounts).Append("\n"); @@ -97,8 +97,9 @@ public override bool Equals(object input) public bool Equals(VaultConfiguration input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -123,9 +124,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Accounts != null) - hashCode = hashCode * 59 + this.Accounts.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Accounts.GetHashCode(); + } return hashCode; } } @@ -135,7 +140,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..988868cc 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationRoot.cs @@ -45,7 +45,10 @@ protected VaultConfigurationRoot() { } public VaultConfigurationRoot(VaultConfiguration data = default(VaultConfiguration), Object meta = default(Object)) { // to ensure "data" is required (not null) - this.Data = data ?? throw new ArgumentNullException("data is a required property for VaultConfigurationRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for VaultConfigurationRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected VaultConfigurationRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected VaultConfigurationRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultConfigurationRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(VaultConfigurationRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -127,9 +131,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -139,7 +147,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummary.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummary.cs index 8e289d59..ba60454b 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummary.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummary.cs @@ -54,7 +54,7 @@ public partial class VaultConfigurationSummary : IEquatableString presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultConfigurationSummary {\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append("}\n"); @@ -88,8 +88,9 @@ public override bool Equals(object input) public bool Equals(VaultConfigurationSummary input) { if (input == null) + { return false; - + } return ( this.Name == input.Name || @@ -108,7 +109,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Name != null) - hashCode = hashCode * 59 + this.Name.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } return hashCode; } } @@ -118,7 +121,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } 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..81855360 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummaryRoot.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultConfigurationSummaryRoot.cs @@ -45,7 +45,10 @@ protected VaultConfigurationSummaryRoot() { } public VaultConfigurationSummaryRoot(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 VaultConfigurationSummaryRoot and cannot be null"); + if (data == null) { + throw new ArgumentNullException("data is a required property for VaultConfigurationSummaryRoot and cannot be null"); + } + this.Data = data; this.Meta = meta; } @@ -58,7 +61,7 @@ protected VaultConfigurationSummaryRoot() { } /// /// Gets or Sets Meta /// - [DataMember(Name = "meta", EmitDefaultValue = false)] + [DataMember(Name = "meta", EmitDefaultValue = true)] public Object Meta { get; set; } /// @@ -67,7 +70,7 @@ protected VaultConfigurationSummaryRoot() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultConfigurationSummaryRoot {\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Meta: ").Append(Meta).Append("\n"); @@ -102,8 +105,9 @@ public override bool Equals(object input) public bool Equals(VaultConfigurationSummaryRoot input) { if (input == null) + { return false; - + } return ( this.Data == input.Data || @@ -128,9 +132,13 @@ public override int GetHashCode() { int hashCode = 41; if (this.Data != null) - hashCode = hashCode * 59 + this.Data.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } if (this.Meta != null) - hashCode = hashCode * 59 + this.Meta.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Meta.GetHashCode(); + } return hashCode; } } @@ -140,7 +148,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultDateParameters.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultDateParameters.cs index a073b5a2..097911cb 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultDateParameters.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultDateParameters.cs @@ -46,9 +46,15 @@ protected VaultDateParameters() { } public VaultDateParameters(string startdate = default(string), string enddate = default(string), string frequency = default(string)) { // to ensure "enddate" is required (not null) - this.Enddate = enddate ?? throw new ArgumentNullException("enddate is a required property for VaultDateParameters and cannot be null"); + if (enddate == null) { + throw new ArgumentNullException("enddate is a required property for VaultDateParameters and cannot be null"); + } + this.Enddate = enddate; // to ensure "frequency" is required (not null) - this.Frequency = frequency ?? throw new ArgumentNullException("frequency is a required property for VaultDateParameters and cannot be null"); + if (frequency == null) { + throw new ArgumentNullException("frequency is a required property for VaultDateParameters and cannot be null"); + } + this.Frequency = frequency; this.Startdate = startdate; } @@ -79,7 +85,7 @@ protected VaultDateParameters() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultDateParameters {\n"); sb.Append(" Startdate: ").Append(Startdate).Append("\n"); sb.Append(" Enddate: ").Append(Enddate).Append("\n"); @@ -115,8 +121,9 @@ public override bool Equals(object input) public bool Equals(VaultDateParameters input) { if (input == null) + { return false; - + } return ( this.Startdate == input.Startdate || @@ -145,11 +152,17 @@ public override int GetHashCode() { int hashCode = 41; if (this.Startdate != null) - hashCode = hashCode * 59 + this.Startdate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Startdate.GetHashCode(); + } if (this.Enddate != null) - hashCode = hashCode * 59 + this.Enddate.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Enddate.GetHashCode(); + } if (this.Frequency != null) - hashCode = hashCode * 59 + this.Frequency.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Frequency.GetHashCode(); + } return hashCode; } } @@ -159,7 +172,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; } diff --git a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultIdentifier.cs b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultIdentifier.cs index e65fa8c2..acc98e13 100644 --- a/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultIdentifier.cs +++ b/auto-generated-sdk/src/FactSet.AnalyticsAPI.Engines/Model/VaultIdentifier.cs @@ -44,7 +44,10 @@ protected VaultIdentifier() { } public VaultIdentifier(string id = default(string)) { // to ensure "id" is required (not null) - this.Id = id ?? throw new ArgumentNullException("id is a required property for VaultIdentifier and cannot be null"); + if (id == null) { + throw new ArgumentNullException("id is a required property for VaultIdentifier and cannot be null"); + } + this.Id = id; } /// @@ -60,7 +63,7 @@ protected VaultIdentifier() { } /// String presentation of the object public override string ToString() { - var sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(); sb.Append("class VaultIdentifier {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append("}\n"); @@ -94,8 +97,9 @@ public override bool Equals(object input) public bool Equals(VaultIdentifier input) { if (input == null) + { return false; - + } return ( this.Id == input.Id || @@ -114,7 +118,9 @@ public override int GetHashCode() { int hashCode = 41; if (this.Id != null) - hashCode = hashCode * 59 + this.Id.GetHashCode(); + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } return hashCode; } } @@ -124,7 +130,7 @@ public override int GetHashCode() /// /// Validation context /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + public IEnumerable Validate(ValidationContext validationContext) { yield break; }