<commit_before>package org.zstack.header.vm

import org.zstack.header.vm.APIStopVmInstanceEvent

doc {
    title "停止云主机(StopVmInstance)"

    category "vmInstance"

    desc """停止一个云主机"""

    rest {
        request {
			url "PUT /v1/vm-instances/{uuid}/actions"

			header (Authorization: 'OAuth the-session-uuid')


            clz APIStopVmInstanceMsg.class

            desc """"""
            
			params {

				column {
					name "uuid"
					enclosedIn "stopVmInstance"
					desc "云主机UUID"
					location "url"
					type "String"
					optional false
					since "0.6"
					
				}
				column {
					name "type"
					enclosedIn "stopVmInstance"
					desc "停止云主机的方式。`grace`：优雅关机，需要云主机里安装了相关ACPI驱动；`cold`：冷关机，相当于直接断电"
					location "body"
					type "String"
					optional true
					since "0.6"
					values ("grace","cold")
				}
				column {
					name "systemTags"
					enclosedIn ""
					desc "系统标签"
					location "body"
					type "List"
					optional true
					since "0.6"
					
				}
				column {
					name "userTags"
					enclosedIn ""
					desc "用户标签"
					location "body"
					type "List"
					optional true
					since "0.6"
					
				}
			}
        }

        response {
            clz APIStopVmInstanceEvent.class
        }
    }
}<commit_msg>update groovy doc<commit_after>package org.zstack.header.vm

import org.zstack.header.vm.APIStopVmInstanceEvent

doc {
    title "停止云主机(StopVmInstance)"

    category "vmInstance"

    desc """停止一个云主机"""

    rest {
        request {
			url "PUT /v1/vm-instances/{uuid}/actions"

			header (Authorization: 'OAuth the-session-uuid')


            clz APIStopVmInstanceMsg.class

            desc """"""
            
			params {

				column {
					name "uuid"
					enclosedIn "stopVmInstance"
					desc "云主机UUID"
					location "url"
					type "String"
					optional false
					since "0.6"
					
				}
				column {
					name "type"
					enclosedIn "stopVmInstance"
					desc "停止云主机的方式。`grace`：优雅关机，需要云主机里安装了相关ACPI驱动；`cold`：冷关机，相当于直接断电"
					location "body"
					type "String"
					optional true
					since "0.6"
					values ("grace","cold")
				}
				column {
					name "systemTags"
					enclosedIn ""
					desc "系统标签"
					location "body"
					type "List"
					optional true
					since "0.6"
					
				}
				column {
					name "userTags"
					enclosedIn ""
					desc "用户标签"
					location "body"
					type "List"
					optional true
					since "0.6"
					
				}
				column {
					name "stopHA"
					enclosedIn "stopVmInstance"
					desc ""
					location "body"
					type "Boolean"
					optional true
					since "0.6"
					
				}
			}
        }

        response {
            clz APIStopVmInstanceEvent.class
        }
    }
}
{'fraction_non_alphanumeric': 0.10512532734754956, 'fraction_numerical': 0.0074822297044519264, 'mean_word_length': 1.7796257796257797, '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': '4743377', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1008, 'n_words': 190}