实例规格透传 quotaNames,重新生成 swagger
CI / test (push) Successful in 31s

This commit is contained in:
2026-07-17 16:52:49 +08:00
parent 6cf9465fea
commit deea8629e0
4 changed files with 25 additions and 0 deletions
+7
View File
@@ -8654,6 +8654,13 @@ const docTemplate = `{
}, },
"processorDescription": { "processorDescription": {
"type": "string" "type": "string"
},
"quotaNames": {
"description": "QuotaNames 是该 shape 对应的配额名(与 Limits 服务 compute limit name 同名),\n前端据此结合 limits 行判定配额与 AD 可用性。",
"type": "array",
"items": {
"type": "string"
}
} }
} }
}, },
+7
View File
@@ -8647,6 +8647,13 @@
}, },
"processorDescription": { "processorDescription": {
"type": "string" "type": "string"
},
"quotaNames": {
"description": "QuotaNames 是该 shape 对应的配额名(与 Limits 服务 compute limit name 同名),\n前端据此结合 limits 行判定配额与 AD 可用性。",
"type": "array",
"items": {
"type": "string"
}
} }
} }
}, },
+7
View File
@@ -1754,6 +1754,13 @@ definitions:
type: number type: number
processorDescription: processorDescription:
type: string type: string
quotaNames:
description: |-
QuotaNames 是该 shape 对应的配额名(与 Limits 服务 compute limit name 同名),
前端据此结合 limits 行判定配额与 AD 可用性。
items:
type: string
type: array
type: object type: object
oci-portal_internal_oci.ConsoleConnection: oci-portal_internal_oci.ConsoleConnection:
properties: properties:
+4
View File
@@ -26,6 +26,9 @@ type ComputeShape struct {
MemoryMaxGBs float32 `json:"memoryMaxGBs,omitempty"` MemoryMaxGBs float32 `json:"memoryMaxGBs,omitempty"`
Gpus int `json:"gpus,omitempty"` Gpus int `json:"gpus,omitempty"`
ProcessorDescription string `json:"processorDescription,omitempty"` ProcessorDescription string `json:"processorDescription,omitempty"`
// QuotaNames 是该 shape 对应的配额名(与 Limits 服务 compute limit name 同名),
// 前端据此结合 limits 行判定配额与 AD 可用性。
QuotaNames []string `json:"quotaNames,omitempty"`
} }
// shapeCacheEntry 是一份 shape 清单的缓存条目。 // shapeCacheEntry 是一份 shape 清单的缓存条目。
@@ -92,6 +95,7 @@ func toComputeShape(s core.Shape) ComputeShape {
BillingType: string(s.BillingType), BillingType: string(s.BillingType),
IsFlexible: s.OcpuOptions != nil, IsFlexible: s.OcpuOptions != nil,
ProcessorDescription: deref(s.ProcessorDescription), ProcessorDescription: deref(s.ProcessorDescription),
QuotaNames: s.QuotaNames,
} }
out.Ocpus, out.MemoryInGBs = deref32(s.Ocpus), deref32(s.MemoryInGBs) out.Ocpus, out.MemoryInGBs = deref32(s.Ocpus), deref32(s.MemoryInGBs)
if s.Gpus != nil { if s.Gpus != nil {