You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Status is a return value for calls that don't return other objects. -->
25
+
<!--
26
+
Status is a return value for calls that don't return other objects.
27
+
-->
42
28
状态(Status)是不返回其他对象的调用的返回值。
43
29
44
30
<hr>
@@ -49,83 +35,92 @@ guide. You can file document formatting bugs against the
49
35
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
<!-- Suggested HTTP return code for this status, 0 if not set. -->
44
+
<!--
45
+
Suggested HTTP return code for this status, 0 if not set.
46
+
-->
47
+
59
48
此状态的建议 HTTP 返回代码,如果未设置,则为 0。
60
49
61
50
-**details** (StatusDetails)
62
51
63
52
<!--
64
53
Extended data associated with the reason. Each reason may define its own extended details.
65
54
This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.
55
+
56
+
<a name="StatusDetails"></a>
57
+
*StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.*
66
58
-->
59
+
67
60
与原因(Reason)相关的扩展数据。每个原因都可以定义自己的扩展细节。
68
61
此字段是可选的,并且不保证返回的数据符合任何模式,除非由原因类型定义。
69
62
70
63
<aname="StatusDetails"></a>
71
-
<!--
72
-
*StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response.
73
-
The Reason field of a Status object defines what attributes will be set.
74
-
Clients must ignore fields that do not match the defined type of each attribute,
75
-
and should assume that any attribute may be empty, invalid, or under defined.*
76
-
-->
77
-
*StatusDetails 是一组附加属性,可以由服务器设置以提供有关响应的附加信息。*
78
-
*状态对象的原因字段定义将设置哪些属性。*
79
-
*客户端必须忽略与每个属性的定义类型不匹配的字段,并且应该假定任何属性可能为空、无效或未定义。*
64
+
**StatusDetails 是一组附加属性,可以由服务器设置以提供有关响应的附加信息。
65
+
状态对象的原因字段定义将设置哪些属性。
66
+
客户端必须忽略与每个属性的定义类型不匹配的字段,并且应该假定任何属性可能为空、无效或未定义。**
80
67
81
68
-**details.causes** ([]StatusCause)
82
69
83
70
<!--
84
71
The Causes array includes more details associated with the StatusReason failure.
85
72
Not all StatusReasons may provide detailed causes.
86
-
-->
87
-
Causes 数组包含与 StatusReason 故障相关的更多详细信息。
88
-
并非所有 StatusReasons 都可以提供详细的原因。
89
73
90
74
<a name="StatusCause"></a>
91
-
<!--
92
75
*StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.*
The field of the resource that has caused this error, as named by its JSON serialization.
100
-
May include dot and postfix notation for nested attributes. Arrays are zero-indexed.
101
-
Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
87
+
The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.
88
+
89
+
Examples:
90
+
"name" - the field "name" on the current resource
91
+
"items[0].name" - the field "name" on the first array entry in "items"
102
92
-->
93
+
103
94
导致此错误的资源字段,由其 JSON 序列化命名。
104
95
可能包括嵌套属性的点和后缀表示法。数组是从零开始索引的。
105
96
由于字段有多个错误,字段可能会在一系列原因中出现多次。可选。
106
97
107
-
<!--
108
-
Examples:
109
-
"name" - the field "name" on the current resource
110
-
"items[0].name" - the field "name" on the first array entry in "items"
111
-
-->
112
98
示例:
113
99
- “name”:当前资源上的字段 “name”
114
100
- “items[0].name”:“items” 中第一个数组条目上的字段 “name”
115
101
116
102
-**details.causes.message** (string)
117
103
118
-
<!-- A human-readable description of the cause of the error. This field may be presented as-is to a reader. -->
104
+
<!--
105
+
A human-readable description of the cause of the error. This field may be presented as-is to a reader.
106
+
-->
107
+
119
108
对错误原因的可读描述。该字段可以按原样呈现给读者。
120
109
121
110
-**details.causes.reason** (string)
122
111
123
-
<!-- A machine-readable description of the cause of the error. If this value is empty there is no information available. -->
112
+
<!--
113
+
A machine-readable description of the cause of the error. If this value is empty there is no information available.
114
+
-->
115
+
124
116
错误原因的机器可读描述。如果此值为空,则没有可用信息。
125
117
126
118
-**details.group** (string)
127
119
128
-
<!-- The group attribute of the resource associated with the status StatusReason. -->
120
+
<!--
121
+
The group attribute of the resource associated with the status StatusReason.
122
+
-->
123
+
129
124
与状态 StatusReason 关联的资源的组属性。
130
125
131
126
-**details.kind** (string)
@@ -135,13 +130,17 @@ guide. You can file document formatting bugs against the
135
130
On some operations may differ from the requested resource Kind.
136
131
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind is a string value representing the REST resource this object represents.
170
-
Servers may infer this from the endpoint the client submits requests to.
171
-
Cannot be updated. In CamelCase.
172
-
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
170
+
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
@@ -195,14 +199,16 @@ guide. You can file document formatting bugs against the
195
199
If this value is empty there is no information available.
196
200
A Reason clarifies an HTTP status code but does not override it.
197
201
-->
202
+
198
203
机器可读的说明,说明此操作为何处于“失败”状态。
199
204
如果此值为空,则没有可用信息。
200
-
Reason 澄清了 HTTP 状态代码,但不会覆盖它。
205
+
reason 澄清了 HTTP 状态代码,但不会覆盖它。
201
206
202
207
-**status** (string)
203
208
204
209
<!--
205
210
Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
0 commit comments