Documentation ¶
Index ¶
- Constants
- type AddUsersToWorkGroupRequest
- type AddUsersToWorkGroupResponse
- type AttachUserPolicyRequest
- type AttachUserPolicyResponse
- type AttachWorkGroupPolicyRequest
- type AttachWorkGroupPolicyResponse
- type BindWorkGroupsToUserRequest
- type BindWorkGroupsToUserResponse
- type CSV
- type CSVSerde
- type CancelTaskRequest
- type CancelTaskResponse
- type Client
- func (c *Client) AddUsersToWorkGroup(request *AddUsersToWorkGroupRequest) (response *AddUsersToWorkGroupResponse, err error)
- func (c *Client) AddUsersToWorkGroupWithContext(ctx context.Context, request *AddUsersToWorkGroupRequest) (response *AddUsersToWorkGroupResponse, err error)
- func (c *Client) AttachUserPolicy(request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
- func (c *Client) AttachUserPolicyWithContext(ctx context.Context, request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
- func (c *Client) AttachWorkGroupPolicy(request *AttachWorkGroupPolicyRequest) (response *AttachWorkGroupPolicyResponse, err error)
- func (c *Client) AttachWorkGroupPolicyWithContext(ctx context.Context, request *AttachWorkGroupPolicyRequest) (response *AttachWorkGroupPolicyResponse, err error)
- func (c *Client) BindWorkGroupsToUser(request *BindWorkGroupsToUserRequest) (response *BindWorkGroupsToUserResponse, err error)
- func (c *Client) BindWorkGroupsToUserWithContext(ctx context.Context, request *BindWorkGroupsToUserRequest) (response *BindWorkGroupsToUserResponse, err error)
- func (c *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error)
- func (c *Client) CancelTaskWithContext(ctx context.Context, request *CancelTaskRequest) (response *CancelTaskResponse, err error)
- func (c *Client) CreateDatabase(request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
- func (c *Client) CreateDatabaseWithContext(ctx context.Context, request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
- func (c *Client) CreateExportTask(request *CreateExportTaskRequest) (response *CreateExportTaskResponse, err error)
- func (c *Client) CreateExportTaskWithContext(ctx context.Context, request *CreateExportTaskRequest) (response *CreateExportTaskResponse, err error)
- func (c *Client) CreateImportTask(request *CreateImportTaskRequest) (response *CreateImportTaskResponse, err error)
- func (c *Client) CreateImportTaskWithContext(ctx context.Context, request *CreateImportTaskRequest) (response *CreateImportTaskResponse, err error)
- func (c *Client) CreateScript(request *CreateScriptRequest) (response *CreateScriptResponse, err error)
- func (c *Client) CreateScriptWithContext(ctx context.Context, request *CreateScriptRequest) (response *CreateScriptResponse, err error)
- func (c *Client) CreateStoreLocation(request *CreateStoreLocationRequest) (response *CreateStoreLocationResponse, err error)
- func (c *Client) CreateStoreLocationWithContext(ctx context.Context, request *CreateStoreLocationRequest) (response *CreateStoreLocationResponse, err error)
- func (c *Client) CreateTable(request *CreateTableRequest) (response *CreateTableResponse, err error)
- func (c *Client) CreateTableWithContext(ctx context.Context, request *CreateTableRequest) (response *CreateTableResponse, err error)
- func (c *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error)
- func (c *Client) CreateTaskWithContext(ctx context.Context, request *CreateTaskRequest) (response *CreateTaskResponse, err error)
- func (c *Client) CreateTasks(request *CreateTasksRequest) (response *CreateTasksResponse, err error)
- func (c *Client) CreateTasksInOrder(request *CreateTasksInOrderRequest) (response *CreateTasksInOrderResponse, err error)
- func (c *Client) CreateTasksInOrderWithContext(ctx context.Context, request *CreateTasksInOrderRequest) (response *CreateTasksInOrderResponse, err error)
- func (c *Client) CreateTasksWithContext(ctx context.Context, request *CreateTasksRequest) (response *CreateTasksResponse, err error)
- func (c *Client) CreateUser(request *CreateUserRequest) (response *CreateUserResponse, err error)
- func (c *Client) CreateUserWithContext(ctx context.Context, request *CreateUserRequest) (response *CreateUserResponse, err error)
- func (c *Client) CreateWorkGroup(request *CreateWorkGroupRequest) (response *CreateWorkGroupResponse, err error)
- func (c *Client) CreateWorkGroupWithContext(ctx context.Context, request *CreateWorkGroupRequest) (response *CreateWorkGroupResponse, err error)
- func (c *Client) DeleteScript(request *DeleteScriptRequest) (response *DeleteScriptResponse, err error)
- func (c *Client) DeleteScriptWithContext(ctx context.Context, request *DeleteScriptRequest) (response *DeleteScriptResponse, err error)
- func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)
- func (c *Client) DeleteUserWithContext(ctx context.Context, request *DeleteUserRequest) (response *DeleteUserResponse, err error)
- func (c *Client) DeleteUsersFromWorkGroup(request *DeleteUsersFromWorkGroupRequest) (response *DeleteUsersFromWorkGroupResponse, err error)
- func (c *Client) DeleteUsersFromWorkGroupWithContext(ctx context.Context, request *DeleteUsersFromWorkGroupRequest) (response *DeleteUsersFromWorkGroupResponse, err error)
- func (c *Client) DeleteWorkGroup(request *DeleteWorkGroupRequest) (response *DeleteWorkGroupResponse, err error)
- func (c *Client) DeleteWorkGroupWithContext(ctx context.Context, request *DeleteWorkGroupRequest) (response *DeleteWorkGroupResponse, err error)
- func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
- func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
- func (c *Client) DescribeScripts(request *DescribeScriptsRequest) (response *DescribeScriptsResponse, err error)
- func (c *Client) DescribeScriptsWithContext(ctx context.Context, request *DescribeScriptsRequest) (response *DescribeScriptsResponse, err error)
- func (c *Client) DescribeStoreLocation(request *DescribeStoreLocationRequest) (response *DescribeStoreLocationResponse, err error)
- func (c *Client) DescribeStoreLocationWithContext(ctx context.Context, request *DescribeStoreLocationRequest) (response *DescribeStoreLocationResponse, err error)
- func (c *Client) DescribeTable(request *DescribeTableRequest) (response *DescribeTableResponse, err error)
- func (c *Client) DescribeTableWithContext(ctx context.Context, request *DescribeTableRequest) (response *DescribeTableResponse, err error)
- func (c *Client) DescribeTables(request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
- func (c *Client) DescribeTablesWithContext(ctx context.Context, request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
- func (c *Client) DescribeTaskResult(request *DescribeTaskResultRequest) (response *DescribeTaskResultResponse, err error)
- func (c *Client) DescribeTaskResultWithContext(ctx context.Context, request *DescribeTaskResultRequest) (response *DescribeTaskResultResponse, err error)
- func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
- func (c *Client) DescribeTasksWithContext(ctx context.Context, request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
- func (c *Client) DescribeUsers(request *DescribeUsersRequest) (response *DescribeUsersResponse, err error)
- func (c *Client) DescribeUsersWithContext(ctx context.Context, request *DescribeUsersRequest) (response *DescribeUsersResponse, err error)
- func (c *Client) DescribeViews(request *DescribeViewsRequest) (response *DescribeViewsResponse, err error)
- func (c *Client) DescribeViewsWithContext(ctx context.Context, request *DescribeViewsRequest) (response *DescribeViewsResponse, err error)
- func (c *Client) DescribeWorkGroups(request *DescribeWorkGroupsRequest) (response *DescribeWorkGroupsResponse, err error)
- func (c *Client) DescribeWorkGroupsWithContext(ctx context.Context, request *DescribeWorkGroupsRequest) (response *DescribeWorkGroupsResponse, err error)
- func (c *Client) DetachUserPolicy(request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
- func (c *Client) DetachUserPolicyWithContext(ctx context.Context, request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
- func (c *Client) DetachWorkGroupPolicy(request *DetachWorkGroupPolicyRequest) (response *DetachWorkGroupPolicyResponse, err error)
- func (c *Client) DetachWorkGroupPolicyWithContext(ctx context.Context, request *DetachWorkGroupPolicyRequest) (response *DetachWorkGroupPolicyResponse, err error)
- func (c *Client) ModifyUser(request *ModifyUserRequest) (response *ModifyUserResponse, err error)
- func (c *Client) ModifyUserWithContext(ctx context.Context, request *ModifyUserRequest) (response *ModifyUserResponse, err error)
- func (c *Client) ModifyWorkGroup(request *ModifyWorkGroupRequest) (response *ModifyWorkGroupResponse, err error)
- func (c *Client) ModifyWorkGroupWithContext(ctx context.Context, request *ModifyWorkGroupRequest) (response *ModifyWorkGroupResponse, err error)
- func (c *Client) UnbindWorkGroupsFromUser(request *UnbindWorkGroupsFromUserRequest) (response *UnbindWorkGroupsFromUserResponse, err error)
- func (c *Client) UnbindWorkGroupsFromUserWithContext(ctx context.Context, request *UnbindWorkGroupsFromUserRequest) (response *UnbindWorkGroupsFromUserResponse, err error)
- type Column
- type CreateDatabaseRequest
- type CreateDatabaseResponse
- type CreateExportTaskRequest
- type CreateExportTaskResponse
- type CreateImportTaskRequest
- type CreateImportTaskResponse
- type CreateScriptRequest
- type CreateScriptResponse
- type CreateStoreLocationRequest
- type CreateStoreLocationResponse
- type CreateTableRequest
- type CreateTableResponse
- type CreateTaskRequest
- type CreateTaskResponse
- type CreateTasksInOrderRequest
- type CreateTasksInOrderResponse
- type CreateTasksRequest
- type CreateTasksResponse
- type CreateUserRequest
- type CreateUserResponse
- type CreateWorkGroupRequest
- type CreateWorkGroupResponse
- type DataFormat
- type DatabaseInfo
- type DatabaseResponseInfo
- type DeleteScriptRequest
- type DeleteScriptResponse
- type DeleteUserRequest
- type DeleteUserResponse
- type DeleteUsersFromWorkGroupRequest
- type DeleteUsersFromWorkGroupResponse
- type DeleteWorkGroupRequest
- type DeleteWorkGroupResponse
- type DescribeDatabasesRequest
- type DescribeDatabasesResponse
- type DescribeScriptsRequest
- type DescribeScriptsResponse
- type DescribeStoreLocationRequest
- type DescribeStoreLocationResponse
- type DescribeTableRequest
- type DescribeTableResponse
- type DescribeTablesRequest
- type DescribeTablesResponse
- type DescribeTaskResultRequest
- type DescribeTaskResultResponse
- type DescribeTasksRequest
- type DescribeTasksResponse
- type DescribeUsersRequest
- type DescribeUsersResponse
- type DescribeViewsRequest
- type DescribeViewsResponse
- type DescribeWorkGroupsRequest
- type DescribeWorkGroupsResponse
- type DetachUserPolicyRequest
- type DetachUserPolicyResponse
- type DetachWorkGroupPolicyRequest
- type DetachWorkGroupPolicyResponse
- type Execution
- type Filter
- type KVPair
- type ModifyUserRequest
- type ModifyUserResponse
- type ModifyWorkGroupRequest
- type ModifyWorkGroupResponse
- type Other
- type Partition
- type Policy
- type Property
- type SQLTask
- type Script
- type TableBaseInfo
- type TableInfo
- type TableResponseInfo
- type Task
- type TaskResponseInfo
- type TaskResultInfo
- type TasksInfo
- type TextFile
- type UnbindWorkGroupsFromUserRequest
- type UnbindWorkGroupsFromUserResponse
- type UserIdSetOfWorkGroupId
- type UserInfo
- type UserMessage
- type ViewBaseInfo
- type ViewResponseInfo
- type WorkGroupIdSetOfUserId
- type WorkGroupInfo
- type WorkGroupMessage
Constants ¶
const ( // CAM签名/鉴权错误。 AUTHFAILURE = "AuthFailure" // 操作失败。 FAILEDOPERATION = "FailedOperation" // 另一个请求正在处理中,请稍后再试。 FAILEDOPERATION_ANOTHERREQUESTPROCESSING = "FailedOperation.AnotherRequestProcessing" // HTTP客户端请求失败。 FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" // 内部错误。 INTERNALERROR = "InternalError" // 数据库错误。 INTERNALERROR_DBERROR = "InternalError.DBError" // 参数错误。 INVALIDPARAMETER = "InvalidParameter" // 重复的工作组名称。 INVALIDPARAMETER_DUPLICATEGROUPNAME = "InvalidParameter.DuplicateGroupName" // 重复的用户名。 INVALIDPARAMETER_DUPLICATEUSERNAME = "InvalidParameter.DuplicateUserName" // 无效的访问策略。 INVALIDPARAMETER_INVALIDACCESSPOLICY = "InvalidParameter.InvalidAccessPolicy" // 无效的数据引擎名。 INVALIDPARAMETER_INVALIDDATAENGINENAME = "InvalidParameter.InvalidDataEngineName" // 无效的描述信息。 INVALIDPARAMETER_INVALIDDESCRIPTION = "InvalidParameter.InvalidDescription" // 无效的容错策略。 INVALIDPARAMETER_INVALIDFAILURETOLERANCE = "InvalidParameter.InvalidFailureTolerance" // 无效的工作组Id。 INVALIDPARAMETER_INVALIDGROUPID = "InvalidParameter.InvalidGroupId" // 无效的Offset值。 INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" // SQL解析失败。 INVALIDPARAMETER_INVALIDSQL = "InvalidParameter.InvalidSQL" // SQL数量不符合规范。 INVALIDPARAMETER_INVALIDSQLNUM = "InvalidParameter.InvalidSQLNum" // 不支持的排序类型。 INVALIDPARAMETER_INVALIDSORTBYTYPE = "InvalidParameter.InvalidSortByType" // 存储位置错误。 INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation" // 无效的taskid。 INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" // 无效的任务类型。 INVALIDPARAMETER_INVALIDTASKTYPE = "InvalidParameter.InvalidTaskType" // 无效用户名称。 INVALIDPARAMETER_INVALIDUSERALIAS = "InvalidParameter.InvalidUserAlias" // 无效的用户名。 INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" // 无效的用户类型。 INVALIDPARAMETER_INVALIDUSERTYPE = "InvalidParameter.InvalidUserType" // 无效的工作组名。 INVALIDPARAMETER_INVALIDWORKGROUPNAME = "InvalidParameter.InvalidWorkGroupName" // 任务已经结束,不能取消。 INVALIDPARAMETER_TASKALREADYFINISHED = "InvalidParameter.TaskAlreadyFinished" // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" // 缺少参数错误。 MISSINGPARAMETER = "MissingParameter" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" // 指定数据源连接没有找到。 RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound" // 账号余额不足,无法执行SQL任务。 RESOURCEUNAVAILABLE_BALANCEINSUFFICIENT = "ResourceUnavailable.BalanceInsufficient" // 资源售罄。 RESOURCESSOLDOUT = "ResourcesSoldOut" // 无权限授权策略。 RESOURCESSOLDOUT_UNAUTHORIZEDGRANTPOLICY = "ResourcesSoldOut.UnauthorizedGrantPolicy" // 无权限操作。 RESOURCESSOLDOUT_UNAUTHORIZEDOPERATION = "ResourcesSoldOut.UnauthorizedOperation" // 无权限回收权限。 RESOURCESSOLDOUT_UNAUTHORIZEDREVOKEPOLICY = "ResourcesSoldOut.UnauthorizedRevokePolicy" // 未授权操作。 UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // 子用户不是管理员,无权将用户添加到工作组。 UNAUTHORIZEDOPERATION_ADDUSERSTOWORKGROUP = "UnauthorizedOperation.AddUsersToWorkgroup" // 子用户不是管理员,无权绑定工作组到用户。 UNAUTHORIZEDOPERATION_BINDWORKGROUPSTOUSER = "UnauthorizedOperation.BindWorkgroupsToUser" // 子用户不是管理员,无权创建工作组。 UNAUTHORIZEDOPERATION_CREATEWORKGROUP = "UnauthorizedOperation.CreateWorkgroup" // 子用户不是管理员,无权删除用户。 UNAUTHORIZEDOPERATION_DELETEUSER = "UnauthorizedOperation.DeleteUser" // 子用户不是管理员,无权将用户从工作组解绑。 UNAUTHORIZEDOPERATION_DELETEUSERSFROMWORKGROUP = "UnauthorizedOperation.DeleteUsersFromWorkgroup" // 子用户不是管理员,无权删除工作组。 UNAUTHORIZEDOPERATION_DELETEWORKGROUP = "UnauthorizedOperation.DeleteWorkgroup" // 子用户无权授予特定权限。 UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" // 子用户不是管理员,无权修改用户信息。 UNAUTHORIZEDOPERATION_MODIFYUSERINFO = "UnauthorizedOperation.ModifyUserInfo" // 子用户不是管理员,无权修改工作组信息。 UNAUTHORIZEDOPERATION_MODIFYWORKGROUPINFO = "UnauthorizedOperation.ModifyWorkgroupInfo" // 子用户无权取消特定权限。 UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy" // 子用户不是管理员,无权将工作组和用户解绑。 UNAUTHORIZEDOPERATION_UNBINDWORKGROUPSFROMUSER = "UnauthorizedOperation.UnbindWorkgroupsFromUser" // 子用户无权使用计算引擎。 UNAUTHORIZEDOPERATION_USECOMPUTINGENGINE = "UnauthorizedOperation.UseComputingEngine" // 子用户不存在。 UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist" // 操作不支持。 UNSUPPORTEDOPERATION = "UnsupportedOperation" // 无法修改主账号。 UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported" )
const APIVersion = "2021-01-25"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddUsersToWorkGroupRequest ¶ added in v1.0.206
type AddUsersToWorkGroupRequest struct { *tchttp.BaseRequest // 要操作的工作组和用户信息 AddInfo *UserIdSetOfWorkGroupId `json:"AddInfo,omitempty" name:"AddInfo"` }
func NewAddUsersToWorkGroupRequest ¶ added in v1.0.206
func NewAddUsersToWorkGroupRequest() (request *AddUsersToWorkGroupRequest)
func (*AddUsersToWorkGroupRequest) FromJsonString ¶ added in v1.0.206
func (r *AddUsersToWorkGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUsersToWorkGroupRequest) ToJsonString ¶ added in v1.0.206
func (r *AddUsersToWorkGroupRequest) ToJsonString() string
type AddUsersToWorkGroupResponse ¶ added in v1.0.206
type AddUsersToWorkGroupResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAddUsersToWorkGroupResponse ¶ added in v1.0.206
func NewAddUsersToWorkGroupResponse() (response *AddUsersToWorkGroupResponse)
func (*AddUsersToWorkGroupResponse) FromJsonString ¶ added in v1.0.206
func (r *AddUsersToWorkGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AddUsersToWorkGroupResponse) ToJsonString ¶ added in v1.0.206
func (r *AddUsersToWorkGroupResponse) ToJsonString() string
type AttachUserPolicyRequest ¶ added in v1.0.206
type AttachUserPolicyRequest struct { *tchttp.BaseRequest // 用户Id,和子用户uin相同,需要先使用CreateUser接口创建用户。可以使用DescribeUsers接口查看。 UserId *string `json:"UserId,omitempty" name:"UserId"` // 鉴权策略集合 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` }
func NewAttachUserPolicyRequest ¶ added in v1.0.206
func NewAttachUserPolicyRequest() (request *AttachUserPolicyRequest)
func (*AttachUserPolicyRequest) FromJsonString ¶ added in v1.0.206
func (r *AttachUserPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachUserPolicyRequest) ToJsonString ¶ added in v1.0.206
func (r *AttachUserPolicyRequest) ToJsonString() string
type AttachUserPolicyResponse ¶ added in v1.0.206
type AttachUserPolicyResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachUserPolicyResponse ¶ added in v1.0.206
func NewAttachUserPolicyResponse() (response *AttachUserPolicyResponse)
func (*AttachUserPolicyResponse) FromJsonString ¶ added in v1.0.206
func (r *AttachUserPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachUserPolicyResponse) ToJsonString ¶ added in v1.0.206
func (r *AttachUserPolicyResponse) ToJsonString() string
type AttachWorkGroupPolicyRequest ¶ added in v1.0.206
type AttachWorkGroupPolicyRequest struct { *tchttp.BaseRequest // 工作组Id WorkGroupId *int64 `json:"WorkGroupId,omitempty" name:"WorkGroupId"` // 要绑定的策略集合 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` }
func NewAttachWorkGroupPolicyRequest ¶ added in v1.0.206
func NewAttachWorkGroupPolicyRequest() (request *AttachWorkGroupPolicyRequest)
func (*AttachWorkGroupPolicyRequest) FromJsonString ¶ added in v1.0.206
func (r *AttachWorkGroupPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachWorkGroupPolicyRequest) ToJsonString ¶ added in v1.0.206
func (r *AttachWorkGroupPolicyRequest) ToJsonString() string
type AttachWorkGroupPolicyResponse ¶ added in v1.0.206
type AttachWorkGroupPolicyResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewAttachWorkGroupPolicyResponse ¶ added in v1.0.206
func NewAttachWorkGroupPolicyResponse() (response *AttachWorkGroupPolicyResponse)
func (*AttachWorkGroupPolicyResponse) FromJsonString ¶ added in v1.0.206
func (r *AttachWorkGroupPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*AttachWorkGroupPolicyResponse) ToJsonString ¶ added in v1.0.206
func (r *AttachWorkGroupPolicyResponse) ToJsonString() string
type BindWorkGroupsToUserRequest ¶ added in v1.0.206
type BindWorkGroupsToUserRequest struct { *tchttp.BaseRequest // 绑定的用户和工作组信息 AddInfo *WorkGroupIdSetOfUserId `json:"AddInfo,omitempty" name:"AddInfo"` }
func NewBindWorkGroupsToUserRequest ¶ added in v1.0.206
func NewBindWorkGroupsToUserRequest() (request *BindWorkGroupsToUserRequest)
func (*BindWorkGroupsToUserRequest) FromJsonString ¶ added in v1.0.206
func (r *BindWorkGroupsToUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BindWorkGroupsToUserRequest) ToJsonString ¶ added in v1.0.206
func (r *BindWorkGroupsToUserRequest) ToJsonString() string
type BindWorkGroupsToUserResponse ¶ added in v1.0.206
type BindWorkGroupsToUserResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewBindWorkGroupsToUserResponse ¶ added in v1.0.206
func NewBindWorkGroupsToUserResponse() (response *BindWorkGroupsToUserResponse)
func (*BindWorkGroupsToUserResponse) FromJsonString ¶ added in v1.0.206
func (r *BindWorkGroupsToUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*BindWorkGroupsToUserResponse) ToJsonString ¶ added in v1.0.206
func (r *BindWorkGroupsToUserResponse) ToJsonString() string
type CSV ¶
type CSV struct { // 压缩格式,["Snappy", "Gzip", "None"选一]。 CodeCompress *string `json:"CodeCompress,omitempty" name:"CodeCompress"` // CSV序列化及反序列化数据结构。 CSVSerde *CSVSerde `json:"CSVSerde,omitempty" name:"CSVSerde"` // 标题行,默认为0。 // 注意:此字段可能返回 null,表示取不到有效值。 HeadLines *int64 `json:"HeadLines,omitempty" name:"HeadLines"` // 格式,默认值为CSV // 注意:此字段可能返回 null,表示取不到有效值。 Format *string `json:"Format,omitempty" name:"Format"` }
type CSVSerde ¶
type CSVSerde struct { // CSV序列化转义符,默认为"\\",最长8个字符,如 Escape: "/\" Escape *string `json:"Escape,omitempty" name:"Escape"` // CSV序列化字段域符,默认为"'",最长8个字符, 如 Quote: "\"" Quote *string `json:"Quote,omitempty" name:"Quote"` // CSV序列化分隔符,默认为"\t",最长8个字符, 如 Separator: "\t" Separator *string `json:"Separator,omitempty" name:"Separator"` }
type CancelTaskRequest ¶ added in v1.0.206
type CancelTaskRequest struct { *tchttp.BaseRequest // 任务Id,全局唯一 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` }
func NewCancelTaskRequest ¶ added in v1.0.206
func NewCancelTaskRequest() (request *CancelTaskRequest)
func (*CancelTaskRequest) FromJsonString ¶ added in v1.0.206
func (r *CancelTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CancelTaskRequest) ToJsonString ¶ added in v1.0.206
func (r *CancelTaskRequest) ToJsonString() string
type CancelTaskResponse ¶ added in v1.0.206
type CancelTaskResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCancelTaskResponse ¶ added in v1.0.206
func NewCancelTaskResponse() (response *CancelTaskResponse)
func (*CancelTaskResponse) FromJsonString ¶ added in v1.0.206
func (r *CancelTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CancelTaskResponse) ToJsonString ¶ added in v1.0.206
func (r *CancelTaskResponse) ToJsonString() string
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) AddUsersToWorkGroup ¶ added in v1.0.206
func (c *Client) AddUsersToWorkGroup(request *AddUsersToWorkGroupRequest) (response *AddUsersToWorkGroupResponse, err error)
AddUsersToWorkGroup 添加用户到工作组
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDGROUPID = "InvalidParameter.InvalidGroupId" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" UNAUTHORIZEDOPERATION_ADDUSERSTOWORKGROUP = "UnauthorizedOperation.AddUsersToWorkgroup"
func (*Client) AddUsersToWorkGroupWithContext ¶ added in v1.0.324
func (c *Client) AddUsersToWorkGroupWithContext(ctx context.Context, request *AddUsersToWorkGroupRequest) (response *AddUsersToWorkGroupResponse, err error)
AddUsersToWorkGroup 添加用户到工作组
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDGROUPID = "InvalidParameter.InvalidGroupId" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" UNAUTHORIZEDOPERATION_ADDUSERSTOWORKGROUP = "UnauthorizedOperation.AddUsersToWorkgroup"
func (*Client) AttachUserPolicy ¶ added in v1.0.206
func (c *Client) AttachUserPolicy(request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
AttachUserPolicy 绑定鉴权策略到用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" RESOURCESSOLDOUT_UNAUTHORIZEDGRANTPOLICY = "ResourcesSoldOut.UnauthorizedGrantPolicy" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) AttachUserPolicyWithContext ¶ added in v1.0.324
func (c *Client) AttachUserPolicyWithContext(ctx context.Context, request *AttachUserPolicyRequest) (response *AttachUserPolicyResponse, err error)
AttachUserPolicy 绑定鉴权策略到用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" RESOURCESSOLDOUT_UNAUTHORIZEDGRANTPOLICY = "ResourcesSoldOut.UnauthorizedGrantPolicy" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) AttachWorkGroupPolicy ¶ added in v1.0.206
func (c *Client) AttachWorkGroupPolicy(request *AttachWorkGroupPolicyRequest) (response *AttachWorkGroupPolicyResponse, err error)
AttachWorkGroupPolicy 绑定鉴权策略到工作组
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist"
func (*Client) AttachWorkGroupPolicyWithContext ¶ added in v1.0.324
func (c *Client) AttachWorkGroupPolicyWithContext(ctx context.Context, request *AttachWorkGroupPolicyRequest) (response *AttachWorkGroupPolicyResponse, err error)
AttachWorkGroupPolicy 绑定鉴权策略到工作组
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist"
func (*Client) BindWorkGroupsToUser ¶ added in v1.0.206
func (c *Client) BindWorkGroupsToUser(request *BindWorkGroupsToUserRequest) (response *BindWorkGroupsToUserResponse, err error)
BindWorkGroupsToUser 绑定工作组到用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" UNAUTHORIZEDOPERATION_BINDWORKGROUPSTOUSER = "UnauthorizedOperation.BindWorkgroupsToUser" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) BindWorkGroupsToUserWithContext ¶ added in v1.0.324
func (c *Client) BindWorkGroupsToUserWithContext(ctx context.Context, request *BindWorkGroupsToUserRequest) (response *BindWorkGroupsToUserResponse, err error)
BindWorkGroupsToUser 绑定工作组到用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" UNAUTHORIZEDOPERATION_BINDWORKGROUPSTOUSER = "UnauthorizedOperation.BindWorkgroupsToUser" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) CancelTask ¶ added in v1.0.206
func (c *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error)
CancelTask 本接口(CancelTask),用于取消任务执行
可能返回的错误码:
FAILEDOPERATION_ANOTHERREQUESTPROCESSING = "FailedOperation.AnotherRequestProcessing" FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" INVALIDPARAMETER_TASKALREADYFINISHED = "InvalidParameter.TaskAlreadyFinished"
func (*Client) CancelTaskWithContext ¶ added in v1.0.324
func (c *Client) CancelTaskWithContext(ctx context.Context, request *CancelTaskRequest) (response *CancelTaskResponse, err error)
CancelTask 本接口(CancelTask),用于取消任务执行
可能返回的错误码:
FAILEDOPERATION_ANOTHERREQUESTPROCESSING = "FailedOperation.AnotherRequestProcessing" FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId" INVALIDPARAMETER_TASKALREADYFINISHED = "InvalidParameter.TaskAlreadyFinished"
func (*Client) CreateDatabase ¶
func (c *Client) CreateDatabase(request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
CreateDatabase 本接口(CreateDatabase)用于生成建库SQL语句。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) CreateDatabaseWithContext ¶ added in v1.0.324
func (c *Client) CreateDatabaseWithContext(ctx context.Context, request *CreateDatabaseRequest) (response *CreateDatabaseResponse, err error)
CreateDatabase 本接口(CreateDatabase)用于生成建库SQL语句。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) CreateExportTask ¶ added in v1.0.370
func (c *Client) CreateExportTask(request *CreateExportTaskRequest) (response *CreateExportTaskResponse, err error)
CreateExportTask 该接口(CreateExportTask)用于创建导出任务
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateExportTaskWithContext ¶ added in v1.0.370
func (c *Client) CreateExportTaskWithContext(ctx context.Context, request *CreateExportTaskRequest) (response *CreateExportTaskResponse, err error)
CreateExportTask 该接口(CreateExportTask)用于创建导出任务
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateImportTask ¶ added in v1.0.370
func (c *Client) CreateImportTask(request *CreateImportTaskRequest) (response *CreateImportTaskResponse, err error)
CreateImportTask 该接口(CreateImportTask)用于创建导入任务
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) CreateImportTaskWithContext ¶ added in v1.0.370
func (c *Client) CreateImportTaskWithContext(ctx context.Context, request *CreateImportTaskRequest) (response *CreateImportTaskResponse, err error)
CreateImportTask 该接口(CreateImportTask)用于创建导入任务
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) CreateScript ¶
func (c *Client) CreateScript(request *CreateScriptRequest) (response *CreateScriptResponse, err error)
CreateScript 该接口(CreateScript)用于创建sql脚本。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) CreateScriptWithContext ¶ added in v1.0.324
func (c *Client) CreateScriptWithContext(ctx context.Context, request *CreateScriptRequest) (response *CreateScriptResponse, err error)
CreateScript 该接口(CreateScript)用于创建sql脚本。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) CreateStoreLocation ¶
func (c *Client) CreateStoreLocation(request *CreateStoreLocationRequest) (response *CreateStoreLocationResponse, err error)
CreateStoreLocation 该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation"
func (*Client) CreateStoreLocationWithContext ¶ added in v1.0.324
func (c *Client) CreateStoreLocationWithContext(ctx context.Context, request *CreateStoreLocationRequest) (response *CreateStoreLocationResponse, err error)
CreateStoreLocation 该接口(CreateStoreLocation)新增或覆盖计算结果存储位置。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation"
func (*Client) CreateTable ¶
func (c *Client) CreateTable(request *CreateTableRequest) (response *CreateTableResponse, err error)
CreateTable 本接口(CreateTable)用于生成建表SQL。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) CreateTableWithContext ¶ added in v1.0.324
func (c *Client) CreateTableWithContext(ctx context.Context, request *CreateTableRequest) (response *CreateTableResponse, err error)
CreateTable 本接口(CreateTable)用于生成建表SQL。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) CreateTask ¶
func (c *Client) CreateTask(request *CreateTaskRequest) (response *CreateTaskResponse, err error)
CreateTask 本接口(CreateTask)用于创建sql查询任务。(推荐使用CreateTasks接口)
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDDATAENGINENAME = "InvalidParameter.InvalidDataEngineName" INVALIDPARAMETER_INVALIDSQL = "InvalidParameter.InvalidSQL" INVALIDPARAMETER_INVALIDSQLNUM = "InvalidParameter.InvalidSQLNum" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_BALANCEINSUFFICIENT = "ResourceUnavailable.BalanceInsufficient" UNAUTHORIZEDOPERATION_USECOMPUTINGENGINE = "UnauthorizedOperation.UseComputingEngine"
func (*Client) CreateTaskWithContext ¶ added in v1.0.324
func (c *Client) CreateTaskWithContext(ctx context.Context, request *CreateTaskRequest) (response *CreateTaskResponse, err error)
CreateTask 本接口(CreateTask)用于创建sql查询任务。(推荐使用CreateTasks接口)
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDDATAENGINENAME = "InvalidParameter.InvalidDataEngineName" INVALIDPARAMETER_INVALIDSQL = "InvalidParameter.InvalidSQL" INVALIDPARAMETER_INVALIDSQLNUM = "InvalidParameter.InvalidSQLNum" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_BALANCEINSUFFICIENT = "ResourceUnavailable.BalanceInsufficient" UNAUTHORIZEDOPERATION_USECOMPUTINGENGINE = "UnauthorizedOperation.UseComputingEngine"
func (*Client) CreateTasks ¶ added in v1.0.217
func (c *Client) CreateTasks(request *CreateTasksRequest) (response *CreateTasksResponse, err error)
CreateTasks 本接口(CreateTasks),用于批量创建任务
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDDATAENGINENAME = "InvalidParameter.InvalidDataEngineName" INVALIDPARAMETER_INVALIDFAILURETOLERANCE = "InvalidParameter.InvalidFailureTolerance" INVALIDPARAMETER_INVALIDSQL = "InvalidParameter.InvalidSQL" INVALIDPARAMETER_INVALIDSQLNUM = "InvalidParameter.InvalidSQLNum" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation" INVALIDPARAMETER_INVALIDTASKTYPE = "InvalidParameter.InvalidTaskType" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_BALANCEINSUFFICIENT = "ResourceUnavailable.BalanceInsufficient" UNAUTHORIZEDOPERATION_USECOMPUTINGENGINE = "UnauthorizedOperation.UseComputingEngine"
func (*Client) CreateTasksInOrder ¶ added in v1.0.216
func (c *Client) CreateTasksInOrder(request *CreateTasksInOrderRequest) (response *CreateTasksInOrderResponse, err error)
CreateTasksInOrder 按顺序创建任务(已经废弃,后期不再维护,请使用接口CreateTasks)
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDSQL = "InvalidParameter.InvalidSQL" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation"
func (*Client) CreateTasksInOrderWithContext ¶ added in v1.0.324
func (c *Client) CreateTasksInOrderWithContext(ctx context.Context, request *CreateTasksInOrderRequest) (response *CreateTasksInOrderResponse, err error)
CreateTasksInOrder 按顺序创建任务(已经废弃,后期不再维护,请使用接口CreateTasks)
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDSQL = "InvalidParameter.InvalidSQL" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation"
func (*Client) CreateTasksWithContext ¶ added in v1.0.324
func (c *Client) CreateTasksWithContext(ctx context.Context, request *CreateTasksRequest) (response *CreateTasksResponse, err error)
CreateTasks 本接口(CreateTasks),用于批量创建任务
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_DBERROR = "InternalError.DBError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDDATAENGINENAME = "InvalidParameter.InvalidDataEngineName" INVALIDPARAMETER_INVALIDFAILURETOLERANCE = "InvalidParameter.InvalidFailureTolerance" INVALIDPARAMETER_INVALIDSQL = "InvalidParameter.InvalidSQL" INVALIDPARAMETER_INVALIDSQLNUM = "InvalidParameter.InvalidSQLNum" INVALIDPARAMETER_INVALIDSTORELOCATION = "InvalidParameter.InvalidStoreLocation" INVALIDPARAMETER_INVALIDTASKTYPE = "InvalidParameter.InvalidTaskType" RESOURCENOTFOUND = "ResourceNotFound" RESOURCEUNAVAILABLE_BALANCEINSUFFICIENT = "ResourceUnavailable.BalanceInsufficient" UNAUTHORIZEDOPERATION_USECOMPUTINGENGINE = "UnauthorizedOperation.UseComputingEngine"
func (*Client) CreateUser ¶ added in v1.0.206
func (c *Client) CreateUser(request *CreateUserRequest) (response *CreateUserResponse, err error)
CreateUser 创建用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_DUPLICATEUSERNAME = "InvalidParameter.DuplicateUserName" INVALIDPARAMETER_INVALIDACCESSPOLICY = "InvalidParameter.InvalidAccessPolicy" INVALIDPARAMETER_INVALIDDESCRIPTION = "InvalidParameter.InvalidDescription" INVALIDPARAMETER_INVALIDUSERALIAS = "InvalidParameter.InvalidUserAlias" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" INVALIDPARAMETER_INVALIDUSERTYPE = "InvalidParameter.InvalidUserType" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_UNAUTHORIZEDGRANTPOLICY = "ResourcesSoldOut.UnauthorizedGrantPolicy" RESOURCESSOLDOUT_UNAUTHORIZEDOPERATION = "ResourcesSoldOut.UnauthorizedOperation" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist"
func (*Client) CreateUserWithContext ¶ added in v1.0.324
func (c *Client) CreateUserWithContext(ctx context.Context, request *CreateUserRequest) (response *CreateUserResponse, err error)
CreateUser 创建用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_DUPLICATEUSERNAME = "InvalidParameter.DuplicateUserName" INVALIDPARAMETER_INVALIDACCESSPOLICY = "InvalidParameter.InvalidAccessPolicy" INVALIDPARAMETER_INVALIDDESCRIPTION = "InvalidParameter.InvalidDescription" INVALIDPARAMETER_INVALIDUSERALIAS = "InvalidParameter.InvalidUserAlias" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" INVALIDPARAMETER_INVALIDUSERTYPE = "InvalidParameter.InvalidUserType" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_UNAUTHORIZEDGRANTPOLICY = "ResourcesSoldOut.UnauthorizedGrantPolicy" RESOURCESSOLDOUT_UNAUTHORIZEDOPERATION = "ResourcesSoldOut.UnauthorizedOperation" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist"
func (*Client) CreateWorkGroup ¶ added in v1.0.206
func (c *Client) CreateWorkGroup(request *CreateWorkGroupRequest) (response *CreateWorkGroupResponse, err error)
CreateWorkGroup 创建工作组
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_DUPLICATEGROUPNAME = "InvalidParameter.DuplicateGroupName" INVALIDPARAMETER_INVALIDDESCRIPTION = "InvalidParameter.InvalidDescription" INVALIDPARAMETER_INVALIDWORKGROUPNAME = "InvalidParameter.InvalidWorkGroupName" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_UNAUTHORIZEDGRANTPOLICY = "ResourcesSoldOut.UnauthorizedGrantPolicy" RESOURCESSOLDOUT_UNAUTHORIZEDOPERATION = "ResourcesSoldOut.UnauthorizedOperation" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_CREATEWORKGROUP = "UnauthorizedOperation.CreateWorkgroup" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist"
func (*Client) CreateWorkGroupWithContext ¶ added in v1.0.324
func (c *Client) CreateWorkGroupWithContext(ctx context.Context, request *CreateWorkGroupRequest) (response *CreateWorkGroupResponse, err error)
CreateWorkGroup 创建工作组
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_DUPLICATEGROUPNAME = "InvalidParameter.DuplicateGroupName" INVALIDPARAMETER_INVALIDDESCRIPTION = "InvalidParameter.InvalidDescription" INVALIDPARAMETER_INVALIDWORKGROUPNAME = "InvalidParameter.InvalidWorkGroupName" RESOURCESSOLDOUT = "ResourcesSoldOut" RESOURCESSOLDOUT_UNAUTHORIZEDGRANTPOLICY = "ResourcesSoldOut.UnauthorizedGrantPolicy" RESOURCESSOLDOUT_UNAUTHORIZEDOPERATION = "ResourcesSoldOut.UnauthorizedOperation" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_CREATEWORKGROUP = "UnauthorizedOperation.CreateWorkgroup" UNAUTHORIZEDOPERATION_GRANTPOLICY = "UnauthorizedOperation.GrantPolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist"
func (*Client) DeleteScript ¶
func (c *Client) DeleteScript(request *DeleteScriptRequest) (response *DeleteScriptResponse, err error)
DeleteScript 该接口(DeleteScript)用于删除sql脚本。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DeleteScriptWithContext ¶ added in v1.0.324
func (c *Client) DeleteScriptWithContext(ctx context.Context, request *DeleteScriptRequest) (response *DeleteScriptResponse, err error)
DeleteScript 该接口(DeleteScript)用于删除sql脚本。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DeleteUser ¶ added in v1.0.206
func (c *Client) DeleteUser(request *DeleteUserRequest) (response *DeleteUserResponse, err error)
DeleteUser 删除用户
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" RESOURCESSOLDOUT_UNAUTHORIZEDREVOKEPOLICY = "ResourcesSoldOut.UnauthorizedRevokePolicy" UNAUTHORIZEDOPERATION_DELETEUSER = "UnauthorizedOperation.DeleteUser" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) DeleteUserWithContext ¶ added in v1.0.324
func (c *Client) DeleteUserWithContext(ctx context.Context, request *DeleteUserRequest) (response *DeleteUserResponse, err error)
DeleteUser 删除用户
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDUSERNAME = "InvalidParameter.InvalidUserName" RESOURCESSOLDOUT_UNAUTHORIZEDREVOKEPOLICY = "ResourcesSoldOut.UnauthorizedRevokePolicy" UNAUTHORIZEDOPERATION_DELETEUSER = "UnauthorizedOperation.DeleteUser" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) DeleteUsersFromWorkGroup ¶ added in v1.0.206
func (c *Client) DeleteUsersFromWorkGroup(request *DeleteUsersFromWorkGroupRequest) (response *DeleteUsersFromWorkGroupResponse, err error)
DeleteUsersFromWorkGroup 从工作组中删除用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDGROUPID = "InvalidParameter.InvalidGroupId" UNAUTHORIZEDOPERATION_DELETEUSERSFROMWORKGROUP = "UnauthorizedOperation.DeleteUsersFromWorkgroup"
func (*Client) DeleteUsersFromWorkGroupWithContext ¶ added in v1.0.324
func (c *Client) DeleteUsersFromWorkGroupWithContext(ctx context.Context, request *DeleteUsersFromWorkGroupRequest) (response *DeleteUsersFromWorkGroupResponse, err error)
DeleteUsersFromWorkGroup 从工作组中删除用户
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDGROUPID = "InvalidParameter.InvalidGroupId" UNAUTHORIZEDOPERATION_DELETEUSERSFROMWORKGROUP = "UnauthorizedOperation.DeleteUsersFromWorkgroup"
func (*Client) DeleteWorkGroup ¶ added in v1.0.206
func (c *Client) DeleteWorkGroup(request *DeleteWorkGroupRequest) (response *DeleteWorkGroupResponse, err error)
DeleteWorkGroup 删除工作组
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_DELETEWORKGROUP = "UnauthorizedOperation.DeleteWorkgroup" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy"
func (*Client) DeleteWorkGroupWithContext ¶ added in v1.0.324
func (c *Client) DeleteWorkGroupWithContext(ctx context.Context, request *DeleteWorkGroupRequest) (response *DeleteWorkGroupResponse, err error)
DeleteWorkGroup 删除工作组
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_DELETEWORKGROUP = "UnauthorizedOperation.DeleteWorkgroup" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy"
func (*Client) DescribeDatabases ¶
func (c *Client) DescribeDatabases(request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
DescribeDatabases 本接口(DescribeDatabases)用于查询数据库列表。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeDatabasesWithContext ¶ added in v1.0.324
func (c *Client) DescribeDatabasesWithContext(ctx context.Context, request *DescribeDatabasesRequest) (response *DescribeDatabasesResponse, err error)
DescribeDatabases 本接口(DescribeDatabases)用于查询数据库列表。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeScripts ¶
func (c *Client) DescribeScripts(request *DescribeScriptsRequest) (response *DescribeScriptsResponse, err error)
DescribeScripts 该接口(DescribeScripts)用于获取所有SQL查询。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeScriptsWithContext ¶ added in v1.0.324
func (c *Client) DescribeScriptsWithContext(ctx context.Context, request *DescribeScriptsRequest) (response *DescribeScriptsResponse, err error)
DescribeScripts 该接口(DescribeScripts)用于获取所有SQL查询。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeStoreLocation ¶ added in v1.0.206
func (c *Client) DescribeStoreLocation(request *DescribeStoreLocationRequest) (response *DescribeStoreLocationResponse, err error)
DescribeStoreLocation 查询计算结果存储位置。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeStoreLocationWithContext ¶ added in v1.0.324
func (c *Client) DescribeStoreLocationWithContext(ctx context.Context, request *DescribeStoreLocationRequest) (response *DescribeStoreLocationResponse, err error)
DescribeStoreLocation 查询计算结果存储位置。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter"
func (*Client) DescribeTable ¶
func (c *Client) DescribeTable(request *DescribeTableRequest) (response *DescribeTableResponse, err error)
DescribeTable 本接口(DescribeTable),用于查询单个表的详细信息。
可能返回的错误码:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeTableWithContext ¶ added in v1.0.324
func (c *Client) DescribeTableWithContext(ctx context.Context, request *DescribeTableRequest) (response *DescribeTableResponse, err error)
DescribeTable 本接口(DescribeTable),用于查询单个表的详细信息。
可能返回的错误码:
AUTHFAILURE = "AuthFailure" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeTables ¶
func (c *Client) DescribeTables(request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
DescribeTables 本接口(DescribeTables)用于查询数据表列表。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeTablesWithContext ¶ added in v1.0.324
func (c *Client) DescribeTablesWithContext(ctx context.Context, request *DescribeTablesRequest) (response *DescribeTablesResponse, err error)
DescribeTables 本接口(DescribeTables)用于查询数据表列表。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeTaskResult ¶ added in v1.0.318
func (c *Client) DescribeTaskResult(request *DescribeTaskResultRequest) (response *DescribeTaskResultResponse, err error)
DescribeTaskResult 查询任务结果
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId"
func (*Client) DescribeTaskResultWithContext ¶ added in v1.0.324
func (c *Client) DescribeTaskResultWithContext(ctx context.Context, request *DescribeTaskResultRequest) (response *DescribeTaskResultResponse, err error)
DescribeTaskResult 查询任务结果
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_HTTPCLIENTDOREQUESTFAILED = "FailedOperation.HttpClientDoRequestFailed" INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETER_INVALIDTASKID = "InvalidParameter.InvalidTaskId"
func (*Client) DescribeTasks ¶
func (c *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
DescribeTasks 该接口(DescribleTasks)用于查询任务列表
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeTasksWithContext ¶ added in v1.0.324
func (c *Client) DescribeTasksWithContext(ctx context.Context, request *DescribeTasksRequest) (response *DescribeTasksResponse, err error)
DescribeTasks 该接口(DescribleTasks)用于查询任务列表
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (*Client) DescribeUsers ¶ added in v1.0.206
func (c *Client) DescribeUsers(request *DescribeUsersRequest) (response *DescribeUsersResponse, err error)
DescribeUsers 获取用户列表信息
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" INVALIDPARAMETER_INVALIDSORTBYTYPE = "InvalidParameter.InvalidSortByType"
func (*Client) DescribeUsersWithContext ¶ added in v1.0.324
func (c *Client) DescribeUsersWithContext(ctx context.Context, request *DescribeUsersRequest) (response *DescribeUsersResponse, err error)
DescribeUsers 获取用户列表信息
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" INVALIDPARAMETER_INVALIDSORTBYTYPE = "InvalidParameter.InvalidSortByType"
func (*Client) DescribeViews ¶
func (c *Client) DescribeViews(request *DescribeViewsRequest) (response *DescribeViewsResponse, err error)
DescribeViews 本接口(DescribeViews)用于查询数据视图列表。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeViewsWithContext ¶ added in v1.0.324
func (c *Client) DescribeViewsWithContext(ctx context.Context, request *DescribeViewsRequest) (response *DescribeViewsResponse, err error)
DescribeViews 本接口(DescribeViews)用于查询数据视图列表。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER = "InvalidParameter" RESOURCENOTFOUND_DATASOURCENOTFOUND = "ResourceNotFound.DatasourceNotFound"
func (*Client) DescribeWorkGroups ¶ added in v1.0.206
func (c *Client) DescribeWorkGroups(request *DescribeWorkGroupsRequest) (response *DescribeWorkGroupsResponse, err error)
DescribeWorkGroups 获取工作组列表
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" INVALIDPARAMETER_INVALIDSORTBYTYPE = "InvalidParameter.InvalidSortByType"
func (*Client) DescribeWorkGroupsWithContext ¶ added in v1.0.324
func (c *Client) DescribeWorkGroupsWithContext(ctx context.Context, request *DescribeWorkGroupsRequest) (response *DescribeWorkGroupsResponse, err error)
DescribeWorkGroups 获取工作组列表
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" INVALIDPARAMETER_INVALIDSORTBYTYPE = "InvalidParameter.InvalidSortByType"
func (*Client) DetachUserPolicy ¶ added in v1.0.206
func (c *Client) DetachUserPolicy(request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
DetachUserPolicy 解绑用户鉴权策略
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) DetachUserPolicyWithContext ¶ added in v1.0.324
func (c *Client) DetachUserPolicyWithContext(ctx context.Context, request *DetachUserPolicyRequest) (response *DetachUserPolicyResponse, err error)
DetachUserPolicy 解绑用户鉴权策略
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy" UNAUTHORIZEDOPERATION_USERNOTEXIST = "UnauthorizedOperation.UserNotExist" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) DetachWorkGroupPolicy ¶ added in v1.0.206
func (c *Client) DetachWorkGroupPolicy(request *DetachWorkGroupPolicyRequest) (response *DetachWorkGroupPolicyResponse, err error)
DetachWorkGroupPolicy 解绑工作组鉴权策略
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDACCESSPOLICY = "InvalidParameter.InvalidAccessPolicy" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy"
func (*Client) DetachWorkGroupPolicyWithContext ¶ added in v1.0.324
func (c *Client) DetachWorkGroupPolicyWithContext(ctx context.Context, request *DetachWorkGroupPolicyRequest) (response *DetachWorkGroupPolicyResponse, err error)
DetachWorkGroupPolicy 解绑工作组鉴权策略
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_INVALIDACCESSPOLICY = "InvalidParameter.InvalidAccessPolicy" UNAUTHORIZEDOPERATION_REVOKEPOLICY = "UnauthorizedOperation.RevokePolicy"
func (*Client) ModifyUser ¶ added in v1.0.206
func (c *Client) ModifyUser(request *ModifyUserRequest) (response *ModifyUserResponse, err error)
ModifyUser 修改用户信息
可能返回的错误码:
INTERNALERROR = "InternalError" RESOURCESSOLDOUT_UNAUTHORIZEDOPERATION = "ResourcesSoldOut.UnauthorizedOperation" UNAUTHORIZEDOPERATION_MODIFYUSERINFO = "UnauthorizedOperation.ModifyUserInfo" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) ModifyUserWithContext ¶ added in v1.0.324
func (c *Client) ModifyUserWithContext(ctx context.Context, request *ModifyUserRequest) (response *ModifyUserResponse, err error)
ModifyUser 修改用户信息
可能返回的错误码:
INTERNALERROR = "InternalError" RESOURCESSOLDOUT_UNAUTHORIZEDOPERATION = "ResourcesSoldOut.UnauthorizedOperation" UNAUTHORIZEDOPERATION_MODIFYUSERINFO = "UnauthorizedOperation.ModifyUserInfo" UNSUPPORTEDOPERATION_MODIFYOWNERUNSUPPORTED = "UnsupportedOperation.ModifyOwnerUnsupported"
func (*Client) ModifyWorkGroup ¶ added in v1.0.206
func (c *Client) ModifyWorkGroup(request *ModifyWorkGroupRequest) (response *ModifyWorkGroupResponse, err error)
ModifyWorkGroup 修改工作组信息
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_MODIFYWORKGROUPINFO = "UnauthorizedOperation.ModifyWorkgroupInfo"
func (*Client) ModifyWorkGroupWithContext ¶ added in v1.0.324
func (c *Client) ModifyWorkGroupWithContext(ctx context.Context, request *ModifyWorkGroupRequest) (response *ModifyWorkGroupResponse, err error)
ModifyWorkGroup 修改工作组信息
可能返回的错误码:
INTERNALERROR = "InternalError" UNAUTHORIZEDOPERATION_MODIFYWORKGROUPINFO = "UnauthorizedOperation.ModifyWorkgroupInfo"
func (*Client) UnbindWorkGroupsFromUser ¶ added in v1.0.206
func (c *Client) UnbindWorkGroupsFromUser(request *UnbindWorkGroupsFromUserRequest) (response *UnbindWorkGroupsFromUserResponse, err error)
UnbindWorkGroupsFromUser 解绑用户上的用户组
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_DUPLICATEUSERNAME = "InvalidParameter.DuplicateUserName" UNAUTHORIZEDOPERATION_UNBINDWORKGROUPSFROMUSER = "UnauthorizedOperation.UnbindWorkgroupsFromUser"
func (*Client) UnbindWorkGroupsFromUserWithContext ¶ added in v1.0.324
func (c *Client) UnbindWorkGroupsFromUserWithContext(ctx context.Context, request *UnbindWorkGroupsFromUserRequest) (response *UnbindWorkGroupsFromUserResponse, err error)
UnbindWorkGroupsFromUser 解绑用户上的用户组
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETER_DUPLICATEUSERNAME = "InvalidParameter.DuplicateUserName" UNAUTHORIZEDOPERATION_UNBINDWORKGROUPSFROMUSER = "UnauthorizedOperation.UnbindWorkgroupsFromUser"
type Column ¶
type Column struct { // 列名称,不区分大小写,最大支持25个字符。 Name *string `json:"Name,omitempty" name:"Name"` // 列类型,支持如下类型定义: // string|tinyint|smallint|int|bigint|boolean|float|double|decimal|timestamp|date|binary|array<data_type>|map<primitive_type, data_type>|struct<col_name : data_type [COMMENT col_comment], ...>|uniontype<data_type, data_type, ...>。 Type *string `json:"Type,omitempty" name:"Type"` // 对该类的注释。 // 注意:此字段可能返回 null,表示取不到有效值。 Comment *string `json:"Comment,omitempty" name:"Comment"` // 表示整个 numeric 的长度 // 注意:此字段可能返回 null,表示取不到有效值。 Precision *int64 `json:"Precision,omitempty" name:"Precision"` // 表示小数部分的长度 // 注意:此字段可能返回 null,表示取不到有效值。 Scale *int64 `json:"Scale,omitempty" name:"Scale"` // 是否为null // 注意:此字段可能返回 null,表示取不到有效值。 Nullable *string `json:"Nullable,omitempty" name:"Nullable"` // 字段位置,小的在前 // 注意:此字段可能返回 null,表示取不到有效值。 Position *int64 `json:"Position,omitempty" name:"Position"` // 字段创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 字段修改时间 // 注意:此字段可能返回 null,表示取不到有效值。 ModifiedTime *string `json:"ModifiedTime,omitempty" name:"ModifiedTime"` }
type CreateDatabaseRequest ¶
type CreateDatabaseRequest struct { *tchttp.BaseRequest // 数据库基础信息 DatabaseInfo *DatabaseInfo `json:"DatabaseInfo,omitempty" name:"DatabaseInfo"` // 数据源名称,默认为DataLakeCatalog DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` }
func NewCreateDatabaseRequest ¶
func NewCreateDatabaseRequest() (request *CreateDatabaseRequest)
func (*CreateDatabaseRequest) FromJsonString ¶
func (r *CreateDatabaseRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDatabaseRequest) ToJsonString ¶
func (r *CreateDatabaseRequest) ToJsonString() string
type CreateDatabaseResponse ¶
type CreateDatabaseResponse struct { *tchttp.BaseResponse Response *struct { // 生成的建库执行语句对象。 Execution *Execution `json:"Execution,omitempty" name:"Execution"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateDatabaseResponse ¶
func NewCreateDatabaseResponse() (response *CreateDatabaseResponse)
func (*CreateDatabaseResponse) FromJsonString ¶
func (r *CreateDatabaseResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDatabaseResponse) ToJsonString ¶
func (r *CreateDatabaseResponse) ToJsonString() string
type CreateExportTaskRequest ¶ added in v1.0.370
type CreateExportTaskRequest struct { *tchttp.BaseRequest // 数据来源,lakefsStorage、taskResult InputType *string `json:"InputType,omitempty" name:"InputType"` // 导出任务输入配置 InputConf []*KVPair `json:"InputConf,omitempty" name:"InputConf"` // 导出任务输出配置 OutputConf []*KVPair `json:"OutputConf,omitempty" name:"OutputConf"` // 目标数据源的类型,目前支持导出到cos OutputType *string `json:"OutputType,omitempty" name:"OutputType"` }
func NewCreateExportTaskRequest ¶ added in v1.0.370
func NewCreateExportTaskRequest() (request *CreateExportTaskRequest)
func (*CreateExportTaskRequest) FromJsonString ¶ added in v1.0.370
func (r *CreateExportTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateExportTaskRequest) ToJsonString ¶ added in v1.0.370
func (r *CreateExportTaskRequest) ToJsonString() string
type CreateExportTaskResponse ¶ added in v1.0.370
type CreateExportTaskResponse struct { *tchttp.BaseResponse Response *struct { // 任务id TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateExportTaskResponse ¶ added in v1.0.370
func NewCreateExportTaskResponse() (response *CreateExportTaskResponse)
func (*CreateExportTaskResponse) FromJsonString ¶ added in v1.0.370
func (r *CreateExportTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateExportTaskResponse) ToJsonString ¶ added in v1.0.370
func (r *CreateExportTaskResponse) ToJsonString() string
type CreateImportTaskRequest ¶ added in v1.0.370
type CreateImportTaskRequest struct { *tchttp.BaseRequest // 数据来源,cos InputType *string `json:"InputType,omitempty" name:"InputType"` // 输入配置 InputConf []*KVPair `json:"InputConf,omitempty" name:"InputConf"` // 输出配置 OutputConf []*KVPair `json:"OutputConf,omitempty" name:"OutputConf"` // 目标数据源的类型,目前支持导入到托管存储,即lakefsStorage OutputType *string `json:"OutputType,omitempty" name:"OutputType"` }
func NewCreateImportTaskRequest ¶ added in v1.0.370
func NewCreateImportTaskRequest() (request *CreateImportTaskRequest)
func (*CreateImportTaskRequest) FromJsonString ¶ added in v1.0.370
func (r *CreateImportTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateImportTaskRequest) ToJsonString ¶ added in v1.0.370
func (r *CreateImportTaskRequest) ToJsonString() string
type CreateImportTaskResponse ¶ added in v1.0.370
type CreateImportTaskResponse struct { *tchttp.BaseResponse Response *struct { // 任务id TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateImportTaskResponse ¶ added in v1.0.370
func NewCreateImportTaskResponse() (response *CreateImportTaskResponse)
func (*CreateImportTaskResponse) FromJsonString ¶ added in v1.0.370
func (r *CreateImportTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateImportTaskResponse) ToJsonString ¶ added in v1.0.370
func (r *CreateImportTaskResponse) ToJsonString() string
type CreateScriptRequest ¶
type CreateScriptRequest struct { *tchttp.BaseRequest // 脚本名称,最大不能超过255个字符。 ScriptName *string `json:"ScriptName,omitempty" name:"ScriptName"` // base64编码后的sql语句 SQLStatement *string `json:"SQLStatement,omitempty" name:"SQLStatement"` // 脚本描述, 不能超过50个字符 ScriptDesc *string `json:"ScriptDesc,omitempty" name:"ScriptDesc"` // 数据库名称 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` }
func NewCreateScriptRequest ¶
func NewCreateScriptRequest() (request *CreateScriptRequest)
func (*CreateScriptRequest) FromJsonString ¶
func (r *CreateScriptRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScriptRequest) ToJsonString ¶
func (r *CreateScriptRequest) ToJsonString() string
type CreateScriptResponse ¶
type CreateScriptResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateScriptResponse ¶
func NewCreateScriptResponse() (response *CreateScriptResponse)
func (*CreateScriptResponse) FromJsonString ¶
func (r *CreateScriptResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateScriptResponse) ToJsonString ¶
func (r *CreateScriptResponse) ToJsonString() string
type CreateStoreLocationRequest ¶
type CreateStoreLocationRequest struct { *tchttp.BaseRequest // 计算结果存储cos路径,如:cosn://bucketname/ StoreLocation *string `json:"StoreLocation,omitempty" name:"StoreLocation"` }
func NewCreateStoreLocationRequest ¶
func NewCreateStoreLocationRequest() (request *CreateStoreLocationRequest)
func (*CreateStoreLocationRequest) FromJsonString ¶
func (r *CreateStoreLocationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStoreLocationRequest) ToJsonString ¶
func (r *CreateStoreLocationRequest) ToJsonString() string
type CreateStoreLocationResponse ¶
type CreateStoreLocationResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateStoreLocationResponse ¶
func NewCreateStoreLocationResponse() (response *CreateStoreLocationResponse)
func (*CreateStoreLocationResponse) FromJsonString ¶
func (r *CreateStoreLocationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateStoreLocationResponse) ToJsonString ¶
func (r *CreateStoreLocationResponse) ToJsonString() string
type CreateTableRequest ¶
type CreateTableRequest struct { *tchttp.BaseRequest // 数据表配置信息 TableInfo *TableInfo `json:"TableInfo,omitempty" name:"TableInfo"` }
func NewCreateTableRequest ¶
func NewCreateTableRequest() (request *CreateTableRequest)
func (*CreateTableRequest) FromJsonString ¶
func (r *CreateTableRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTableRequest) ToJsonString ¶
func (r *CreateTableRequest) ToJsonString() string
type CreateTableResponse ¶
type CreateTableResponse struct { *tchttp.BaseResponse Response *struct { // 生成的建表执行语句对象。 Execution *Execution `json:"Execution,omitempty" name:"Execution"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTableResponse ¶
func NewCreateTableResponse() (response *CreateTableResponse)
func (*CreateTableResponse) FromJsonString ¶
func (r *CreateTableResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTableResponse) ToJsonString ¶
func (r *CreateTableResponse) ToJsonString() string
type CreateTaskRequest ¶
type CreateTaskRequest struct { *tchttp.BaseRequest // 计算任务,该参数中包含任务类型及其相关配置信息 Task *Task `json:"Task,omitempty" name:"Task"` // 数据库名称。如果SQL语句中有数据库名称,优先使用SQL语句中的数据库,否则使用该参数指定的数据库(注:当提交建库sql时,该字段传空字符串)。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 默认数据源名称。 DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` // 数据引擎名称,不填提交到默认集群 DataEngineName *string `json:"DataEngineName,omitempty" name:"DataEngineName"` }
func NewCreateTaskRequest ¶
func NewCreateTaskRequest() (request *CreateTaskRequest)
func (*CreateTaskRequest) FromJsonString ¶
func (r *CreateTaskRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTaskRequest) ToJsonString ¶
func (r *CreateTaskRequest) ToJsonString() string
type CreateTaskResponse ¶
type CreateTaskResponse struct { *tchttp.BaseResponse Response *struct { // 任务ID // 注意:此字段可能返回 null,表示取不到有效值。 TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTaskResponse ¶
func NewCreateTaskResponse() (response *CreateTaskResponse)
func (*CreateTaskResponse) FromJsonString ¶
func (r *CreateTaskResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTaskResponse) ToJsonString ¶
func (r *CreateTaskResponse) ToJsonString() string
type CreateTasksInOrderRequest ¶ added in v1.0.216
type CreateTasksInOrderRequest struct { *tchttp.BaseRequest // 数据库名称。如果SQL语句中有数据库名称,优先使用SQL语句中的数据库,否则使用该参数指定的数据库。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // SQL任务信息 Tasks *TasksInfo `json:"Tasks,omitempty" name:"Tasks"` // 数据源名称,默认为COSDataCatalog DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` }
func NewCreateTasksInOrderRequest ¶ added in v1.0.216
func NewCreateTasksInOrderRequest() (request *CreateTasksInOrderRequest)
func (*CreateTasksInOrderRequest) FromJsonString ¶ added in v1.0.216
func (r *CreateTasksInOrderRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTasksInOrderRequest) ToJsonString ¶ added in v1.0.216
func (r *CreateTasksInOrderRequest) ToJsonString() string
type CreateTasksInOrderResponse ¶ added in v1.0.216
type CreateTasksInOrderResponse struct { *tchttp.BaseResponse Response *struct { // 本批次提交的任务的批次Id BatchId *string `json:"BatchId,omitempty" name:"BatchId"` // 任务Id集合,按照执行顺序排列 TaskIdSet []*string `json:"TaskIdSet,omitempty" name:"TaskIdSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTasksInOrderResponse ¶ added in v1.0.216
func NewCreateTasksInOrderResponse() (response *CreateTasksInOrderResponse)
func (*CreateTasksInOrderResponse) FromJsonString ¶ added in v1.0.216
func (r *CreateTasksInOrderResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTasksInOrderResponse) ToJsonString ¶ added in v1.0.216
func (r *CreateTasksInOrderResponse) ToJsonString() string
type CreateTasksRequest ¶ added in v1.0.217
type CreateTasksRequest struct { *tchttp.BaseRequest // 数据库名称。如果SQL语句中有数据库名称,优先使用SQL语句中的数据库,否则使用该参数指定的数据库(注:当提交建库sql时,该字段传空字符串)。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // SQL任务信息 Tasks *TasksInfo `json:"Tasks,omitempty" name:"Tasks"` // 数据源名称,默认为DataLakeCatalog DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` // 计算引擎名称,不填任务提交到默认集群 DataEngineName *string `json:"DataEngineName,omitempty" name:"DataEngineName"` }
func NewCreateTasksRequest ¶ added in v1.0.217
func NewCreateTasksRequest() (request *CreateTasksRequest)
func (*CreateTasksRequest) FromJsonString ¶ added in v1.0.217
func (r *CreateTasksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTasksRequest) ToJsonString ¶ added in v1.0.217
func (r *CreateTasksRequest) ToJsonString() string
type CreateTasksResponse ¶ added in v1.0.217
type CreateTasksResponse struct { *tchttp.BaseResponse Response *struct { // 本批次提交的任务的批次Id BatchId *string `json:"BatchId,omitempty" name:"BatchId"` // 任务Id集合,按照执行顺序排列 TaskIdSet []*string `json:"TaskIdSet,omitempty" name:"TaskIdSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateTasksResponse ¶ added in v1.0.217
func NewCreateTasksResponse() (response *CreateTasksResponse)
func (*CreateTasksResponse) FromJsonString ¶ added in v1.0.217
func (r *CreateTasksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTasksResponse) ToJsonString ¶ added in v1.0.217
func (r *CreateTasksResponse) ToJsonString() string
type CreateUserRequest ¶ added in v1.0.206
type CreateUserRequest struct { *tchttp.BaseRequest // 需要授权的子用户uin,可以通过腾讯云控制台右上角 → “账号信息” → “账号ID进行查看”。 UserId *string `json:"UserId,omitempty" name:"UserId"` // 用户描述信息,方便区分不同用户 UserDescription *string `json:"UserDescription,omitempty" name:"UserDescription"` // 绑定到用户的权限集合 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` // 用户类型。ADMIN:管理员 COMMON:一般用户。当用户类型为管理员的时候,不能设置权限集合和绑定的工作组集合,管理员默认拥有所有权限。该参数不填默认为COMMON UserType *string `json:"UserType,omitempty" name:"UserType"` // 绑定到用户的工作组ID集合。 WorkGroupIds []*int64 `json:"WorkGroupIds,omitempty" name:"WorkGroupIds"` // 用户别名,字符长度小50 UserAlias *string `json:"UserAlias,omitempty" name:"UserAlias"` }
func NewCreateUserRequest ¶ added in v1.0.206
func NewCreateUserRequest() (request *CreateUserRequest)
func (*CreateUserRequest) FromJsonString ¶ added in v1.0.206
func (r *CreateUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateUserRequest) ToJsonString ¶ added in v1.0.206
func (r *CreateUserRequest) ToJsonString() string
type CreateUserResponse ¶ added in v1.0.206
type CreateUserResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateUserResponse ¶ added in v1.0.206
func NewCreateUserResponse() (response *CreateUserResponse)
func (*CreateUserResponse) FromJsonString ¶ added in v1.0.206
func (r *CreateUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateUserResponse) ToJsonString ¶ added in v1.0.206
func (r *CreateUserResponse) ToJsonString() string
type CreateWorkGroupRequest ¶ added in v1.0.206
type CreateWorkGroupRequest struct { *tchttp.BaseRequest // 工作组名称 WorkGroupName *string `json:"WorkGroupName,omitempty" name:"WorkGroupName"` // 工作组描述 WorkGroupDescription *string `json:"WorkGroupDescription,omitempty" name:"WorkGroupDescription"` // 工作组绑定的鉴权策略集合 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` // 需要绑定到工作组的用户Id集合 UserIds []*string `json:"UserIds,omitempty" name:"UserIds"` }
func NewCreateWorkGroupRequest ¶ added in v1.0.206
func NewCreateWorkGroupRequest() (request *CreateWorkGroupRequest)
func (*CreateWorkGroupRequest) FromJsonString ¶ added in v1.0.206
func (r *CreateWorkGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateWorkGroupRequest) ToJsonString ¶ added in v1.0.206
func (r *CreateWorkGroupRequest) ToJsonString() string
type CreateWorkGroupResponse ¶ added in v1.0.206
type CreateWorkGroupResponse struct { *tchttp.BaseResponse Response *struct { // 工作组Id,全局唯一 WorkGroupId *int64 `json:"WorkGroupId,omitempty" name:"WorkGroupId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewCreateWorkGroupResponse ¶ added in v1.0.206
func NewCreateWorkGroupResponse() (response *CreateWorkGroupResponse)
func (*CreateWorkGroupResponse) FromJsonString ¶ added in v1.0.206
func (r *CreateWorkGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateWorkGroupResponse) ToJsonString ¶ added in v1.0.206
func (r *CreateWorkGroupResponse) ToJsonString() string
type DataFormat ¶
type DataFormat struct { // 文本格式,TextFile。 // 注意:此字段可能返回 null,表示取不到有效值。 TextFile *TextFile `json:"TextFile,omitempty" name:"TextFile"` // 文本格式,CSV。 // 注意:此字段可能返回 null,表示取不到有效值。 CSV *CSV `json:"CSV,omitempty" name:"CSV"` // 文本格式,Json。 // 注意:此字段可能返回 null,表示取不到有效值。 Json *Other `json:"Json,omitempty" name:"Json"` // Parquet格式 // 注意:此字段可能返回 null,表示取不到有效值。 Parquet *Other `json:"Parquet,omitempty" name:"Parquet"` // ORC格式 // 注意:此字段可能返回 null,表示取不到有效值。 ORC *Other `json:"ORC,omitempty" name:"ORC"` // AVRO格式 // 注意:此字段可能返回 null,表示取不到有效值。 AVRO *Other `json:"AVRO,omitempty" name:"AVRO"` }
type DatabaseInfo ¶
type DatabaseInfo struct { // 数据库名称,长度0~128,支持数字、字母下划线,不允许数字大头,统一转换为小写。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 数据库描述信息,长度 0~500。 // 注意:此字段可能返回 null,表示取不到有效值。 Comment *string `json:"Comment,omitempty" name:"Comment"` // 数据库属性列表。 // 注意:此字段可能返回 null,表示取不到有效值。 Properties []*Property `json:"Properties,omitempty" name:"Properties"` // 数据库cos路径 // 注意:此字段可能返回 null,表示取不到有效值。 Location *string `json:"Location,omitempty" name:"Location"` }
type DatabaseResponseInfo ¶
type DatabaseResponseInfo struct { // 数据库名称。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 数据库描述信息,长度 0~256。 // 注意:此字段可能返回 null,表示取不到有效值。 Comment *string `json:"Comment,omitempty" name:"Comment"` // 允许针对数据库的属性元数据信息进行指定。 // 注意:此字段可能返回 null,表示取不到有效值。 Properties []*Property `json:"Properties,omitempty" name:"Properties"` // 数据库创建时间戳,单位:s。 // 注意:此字段可能返回 null,表示取不到有效值。 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 数据库更新时间戳,单位:s。 // 注意:此字段可能返回 null,表示取不到有效值。 ModifiedTime *string `json:"ModifiedTime,omitempty" name:"ModifiedTime"` }
type DeleteScriptRequest ¶
type DeleteScriptRequest struct { *tchttp.BaseRequest // 脚本id,其可以通过DescribeScripts接口提取 ScriptIds []*string `json:"ScriptIds,omitempty" name:"ScriptIds"` }
func NewDeleteScriptRequest ¶
func NewDeleteScriptRequest() (request *DeleteScriptRequest)
func (*DeleteScriptRequest) FromJsonString ¶
func (r *DeleteScriptRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScriptRequest) ToJsonString ¶
func (r *DeleteScriptRequest) ToJsonString() string
type DeleteScriptResponse ¶
type DeleteScriptResponse struct { *tchttp.BaseResponse Response *struct { // 删除的脚本数量 ScriptsAffected *int64 `json:"ScriptsAffected,omitempty" name:"ScriptsAffected"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteScriptResponse ¶
func NewDeleteScriptResponse() (response *DeleteScriptResponse)
func (*DeleteScriptResponse) FromJsonString ¶
func (r *DeleteScriptResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteScriptResponse) ToJsonString ¶
func (r *DeleteScriptResponse) ToJsonString() string
type DeleteUserRequest ¶ added in v1.0.206
type DeleteUserRequest struct { *tchttp.BaseRequest // 需要删除的用户的Id UserIds []*string `json:"UserIds,omitempty" name:"UserIds"` }
func NewDeleteUserRequest ¶ added in v1.0.206
func NewDeleteUserRequest() (request *DeleteUserRequest)
func (*DeleteUserRequest) FromJsonString ¶ added in v1.0.206
func (r *DeleteUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUserRequest) ToJsonString ¶ added in v1.0.206
func (r *DeleteUserRequest) ToJsonString() string
type DeleteUserResponse ¶ added in v1.0.206
type DeleteUserResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteUserResponse ¶ added in v1.0.206
func NewDeleteUserResponse() (response *DeleteUserResponse)
func (*DeleteUserResponse) FromJsonString ¶ added in v1.0.206
func (r *DeleteUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUserResponse) ToJsonString ¶ added in v1.0.206
func (r *DeleteUserResponse) ToJsonString() string
type DeleteUsersFromWorkGroupRequest ¶ added in v1.0.206
type DeleteUsersFromWorkGroupRequest struct { *tchttp.BaseRequest // 要删除的用户信息 AddInfo *UserIdSetOfWorkGroupId `json:"AddInfo,omitempty" name:"AddInfo"` }
func NewDeleteUsersFromWorkGroupRequest ¶ added in v1.0.206
func NewDeleteUsersFromWorkGroupRequest() (request *DeleteUsersFromWorkGroupRequest)
func (*DeleteUsersFromWorkGroupRequest) FromJsonString ¶ added in v1.0.206
func (r *DeleteUsersFromWorkGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUsersFromWorkGroupRequest) ToJsonString ¶ added in v1.0.206
func (r *DeleteUsersFromWorkGroupRequest) ToJsonString() string
type DeleteUsersFromWorkGroupResponse ¶ added in v1.0.206
type DeleteUsersFromWorkGroupResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteUsersFromWorkGroupResponse ¶ added in v1.0.206
func NewDeleteUsersFromWorkGroupResponse() (response *DeleteUsersFromWorkGroupResponse)
func (*DeleteUsersFromWorkGroupResponse) FromJsonString ¶ added in v1.0.206
func (r *DeleteUsersFromWorkGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteUsersFromWorkGroupResponse) ToJsonString ¶ added in v1.0.206
func (r *DeleteUsersFromWorkGroupResponse) ToJsonString() string
type DeleteWorkGroupRequest ¶ added in v1.0.206
type DeleteWorkGroupRequest struct { *tchttp.BaseRequest // 要删除的工作组Id集合 WorkGroupIds []*int64 `json:"WorkGroupIds,omitempty" name:"WorkGroupIds"` }
func NewDeleteWorkGroupRequest ¶ added in v1.0.206
func NewDeleteWorkGroupRequest() (request *DeleteWorkGroupRequest)
func (*DeleteWorkGroupRequest) FromJsonString ¶ added in v1.0.206
func (r *DeleteWorkGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteWorkGroupRequest) ToJsonString ¶ added in v1.0.206
func (r *DeleteWorkGroupRequest) ToJsonString() string
type DeleteWorkGroupResponse ¶ added in v1.0.206
type DeleteWorkGroupResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDeleteWorkGroupResponse ¶ added in v1.0.206
func NewDeleteWorkGroupResponse() (response *DeleteWorkGroupResponse)
func (*DeleteWorkGroupResponse) FromJsonString ¶ added in v1.0.206
func (r *DeleteWorkGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteWorkGroupResponse) ToJsonString ¶ added in v1.0.206
func (r *DeleteWorkGroupResponse) ToJsonString() string
type DescribeDatabasesRequest ¶
type DescribeDatabasesRequest struct { *tchttp.BaseRequest // 返回数量,默认为10,最大值为100。 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` // 数据偏移量,从0开始,默认为0。 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 模糊匹配,库名关键字。 KeyWord *string `json:"KeyWord,omitempty" name:"KeyWord"` // 数据源唯名称,该名称可以通过DescribeDatasourceConnection接口查询到。默认为DataLakeCatalog DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` // 排序字段,当前版本仅支持按库名排序 Sort *string `json:"Sort,omitempty" name:"Sort"` // 排序类型:false:降序(默认)、true:升序 Asc *bool `json:"Asc,omitempty" name:"Asc"` }
func NewDescribeDatabasesRequest ¶
func NewDescribeDatabasesRequest() (request *DescribeDatabasesRequest)
func (*DescribeDatabasesRequest) FromJsonString ¶
func (r *DescribeDatabasesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDatabasesRequest) ToJsonString ¶
func (r *DescribeDatabasesRequest) ToJsonString() string
type DescribeDatabasesResponse ¶
type DescribeDatabasesResponse struct { *tchttp.BaseResponse Response *struct { // 数据库对象列表。 DatabaseList []*DatabaseResponseInfo `json:"DatabaseList,omitempty" name:"DatabaseList"` // 实例总数。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeDatabasesResponse ¶
func NewDescribeDatabasesResponse() (response *DescribeDatabasesResponse)
func (*DescribeDatabasesResponse) FromJsonString ¶
func (r *DescribeDatabasesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeDatabasesResponse) ToJsonString ¶
func (r *DescribeDatabasesResponse) ToJsonString() string
type DescribeScriptsRequest ¶
type DescribeScriptsRequest struct { *tchttp.BaseRequest // 返回数量,默认为10,最大值为100。 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 偏移量,默认为0。 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 按字段排序,支持如下字段类型,update-time SortBy *string `json:"SortBy,omitempty" name:"SortBy"` // 排序方式,desc表示正序,asc表示反序 Sorting *string `json:"Sorting,omitempty" name:"Sorting"` // 过滤条件,如下支持的过滤类型,传参Name应为其一 // script-id - String - (过滤条件)script-id取值形如:157de0d1-26b4-4df2-a2d0-b64afc406c25。 // script-name-keyword - String - (过滤条件)数据表名称,形如:script-test。 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeScriptsRequest ¶
func NewDescribeScriptsRequest() (request *DescribeScriptsRequest)
func (*DescribeScriptsRequest) FromJsonString ¶
func (r *DescribeScriptsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScriptsRequest) ToJsonString ¶
func (r *DescribeScriptsRequest) ToJsonString() string
type DescribeScriptsResponse ¶
type DescribeScriptsResponse struct { *tchttp.BaseResponse Response *struct { // Script列表 // 注意:此字段可能返回 null,表示取不到有效值。 Scripts []*Script `json:"Scripts,omitempty" name:"Scripts"` // 实例总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeScriptsResponse ¶
func NewDescribeScriptsResponse() (response *DescribeScriptsResponse)
func (*DescribeScriptsResponse) FromJsonString ¶
func (r *DescribeScriptsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeScriptsResponse) ToJsonString ¶
func (r *DescribeScriptsResponse) ToJsonString() string
type DescribeStoreLocationRequest ¶ added in v1.0.206
type DescribeStoreLocationRequest struct {
*tchttp.BaseRequest
}
func NewDescribeStoreLocationRequest ¶ added in v1.0.206
func NewDescribeStoreLocationRequest() (request *DescribeStoreLocationRequest)
func (*DescribeStoreLocationRequest) FromJsonString ¶ added in v1.0.206
func (r *DescribeStoreLocationRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStoreLocationRequest) ToJsonString ¶ added in v1.0.206
func (r *DescribeStoreLocationRequest) ToJsonString() string
type DescribeStoreLocationResponse ¶ added in v1.0.206
type DescribeStoreLocationResponse struct { *tchttp.BaseResponse Response *struct { // 返回用户设置的结果存储位置路径,如果未设置则返回空字符串:"" // 注意:此字段可能返回 null,表示取不到有效值。 StoreLocation *string `json:"StoreLocation,omitempty" name:"StoreLocation"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeStoreLocationResponse ¶ added in v1.0.206
func NewDescribeStoreLocationResponse() (response *DescribeStoreLocationResponse)
func (*DescribeStoreLocationResponse) FromJsonString ¶ added in v1.0.206
func (r *DescribeStoreLocationResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeStoreLocationResponse) ToJsonString ¶ added in v1.0.206
func (r *DescribeStoreLocationResponse) ToJsonString() string
type DescribeTableRequest ¶
type DescribeTableRequest struct { *tchttp.BaseRequest // 查询对象表名称 TableName *string `json:"TableName,omitempty" name:"TableName"` // 查询表所在的数据库名称。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 查询表所在的数据源名称 DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` }
func NewDescribeTableRequest ¶
func NewDescribeTableRequest() (request *DescribeTableRequest)
func (*DescribeTableRequest) FromJsonString ¶
func (r *DescribeTableRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTableRequest) ToJsonString ¶
func (r *DescribeTableRequest) ToJsonString() string
type DescribeTableResponse ¶
type DescribeTableResponse struct { *tchttp.BaseResponse Response *struct { // 数据表对象 Table *TableResponseInfo `json:"Table,omitempty" name:"Table"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTableResponse ¶
func NewDescribeTableResponse() (response *DescribeTableResponse)
func (*DescribeTableResponse) FromJsonString ¶
func (r *DescribeTableResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTableResponse) ToJsonString ¶
func (r *DescribeTableResponse) ToJsonString() string
type DescribeTablesRequest ¶
type DescribeTablesRequest struct { *tchttp.BaseRequest // 列出该数据库下所属数据表。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 返回数量,默认为10,最大值为100。 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 数据偏移量,从0开始,默认为0。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 过滤条件,如下支持的过滤类型,传参Name应为其一 // table-name - String - (过滤条件)数据表名称,形如:table-001。 // table-id - String - (过滤条件)table id形如:12342。 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // 指定查询的数据源名称,默认为DataLakeCatalog DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` // 起始时间:用于对更新时间的筛选 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 终止时间:用于对更新时间的筛选 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 排序字段,支持:ModifiedTime(默认);CreateTime Sort *string `json:"Sort,omitempty" name:"Sort"` // 排序字段,false:降序(默认);true Asc *bool `json:"Asc,omitempty" name:"Asc"` // table type,表类型查询,可用值:EXTERNAL_TABLE,INDEX_TABLE,MANAGED_TABLE,MATERIALIZED_VIEW,TABLE,VIEW,VIRTUAL_VIEW TableType *string `json:"TableType,omitempty" name:"TableType"` // 筛选字段-表格式:不传(默认)为查全部;LAKEFS:托管表;ICEBERG:非托管iceberg表;HIVE:非托管hive表;OTHER:非托管其它; TableFormat *string `json:"TableFormat,omitempty" name:"TableFormat"` }
func NewDescribeTablesRequest ¶
func NewDescribeTablesRequest() (request *DescribeTablesRequest)
func (*DescribeTablesRequest) FromJsonString ¶
func (r *DescribeTablesRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTablesRequest) ToJsonString ¶
func (r *DescribeTablesRequest) ToJsonString() string
type DescribeTablesResponse ¶
type DescribeTablesResponse struct { *tchttp.BaseResponse Response *struct { // 数据表对象列表。 TableList []*TableResponseInfo `json:"TableList,omitempty" name:"TableList"` // 实例总数。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTablesResponse ¶
func NewDescribeTablesResponse() (response *DescribeTablesResponse)
func (*DescribeTablesResponse) FromJsonString ¶
func (r *DescribeTablesResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTablesResponse) ToJsonString ¶
func (r *DescribeTablesResponse) ToJsonString() string
type DescribeTaskResultRequest ¶ added in v1.0.318
type DescribeTaskResultRequest struct { *tchttp.BaseRequest // 任务唯一ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 上一次请求响应返回的分页信息。第一次可以不带,从头开始返回数据,每次返回1000行数据。 NextToken *string `json:"NextToken,omitempty" name:"NextToken"` // 返回结果的最大行数,范围0~1000,默认为1000. MaxResults *int64 `json:"MaxResults,omitempty" name:"MaxResults"` }
func NewDescribeTaskResultRequest ¶ added in v1.0.318
func NewDescribeTaskResultRequest() (request *DescribeTaskResultRequest)
func (*DescribeTaskResultRequest) FromJsonString ¶ added in v1.0.318
func (r *DescribeTaskResultRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskResultRequest) ToJsonString ¶ added in v1.0.318
func (r *DescribeTaskResultRequest) ToJsonString() string
type DescribeTaskResultResponse ¶ added in v1.0.318
type DescribeTaskResultResponse struct { *tchttp.BaseResponse Response *struct { // 查询的任务信息,返回为空表示输入任务ID对应的任务不存在。只有当任务状态为成功(2)的时候,才会返回任务的结果。 // 注意:此字段可能返回 null,表示取不到有效值。 TaskInfo *TaskResultInfo `json:"TaskInfo,omitempty" name:"TaskInfo"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTaskResultResponse ¶ added in v1.0.318
func NewDescribeTaskResultResponse() (response *DescribeTaskResultResponse)
func (*DescribeTaskResultResponse) FromJsonString ¶ added in v1.0.318
func (r *DescribeTaskResultResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTaskResultResponse) ToJsonString ¶ added in v1.0.318
func (r *DescribeTaskResultResponse) ToJsonString() string
type DescribeTasksRequest ¶
type DescribeTasksRequest struct { *tchttp.BaseRequest // 返回数量,默认为10,最大值为100。 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 偏移量,默认为0。 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 过滤条件,如下支持的过滤类型,传参Name应为以下其中一个,其中task-id支持最大50个过滤个数,其他过滤参数支持的总数不超过5个。 // task-id - String - (任务ID准确过滤)task-id取值形如:e386471f-139a-4e59-877f-50ece8135b99。 // task-state - String - (任务状态过滤)取值范围 0(初始化), 1(运行中), 2(成功), -1(失败)。 // task-sql-keyword - String - (SQL语句关键字模糊过滤)取值形如:DROP TABLE。 // task-operator- string (子uin过滤) // task-kind - string (任务类型过滤) Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // 排序字段,支持如下字段类型,create-time(创建时间,默认)、update-time(更新时间) SortBy *string `json:"SortBy,omitempty" name:"SortBy"` // 排序方式,desc表示正序,asc表示反序, 默认为asc。 Sorting *string `json:"Sorting,omitempty" name:"Sorting"` // 起始时间点,格式为yyyy-mm-dd HH:MM:SS。默认为45天前的当前时刻 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 结束时间点,格式为yyyy-mm-dd HH:MM:SS时间跨度在(0,30天],支持最近45天数据查询。默认为当前时刻 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` // 支持计算资源名字筛选 DataEngineName *string `json:"DataEngineName,omitempty" name:"DataEngineName"` }
func NewDescribeTasksRequest ¶
func NewDescribeTasksRequest() (request *DescribeTasksRequest)
func (*DescribeTasksRequest) FromJsonString ¶
func (r *DescribeTasksRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTasksRequest) ToJsonString ¶
func (r *DescribeTasksRequest) ToJsonString() string
type DescribeTasksResponse ¶
type DescribeTasksResponse struct { *tchttp.BaseResponse Response *struct { // 任务对象列表。 TaskList []*TaskResponseInfo `json:"TaskList,omitempty" name:"TaskList"` // 实例总数。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeTasksResponse ¶
func NewDescribeTasksResponse() (response *DescribeTasksResponse)
func (*DescribeTasksResponse) FromJsonString ¶
func (r *DescribeTasksResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeTasksResponse) ToJsonString ¶
func (r *DescribeTasksResponse) ToJsonString() string
type DescribeUsersRequest ¶ added in v1.0.206
type DescribeUsersRequest struct { *tchttp.BaseRequest // 指定查询的子用户uin,用户需要通过CreateUser接口创建。 UserId *string `json:"UserId,omitempty" name:"UserId"` // 偏移量,默认为0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 返回数量,默认20,最大值100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 排序字段,支持如下字段类型,create-time SortBy *string `json:"SortBy,omitempty" name:"SortBy"` // 排序方式,desc表示正序,asc表示反序, 默认为asc Sorting *string `json:"Sorting,omitempty" name:"Sorting"` // 过滤条件,支持如下字段类型,user-type:根据用户类型过滤。user-keyword:根据用户名称过滤 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` }
func NewDescribeUsersRequest ¶ added in v1.0.206
func NewDescribeUsersRequest() (request *DescribeUsersRequest)
func (*DescribeUsersRequest) FromJsonString ¶ added in v1.0.206
func (r *DescribeUsersRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUsersRequest) ToJsonString ¶ added in v1.0.206
func (r *DescribeUsersRequest) ToJsonString() string
type DescribeUsersResponse ¶ added in v1.0.206
type DescribeUsersResponse struct { *tchttp.BaseResponse Response *struct { // 查询到的用户总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 查询到的授权用户信息集合 UserSet []*UserInfo `json:"UserSet,omitempty" name:"UserSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeUsersResponse ¶ added in v1.0.206
func NewDescribeUsersResponse() (response *DescribeUsersResponse)
func (*DescribeUsersResponse) FromJsonString ¶ added in v1.0.206
func (r *DescribeUsersResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeUsersResponse) ToJsonString ¶ added in v1.0.206
func (r *DescribeUsersResponse) ToJsonString() string
type DescribeViewsRequest ¶
type DescribeViewsRequest struct { *tchttp.BaseRequest // 列出该数据库下所属数据表。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 返回数量,默认为10,最大值为100。 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 数据偏移量,从0开始,默认为0。 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` // 过滤条件,如下支持的过滤类型,传参Name应为其一 // view-name - String - (过滤条件)数据表名称,形如:view-001。 // view-id - String - (过滤条件)view id形如:12342。 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // 数据库所属的数据源名称 DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` // 排序字段 Sort *string `json:"Sort,omitempty" name:"Sort"` // 排序规则 Asc *bool `json:"Asc,omitempty" name:"Asc"` // 开始时间 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` // 结束时间 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` }
func NewDescribeViewsRequest ¶
func NewDescribeViewsRequest() (request *DescribeViewsRequest)
func (*DescribeViewsRequest) FromJsonString ¶
func (r *DescribeViewsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeViewsRequest) ToJsonString ¶
func (r *DescribeViewsRequest) ToJsonString() string
type DescribeViewsResponse ¶
type DescribeViewsResponse struct { *tchttp.BaseResponse Response *struct { // 视图对象列表。 ViewList []*ViewResponseInfo `json:"ViewList,omitempty" name:"ViewList"` // 实例总数。 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeViewsResponse ¶
func NewDescribeViewsResponse() (response *DescribeViewsResponse)
func (*DescribeViewsResponse) FromJsonString ¶
func (r *DescribeViewsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeViewsResponse) ToJsonString ¶
func (r *DescribeViewsResponse) ToJsonString() string
type DescribeWorkGroupsRequest ¶ added in v1.0.206
type DescribeWorkGroupsRequest struct { *tchttp.BaseRequest // 查询的工作组Id,不填或填0表示不过滤。 WorkGroupId *int64 `json:"WorkGroupId,omitempty" name:"WorkGroupId"` // 过滤条件,当前仅支持按照工作组名称进行模糊搜索。Key为workgroup-name Filters []*Filter `json:"Filters,omitempty" name:"Filters"` // 偏移量,默认为0 Offset *int64 `json:"Offset,omitempty" name:"Offset"` // 返回数量,默认20,最大值100 Limit *int64 `json:"Limit,omitempty" name:"Limit"` // 排序字段,支持如下字段类型,create-time SortBy *string `json:"SortBy,omitempty" name:"SortBy"` // 排序方式,desc表示正序,asc表示反序, 默认为asc Sorting *string `json:"Sorting,omitempty" name:"Sorting"` }
func NewDescribeWorkGroupsRequest ¶ added in v1.0.206
func NewDescribeWorkGroupsRequest() (request *DescribeWorkGroupsRequest)
func (*DescribeWorkGroupsRequest) FromJsonString ¶ added in v1.0.206
func (r *DescribeWorkGroupsRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeWorkGroupsRequest) ToJsonString ¶ added in v1.0.206
func (r *DescribeWorkGroupsRequest) ToJsonString() string
type DescribeWorkGroupsResponse ¶ added in v1.0.206
type DescribeWorkGroupsResponse struct { *tchttp.BaseResponse Response *struct { // 工作组总数 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` // 工作组信息集合 WorkGroupSet []*WorkGroupInfo `json:"WorkGroupSet,omitempty" name:"WorkGroupSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDescribeWorkGroupsResponse ¶ added in v1.0.206
func NewDescribeWorkGroupsResponse() (response *DescribeWorkGroupsResponse)
func (*DescribeWorkGroupsResponse) FromJsonString ¶ added in v1.0.206
func (r *DescribeWorkGroupsResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DescribeWorkGroupsResponse) ToJsonString ¶ added in v1.0.206
func (r *DescribeWorkGroupsResponse) ToJsonString() string
type DetachUserPolicyRequest ¶ added in v1.0.206
type DetachUserPolicyRequest struct { *tchttp.BaseRequest // 用户Id,和CAM侧Uin匹配 UserId *string `json:"UserId,omitempty" name:"UserId"` // 解绑的权限集合 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` }
func NewDetachUserPolicyRequest ¶ added in v1.0.206
func NewDetachUserPolicyRequest() (request *DetachUserPolicyRequest)
func (*DetachUserPolicyRequest) FromJsonString ¶ added in v1.0.206
func (r *DetachUserPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachUserPolicyRequest) ToJsonString ¶ added in v1.0.206
func (r *DetachUserPolicyRequest) ToJsonString() string
type DetachUserPolicyResponse ¶ added in v1.0.206
type DetachUserPolicyResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachUserPolicyResponse ¶ added in v1.0.206
func NewDetachUserPolicyResponse() (response *DetachUserPolicyResponse)
func (*DetachUserPolicyResponse) FromJsonString ¶ added in v1.0.206
func (r *DetachUserPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachUserPolicyResponse) ToJsonString ¶ added in v1.0.206
func (r *DetachUserPolicyResponse) ToJsonString() string
type DetachWorkGroupPolicyRequest ¶ added in v1.0.206
type DetachWorkGroupPolicyRequest struct { *tchttp.BaseRequest // 工作组Id WorkGroupId *int64 `json:"WorkGroupId,omitempty" name:"WorkGroupId"` // 解绑的权限集合 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` }
func NewDetachWorkGroupPolicyRequest ¶ added in v1.0.206
func NewDetachWorkGroupPolicyRequest() (request *DetachWorkGroupPolicyRequest)
func (*DetachWorkGroupPolicyRequest) FromJsonString ¶ added in v1.0.206
func (r *DetachWorkGroupPolicyRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachWorkGroupPolicyRequest) ToJsonString ¶ added in v1.0.206
func (r *DetachWorkGroupPolicyRequest) ToJsonString() string
type DetachWorkGroupPolicyResponse ¶ added in v1.0.206
type DetachWorkGroupPolicyResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewDetachWorkGroupPolicyResponse ¶ added in v1.0.206
func NewDetachWorkGroupPolicyResponse() (response *DetachWorkGroupPolicyResponse)
func (*DetachWorkGroupPolicyResponse) FromJsonString ¶ added in v1.0.206
func (r *DetachWorkGroupPolicyResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DetachWorkGroupPolicyResponse) ToJsonString ¶ added in v1.0.206
func (r *DetachWorkGroupPolicyResponse) ToJsonString() string
type Execution ¶
type Execution struct { // 自动生成SQL语句。 SQL *string `json:"SQL,omitempty" name:"SQL"` }
type ModifyUserRequest ¶ added in v1.0.206
type ModifyUserRequest struct { *tchttp.BaseRequest // 用户Id,和CAM侧Uin匹配 UserId *string `json:"UserId,omitempty" name:"UserId"` // 用户描述 UserDescription *string `json:"UserDescription,omitempty" name:"UserDescription"` }
func NewModifyUserRequest ¶ added in v1.0.206
func NewModifyUserRequest() (request *ModifyUserRequest)
func (*ModifyUserRequest) FromJsonString ¶ added in v1.0.206
func (r *ModifyUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserRequest) ToJsonString ¶ added in v1.0.206
func (r *ModifyUserRequest) ToJsonString() string
type ModifyUserResponse ¶ added in v1.0.206
type ModifyUserResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyUserResponse ¶ added in v1.0.206
func NewModifyUserResponse() (response *ModifyUserResponse)
func (*ModifyUserResponse) FromJsonString ¶ added in v1.0.206
func (r *ModifyUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyUserResponse) ToJsonString ¶ added in v1.0.206
func (r *ModifyUserResponse) ToJsonString() string
type ModifyWorkGroupRequest ¶ added in v1.0.206
type ModifyWorkGroupRequest struct { *tchttp.BaseRequest // 工作组Id WorkGroupId *int64 `json:"WorkGroupId,omitempty" name:"WorkGroupId"` // 工作组描述 WorkGroupDescription *string `json:"WorkGroupDescription,omitempty" name:"WorkGroupDescription"` }
func NewModifyWorkGroupRequest ¶ added in v1.0.206
func NewModifyWorkGroupRequest() (request *ModifyWorkGroupRequest)
func (*ModifyWorkGroupRequest) FromJsonString ¶ added in v1.0.206
func (r *ModifyWorkGroupRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyWorkGroupRequest) ToJsonString ¶ added in v1.0.206
func (r *ModifyWorkGroupRequest) ToJsonString() string
type ModifyWorkGroupResponse ¶ added in v1.0.206
type ModifyWorkGroupResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewModifyWorkGroupResponse ¶ added in v1.0.206
func NewModifyWorkGroupResponse() (response *ModifyWorkGroupResponse)
func (*ModifyWorkGroupResponse) FromJsonString ¶ added in v1.0.206
func (r *ModifyWorkGroupResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ModifyWorkGroupResponse) ToJsonString ¶ added in v1.0.206
func (r *ModifyWorkGroupResponse) ToJsonString() string
type Other ¶
type Other struct { // 枚举类型,默认值为Json,可选值为[Json, Parquet, ORC, AVRD]之一。 Format *string `json:"Format,omitempty" name:"Format"` }
type Partition ¶
type Partition struct { // 分区列名。 Name *string `json:"Name,omitempty" name:"Name"` // 分区类型。 Type *string `json:"Type,omitempty" name:"Type"` // 对分区的描述。 Comment *string `json:"Comment,omitempty" name:"Comment"` // 隐式分区转换策略 // 注意:此字段可能返回 null,表示取不到有效值。 Transform *string `json:"Transform,omitempty" name:"Transform"` // 转换策略参数 // 注意:此字段可能返回 null,表示取不到有效值。 TransformArgs []*string `json:"TransformArgs,omitempty" name:"TransformArgs"` // 创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"` }
type Policy ¶ added in v1.0.206
type Policy struct { // 需要授权的数据库名,填*代表当前Catalog下所有数据库。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别时只允许填空,其他类型下可以任意指定数据库。 Database *string `json:"Database,omitempty" name:"Database"` // 需要授权的数据源名称,管理员级别下只支持填*(代表该级别全部资源);数据源级别和数据库级别鉴权的情况下,只支持填COSDataCatalog或者*;在数据表级别鉴权下可以填写用户自定义数据源。不填情况下默认为DataLakeCatalog。注意:如果是对用户自定义数据源进行鉴权,DLC能够管理的权限是用户接入数据源的时候提供的账户的子集。 Catalog *string `json:"Catalog,omitempty" name:"Catalog"` // 需要授权的表名,填*代表当前Database下所有表。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别、数据库级别时只允许填空,其他类型下可以任意指定数据表。 Table *string `json:"Table,omitempty" name:"Table"` // 授权的权限操作,对于不同级别的鉴权提供不同操作。管理员权限:ALL,不填默认为ALL;数据连接级鉴权:CREATE;数据库级别鉴权:ALL、CREATE、ALTER、DROP;数据表权限:ALL、SELECT、INSERT、ALTER、DELETE、DROP、UPDATE。注意:在数据表权限下,指定的数据源不为COSDataCatalog的时候,只支持SELECT操作。 Operation *string `json:"Operation,omitempty" name:"Operation"` // 授权类型,现在支持八种授权类型:ADMIN:管理员级别鉴权 DATASOURCE:数据连接级别鉴权 DATABASE:数据库级别鉴权 TABLE:表级别鉴权 VIEW:视图级别鉴权 FUNCTION:函数级别鉴权 COLUMN:列级别鉴权 ENGINE:数据引擎鉴权。不填默认为管理员级别鉴权。 PolicyType *string `json:"PolicyType,omitempty" name:"PolicyType"` // 需要授权的函数名,填*代表当前Catalog下所有函数。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别时只允许填空,其他类型下可以任意指定函数。 // 注意:此字段可能返回 null,表示取不到有效值。 Function *string `json:"Function,omitempty" name:"Function"` // 需要授权的视图,填*代表当前Database下所有视图。当授权类型为管理员级别时,只允许填“*”,当授权类型为数据连接级别、数据库级别时只允许填空,其他类型下可以任意指定视图。 // 注意:此字段可能返回 null,表示取不到有效值。 View *string `json:"View,omitempty" name:"View"` // 需要授权的列,填*代表当前所有列。当授权类型为管理员级别时,只允许填“*” // 注意:此字段可能返回 null,表示取不到有效值。 Column *string `json:"Column,omitempty" name:"Column"` // 需要授权的数据引擎,填*代表当前所有引擎。当授权类型为管理员级别时,只允许填“*” // 注意:此字段可能返回 null,表示取不到有效值。 DataEngine *string `json:"DataEngine,omitempty" name:"DataEngine"` // 用户是否可以进行二次授权。当为true的时候,被授权的用户可以将本次获取的权限再次授权给其他子用户。默认为false // 注意:此字段可能返回 null,表示取不到有效值。 ReAuth *bool `json:"ReAuth,omitempty" name:"ReAuth"` // 权限来源,入参不填。USER:权限来自用户本身;WORKGROUP:权限来自绑定的工作组 // 注意:此字段可能返回 null,表示取不到有效值。 Source *string `json:"Source,omitempty" name:"Source"` // 授权模式,入参不填。COMMON:普通模式;SENIOR:高级模式。 // 注意:此字段可能返回 null,表示取不到有效值。 Mode *string `json:"Mode,omitempty" name:"Mode"` // 操作者,入参不填。 // 注意:此字段可能返回 null,表示取不到有效值。 Operator *string `json:"Operator,omitempty" name:"Operator"` // 权限创建的时间,入参不填 // 注意:此字段可能返回 null,表示取不到有效值。 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 权限所属工作组的ID,只有当该权限的来源为工作组时才会有值。即仅当Source字段的值为WORKGROUP时该字段才有值。 // 注意:此字段可能返回 null,表示取不到有效值。 SourceId *int64 `json:"SourceId,omitempty" name:"SourceId"` // 权限所属工作组的名称,只有当该权限的来源为工作组时才会有值。即仅当Source字段的值为WORKGROUP时该字段才有值。 // 注意:此字段可能返回 null,表示取不到有效值。 SourceName *string `json:"SourceName,omitempty" name:"SourceName"` }
type Script ¶
type Script struct { // 脚本Id,长度36字节。 // 注意:此字段可能返回 null,表示取不到有效值。 ScriptId *string `json:"ScriptId,omitempty" name:"ScriptId"` // 脚本名称,长度0-25。 // 注意:此字段可能返回 null,表示取不到有效值。 ScriptName *string `json:"ScriptName,omitempty" name:"ScriptName"` // 脚本描述,长度0-50。 // 注意:此字段可能返回 null,表示取不到有效值。 ScriptDesc *string `json:"ScriptDesc,omitempty" name:"ScriptDesc"` // 默认关联数据库。 // 注意:此字段可能返回 null,表示取不到有效值。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // SQL描述,长度0-10000。 // 注意:此字段可能返回 null,表示取不到有效值。 SQLStatement *string `json:"SQLStatement,omitempty" name:"SQLStatement"` // 更新时间戳, 单位:ms。 // 注意:此字段可能返回 null,表示取不到有效值。 UpdateTime *int64 `json:"UpdateTime,omitempty" name:"UpdateTime"` }
type TableBaseInfo ¶
type TableBaseInfo struct { // 该数据表所属数据库名字 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 数据表名字 TableName *string `json:"TableName,omitempty" name:"TableName"` // 该数据表所属数据源名字 // 注意:此字段可能返回 null,表示取不到有效值。 DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` // 该数据表备注 // 注意:此字段可能返回 null,表示取不到有效值。 TableComment *string `json:"TableComment,omitempty" name:"TableComment"` // 具体类型,表or视图 // 注意:此字段可能返回 null,表示取不到有效值。 Type *string `json:"Type,omitempty" name:"Type"` // 数据格式类型,hive,iceberg等 // 注意:此字段可能返回 null,表示取不到有效值。 TableFormat *string `json:"TableFormat,omitempty" name:"TableFormat"` }
type TableInfo ¶
type TableInfo struct { // 数据表配置信息。 TableBaseInfo *TableBaseInfo `json:"TableBaseInfo,omitempty" name:"TableBaseInfo"` // 数据表格式。每次入参可选如下其一的KV结构,[TextFile,CSV,Json, Parquet, ORC, AVRD]。 DataFormat *DataFormat `json:"DataFormat,omitempty" name:"DataFormat"` // 数据表列信息。 Columns []*Column `json:"Columns,omitempty" name:"Columns"` // 数据表分块信息。 Partitions []*Partition `json:"Partitions,omitempty" name:"Partitions"` // 数据存储路径。当前仅支持cos路径,格式如下:cosn://bucket-name/filepath。 Location *string `json:"Location,omitempty" name:"Location"` }
type TableResponseInfo ¶
type TableResponseInfo struct { // 数据表基本信息。 TableBaseInfo *TableBaseInfo `json:"TableBaseInfo,omitempty" name:"TableBaseInfo"` // 数据表列信息。 // 注意:此字段可能返回 null,表示取不到有效值。 Columns []*Column `json:"Columns,omitempty" name:"Columns"` // 数据表分块信息。 // 注意:此字段可能返回 null,表示取不到有效值。 Partitions []*Partition `json:"Partitions,omitempty" name:"Partitions"` // 数据存储路径。 // 注意:此字段可能返回 null,表示取不到有效值。 Location *string `json:"Location,omitempty" name:"Location"` // 数据表属性信息。 // 注意:此字段可能返回 null,表示取不到有效值。 Properties []*Property `json:"Properties,omitempty" name:"Properties"` // 数据表更新时间, 单位: ms。 // 注意:此字段可能返回 null,表示取不到有效值。 ModifiedTime *string `json:"ModifiedTime,omitempty" name:"ModifiedTime"` // 数据表创建时间,单位: ms。 // 注意:此字段可能返回 null,表示取不到有效值。 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 数据格式。 // 注意:此字段可能返回 null,表示取不到有效值。 InputFormat *string `json:"InputFormat,omitempty" name:"InputFormat"` // 数据表存储大小(单位:Byte) // 注意:此字段可能返回 null,表示取不到有效值。 StorageSize *int64 `json:"StorageSize,omitempty" name:"StorageSize"` // 数据表行数 // 注意:此字段可能返回 null,表示取不到有效值。 RecordCount *int64 `json:"RecordCount,omitempty" name:"RecordCount"` }
type TaskResponseInfo ¶
type TaskResponseInfo struct { // 任务所属Database的名称。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 任务数据量。 DataAmount *int64 `json:"DataAmount,omitempty" name:"DataAmount"` // 任务Id。 Id *string `json:"Id,omitempty" name:"Id"` // 计算时长,单位: ms。 UsedTime *int64 `json:"UsedTime,omitempty" name:"UsedTime"` // 任务输出路径。 OutputPath *string `json:"OutputPath,omitempty" name:"OutputPath"` // 任务创建时间。 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 任务状态:0 初始化, 1 执行中, 2 执行成功,-1 执行失败,-3 已取消。 State *int64 `json:"State,omitempty" name:"State"` // 任务SQL类型,DDL|DML等 SQLType *string `json:"SQLType,omitempty" name:"SQLType"` // 任务SQL语句 SQL *string `json:"SQL,omitempty" name:"SQL"` // 结果是否过期。 ResultExpired *bool `json:"ResultExpired,omitempty" name:"ResultExpired"` // 数据影响统计信息。 RowAffectInfo *string `json:"RowAffectInfo,omitempty" name:"RowAffectInfo"` // 任务结果数据表。 // 注意:此字段可能返回 null,表示取不到有效值。 DataSet *string `json:"DataSet,omitempty" name:"DataSet"` // 失败信息, 例如:errorMessage。该字段已废弃。 Error *string `json:"Error,omitempty" name:"Error"` // 任务执行进度num/100(%) Percentage *int64 `json:"Percentage,omitempty" name:"Percentage"` // 任务执行输出信息。 OutputMessage *string `json:"OutputMessage,omitempty" name:"OutputMessage"` // 执行SQL的引擎类型 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` // 任务进度明细 // 注意:此字段可能返回 null,表示取不到有效值。 ProgressDetail *string `json:"ProgressDetail,omitempty" name:"ProgressDetail"` // 任务结束时间 // 注意:此字段可能返回 null,表示取不到有效值。 UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` // 计算资源id // 注意:此字段可能返回 null,表示取不到有效值。 DataEngineId *string `json:"DataEngineId,omitempty" name:"DataEngineId"` // 执行sql的子uin // 注意:此字段可能返回 null,表示取不到有效值。 OperateUin *string `json:"OperateUin,omitempty" name:"OperateUin"` // 计算资源名字 // 注意:此字段可能返回 null,表示取不到有效值。 DataEngineName *string `json:"DataEngineName,omitempty" name:"DataEngineName"` // 导入类型是本地导入还是cos // 注意:此字段可能返回 null,表示取不到有效值。 InputType *string `json:"InputType,omitempty" name:"InputType"` // 导入配置 // 注意:此字段可能返回 null,表示取不到有效值。 InputConf *string `json:"InputConf,omitempty" name:"InputConf"` // 数据条数 // 注意:此字段可能返回 null,表示取不到有效值。 DataNumber *int64 `json:"DataNumber,omitempty" name:"DataNumber"` // 查询数据能不能下载 // 注意:此字段可能返回 null,表示取不到有效值。 CanDownload *bool `json:"CanDownload,omitempty" name:"CanDownload"` // 用户别名 // 注意:此字段可能返回 null,表示取不到有效值。 UserAlias *string `json:"UserAlias,omitempty" name:"UserAlias"` // spark应用作业名 // 注意:此字段可能返回 null,表示取不到有效值。 SparkJobName *string `json:"SparkJobName,omitempty" name:"SparkJobName"` // spark应用作业Id // 注意:此字段可能返回 null,表示取不到有效值。 SparkJobId *string `json:"SparkJobId,omitempty" name:"SparkJobId"` // spark应用入口jar文件 // 注意:此字段可能返回 null,表示取不到有效值。 SparkJobFile *string `json:"SparkJobFile,omitempty" name:"SparkJobFile"` // spark ui url // 注意:此字段可能返回 null,表示取不到有效值。 UiUrl *string `json:"UiUrl,omitempty" name:"UiUrl"` }
type TaskResultInfo ¶ added in v1.0.318
type TaskResultInfo struct { // 任务唯一ID TaskId *string `json:"TaskId,omitempty" name:"TaskId"` // 数据源名称,当前任务执行时候选中的默认数据源 // 注意:此字段可能返回 null,表示取不到有效值。 DatasourceConnectionName *string `json:"DatasourceConnectionName,omitempty" name:"DatasourceConnectionName"` // 数据库名称,当前任务执行时候选中的默认数据库 // 注意:此字段可能返回 null,表示取不到有效值。 DatabaseName *string `json:"DatabaseName,omitempty" name:"DatabaseName"` // 当前执行的SQL,一个任务包含一个SQL SQL *string `json:"SQL,omitempty" name:"SQL"` // 执行任务的类型,现在分为DDL、DML、DQL SQLType *string `json:"SQLType,omitempty" name:"SQLType"` // 任务当前的状态,0:初始化 1:任务运行中 2:任务执行成功 -1:任务执行失败 -3:用户手动终止。只有任务执行成功的情况下,才会返回任务执行的结果 State *int64 `json:"State,omitempty" name:"State"` // 扫描的数据量,单位byte DataAmount *int64 `json:"DataAmount,omitempty" name:"DataAmount"` // 任务执行耗时,单位秒 UsedTime *int64 `json:"UsedTime,omitempty" name:"UsedTime"` // 任务结果输出的COS桶地址 OutputPath *string `json:"OutputPath,omitempty" name:"OutputPath"` // 任务创建时间,时间戳 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 任务执行信息,成功时返回success,失败时返回失败原因 OutputMessage *string `json:"OutputMessage,omitempty" name:"OutputMessage"` // 被影响的行数 RowAffectInfo *string `json:"RowAffectInfo,omitempty" name:"RowAffectInfo"` // 结果的schema信息 // 注意:此字段可能返回 null,表示取不到有效值。 ResultSchema []*Column `json:"ResultSchema,omitempty" name:"ResultSchema"` // 结果信息,反转义后,外层数组的每个元素为一行数据 // 注意:此字段可能返回 null,表示取不到有效值。 ResultSet *string `json:"ResultSet,omitempty" name:"ResultSet"` // 分页信息,如果没有更多结果数据,nextToken为空 NextToken *string `json:"NextToken,omitempty" name:"NextToken"` // 任务执行进度num/100(%) Percentage *int64 `json:"Percentage,omitempty" name:"Percentage"` // 任务进度明细 ProgressDetail *string `json:"ProgressDetail,omitempty" name:"ProgressDetail"` // 控制台展示格式。table:表格展示 text:文本展示 DisplayFormat *string `json:"DisplayFormat,omitempty" name:"DisplayFormat"` }
type TasksInfo ¶ added in v1.0.216
type TasksInfo struct { // 任务类型,SQLTask:SQL查询任务。SparkSQLTask:Spark SQL查询任务 TaskType *string `json:"TaskType,omitempty" name:"TaskType"` // 容错策略。Proceed:前面任务出错/取消后继续执行后面的任务。Terminate:前面的任务出错/取消之后终止后面任务的执行,后面的任务全部标记为已取消。 FailureTolerance *string `json:"FailureTolerance,omitempty" name:"FailureTolerance"` // base64加密后的SQL语句,用";"号分隔每个SQL语句,一次最多提交50个任务。严格按照前后顺序执行 SQL *string `json:"SQL,omitempty" name:"SQL"` // 任务的配置信息,当前仅支持SparkSQLTask任务。 Config []*KVPair `json:"Config,omitempty" name:"Config"` // 任务的用户自定义参数信息 Params []*KVPair `json:"Params,omitempty" name:"Params"` }
type UnbindWorkGroupsFromUserRequest ¶ added in v1.0.206
type UnbindWorkGroupsFromUserRequest struct { *tchttp.BaseRequest // 解绑的工作组Id和用户Id的关联关系 AddInfo *WorkGroupIdSetOfUserId `json:"AddInfo,omitempty" name:"AddInfo"` }
func NewUnbindWorkGroupsFromUserRequest ¶ added in v1.0.206
func NewUnbindWorkGroupsFromUserRequest() (request *UnbindWorkGroupsFromUserRequest)
func (*UnbindWorkGroupsFromUserRequest) FromJsonString ¶ added in v1.0.206
func (r *UnbindWorkGroupsFromUserRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UnbindWorkGroupsFromUserRequest) ToJsonString ¶ added in v1.0.206
func (r *UnbindWorkGroupsFromUserRequest) ToJsonString() string
type UnbindWorkGroupsFromUserResponse ¶ added in v1.0.206
type UnbindWorkGroupsFromUserResponse struct { *tchttp.BaseResponse Response *struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } `json:"Response"` }
func NewUnbindWorkGroupsFromUserResponse ¶ added in v1.0.206
func NewUnbindWorkGroupsFromUserResponse() (response *UnbindWorkGroupsFromUserResponse)
func (*UnbindWorkGroupsFromUserResponse) FromJsonString ¶ added in v1.0.206
func (r *UnbindWorkGroupsFromUserResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UnbindWorkGroupsFromUserResponse) ToJsonString ¶ added in v1.0.206
func (r *UnbindWorkGroupsFromUserResponse) ToJsonString() string
type UserIdSetOfWorkGroupId ¶ added in v1.0.206
type UserInfo ¶ added in v1.0.206
type UserInfo struct { // 用户Id,和子用户uin相同 UserId *string `json:"UserId,omitempty" name:"UserId"` // 用户描述信息,方便区分不同用户 // 注意:此字段可能返回 null,表示取不到有效值。 UserDescription *string `json:"UserDescription,omitempty" name:"UserDescription"` // 单独给用户绑定的权限集合 // 注意:此字段可能返回 null,表示取不到有效值。 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` // 当前用户的创建者 Creator *string `json:"Creator,omitempty" name:"Creator"` // 创建时间,格式如2021-07-28 16:19:32 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 关联的工作组集合 // 注意:此字段可能返回 null,表示取不到有效值。 WorkGroupSet []*WorkGroupMessage `json:"WorkGroupSet,omitempty" name:"WorkGroupSet"` // 是否是主账号 // 注意:此字段可能返回 null,表示取不到有效值。 IsOwner *bool `json:"IsOwner,omitempty" name:"IsOwner"` // 用户类型。ADMIN:管理员 COMMON:普通用户。 // 注意:此字段可能返回 null,表示取不到有效值。 UserType *string `json:"UserType,omitempty" name:"UserType"` // 用户别名 // 注意:此字段可能返回 null,表示取不到有效值。 UserAlias *string `json:"UserAlias,omitempty" name:"UserAlias"` }
type UserMessage ¶ added in v1.0.206
type UserMessage struct { // 用户Id,和CAM侧子用户Uin匹配 UserId *string `json:"UserId,omitempty" name:"UserId"` // 用户描述 // 注意:此字段可能返回 null,表示取不到有效值。 UserDescription *string `json:"UserDescription,omitempty" name:"UserDescription"` // 当前用户的创建者 Creator *string `json:"Creator,omitempty" name:"Creator"` // 当前用户的创建时间,形如2021-07-28 16:19:32 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 用户别名 UserAlias *string `json:"UserAlias,omitempty" name:"UserAlias"` }
type ViewBaseInfo ¶
type ViewResponseInfo ¶
type ViewResponseInfo struct { // 视图基本信息。 ViewBaseInfo *ViewBaseInfo `json:"ViewBaseInfo,omitempty" name:"ViewBaseInfo"` // 视图列信息。 // 注意:此字段可能返回 null,表示取不到有效值。 Columns []*Column `json:"Columns,omitempty" name:"Columns"` // 视图属性信息。 // 注意:此字段可能返回 null,表示取不到有效值。 Properties []*Property `json:"Properties,omitempty" name:"Properties"` // 视图创建时间。 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` // 视图更新时间。 ModifiedTime *string `json:"ModifiedTime,omitempty" name:"ModifiedTime"` }
type WorkGroupIdSetOfUserId ¶ added in v1.0.206
type WorkGroupInfo ¶ added in v1.0.206
type WorkGroupInfo struct { // 查询到的工作组唯一Id WorkGroupId *int64 `json:"WorkGroupId,omitempty" name:"WorkGroupId"` // 工作组名称 WorkGroupName *string `json:"WorkGroupName,omitempty" name:"WorkGroupName"` // 工作组描述 // 注意:此字段可能返回 null,表示取不到有效值。 WorkGroupDescription *string `json:"WorkGroupDescription,omitempty" name:"WorkGroupDescription"` // 工作组关联的用户数量 UserNum *int64 `json:"UserNum,omitempty" name:"UserNum"` // 工作组关联的用户集合 // 注意:此字段可能返回 null,表示取不到有效值。 UserSet []*UserMessage `json:"UserSet,omitempty" name:"UserSet"` // 工作组绑定的权限集合 // 注意:此字段可能返回 null,表示取不到有效值。 PolicySet []*Policy `json:"PolicySet,omitempty" name:"PolicySet"` // 工作组的创建人 Creator *string `json:"Creator,omitempty" name:"Creator"` // 工作组的创建时间,形如2021-07-28 16:19:32 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }
type WorkGroupMessage ¶ added in v1.0.206
type WorkGroupMessage struct { // 工作组唯一Id WorkGroupId *int64 `json:"WorkGroupId,omitempty" name:"WorkGroupId"` // 工作组名称 WorkGroupName *string `json:"WorkGroupName,omitempty" name:"WorkGroupName"` // 工作组描述 // 注意:此字段可能返回 null,表示取不到有效值。 WorkGroupDescription *string `json:"WorkGroupDescription,omitempty" name:"WorkGroupDescription"` // 创建者 Creator *string `json:"Creator,omitempty" name:"Creator"` // 工作组创建的时间,形如2021-07-28 16:19:32 CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` }