vapi std: nested localizable message
The
nested_localizable_message
structure represents a nested within a parameter localizable string or message template. This structure is useful for modeling composite messages. Such messages are necessary to do correct pluralization of phrases, represent lists of several items etc. This structure was added in vSphere API 7.0.0.0.Representation:
{
"id" : "string",
"params" : {
"<string>" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : {
"<string>" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1
}
}
}
}
}
}
"id" : "string",
"params" : {
"<string>" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : {
"<string>" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1
}
}
}
}
}
}
{
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1
},
"key" : "string"
}
]
}
},
"key" : "string"
}
]
}
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1,
"l" : {
"id" : "string",
"params" : [
{
"value" : {
"dt" : "2015-01-01T22:13:05.651Z",
"s" : "string",
"d" : 1.5,
"precision" : 1,
"format" : "SHORT_DATE",
"i" : 1
},
"key" : "string"
}
]
}
},
"key" : "string"
}
]
}
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
-.id | string | Unique identifier of the localizable string or message template. This identifier is typically used to retrieve a locale-specific string or message template from a message catalog. . This attribute was added in vSphere API 7.0.0.0. |
-.params.* | localization_param | |
Optional | ||
-.params | object | Named Arguments to be substituted into the message template. This attribute was added in vSphere API 7.0.0.0. Optional. services will not populate this field when there are no parameters to be substituted. |
-.params.*.s | string | String value associated with the parameter. This attribute was added in vSphere API 7.0.0.0. Optional. this field will be set when string value is used. |
Attributes:
Name | Type | Description |
---|---|---|
Required | ||
id | string | Unique identifier of the localizable string or message template. This identifier is typically used to retrieve a locale-specific string or message template from a message catalog. . This attribute was added in vSphere API 7.0.0.0. |
params[].key | string | |
params[].value | localization_param | |
Optional | ||
params | list | Named Arguments to be substituted into the message template. This attribute was added in vSphere API 7.0.0.0. Optional. services will not populate this field when there are no parameters to be substituted. |
params[].value.s | string | String value associated with the parameter. This attribute was added in vSphere API 7.0.0.0. Optional. this field will be set when string value is used. |