Documentation ¶
Index ¶
- type APIRequestInput
- type AnonymousAuthentication
- type AuthenticationRequest
- type CharEncoding
- type ClientConfig
- type DataSourceConnection
- type DataSourceLogin
- type DataSourceUpdate
- type DataSourceUpdateOperation
- type DatabaseInfo
- type DriverType
- type EmbeddedDataSourceConnection
- type ExecutionMode
- type MstrApplicationType
- type MstrAuthentication
- type MstrAuthenticationMode
- type MstrDataSourceType
- type MstrDatabaseType
- type MstrObject
- type MstrOwner
- type MstrProject
- type MstrProjectSetting
- type MstrProjectSettings
- type MstrRestDataSource
- type MstrRestError
- type MstrRestErrorAdditionalProperties
- type MstrRestMultiStatusResponse
- type MstrRestObjectEmbedded
- type MstrRestStatusResponse
- type MstrRestSubError
- type MstrRestTimestamp
- type OdbcVersion
- type StandardAuthentication
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIRequestInput ¶ added in v0.2.0
type AnonymousAuthentication ¶
type AnonymousAuthentication struct { }
func (*AnonymousAuthentication) AuthenticationMode ¶
func (a *AnonymousAuthentication) AuthenticationMode() MstrAuthenticationMode
func (*AnonymousAuthentication) AuthenticationRequest ¶
func (a *AnonymousAuthentication) AuthenticationRequest(applicationType *MstrApplicationType) *AuthenticationRequest
type AuthenticationRequest ¶
type AuthenticationRequest struct { Username *string `json:"username,omitempty"` Password *string `json:"password,omitempty"` AuthenticationMode MstrAuthenticationMode `json:"loginMode"` ApplicationType *MstrApplicationType `json:"applicationType,omitempty"` }
type CharEncoding ¶
type CharEncoding string
const ( CharEncodingMultiByte CharEncoding = "multibyte" CharEncodingUTF8 CharEncoding = "utf8" )
type ClientConfig ¶ added in v0.2.0
type ClientConfig struct {
ApplicationType *MstrApplicationType
}
type DataSourceConnection ¶
type DataSourceConnection struct { MstrObject Hidden bool `json:"hidden"` ExecutionMode ExecutionMode `json:"executionMode"` MaxCancelAttemptTime int `json:"maxCancelAttemptTime"` MaxQueryExecTime int `json:"maxQueryExeTime"` MaxConnectionAttemptTime int `json:"maxConnectionAttemptTime"` ConnectionLifetime int `json:"connectionLifetime"` ConnectionIdleTimeout int `json:"connectionIdleTimeout"` WindowsCharEncoding CharEncoding `json:"charEncodingWindows"` UnixCharEncoding CharEncoding `json:"charEncodingUnix"` TablePrefix string `json:"tablePrefix"` ConnectionString string `json:"connectionString"` ParameterisedQueries bool `json:"parameterizedQueries"` ExtendedFetch bool `json:"extendedFetch"` Database DatabaseInfo `json:"database"` DriverType DriverType `json:"driverType"` OAuthParameter string `json:"oauthParameter"` WalletInfo string `json:"walletInfo"` IAM MstrObject `json:"iam"` Resource string `json:"resource"` Scope string `json:"scope"` EnableSSO bool `json:"enableSso"` ExtraSensitiveFields map[string]string `json:"extraSensitiveFields"` }
type DataSourceLogin ¶
type DataSourceLogin struct { MstrObject Hidden bool `json:"hidden"` }
type DataSourceUpdate ¶
type DataSourceUpdate struct { Operation DataSourceUpdateOperation `json:"op"` Path string `json:"path"` Value interface{} `json:"value"` }
type DataSourceUpdateOperation ¶
type DataSourceUpdateOperation string
const ( DataSourceUpdateOperationAdd DataSourceUpdateOperation = "add" DataSourceUpdateOperationReplace DataSourceUpdateOperation = "replace" DataSourceUpdateOperationRemove DataSourceUpdateOperation = "remove" DataSourceUpdateOperationIncr DataSourceUpdateOperation = "incr" DataSourceUpdateOperationRemoveElement DataSourceUpdateOperation = "removeElement" DataSourceUpdateOperationAddElement DataSourceUpdateOperation = "addElement" DataSourceUpdateOperationRemoveElements DataSourceUpdateOperation = "removeElements" DataSourceUpdateOperationAddElements DataSourceUpdateOperation = "addElements" )
type DatabaseInfo ¶
type DatabaseInfo struct { Type MstrDatabaseType `json:"type"` Version string `json:"version"` Connection MstrRestObjectEmbedded `json:"connection"` EmbeddedConnection *EmbeddedDataSourceConnection `json:"embeddedConnection,omitempty"` PrimaryDataSource *MstrObject `json:"primaryDatasource,omitempty"` DataMartDataSource *MstrObject `json:"dataMartDatasource,omitempty"` }
type DriverType ¶
type DriverType string
const ( DriverTypeReserved DriverType = "reserved" DriverTypeODBC DriverType = "odbc" DriverTypeNative DriverType = "native" )
type EmbeddedDataSourceConnection ¶
type EmbeddedDataSourceConnection struct { DataSourceConnection Login MstrRestObjectEmbedded `json:"login"` EmbeddedLogin *DataSourceLogin `json:"embeddedLogin,omitempty"` }
type ExecutionMode ¶
type ExecutionMode string
const ( ExecutionModeReserved ExecutionMode = "reserved" ExecutionModeAsyncConnection ExecutionMode = "async_connection" ExecutionModeAsyncStatement ExecutionMode = "async_statement" ExecutionModeSynchronous ExecutionMode = "synchronous" )
type MstrApplicationType ¶
type MstrApplicationType int
const ( BulkTranslationTool MstrApplicationType = 30 CacheUtility MstrApplicationType = 19 COMBrowser MstrApplicationType = 28 CommandLineInterface MstrApplicationType = 15 CommandManager MstrApplicationType = 13 ConfigurationWizard MstrApplicationType = 17 CubeAdvisor MstrApplicationType = 32 CustomApp MstrApplicationType = 8 DossierMobile MstrApplicationType = 36 DossierWeb MstrApplicationType = 35 DSSScheduler MstrApplicationType = 7 DSSWeb MstrApplicationType = 6 EnterpriseManager MstrApplicationType = 14 FireEvent MstrApplicationType = 20 HealthCenter MstrApplicationType = 31 HyperBrowserChrome MstrApplicationType = 48 HyperDesktopMac MstrApplicationType = 58 HyperDesktopWindows MstrApplicationType = 59 HyperMessagingSlack MstrApplicationType = 57 HyperMobileAndroid MstrApplicationType = 50 HyperMobileIOS MstrApplicationType = 49 HyperOfficeOutlookAndroid MstrApplicationType = 55 HyperOfficeOutlookIOS MstrApplicationType = 54 HyperOfficeOutlookMac MstrApplicationType = 53 HyperOfficeOutlookWeb MstrApplicationType = 51 HyperOfficeOutlookWindows MstrApplicationType = 52 HyperScreenAndroidTV MstrApplicationType = 63 HyperScreenAppleTV MstrApplicationType = 61 HyperScreenFireTV MstrApplicationType = 62 HyperSDK MstrApplicationType = 60 HyperVoiceAlexa MstrApplicationType = 56 Jupyter MstrApplicationType = 64 LibraryMobileAndroid MstrApplicationType = 39 MacWorkstation MstrApplicationType = 37 MDScan MstrApplicationType = 18 MDUpdate MstrApplicationType = 27 MicrosoftOffice MstrApplicationType = 47 Mobile MstrApplicationType = 29 NarrowcastServer MstrApplicationType = 9 ObjectManager MstrApplicationType = 10 ODBOCubeDesigner MstrApplicationType = 12 ODBOProvider MstrApplicationType = 11 Office MstrApplicationType = 1 OfficeWS MstrApplicationType = 23 OneTier MstrApplicationType = 34 Portal MstrApplicationType = 25 PowerBI MstrApplicationType = 46 Product01 MstrApplicationType = 66 Product02 MstrApplicationType = 67 Product03 MstrApplicationType = 68 Product04 MstrApplicationType = 69 Product05 MstrApplicationType = 70 Product06 MstrApplicationType = 71 ProjectBuilder MstrApplicationType = 16 ProjectUpgrade MstrApplicationType = 5 Qlik MstrApplicationType = 45 RStudio MstrApplicationType = 65 Server MstrApplicationType = 4 ServerAdmin MstrApplicationType = 2 Tableau MstrApplicationType = 44 Tester MstrApplicationType = 26 Tools MstrApplicationType = 24 TypeJavaDesktop MstrApplicationType = 21 WebAdmin MstrApplicationType = 3 WebServices MstrApplicationType = 22 WindowsWorkstation MstrApplicationType = 37 Workstation MstrApplicationType = 37 WorkstationMigration MstrApplicationType = 72 )
type MstrAuthentication ¶
type MstrAuthentication interface { AuthenticationMode() MstrAuthenticationMode AuthenticationRequest(applicationType *MstrApplicationType) *AuthenticationRequest }
type MstrAuthenticationMode ¶
type MstrAuthenticationMode int
const ( Standard MstrAuthenticationMode = 1 Anonymous MstrAuthenticationMode = 8 )
type MstrDataSourceType ¶
type MstrDataSourceType string
const ( MstrDataSourceTypeReserved MstrDataSourceType = "reserved" MstrDataSourceTypeNormal MstrDataSourceType = "normal" MstrDataSourceTypeDataImport MstrDataSourceType = "data_import" MstrDataSourceTypeDatImportPrimary MstrDataSourceType = "data_import_primary" MstrDataSourceTypeDataScript MstrDataSourceType = "script" )
type MstrDatabaseType ¶
type MstrDatabaseType string
const ( MstrDatabaseTypeReserved MstrDatabaseType = "reserved" MstrDatabaseTypeAccess MstrDatabaseType = "access" MstrDatabaseTypeAltibase MstrDatabaseType = "altibase" MstrDatabaseTypeAmazonAthena MstrDatabaseType = "amazon_athena" MstrDatabaseTypeAmazonAurora MstrDatabaseType = "amazon_aurora" MstrDatabaseTypeAmazonDocumentDb MstrDatabaseType = "amazon_document_db" MstrDatabaseTypeAmazonDynamoDb MstrDatabaseType = "amazon_dynamo_db" MstrDatabaseTypeAmazonRedshift MstrDatabaseType = "amazon_redshift" MstrDatabaseTypeArcadiaPlatform MstrDatabaseType = "arcadia_platform" MstrDatabaseTypeAster MstrDatabaseType = "aster" MstrDatabaseTypeAzureCosmos MstrDatabaseType = "azure_cosmos" MstrDatabaseTypeBigDataEngine MstrDatabaseType = "big_data_engine" MstrDatabaseTypeCassandra MstrDatabaseType = "cassandra" MstrDatabaseTypeCirro MstrDatabaseType = "cirro" MstrDatabaseTypeCloudElement MstrDatabaseType = "cloud_element" MstrDatabaseTypeCloudGateway MstrDatabaseType = "cloud_gateway" MstrDatabaseTypeCloudGatewayAwsS3 MstrDatabaseType = "cloud_gateway_aws_s3" MstrDatabaseTypeCloudGatewayAzureAdls2 MstrDatabaseType = "cloud_gateway_azure_adls_2" MstrDatabaseTypeCloudGatewayGoogleCloudStorage MstrDatabaseType = "cloud_gateway_google_cloud_storage" MstrDatabaseTypeComposite MstrDatabaseType = "composite" MstrDatabaseTypeConcur MstrDatabaseType = "concur" MstrDatabaseTypeConnectionCloud MstrDatabaseType = "connection_cloud" MstrDatabaseTypeDatabricks MstrDatabaseType = "databricks" MstrDatabaseTypeDataDirectCloud MstrDatabaseType = "data_direct_cloud" MstrDatabaseTypeDatallegro MstrDatabaseType = "datallegro" MstrDatabaseTypeDb2 MstrDatabaseType = "db2" MstrDatabaseTypeDenodo MstrDatabaseType = "denodo" MstrDatabaseTypeDremio MstrDatabaseType = "dremio" MstrDatabaseTypeDrill MstrDatabaseType = "drill" MstrDatabaseTypeDropbox MstrDatabaseType = "dropbox" MstrDatabaseTypeDruid MstrDatabaseType = "druid" MstrDatabaseTypeElasticsearch MstrDatabaseType = "elasticsearch" MstrDatabaseTypeEloqua MstrDatabaseType = "eloqua" MstrDatabaseTypeEnterpriseDb MstrDatabaseType = "enterprise_db" MstrDatabaseTypeEssBase MstrDatabaseType = "ess_base" MstrDatabaseTypeExaSolution MstrDatabaseType = "exa_solution" MstrDatabaseTypeExcel MstrDatabaseType = "excel" MstrDatabaseTypeFacebook MstrDatabaseType = "facebook" MstrDatabaseTypeFinancialforce MstrDatabaseType = "financialforce" MstrDatabaseTypeGbase8a MstrDatabaseType = "gbase_8a" MstrDatabaseTypeGeneric MstrDatabaseType = "generic" MstrDatabaseTypeGenericDataConnector MstrDatabaseType = "generic_data_connector" MstrDatabaseTypeGitHub MstrDatabaseType = "github" MstrDatabaseTypeGoogleAnalytics MstrDatabaseType = "google_analytics" MstrDatabaseTypeGoogleBigQuery MstrDatabaseType = "google_big_query" MstrDatabaseTypeGoogleBigQueryFFSql MstrDatabaseType = "google_big_query_ff_sql" MstrDatabaseTypeGoogleCloudSpanner MstrDatabaseType = "google_cloud_spanner" MstrDatabaseTypeGoogleDrive MstrDatabaseType = "google_drive" MstrDatabaseTypeHive MstrDatabaseType = "hive" MstrDatabaseTypeHiveThrift MstrDatabaseType = "hive_thrift" MstrDatabaseTypeHubspot MstrDatabaseType = "hubspot" MstrDatabaseTypeIbmIps MstrDatabaseType = "ibm_ips" MstrDatabaseTypeImpala MstrDatabaseType = "impala" MstrDatabaseTypeInformatica MstrDatabaseType = "informatica" MstrDatabaseTypeInformix MstrDatabaseType = "informix" MstrDatabaseTypeJira MstrDatabaseType = "jira" MstrDatabaseTypeKafka MstrDatabaseType = "kafka" MstrDatabaseTypeKognitiowx2 MstrDatabaseType = "kognitiowx2" MstrDatabaseTypeKyvos_mdx MstrDatabaseType = "kyvos_mdx" MstrDatabaseTypeMapd MstrDatabaseType = "mapd" MstrDatabaseTypeMarketo MstrDatabaseType = "marketo" MstrDatabaseTypeMarkLogic MstrDatabaseType = "mark_logic" MstrDatabaseTypeMemSql MstrDatabaseType = "mem_sql" MstrDatabaseTypeMetamatrix MstrDatabaseType = "metamatrix" MstrDatabaseTypeMicrosoftAS MstrDatabaseType = "microsoft_as" MstrDatabaseTypeMicrosoftDynamicsCRM MstrDatabaseType = "microsoft_dynamics_crm" MstrDatabaseTypeMicrosoftDynamicsERP MstrDatabaseType = "microsoft_dynamics_erp" MstrDatabaseTypeMicrosoftDynamics365 MstrDatabaseType = "microsoft_dynamics_365" MstrDatabaseTypeMicrosoftFabric MstrDatabaseType = "microsoft_fabric" MstrDatabaseTypeMongoBI MstrDatabaseType = "mongo_bi" MstrDatabaseTypeMongoDB MstrDatabaseType = "mongo_db" MstrDatabaseTypeMySQL MstrDatabaseType = "my_sql" MstrDatabaseTypeNeo4j MstrDatabaseType = "neo4j" MstrDatabaseTypeNeoview MstrDatabaseType = "neoview" MstrDatabaseTypeNetezza MstrDatabaseType = "netezza" MstrDatabaseTypeOdata MstrDatabaseType = "odata" MstrDatabaseTypeOpenAccess MstrDatabaseType = "open_access" MstrDatabaseTypeOracle MstrDatabaseType = "oracle" MstrDatabaseTypeOracleCxSales MstrDatabaseType = "oracle_cx_sales" MstrDatabaseTypeOracleCxService MstrDatabaseType = "oracle_cx_service" MstrDatabaseTypeOracleEloqua MstrDatabaseType = "oracle_eloqua" MstrDatabaseTypePalantirFoundry MstrDatabaseType = "palantir_foundry" MstrDatabaseTypeParAccel MstrDatabaseType = "par_accel" MstrDatabaseTypeParStream MstrDatabaseType = "par_stream" MstrDatabaseTypePaypal MstrDatabaseType = "paypal" MstrDatabaseTypePhoenix MstrDatabaseType = "phoenix" MstrDatabaseTypePig MstrDatabaseType = "pig" MstrDatabaseTypePivotalHawq MstrDatabaseType = "pivotal_hawq" MstrDatabaseTypePostgreSQL MstrDatabaseType = "postgre_sql" MstrDatabaseTypePresto MstrDatabaseType = "presto" MstrDatabaseTypePython MstrDatabaseType = "python" MstrDatabaseTypeRedBrick MstrDatabaseType = "red_brick" MstrDatabaseTypeSalesforce MstrDatabaseType = "salesforce" MstrDatabaseTypeSand MstrDatabaseType = "sand" MstrDatabaseTypeSAP MstrDatabaseType = "sap" MstrDatabaseTypeSAPBW4Hana MstrDatabaseType = "sap_bw4_hana" MstrDatabaseTypeSAPBWOdata MstrDatabaseType = "sap_bw_odata" MstrDatabaseTypeSAPEccOdata MstrDatabaseType = "sap_ecc_odata" MstrDatabaseTypeSAPHana MstrDatabaseType = "sap_hana" MstrDatabaseTypeSAPHanaMDX MstrDatabaseType = "sap_hana_mdx" MstrDatabaseTypeSAPS4Hana MstrDatabaseType = "sap_s4_hana" MstrDatabaseTypeSearchEngine MstrDatabaseType = "search_engine" MstrDatabaseTypeServicemax MstrDatabaseType = "servicemax" MstrDatabaseTypeServiceNow MstrDatabaseType = "servicenow" MstrDatabaseTypeShopify MstrDatabaseType = "shopify" MstrDatabaseTypeSnowflake MstrDatabaseType = "snow_flake" MstrDatabaseTypeSparkConfig MstrDatabaseType = "spark_config" MstrDatabaseTypeSparkSQL MstrDatabaseType = "spark_sql" MstrDatabaseTypeSplunk MstrDatabaseType = "splunk" MstrDatabaseTypeSqlServer MstrDatabaseType = "sql_server" MstrDatabaseTypeSquare MstrDatabaseType = "square" MstrDatabaseTypeStarburst MstrDatabaseType = "starburst" MstrDatabaseTypeSugarCRM MstrDatabaseType = "sugar_crm" MstrDatabaseTypeSybase MstrDatabaseType = "sybase" MstrDatabaseTypeSybaseIQ MstrDatabaseType = "sybase_iq" MstrDatabaseTypeSybaseSQLAny MstrDatabaseType = "sybase_sql_any" MstrDatabaseTypeTandem MstrDatabaseType = "tandem" MstrDatabaseTypeTeamCity MstrDatabaseType = "teamcity" MstrDatabaseTypeTeradata MstrDatabaseType = "teradata" MstrDatabaseTypeTM1 MstrDatabaseType = "tm1" MstrDatabaseTypeTrino MstrDatabaseType = "trino" MstrDatabaseTypeTwitter MstrDatabaseType = "twitter" MstrDatabaseTypeUnknown MstrDatabaseType = "unknown" MstrDatabaseTypeUrlAuth MstrDatabaseType = "url_auth" MstrDatabaseTypeVectorwise MstrDatabaseType = "vectorwise" MstrDatabaseTypeVertica MstrDatabaseType = "vertica" MstrDatabaseTypeXQuery MstrDatabaseType = "xquery" MstrDatabaseTypeYellowbrick MstrDatabaseType = "yellowbrick" )
type MstrObject ¶
type MstrObject struct { ID string `json:"id"` Name string `json:"name"` Description *string `json:"description,omitempty"` DateCreated *MstrRestTimestamp `json:"dateCreated,omitempty"` DateModified *MstrRestTimestamp `json:"dateModified,omitempty"` }
type MstrOwner ¶
type MstrOwner struct { MstrObject Expired bool `json:"expired"` }
type MstrProject ¶
type MstrProject struct {
MstrObject
}
type MstrProjectSetting ¶
type MstrProjectSetting struct {
Value interface{} `json:"value"`
}
type MstrProjectSettings ¶
type MstrProjectSettings map[string]MstrProjectSetting
type MstrRestDataSource ¶
type MstrRestDataSource struct { MstrObject AccessRightsFlags int `json:"acg"` Database DatabaseInfo `json:"database"` TablePrefix string `json:"tablePrefix"` OdbcVerion OdbcVersion `json:"odbcVersion"` IntermediateStoreDatabaseName string `json:"intermediateStoreDbName"` IntermediateStoreTablespaceName string `json:"intermediateStoreTableSpaceName"` DBMS MstrObject `json:"dbms"` Owner MstrObject `json:"owner"` Hidden bool `json:"hidden"` Script struct { ID string `json:"id"` } `json:"script"` }
type MstrRestError ¶
type MstrRestError struct { Code string `json:"code"` IntelligenceServerCode int `json:"iServerCode"` Message string `json:"message"` TicketID string `json:"ticketId"` SubErrors []MstrRestSubError `json:"subErrors"` }
func (*MstrRestError) Error ¶
func (e *MstrRestError) Error() string
type MstrRestMultiStatusResponse ¶
type MstrRestMultiStatusResponse struct {
Results []MstrRestStatusResponse `json:"results"`
}
type MstrRestObjectEmbedded ¶
type MstrRestStatusResponse ¶
type MstrRestSubError ¶
type MstrRestSubError struct { IntelligenceServerCode int `json:"iServerCode"` Message string `json:"message"` AdditionalProperties MstrRestErrorAdditionalProperties `json:"additionalProperties"` }
type MstrRestTimestamp ¶
func (MstrRestTimestamp) MarshalJSON ¶
func (t MstrRestTimestamp) MarshalJSON() ([]byte, error)
func (*MstrRestTimestamp) UnmarshalJSON ¶
func (t *MstrRestTimestamp) UnmarshalJSON(data []byte) error
type OdbcVersion ¶
type OdbcVersion string
const ( OdbcVersion2x OdbcVersion = "version2x" OdbcVersion3x OdbcVersion = "version3x" )
type StandardAuthentication ¶
func (*StandardAuthentication) AuthenticationMode ¶
func (a *StandardAuthentication) AuthenticationMode() MstrAuthenticationMode
func (*StandardAuthentication) AuthenticationRequest ¶
func (a *StandardAuthentication) AuthenticationRequest(applicationType *MstrApplicationType) *AuthenticationRequest
Click to show internal directories.
Click to hide internal directories.