<commit_before>package ecs

import "github.com/jiangshengwu/aliyun-sdk-for-go/util"

type DiskService interface {
	CreateDisk(params map[string]interface{}) (CreateDiskResponse, error)
	DescribeDisks(params map[string]interface{}) (DescribeDisksResponse, error)
	AttachDisk(params map[string]interface{}) (AttachDiskResponse, error)
	DetachDisk(params map[string]interface{}) (DetachDiskResponse, error)
	ModifyDiskAttribute(params map[string]interface{}) (ModifyDiskAttributeResponse, error)
	DeleteDisk(params map[string]interface{}) (DeleteDiskResponse, error)
	ReInitDisk(params map[string]interface{}) (ReInitDiskResponse, error)
	ResetDisk(params map[string]interface{}) (ResetDiskResponse, error)
	ReplaceSystemDisk(params map[string]interface{}) (ReplaceSystemDiskResponse, error)
	ResizeDisk(params map[string]interface{}) (ResizeDiskResponse, error)
}

type DiskOperator struct {
	Common *util.CommonParam
}

// Response struct for CreateDisk
type CreateDiskResponse struct {
	util.ErrorResponse
	DiskId string `json:"DiskId"`
}

// Response struct for DescribeDisks
type DescribeDisksResponse struct {
	util.ErrorResponse
	AllDisks Disks `json:"Disks"`
}

type Disks struct {
	AllDisk []DiskItemType `json:"Disk"`
}

// See http://docs.aliyun.com/?spm=5176.775974174.2.4.BYfRJ2#/ecs/open-api/datatype&diskitemtype
type DiskItemType struct {
	DiskId             string         `json:"DiskId"`
	RegionId           string         `json:"RegionId"`
	ZoneId             string         `json:"ZoneId"`
	DiskName           string         `json:"DiskName"`
	Description        string         `json:"Description"`
	Type               string         `json:"Type"`<commit_msg>fix disk response<commit_after>package ecs

import "github.com/jiangshengwu/aliyun-sdk-for-go/util"

type DiskService interface {
	CreateDisk(params map[string]interface{}) (CreateDiskResponse, error)
	DescribeDisks(params map[string]interface{}) (DescribeDisksResponse, error)
	AttachDisk(params map[string]interface{}) (AttachDiskResponse, error)
	DetachDisk(params map[string]interface{}) (DetachDiskResponse, error)
	ModifyDiskAttribute(params map[string]interface{}) (ModifyDiskAttributeResponse, error)
	DeleteDisk(params map[string]interface{}) (DeleteDiskResponse, error)
	ReInitDisk(params map[string]interface{}) (ReInitDiskResponse, error)
	ResetDisk(params map[string]interface{}) (ResetDiskResponse, error)
	ReplaceSystemDisk(params map[string]interface{}) (ReplaceSystemDiskResponse, error)
	ResizeDisk(params map[string]interface{}) (ResizeDiskResponse, error)
}

type DiskOperator struct {
	Common *util.CommonParam
}

// Response struct for CreateDisk
type CreateDiskResponse struct {
	util.ErrorResponse
	DiskId string `json:"DiskId"`
}

// Response struct for DescribeDisks
type DescribeDisksResponse struct {
	util.PageResponse
	util.ErrorResponse
	AllDisks Disks `json:"Disks"`
}

type Disks struct {
	AllDisk []DiskItemType `json:"Disk"`
}

// See http://docs.aliyun.com/?spm=5176.775974174.2.4.BYfRJ2#/ecs/open-api/datatype&diskitemtype
type DiskItemType struct {
	DiskId             string         `json:"DiskId"`
	RegionId           string         `json:"RegionId"`
	ZoneId             string         `json:"ZoneId"`
	DiskName           string         `json:"DiskName"`
	Description        string         `json:"Description"`
	Type               string         `json:"Type"`
{'fraction_non_alphanumeric': 0.11170370370370371, 'fraction_numerical': 0.009481481481481481, 'mean_word_length': 4.820689655172414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7264713', 'n_tokens_mistral': 1013, 'n_tokens_neox': 998, 'n_words': 208}