client

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BqConnectionType = "bigquery"
View Source
const BqConnectionTypeResponse = "BIGQUERY"
View Source
const GetDomainQuery string = "" /* 126-byte string literal not displayed */
View Source
const GetWarehouseQuery string = "" /* 133-byte string literal not displayed */
View Source
const TrxConnectionType = "transactional-db"
View Source
const TrxConnectionTypeResponse = "TRANSACTIONAL_DB"

Variables

This section is empty.

Functions

This section is empty.

Types

type AddConnection

type AddConnection struct {
	AddConnection struct {
		Connection struct {
			Uuid      string
			CreatedOn string
			UpdatedOn string
			Warehouse struct {
				Name string
				Uuid string
			}
		}
	} `` /* 170-byte string literal not displayed */
}

type AuthorizationGroup

type AuthorizationGroup struct {
	Name               string
	Label              string
	Description        string
	IsManaged          bool
	Roles              []struct{ Name string }
	DomainRestrictions []struct{ Uuid string }
	SsoGroup           *string
	Users              []AuthorizationGroupUser
}

type AuthorizationGroupUser

type AuthorizationGroupUser struct {
	CognitoUserId string
	Email         string
	FirstName     string
	LastName      string
	IsSso         bool
}

type BqTestDiagnostic

type BqTestDiagnostic struct {
	Cause           string
	FriendlyMessage string
	Resolution      string
}

type BqTestErrors

type BqTestErrors []BqTestDiagnostic

type BqTestWarnings

type BqTestWarnings []BqTestDiagnostic

type CreateOrUpdateAuthorizationGroup

type CreateOrUpdateAuthorizationGroup struct {
	CreateOrUpdateAuthorizationGroup struct {
		AuthorizationGroup AuthorizationGroup
	} `` /* 178-byte string literal not displayed */
}

type CreateOrUpdateComparisonRule

type CreateOrUpdateComparisonRule struct {
	CreateOrUpdateComparisonRule struct {
		CustomRule struct {
			Uuid              string
			AccountUuid       string
			Projects          []string
			Datasets          []string
			Description       string
			Notes             string
			Labels            []string
			IsTemplateManaged bool
			Namespace         string
			Severity          string
			RuleType          string
			WarehouseUuid     string
			Comparisons       []struct {
				ComparisonType string
				FullTableId    string
				FullTableIds   []string
				Field          string
				Metric         string
				Operator       string
				Threshold      float64
			}
		}
	} `` /* 391-byte string literal not displayed */
}

type CreateOrUpdateDomain

type CreateOrUpdateDomain struct {
	CreateOrUpdateDomain struct {
		Domain struct {
			Assignments []string
			Tags        []TagKeyValuePairOutput
			Name        string
			Description string
			Uuid        string
		}
	} `graphql:"createOrUpdateDomain(assignments: $assignments, tags: $tags, name: $name, description: $description, uuid: $uuid)"`
}

type DatabaseTestDiagnostic

type DatabaseTestDiagnostic struct {
	Message string
	Type    string
}

type DeleteAuthorizationGroup

type DeleteAuthorizationGroup struct {
	DeleteAuthorizationGroup struct {
		Deleted int
	} `graphql:"deleteAuthorizationGroup(name: $name)"`
}

type DeleteDomain

type DeleteDomain struct {
	DeleteDomain struct {
		Deleted int
	} `graphql:"deleteDomain(uuid: $uuid)"`
}

type GetAuthorizationGroups

type GetAuthorizationGroups struct {
	GetAuthorizationGroups []AuthorizationGroup `graphql:"getAuthorizationGroups"`
}

type GetDomain

type GetDomain struct {
	GetDomain *struct {
		Uuid           string                  `json:"uuid"`
		Name           string                  `json:"name"`
		Description    string                  `json:"description"`
		CreatedByEmail string                  `json:"createdByEmail"`
		Tags           []TagKeyValuePairOutput `json:"tags"`
		Assignments    []string                `json:"assignments"`
	} `json:"getDomain"`
}

type GetTables

type GetTables struct {
	GetTables struct {
		Edges    []GetTablesEdge
		PageInfo struct {
			StartCursor string
			EndCursor   string
			HasNextPage bool
		}
	} `graphql:"getTables(dwId: $dwId, first: $first, after: $after, isDeleted: $isDeleted, isExcluded: $isExcluded)"`
}

type GetTablesEdge

type GetTablesEdge struct {
	Node struct {
		Mcon        string
		ProjectName string
		Dataset     string
		TableId     string
		Warehouse   struct {
			Uuid    string
			Account struct {
				Uuid string
			}
		}
	}
}

type GetUsersInAccount

type GetUsersInAccount struct {
	GetUsersInAccount struct {
		Edges []struct {
			Node User
		}
		PageInfo struct {
			StartCursor string
			EndCursor   string
			HasNextPage bool
		}
	} `graphql:"getUsersInAccount(email: $email, first: $first, after: $after)"`
}

type GetWarehouse

type GetWarehouse struct {
	GetWarehouse *struct {
		Name        string `json:"name"`
		Connections []struct {
			Uuid      string `json:"uuid"`
			Type      string `json:"type"`
			CreatedOn string `json:"createdOn"`
			UpdatedOn string `json:"updatedOn"`
		} `json:"connections"`
		DataCollector struct {
			Uuid string `json:"uuid"`
		} `json:"dataCollector"`
	} `json:"getWarehouse"`
}

type JSONString

type JSONString string

type MonteCarloClient

type MonteCarloClient interface {
	Mutate(ctx context.Context, m interface{}, variables map[string]interface{}, options ...graphql.Option) error
	Query(ctx context.Context, q interface{}, variables map[string]interface{}, options ...graphql.Option) error
	ExecRaw(ctx context.Context, query string, variables map[string]interface{}, options ...graphql.Option) ([]byte, error)
}

client interface

func NewMonteCarloClient

func NewMonteCarloClient(context context.Context, api_key_id string, api_key_token string) (MonteCarloClient, error)

type RemoveConnection

type RemoveConnection struct {
	RemoveConnection struct {
		Success bool
	} `graphql:"removeConnection(connectionId: $connectionId)"`
}

type SetWarehouseName

type SetWarehouseName struct {
	SetWarehouseName struct {
		Warehouse struct {
			Uuid string
			Name string
		}
	} `graphql:"setWarehouseName(dwId: $dwId, name: $name)"`
}

type TagKeyValuePairInput

type TagKeyValuePairInput TagPair

type TagKeyValuePairOutput

type TagKeyValuePairOutput TagPair

type TagPair

type TagPair struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type TestBqCredentialsV2

type TestBqCredentialsV2 struct {
	TestBqCredentialsV2 struct {
		Key              string
		ValidationResult struct {
			Success  bool
			Warnings BqTestWarnings
			Errors   BqTestErrors
		}
	} `graphql:"testBqCredentialsV2(validationName: $validationName, connectionDetails: $connectionDetails)"`
}

type TestDatabaseCredentials

type TestDatabaseCredentials struct {
	TestDatabaseCredentials struct {
		Key         string
		Success     bool
		Warnings    []DatabaseTestDiagnostic
		Validations []DatabaseTestDiagnostic
	} `` /* 160-byte string literal not displayed */
}

type UUID

type UUID string

type UpdateCredentials

type UpdateCredentials struct {
	UpdateCredentials struct {
		Success   bool
		UpdatedAt string
	} `` /* 139-byte string literal not displayed */
}

type UpdateCredentialsV2

type UpdateCredentialsV2 struct {
	UpdateCredentialsV2 struct {
		Success   bool
		UpdatedAt string
	} `graphql:"updateCredentialsV2(connectionId: $connectionId, tempCredentialsKey: $tempCredentialsKey)"`
}

type UpdateUserAuthorizationGroupMembership

type UpdateUserAuthorizationGroupMembership struct {
	UpdateUserAuthorizationGroupMembership struct {
		AddedToGroups []struct {
			Name        string
			Label       string
			Description string
		}
		RemovedFromGroups []struct {
			Name        string
			Label       string
			Description string
		}
	} `graphql:"updateUserAuthorizationGroupMembership(memberUserId: $memberUserId, groupNames: $groupNames)"`
}

type User

type User struct {
	CognitoUserId string
	Email         string
	FirstName     string
	LastName      string
	IsSso         bool
	Auth          struct {
		Groups []string
	}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL