v20220325

package
v3.0.1141+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Operation failed.
	FAILEDOPERATION = "FailedOperation"

	// Internal error.
	INTERNALERROR = "InternalError"

	// Parameter error.
	INVALIDPARAMETER = "InvalidParameter"

	// Parameter value error.
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// Missing required parameters.
	MISSINGPARAMETER = "MissingParameter"

	// Operation denied.
	OPERATIONDENIED = "OperationDenied"

	// The resource does not exist.
	RESOURCENOTFOUND = "ResourceNotFound"
)
View Source
const APIVersion = "2022-03-25"

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchDeleteDevicesRequest

type BatchDeleteDevicesRequest struct {
	*tchttp.BaseRequest

	// Project id of the targeted deleted device.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Device id array of the targeted deleted device.
	DeviceIds []*string `json:"DeviceIds,omitnil,omitempty" name:"DeviceIds"`
}

func NewBatchDeleteDevicesRequest

func NewBatchDeleteDevicesRequest() (request *BatchDeleteDevicesRequest)

func (*BatchDeleteDevicesRequest) FromJsonString

func (r *BatchDeleteDevicesRequest) 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 (*BatchDeleteDevicesRequest) ToJsonString

func (r *BatchDeleteDevicesRequest) ToJsonString() string

type BatchDeleteDevicesRequestParams

type BatchDeleteDevicesRequestParams struct {
	// Project id of the targeted deleted device.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Device id array of the targeted deleted device.
	DeviceIds []*string `json:"DeviceIds,omitnil,omitempty" name:"DeviceIds"`
}

Predefined struct for user

type BatchDeleteDevicesResponse

type BatchDeleteDevicesResponse struct {
	*tchttp.BaseResponse
	Response *BatchDeleteDevicesResponseParams `json:"Response"`
}

func NewBatchDeleteDevicesResponse

func NewBatchDeleteDevicesResponse() (response *BatchDeleteDevicesResponse)

func (*BatchDeleteDevicesResponse) FromJsonString

func (r *BatchDeleteDevicesResponse) 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 (*BatchDeleteDevicesResponse) ToJsonString

func (r *BatchDeleteDevicesResponse) ToJsonString() string

type BatchDeleteDevicesResponseParams

type BatchDeleteDevicesResponseParams struct {
	// List of device ids with deletion failed.
	FailedDeviceIds []*string `json:"FailedDeviceIds,omitnil,omitempty" name:"FailedDeviceIds"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type BatchDeletePolicyRequest

type BatchDeletePolicyRequest struct {
	*tchttp.BaseRequest

	// Project id of the deleted permission configuration.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Remote device id list of the deleted permission configuration.
	RemoteDeviceIds []*string `json:"RemoteDeviceIds,omitnil,omitempty" name:"RemoteDeviceIds"`

	// Permission mode of the deleted permission configuration, black for blocklist, white for allowlist.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`
}

func NewBatchDeletePolicyRequest

func NewBatchDeletePolicyRequest() (request *BatchDeletePolicyRequest)

func (*BatchDeletePolicyRequest) FromJsonString

func (r *BatchDeletePolicyRequest) 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 (*BatchDeletePolicyRequest) ToJsonString

func (r *BatchDeletePolicyRequest) ToJsonString() string

type BatchDeletePolicyRequestParams

type BatchDeletePolicyRequestParams struct {
	// Project id of the deleted permission configuration.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Remote device id list of the deleted permission configuration.
	RemoteDeviceIds []*string `json:"RemoteDeviceIds,omitnil,omitempty" name:"RemoteDeviceIds"`

	// Permission mode of the deleted permission configuration, black for blocklist, white for allowlist.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`
}

Predefined struct for user

type BatchDeletePolicyResponse

type BatchDeletePolicyResponse struct {
	*tchttp.BaseResponse
	Response *BatchDeletePolicyResponseParams `json:"Response"`
}

func NewBatchDeletePolicyResponse

func NewBatchDeletePolicyResponse() (response *BatchDeletePolicyResponse)

func (*BatchDeletePolicyResponse) FromJsonString

func (r *BatchDeletePolicyResponse) 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 (*BatchDeletePolicyResponse) ToJsonString

func (r *BatchDeletePolicyResponse) ToJsonString() string

type BatchDeletePolicyResponseParams

type BatchDeletePolicyResponseParams struct {
	// Remote device id list with failed permission configuration deletion.
	FailedRemoteDeviceIds []*string `json:"FailedRemoteDeviceIds,omitnil,omitempty" name:"FailedRemoteDeviceIds"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) BatchDeleteDevices

func (c *Client) BatchDeleteDevices(request *BatchDeleteDevicesRequest) (response *BatchDeleteDevicesResponse, err error)

BatchDeleteDevices This API is used to delete devices in batches.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) BatchDeleteDevicesWithContext

func (c *Client) BatchDeleteDevicesWithContext(ctx context.Context, request *BatchDeleteDevicesRequest) (response *BatchDeleteDevicesResponse, err error)

BatchDeleteDevices This API is used to delete devices in batches.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) BatchDeletePolicy

func (c *Client) BatchDeletePolicy(request *BatchDeletePolicyRequest) (response *BatchDeletePolicyResponse, err error)

BatchDeletePolicy This API is used to batch delete and modify permission configurations.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) BatchDeletePolicyWithContext

func (c *Client) BatchDeletePolicyWithContext(ctx context.Context, request *BatchDeletePolicyRequest) (response *BatchDeletePolicyResponse, err error)

BatchDeletePolicy This API is used to batch delete and modify permission configurations.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) CreateDevice

func (c *Client) CreateDevice(request *CreateDeviceRequest) (response *CreateDeviceResponse, err error)

CreateDevice This API is used to create a device.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) CreateDeviceWithContext

func (c *Client) CreateDeviceWithContext(ctx context.Context, request *CreateDeviceRequest) (response *CreateDeviceResponse, err error)

CreateDevice This API is used to create a device.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) CreateProject

func (c *Client) CreateProject(request *CreateProjectRequest) (response *CreateProjectResponse, err error)

CreateProject This API is used to create a project.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) CreateProjectWithContext

func (c *Client) CreateProjectWithContext(ctx context.Context, request *CreateProjectRequest) (response *CreateProjectResponse, err error)

CreateProject This API is used to create a project.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DeleteProject

func (c *Client) DeleteProject(request *DeleteProjectRequest) (response *DeleteProjectResponse, err error)

DeleteProject This API is used to delete a project.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DeleteProjectWithContext

func (c *Client) DeleteProjectWithContext(ctx context.Context, request *DeleteProjectRequest) (response *DeleteProjectResponse, err error)

DeleteProject This API is used to delete a project.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeDeviceInfo

func (c *Client) DescribeDeviceInfo(request *DescribeDeviceInfoRequest) (response *DescribeDeviceInfoResponse, err error)

DescribeDeviceInfo This API is used to get specified device information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeDeviceInfoWithContext

func (c *Client) DescribeDeviceInfoWithContext(ctx context.Context, request *DescribeDeviceInfoRequest) (response *DescribeDeviceInfoResponse, err error)

DescribeDeviceInfo This API is used to get specified device information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeDeviceSessionList

func (c *Client) DescribeDeviceSessionList(request *DescribeDeviceSessionListRequest) (response *DescribeDeviceSessionListResponse, err error)

DescribeDeviceSessionList Getting the device session list

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeDeviceSessionListWithContext

func (c *Client) DescribeDeviceSessionListWithContext(ctx context.Context, request *DescribeDeviceSessionListRequest) (response *DescribeDeviceSessionListResponse, err error)

DescribeDeviceSessionList Getting the device session list

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeProjectInfo

func (c *Client) DescribeProjectInfo(request *DescribeProjectInfoRequest) (response *DescribeProjectInfoResponse, err error)

DescribeProjectInfo This API is used to get project information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeProjectInfoWithContext

func (c *Client) DescribeProjectInfoWithContext(ctx context.Context, request *DescribeProjectInfoRequest) (response *DescribeProjectInfoResponse, err error)

DescribeProjectInfo This API is used to get project information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeProjectList

func (c *Client) DescribeProjectList(request *DescribeProjectListRequest) (response *DescribeProjectListResponse, err error)

DescribeProjectList This API is used to get project lists.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeProjectListWithContext

func (c *Client) DescribeProjectListWithContext(ctx context.Context, request *DescribeProjectListRequest) (response *DescribeProjectListResponse, err error)

DescribeProjectList This API is used to get project lists.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeRecentSessionList

func (c *Client) DescribeRecentSessionList(request *DescribeRecentSessionListRequest) (response *DescribeRecentSessionListResponse, err error)

DescribeRecentSessionList Get the latest device session list

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeRecentSessionListWithContext

func (c *Client) DescribeRecentSessionListWithContext(ctx context.Context, request *DescribeRecentSessionListRequest) (response *DescribeRecentSessionListResponse, err error)

DescribeRecentSessionList Get the latest device session list

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) DescribeSessionStatistics

func (c *Client) DescribeSessionStatistics(request *DescribeSessionStatisticsRequest) (response *DescribeSessionStatisticsResponse, err error)

DescribeSessionStatistics Get session statistical values

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeSessionStatisticsByInterval

func (c *Client) DescribeSessionStatisticsByInterval(request *DescribeSessionStatisticsByIntervalRequest) (response *DescribeSessionStatisticsByIntervalResponse, err error)

DescribeSessionStatisticsByInterval Getting session statistics for each time period

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeSessionStatisticsByIntervalWithContext

func (c *Client) DescribeSessionStatisticsByIntervalWithContext(ctx context.Context, request *DescribeSessionStatisticsByIntervalRequest) (response *DescribeSessionStatisticsByIntervalResponse, err error)

DescribeSessionStatisticsByInterval Getting session statistics for each time period

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) DescribeSessionStatisticsWithContext

func (c *Client) DescribeSessionStatisticsWithContext(ctx context.Context, request *DescribeSessionStatisticsRequest) (response *DescribeSessionStatisticsResponse, err error)

DescribeSessionStatistics Get session statistical values

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
RESOURCENOTFOUND = "ResourceNotFound"

func (*Client) GetDeviceLicense

func (c *Client) GetDeviceLicense(request *GetDeviceLicenseRequest) (response *GetDeviceLicenseResponse, err error)

GetDeviceLicense Obtain the quantity of available authorizations already bound to the device

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetDeviceLicenseWithContext

func (c *Client) GetDeviceLicenseWithContext(ctx context.Context, request *GetDeviceLicenseRequest) (response *GetDeviceLicenseResponse, err error)

GetDeviceLicense Obtain the quantity of available authorizations already bound to the device

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetDevices

func (c *Client) GetDevices(request *GetDevicesRequest) (response *GetDevicesResponse, err error)

GetDevices Query the authorization binding status of user devices

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetDevicesWithContext

func (c *Client) GetDevicesWithContext(ctx context.Context, request *GetDevicesRequest) (response *GetDevicesResponse, err error)

GetDevices Query the authorization binding status of user devices

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetLicenseStat

func (c *Client) GetLicenseStat(request *GetLicenseStatRequest) (response *GetLicenseStatResponse, err error)

GetLicenseStat Statistics of license types and quantities

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetLicenseStatWithContext

func (c *Client) GetLicenseStatWithContext(ctx context.Context, request *GetLicenseStatRequest) (response *GetLicenseStatResponse, err error)

GetLicenseStat Statistics of license types and quantities

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetLicenses

func (c *Client) GetLicenses(request *GetLicensesRequest) (response *GetLicensesResponse, err error)

GetLicenses View the license list by authorization

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetLicensesWithContext

func (c *Client) GetLicensesWithContext(ctx context.Context, request *GetLicensesRequest) (response *GetLicensesResponse, err error)

GetLicenses View the license list by authorization

error code that may be returned:

INTERNALERROR = "InternalError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) ModifyDevice

func (c *Client) ModifyDevice(request *ModifyDeviceRequest) (response *ModifyDeviceResponse, err error)

ModifyDevice This API is used to modify device information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) ModifyDeviceWithContext

func (c *Client) ModifyDeviceWithContext(ctx context.Context, request *ModifyDeviceRequest) (response *ModifyDeviceResponse, err error)

ModifyDevice This API is used to modify device information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) ModifyPolicy

func (c *Client) ModifyPolicy(request *ModifyPolicyRequest) (response *ModifyPolicyResponse, err error)

ModifyPolicy This API is used to modify permission configuration.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) ModifyPolicyWithContext

func (c *Client) ModifyPolicyWithContext(ctx context.Context, request *ModifyPolicyRequest) (response *ModifyPolicyResponse, err error)

ModifyPolicy This API is used to modify permission configuration.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) ModifyProject

func (c *Client) ModifyProject(request *ModifyProjectRequest) (response *ModifyProjectResponse, err error)

ModifyProject This API is used to modify project information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) ModifyProjectWithContext

func (c *Client) ModifyProjectWithContext(ctx context.Context, request *ModifyProjectRequest) (response *ModifyProjectResponse, err error)

ModifyProject This API is used to modify project information.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"

type CreateDeviceRequest

type CreateDeviceRequest struct {
	*tchttp.BaseRequest

	// Create the project id to which the device belongs.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Create a device id, which must be unique within the project, consisting of lowercase english letters, numbers, and underscores, with a length not exceeding 18.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Create a device name, with a length of less than 24, which can include chinese, numbers, english letters, and underscores.
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// Device type, field for on-site device (controlled device), remote for remote device (control device), default is field if not specified.
	DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`

	// Device authentication password, consisting of uppercase and lowercase english letters and digits, must be 16 characters.
	DeviceToken *string `json:"DeviceToken,omitnil,omitempty" name:"DeviceToken"`
}

func NewCreateDeviceRequest

func NewCreateDeviceRequest() (request *CreateDeviceRequest)

func (*CreateDeviceRequest) FromJsonString

func (r *CreateDeviceRequest) 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 (*CreateDeviceRequest) ToJsonString

func (r *CreateDeviceRequest) ToJsonString() string

type CreateDeviceRequestParams

type CreateDeviceRequestParams struct {
	// Create the project id to which the device belongs.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Create a device id, which must be unique within the project, consisting of lowercase english letters, numbers, and underscores, with a length not exceeding 18.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Create a device name, with a length of less than 24, which can include chinese, numbers, english letters, and underscores.
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// Device type, field for on-site device (controlled device), remote for remote device (control device), default is field if not specified.
	DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`

	// Device authentication password, consisting of uppercase and lowercase english letters and digits, must be 16 characters.
	DeviceToken *string `json:"DeviceToken,omitnil,omitempty" name:"DeviceToken"`
}

Predefined struct for user

type CreateDeviceResponse

type CreateDeviceResponse struct {
	*tchttp.BaseResponse
	Response *CreateDeviceResponseParams `json:"Response"`
}

func NewCreateDeviceResponse

func NewCreateDeviceResponse() (response *CreateDeviceResponse)

func (*CreateDeviceResponse) FromJsonString

func (r *CreateDeviceResponse) 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 (*CreateDeviceResponse) ToJsonString

func (r *CreateDeviceResponse) ToJsonString() string

type CreateDeviceResponseParams

type CreateDeviceResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateProjectRequest

type CreateProjectRequest struct {
	*tchttp.BaseRequest

	// Project name, up to 24 characters.
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// Project description, up to 120 characters, default is empty if not filled.
	ProjectDescription *string `json:"ProjectDescription,omitnil,omitempty" name:"ProjectDescription"`

	// Permission mode, black for blocklist, white for allowlist. defaults to black if not specified.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`
}

func NewCreateProjectRequest

func NewCreateProjectRequest() (request *CreateProjectRequest)

func (*CreateProjectRequest) FromJsonString

func (r *CreateProjectRequest) 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 (*CreateProjectRequest) ToJsonString

func (r *CreateProjectRequest) ToJsonString() string

type CreateProjectRequestParams

type CreateProjectRequestParams struct {
	// Project name, up to 24 characters.
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// Project description, up to 120 characters, default is empty if not filled.
	ProjectDescription *string `json:"ProjectDescription,omitnil,omitempty" name:"ProjectDescription"`

	// Permission mode, black for blocklist, white for allowlist. defaults to black if not specified.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`
}

Predefined struct for user

type CreateProjectResponse

type CreateProjectResponse struct {
	*tchttp.BaseResponse
	Response *CreateProjectResponseParams `json:"Response"`
}

func NewCreateProjectResponse

func NewCreateProjectResponse() (response *CreateProjectResponse)

func (*CreateProjectResponse) FromJsonString

func (r *CreateProjectResponse) 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 (*CreateProjectResponse) ToJsonString

func (r *CreateProjectResponse) ToJsonString() string

type CreateProjectResponseParams

type CreateProjectResponseParams struct {
	// Project id, length is 16 characters.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteProjectRequest

type DeleteProjectRequest struct {
	*tchttp.BaseRequest

	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

func NewDeleteProjectRequest

func NewDeleteProjectRequest() (request *DeleteProjectRequest)

func (*DeleteProjectRequest) FromJsonString

func (r *DeleteProjectRequest) 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 (*DeleteProjectRequest) ToJsonString

func (r *DeleteProjectRequest) ToJsonString() string

type DeleteProjectRequestParams

type DeleteProjectRequestParams struct {
	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

Predefined struct for user

type DeleteProjectResponse

type DeleteProjectResponse struct {
	*tchttp.BaseResponse
	Response *DeleteProjectResponseParams `json:"Response"`
}

func NewDeleteProjectResponse

func NewDeleteProjectResponse() (response *DeleteProjectResponse)

func (*DeleteProjectResponse) FromJsonString

func (r *DeleteProjectResponse) 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 (*DeleteProjectResponse) ToJsonString

func (r *DeleteProjectResponse) ToJsonString() string

type DeleteProjectResponseParams

type DeleteProjectResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDeviceInfoRequest

type DescribeDeviceInfoRequest struct {
	*tchttp.BaseRequest

	// Project id to which the target device belongs.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Target device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

func NewDescribeDeviceInfoRequest

func NewDescribeDeviceInfoRequest() (request *DescribeDeviceInfoRequest)

func (*DescribeDeviceInfoRequest) FromJsonString

func (r *DescribeDeviceInfoRequest) 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 (*DescribeDeviceInfoRequest) ToJsonString

func (r *DescribeDeviceInfoRequest) ToJsonString() string

type DescribeDeviceInfoRequestParams

type DescribeDeviceInfoRequestParams struct {
	// Project id to which the target device belongs.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Target device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

Predefined struct for user

type DescribeDeviceInfoResponse

type DescribeDeviceInfoResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDeviceInfoResponseParams `json:"Response"`
}

func NewDescribeDeviceInfoResponse

func NewDescribeDeviceInfoResponse() (response *DescribeDeviceInfoResponse)

func (*DescribeDeviceInfoResponse) FromJsonString

func (r *DescribeDeviceInfoResponse) 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 (*DescribeDeviceInfoResponse) ToJsonString

func (r *DescribeDeviceInfoResponse) ToJsonString() string

type DescribeDeviceInfoResponseParams

type DescribeDeviceInfoResponseParams struct {
	// Device name.
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// Device type: "field" specifies on-site devices (controlled party), and "remote" specifies remote devices (controlling party).
	DeviceType *string `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`

	// Device status: offline means offline, ready means online and ready, connected means in session.
	DeviceStatus *string `json:"DeviceStatus,omitnil,omitempty" name:"DeviceStatus"`

	// Last updated time of device status.
	LastReportTime *string `json:"LastReportTime,omitnil,omitempty" name:"LastReportTime"`

	// Modification time of device information.
	ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDeviceSessionListRequest

type DescribeDeviceSessionListRequest struct {
	*tchttp.BaseRequest

	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Page number, beginning from 1.
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// Number of entries per page.
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

func NewDescribeDeviceSessionListRequest

func NewDescribeDeviceSessionListRequest() (request *DescribeDeviceSessionListRequest)

func (*DescribeDeviceSessionListRequest) FromJsonString

func (r *DescribeDeviceSessionListRequest) 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 (*DescribeDeviceSessionListRequest) ToJsonString

func (r *DescribeDeviceSessionListRequest) ToJsonString() string

type DescribeDeviceSessionListRequestParams

type DescribeDeviceSessionListRequestParams struct {
	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Page number, beginning from 1.
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// Number of entries per page.
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

Predefined struct for user

type DescribeDeviceSessionListResponse

type DescribeDeviceSessionListResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDeviceSessionListResponseParams `json:"Response"`
}

func NewDescribeDeviceSessionListResponse

func NewDescribeDeviceSessionListResponse() (response *DescribeDeviceSessionListResponse)

func (*DescribeDeviceSessionListResponse) FromJsonString

func (r *DescribeDeviceSessionListResponse) 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 (*DescribeDeviceSessionListResponse) ToJsonString

func (r *DescribeDeviceSessionListResponse) ToJsonString() string

type DescribeDeviceSessionListResponseParams

type DescribeDeviceSessionListResponseParams struct {
	// Total number.
	Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`

	// Conversation list.
	DeviceSessionList []*SessionInfo `json:"DeviceSessionList,omitnil,omitempty" name:"DeviceSessionList"`

	// Number of items on this page.
	Num *uint64 `json:"Num,omitnil,omitempty" name:"Num"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeProjectInfoRequest

type DescribeProjectInfoRequest struct {
	*tchttp.BaseRequest

	// Target project id. required parameter.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

func NewDescribeProjectInfoRequest

func NewDescribeProjectInfoRequest() (request *DescribeProjectInfoRequest)

func (*DescribeProjectInfoRequest) FromJsonString

func (r *DescribeProjectInfoRequest) 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 (*DescribeProjectInfoRequest) ToJsonString

func (r *DescribeProjectInfoRequest) ToJsonString() string

type DescribeProjectInfoRequestParams

type DescribeProjectInfoRequestParams struct {
	// Target project id. required parameter.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`
}

Predefined struct for user

type DescribeProjectInfoResponse

type DescribeProjectInfoResponse struct {
	*tchttp.BaseResponse
	Response *DescribeProjectInfoResponseParams `json:"Response"`
}

func NewDescribeProjectInfoResponse

func NewDescribeProjectInfoResponse() (response *DescribeProjectInfoResponse)

func (*DescribeProjectInfoResponse) FromJsonString

func (r *DescribeProjectInfoResponse) 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 (*DescribeProjectInfoResponse) ToJsonString

func (r *DescribeProjectInfoResponse) ToJsonString() string

type DescribeProjectInfoResponseParams

type DescribeProjectInfoResponseParams struct {
	// Project name.
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// Project description.
	ProjectDescription *string `json:"ProjectDescription,omitnil,omitempty" name:"ProjectDescription"`

	// Project permission mode, black for blocklist, white for allowlist.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`

	// Project information modification time.
	ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeProjectListRequest

type DescribeProjectListRequest struct {
	*tchttp.BaseRequest

	// The maximum number of projects returned per page. the default value is 10 if it is not filled in.
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// The current page number. the default value is 1 (homepage) if it is not filled in.
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`
}

func NewDescribeProjectListRequest

func NewDescribeProjectListRequest() (request *DescribeProjectListRequest)

func (*DescribeProjectListRequest) FromJsonString

func (r *DescribeProjectListRequest) 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 (*DescribeProjectListRequest) ToJsonString

func (r *DescribeProjectListRequest) ToJsonString() string

type DescribeProjectListRequestParams

type DescribeProjectListRequestParams struct {
	// The maximum number of projects returned per page. the default value is 10 if it is not filled in.
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// The current page number. the default value is 1 (homepage) if it is not filled in.
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`
}

Predefined struct for user

type DescribeProjectListResponse

type DescribeProjectListResponse struct {
	*tchttp.BaseResponse
	Response *DescribeProjectListResponseParams `json:"Response"`
}

func NewDescribeProjectListResponse

func NewDescribeProjectListResponse() (response *DescribeProjectListResponse)

func (*DescribeProjectListResponse) FromJsonString

func (r *DescribeProjectListResponse) 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 (*DescribeProjectListResponse) ToJsonString

func (r *DescribeProjectListResponse) ToJsonString() string

type DescribeProjectListResponseParams

type DescribeProjectListResponseParams struct {
	// Array of project information.
	Projects []*ProjectInfo `json:"Projects,omitnil,omitempty" name:"Projects"`

	// Total number of projects.
	Total *int64 `json:"Total,omitnil,omitempty" name:"Total"`

	// Number of projects returned in this request.
	Num *int64 `json:"Num,omitnil,omitempty" name:"Num"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeRecentSessionListRequest

type DescribeRecentSessionListRequest struct {
	*tchttp.BaseRequest

	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Page number, beginning from 1.
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// Number of entries per page.
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// Device id, supports filtering by remote device or on-site device.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time of the time range. the maximum time range is the last two hours. if not specified or out of range, the start time is calculated as two hours ago.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the time range. the maximum time range is the last two hours. if not specified or out of range, the end time is calculated as the current time.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

func NewDescribeRecentSessionListRequest

func NewDescribeRecentSessionListRequest() (request *DescribeRecentSessionListRequest)

func (*DescribeRecentSessionListRequest) FromJsonString

func (r *DescribeRecentSessionListRequest) 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 (*DescribeRecentSessionListRequest) ToJsonString

func (r *DescribeRecentSessionListRequest) ToJsonString() string

type DescribeRecentSessionListRequestParams

type DescribeRecentSessionListRequestParams struct {
	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Page number, beginning from 1.
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// Number of entries per page.
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// Device id, supports filtering by remote device or on-site device.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time of the time range. the maximum time range is the last two hours. if not specified or out of range, the start time is calculated as two hours ago.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time of the time range. the maximum time range is the last two hours. if not specified or out of range, the end time is calculated as the current time.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

Predefined struct for user

type DescribeRecentSessionListResponse

type DescribeRecentSessionListResponse struct {
	*tchttp.BaseResponse
	Response *DescribeRecentSessionListResponseParams `json:"Response"`
}

func NewDescribeRecentSessionListResponse

func NewDescribeRecentSessionListResponse() (response *DescribeRecentSessionListResponse)

func (*DescribeRecentSessionListResponse) FromJsonString

func (r *DescribeRecentSessionListResponse) 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 (*DescribeRecentSessionListResponse) ToJsonString

func (r *DescribeRecentSessionListResponse) ToJsonString() string

type DescribeRecentSessionListResponseParams

type DescribeRecentSessionListResponseParams struct {
	// Total number.
	Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`

	// Conversation list.
	RecentSessionList []*RecentSessionInfo `json:"RecentSessionList,omitnil,omitempty" name:"RecentSessionList"`

	// Number of items on this page.
	Num *uint64 `json:"Num,omitnil,omitempty" name:"Num"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeSessionStatisticsByIntervalRequest

type DescribeSessionStatisticsByIntervalRequest struct {
	*tchttp.BaseRequest

	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Statistical time interval: hour|day|month.
	StatisticInterval *string `json:"StatisticInterval,omitnil,omitempty" name:"StatisticInterval"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time in seconds.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time in seconds.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

func NewDescribeSessionStatisticsByIntervalRequest

func NewDescribeSessionStatisticsByIntervalRequest() (request *DescribeSessionStatisticsByIntervalRequest)

func (*DescribeSessionStatisticsByIntervalRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSessionStatisticsByIntervalRequest) ToJsonString

type DescribeSessionStatisticsByIntervalRequestParams

type DescribeSessionStatisticsByIntervalRequestParams struct {
	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Statistical time interval: hour|day|month.
	StatisticInterval *string `json:"StatisticInterval,omitnil,omitempty" name:"StatisticInterval"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time in seconds.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time in seconds.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

Predefined struct for user

type DescribeSessionStatisticsByIntervalResponse

type DescribeSessionStatisticsByIntervalResponse struct {
	*tchttp.BaseResponse
	Response *DescribeSessionStatisticsByIntervalResponseParams `json:"Response"`
}

func NewDescribeSessionStatisticsByIntervalResponse

func NewDescribeSessionStatisticsByIntervalResponse() (response *DescribeSessionStatisticsByIntervalResponse)

func (*DescribeSessionStatisticsByIntervalResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeSessionStatisticsByIntervalResponse) ToJsonString

type DescribeSessionStatisticsByIntervalResponseParams

type DescribeSessionStatisticsByIntervalResponseParams struct {
	// Session statistics for each time period.
	SessionStatistics []*SessionIntervalStatistic `json:"SessionStatistics,omitnil,omitempty" name:"SessionStatistics"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeSessionStatisticsRequest

type DescribeSessionStatisticsRequest struct {
	*tchttp.BaseRequest

	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time, unit: seconds.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time in seconds.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

func NewDescribeSessionStatisticsRequest

func NewDescribeSessionStatisticsRequest() (request *DescribeSessionStatisticsRequest)

func (*DescribeSessionStatisticsRequest) FromJsonString

func (r *DescribeSessionStatisticsRequest) 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 (*DescribeSessionStatisticsRequest) ToJsonString

func (r *DescribeSessionStatisticsRequest) ToJsonString() string

type DescribeSessionStatisticsRequestParams

type DescribeSessionStatisticsRequestParams struct {
	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Start time, unit: seconds.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// End time in seconds.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`
}

Predefined struct for user

type DescribeSessionStatisticsResponse

type DescribeSessionStatisticsResponse struct {
	*tchttp.BaseResponse
	Response *DescribeSessionStatisticsResponseParams `json:"Response"`
}

func NewDescribeSessionStatisticsResponse

func NewDescribeSessionStatisticsResponse() (response *DescribeSessionStatisticsResponse)

func (*DescribeSessionStatisticsResponse) FromJsonString

func (r *DescribeSessionStatisticsResponse) 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 (*DescribeSessionStatisticsResponse) ToJsonString

func (r *DescribeSessionStatisticsResponse) ToJsonString() string

type DescribeSessionStatisticsResponseParams

type DescribeSessionStatisticsResponseParams struct {
	// Number of sessions.
	SessionNum *uint64 `json:"SessionNum,omitnil,omitempty" name:"SessionNum"`

	// Call duration, unit: minutes.
	TotalDuration *uint64 `json:"TotalDuration,omitnil,omitempty" name:"TotalDuration"`

	// Number of active on-site devices.
	ActiveFieldDeviceNum *uint64 `json:"ActiveFieldDeviceNum,omitnil,omitempty" name:"ActiveFieldDeviceNum"`

	// Number of active remote devices.
	ActiveRemoteDeviceNum *uint64 `json:"ActiveRemoteDeviceNum,omitnil,omitempty" name:"ActiveRemoteDeviceNum"`

	// Proportion of excellent sessions, unit: %.
	NotBadSessionRatio *uint64 `json:"NotBadSessionRatio,omitnil,omitempty" name:"NotBadSessionRatio"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Device

type Device struct {
	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// Device name.
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// Number of bound licenses.
	LicenseCount *int64 `json:"LicenseCount,omitnil,omitempty" name:"LicenseCount"`

	// Remaining days: days.
	RemainDay *int64 `json:"RemainDay,omitnil,omitempty" name:"RemainDay"`

	// Expiration time: s.
	ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`

	// Service duration: s.
	Duration *string `json:"Duration,omitnil,omitempty" name:"Duration"`

	// List of bound license ids.
	LicenseIds []*string `json:"LicenseIds,omitnil,omitempty" name:"LicenseIds"`

	// Monthly license duration limit.
	MonthlyRemainTime *int64 `json:"MonthlyRemainTime,omitnil,omitempty" name:"MonthlyRemainTime"`

	// Monthly maximum duration (minutes).
	LimitedTime *int64 `json:"LimitedTime,omitnil,omitempty" name:"LimitedTime"`
}

type GetDeviceLicenseRequest

type GetDeviceLicenseRequest struct {
	*tchttp.BaseRequest

	// Project id to which the target device belongs.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Target device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

func NewGetDeviceLicenseRequest

func NewGetDeviceLicenseRequest() (request *GetDeviceLicenseRequest)

func (*GetDeviceLicenseRequest) FromJsonString

func (r *GetDeviceLicenseRequest) 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 (*GetDeviceLicenseRequest) ToJsonString

func (r *GetDeviceLicenseRequest) ToJsonString() string

type GetDeviceLicenseRequestParams

type GetDeviceLicenseRequestParams struct {
	// Project id to which the target device belongs.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Target device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

Predefined struct for user

type GetDeviceLicenseResponse

type GetDeviceLicenseResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceLicenseResponseParams `json:"Response"`
}

func NewGetDeviceLicenseResponse

func NewGetDeviceLicenseResponse() (response *GetDeviceLicenseResponse)

func (*GetDeviceLicenseResponse) FromJsonString

func (r *GetDeviceLicenseResponse) 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 (*GetDeviceLicenseResponse) ToJsonString

func (r *GetDeviceLicenseResponse) ToJsonString() string

type GetDeviceLicenseResponseParams

type GetDeviceLicenseResponseParams struct {
	// Specifies the number of available licenses bound to the specified device.
	AvailableCount *int64 `json:"AvailableCount,omitnil,omitempty" name:"AvailableCount"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetDevicesRequest

type GetDevicesRequest struct {
	*tchttp.BaseRequest

	// Page number.
	PageNum *int64 `json:"PageNum,omitnil,omitempty" name:"PageNum"`

	// Number of pages.
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

func NewGetDevicesRequest

func NewGetDevicesRequest() (request *GetDevicesRequest)

func (*GetDevicesRequest) FromJsonString

func (r *GetDevicesRequest) 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 (*GetDevicesRequest) ToJsonString

func (r *GetDevicesRequest) ToJsonString() string

type GetDevicesRequestParams

type GetDevicesRequestParams struct {
	// Page number.
	PageNum *int64 `json:"PageNum,omitnil,omitempty" name:"PageNum"`

	// Number of pages.
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Device id.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

Predefined struct for user

type GetDevicesResponse

type GetDevicesResponse struct {
	*tchttp.BaseResponse
	Response *GetDevicesResponseParams `json:"Response"`
}

func NewGetDevicesResponse

func NewGetDevicesResponse() (response *GetDevicesResponse)

func (*GetDevicesResponse) FromJsonString

func (r *GetDevicesResponse) 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 (*GetDevicesResponse) ToJsonString

func (r *GetDevicesResponse) ToJsonString() string

type GetDevicesResponseParams

type GetDevicesResponseParams struct {
	// Device authorization list.
	Devices []*Device `json:"Devices,omitnil,omitempty" name:"Devices"`

	// Number of tables in the list.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetLicenseStatRequest

type GetLicenseStatRequest struct {
	*tchttp.BaseRequest
}

func NewGetLicenseStatRequest

func NewGetLicenseStatRequest() (request *GetLicenseStatRequest)

func (*GetLicenseStatRequest) FromJsonString

func (r *GetLicenseStatRequest) 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 (*GetLicenseStatRequest) ToJsonString

func (r *GetLicenseStatRequest) ToJsonString() string

type GetLicenseStatRequestParams

type GetLicenseStatRequestParams struct {
}

Predefined struct for user

type GetLicenseStatResponse

type GetLicenseStatResponse struct {
	*tchttp.BaseResponse
	Response *GetLicenseStatResponseParams `json:"Response"`
}

func NewGetLicenseStatResponse

func NewGetLicenseStatResponse() (response *GetLicenseStatResponse)

func (*GetLicenseStatResponse) FromJsonString

func (r *GetLicenseStatResponse) 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 (*GetLicenseStatResponse) ToJsonString

func (r *GetLicenseStatResponse) ToJsonString() string

type GetLicenseStatResponseParams

type GetLicenseStatResponseParams struct {
	// Valid authorization.
	Valid *int64 `json:"Valid,omitnil,omitempty" name:"Valid"`

	// Bound authorization.
	Bound *int64 `json:"Bound,omitnil,omitempty" name:"Bound"`

	// Unbound authorization.
	UnBound *int64 `json:"UnBound,omitnil,omitempty" name:"UnBound"`

	// Expired authorization.
	Expire *int64 `json:"Expire,omitnil,omitempty" name:"Expire"`

	// Number of authorization timeouts for the current month.
	MonthlyExpire *int64 `json:"MonthlyExpire,omitnil,omitempty" name:"MonthlyExpire"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetLicensesRequest

type GetLicensesRequest struct {
	*tchttp.BaseRequest

	// Page number.
	PageNum *int64 `json:"PageNum,omitnil,omitempty" name:"PageNum"`

	// Number of pages.
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// projectId
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// DeviceId
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// License status. 0: unbound; 1: bound; 2: service suspension; 3: refund.
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}

func NewGetLicensesRequest

func NewGetLicensesRequest() (request *GetLicensesRequest)

func (*GetLicensesRequest) FromJsonString

func (r *GetLicensesRequest) 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 (*GetLicensesRequest) ToJsonString

func (r *GetLicensesRequest) ToJsonString() string

type GetLicensesRequestParams

type GetLicensesRequestParams struct {
	// Page number.
	PageNum *int64 `json:"PageNum,omitnil,omitempty" name:"PageNum"`

	// Number of pages.
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// projectId
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// DeviceId
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// License status. 0: unbound; 1: bound; 2: service suspension; 3: refund.
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}

Predefined struct for user

type GetLicensesResponse

type GetLicensesResponse struct {
	*tchttp.BaseResponse
	Response *GetLicensesResponseParams `json:"Response"`
}

func NewGetLicensesResponse

func NewGetLicensesResponse() (response *GetLicensesResponse)

func (*GetLicensesResponse) FromJsonString

func (r *GetLicensesResponse) 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 (*GetLicensesResponse) ToJsonString

func (r *GetLicensesResponse) ToJsonString() string

type GetLicensesResponseParams

type GetLicensesResponseParams struct {
	// License list.
	Licenses []*License `json:"Licenses,omitnil,omitempty" name:"Licenses"`

	// Number of license list items.
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type License

type License struct {
	// The number of licenses of this type.
	Count *int64 `json:"Count,omitnil,omitempty" name:"Count"`

	// License status. 0: unbound; 1: bound; 2: service suspension; 3: refund.
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// Expiration timestamp: s.
	ExpireTime *string `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`

	// Service duration: s.
	Duration *string `json:"Duration,omitnil,omitempty" name:"Duration"`

	// Remaining days: days.
	RemainDay *int64 `json:"RemainDay,omitnil,omitempty" name:"RemainDay"`

	// The list of license ids of this type.
	LicenseIds []*string `json:"LicenseIds,omitnil,omitempty" name:"LicenseIds"`
}

type ModifyDeviceRequest

type ModifyDeviceRequest struct {
	*tchttp.BaseRequest

	// The target project id to modify the device's affiliated project.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// The target device id to modify the device.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// The modified device name; if not filled in, no modification will be made.
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// The modified device authentication password; if not filled in, no modification will be made.
	DeviceToken *string `json:"DeviceToken,omitnil,omitempty" name:"DeviceToken"`
}

func NewModifyDeviceRequest

func NewModifyDeviceRequest() (request *ModifyDeviceRequest)

func (*ModifyDeviceRequest) FromJsonString

func (r *ModifyDeviceRequest) 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 (*ModifyDeviceRequest) ToJsonString

func (r *ModifyDeviceRequest) ToJsonString() string

type ModifyDeviceRequestParams

type ModifyDeviceRequestParams struct {
	// The target project id to modify the device's affiliated project.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// The target device id to modify the device.
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// The modified device name; if not filled in, no modification will be made.
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// The modified device authentication password; if not filled in, no modification will be made.
	DeviceToken *string `json:"DeviceToken,omitnil,omitempty" name:"DeviceToken"`
}

Predefined struct for user

type ModifyDeviceResponse

type ModifyDeviceResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDeviceResponseParams `json:"Response"`
}

func NewModifyDeviceResponse

func NewModifyDeviceResponse() (response *ModifyDeviceResponse)

func (*ModifyDeviceResponse) FromJsonString

func (r *ModifyDeviceResponse) 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 (*ModifyDeviceResponse) ToJsonString

func (r *ModifyDeviceResponse) ToJsonString() string

type ModifyDeviceResponseParams

type ModifyDeviceResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyPolicyRequest

type ModifyPolicyRequest struct {
	*tchttp.BaseRequest

	// Project id for modifying permission configuration.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Remote device id for modifying permission configuration.
	RemoteDeviceId *string `json:"RemoteDeviceId,omitnil,omitempty" name:"RemoteDeviceId"`

	// Array of on-site device ids involved in permission modification.
	FieldDeviceIds []*string `json:"FieldDeviceIds,omitnil,omitempty" name:"FieldDeviceIds"`

	// The target permission mode to modify, black for blocklist, white for allowlist.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`

	// Modification mode, add for adding (associating on-site devices), remove for deletion (dissociating on-site devices), set for setting (updating on-site device association).
	ModifyMode *string `json:"ModifyMode,omitnil,omitempty" name:"ModifyMode"`
}

func NewModifyPolicyRequest

func NewModifyPolicyRequest() (request *ModifyPolicyRequest)

func (*ModifyPolicyRequest) FromJsonString

func (r *ModifyPolicyRequest) 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 (*ModifyPolicyRequest) ToJsonString

func (r *ModifyPolicyRequest) ToJsonString() string

type ModifyPolicyRequestParams

type ModifyPolicyRequestParams struct {
	// Project id for modifying permission configuration.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Remote device id for modifying permission configuration.
	RemoteDeviceId *string `json:"RemoteDeviceId,omitnil,omitempty" name:"RemoteDeviceId"`

	// Array of on-site device ids involved in permission modification.
	FieldDeviceIds []*string `json:"FieldDeviceIds,omitnil,omitempty" name:"FieldDeviceIds"`

	// The target permission mode to modify, black for blocklist, white for allowlist.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`

	// Modification mode, add for adding (associating on-site devices), remove for deletion (dissociating on-site devices), set for setting (updating on-site device association).
	ModifyMode *string `json:"ModifyMode,omitnil,omitempty" name:"ModifyMode"`
}

Predefined struct for user

type ModifyPolicyResponse

type ModifyPolicyResponse struct {
	*tchttp.BaseResponse
	Response *ModifyPolicyResponseParams `json:"Response"`
}

func NewModifyPolicyResponse

func NewModifyPolicyResponse() (response *ModifyPolicyResponse)

func (*ModifyPolicyResponse) FromJsonString

func (r *ModifyPolicyResponse) 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 (*ModifyPolicyResponse) ToJsonString

func (r *ModifyPolicyResponse) ToJsonString() string

type ModifyPolicyResponseParams

type ModifyPolicyResponseParams struct {
	// List of on-site device ids with association failed.
	FailedInsertIds []*string `json:"FailedInsertIds,omitnil,omitempty" name:"FailedInsertIds"`

	// List of on-site device ids with disassociation failed.
	FailedDeleteIds []*string `json:"FailedDeleteIds,omitnil,omitempty" name:"FailedDeleteIds"`

	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyProjectRequest

type ModifyProjectRequest struct {
	*tchttp.BaseRequest

	// Project id of the target project to modify.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Modified project name, leave blank if not modifying.
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// Modified project description, leave blank if not modifying.
	ProjectDescription *string `json:"ProjectDescription,omitnil,omitempty" name:"ProjectDescription"`

	// The modified permission mode, black for blocklist, white for allowlist. if not specified, no modification will be made.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`
}

func NewModifyProjectRequest

func NewModifyProjectRequest() (request *ModifyProjectRequest)

func (*ModifyProjectRequest) FromJsonString

func (r *ModifyProjectRequest) 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 (*ModifyProjectRequest) ToJsonString

func (r *ModifyProjectRequest) ToJsonString() string

type ModifyProjectRequestParams

type ModifyProjectRequestParams struct {
	// Project id of the target project to modify.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Modified project name, leave blank if not modifying.
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// Modified project description, leave blank if not modifying.
	ProjectDescription *string `json:"ProjectDescription,omitnil,omitempty" name:"ProjectDescription"`

	// The modified permission mode, black for blocklist, white for allowlist. if not specified, no modification will be made.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`
}

Predefined struct for user

type ModifyProjectResponse

type ModifyProjectResponse struct {
	*tchttp.BaseResponse
	Response *ModifyProjectResponseParams `json:"Response"`
}

func NewModifyProjectResponse

func NewModifyProjectResponse() (response *ModifyProjectResponse)

func (*ModifyProjectResponse) FromJsonString

func (r *ModifyProjectResponse) 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 (*ModifyProjectResponse) ToJsonString

func (r *ModifyProjectResponse) ToJsonString() string

type ModifyProjectResponseParams

type ModifyProjectResponseParams struct {
	// The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ProjectInfo

type ProjectInfo struct {
	// Project id.
	ProjectId *string `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// Project name.
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// Project description.
	ProjectDescription *string `json:"ProjectDescription,omitnil,omitempty" name:"ProjectDescription"`

	// Project permission mode, black for blocklist, white for allowlist.
	PolicyMode *string `json:"PolicyMode,omitnil,omitempty" name:"PolicyMode"`

	// Project information modification time.
	ModifyTime *string `json:"ModifyTime,omitnil,omitempty" name:"ModifyTime"`
}

type RecentSessionInfo

type RecentSessionInfo struct {
	// Session id.
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`

	// Remote device id.
	RemoteDeviceId *string `json:"RemoteDeviceId,omitnil,omitempty" name:"RemoteDeviceId"`

	// On-Site device id.
	FieldDeviceId *string `json:"FieldDeviceId,omitnil,omitempty" name:"FieldDeviceId"`

	// Target resolution.
	Resolution *string `json:"Resolution,omitnil,omitempty" name:"Resolution"`

	// Session start time.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Last updated time.
	LatestUpdateTime *uint64 `json:"LatestUpdateTime,omitnil,omitempty" name:"LatestUpdateTime"`
}

type SessionInfo

type SessionInfo struct {
	// Session id.
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`

	// Remote device id.
	RemoteDeviceId *string `json:"RemoteDeviceId,omitnil,omitempty" name:"RemoteDeviceId"`

	// On-Site device id.
	FieldDeviceId *string `json:"FieldDeviceId,omitnil,omitempty" name:"FieldDeviceId"`

	// Target resolution.
	Resolution *string `json:"Resolution,omitnil,omitempty" name:"Resolution"`

	// Session start time.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Session end time.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Call quality: good|normal|bad.
	Quality *string `json:"Quality,omitnil,omitempty" name:"Quality"`
}

type SessionIntervalStatistic

type SessionIntervalStatistic struct {
	// Number of active on-site devices.
	ActiveFieldDeviceNum *uint64 `json:"ActiveFieldDeviceNum,omitnil,omitempty" name:"ActiveFieldDeviceNum"`

	// Number of active remote devices.
	ActiveRemoteDeviceNum *uint64 `json:"ActiveRemoteDeviceNum,omitnil,omitempty" name:"ActiveRemoteDeviceNum"`

	// Number of sessions.
	SessionNum *uint64 `json:"SessionNum,omitnil,omitempty" name:"SessionNum"`

	// Session age, unit: minutes.
	TotalDuration *uint64 `json:"TotalDuration,omitnil,omitempty" name:"TotalDuration"`

	// Timestamp in seconds.
	StartTime *uint64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// Timestamp in seconds.
	EndTime *uint64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// Proportion of excellent sessions, unit: %.
	NotBadSessionRatio *uint64 `json:"NotBadSessionRatio,omitnil,omitempty" name:"NotBadSessionRatio"`
}

Jump to

Keyboard shortcuts

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