Post by ginugeorge on Dec 8, 2022 18:23:34 GMT
Consider the attribute "SupportedCollectionFunctions" under the Telemetry Service Root URI /redfish/v1/TelemetryService has the below mentioned values :
Consider that an end-user is trying to modify the values of the SupportedCollectionFunction, which is an array type attribute, by issuing a PATCH request. Please help to clarify the below mentioned points :
1. Does the below mentioned rule needs to be mandatorily applied to all array type attributes mentioned in the Redfish Schema ? or it it optional ?
2. Please help to explain the below statement with the help of an example :
3. What will be the value of the attribute "SupportedCollectionFunctions" if the user tries to pass the below request body in PATCH :
4. What will be the value of the attribute "SupportedCollectionFunctions" if the user tries to pass the below request body in PATCH :
5. What will be the value of the attribute "SupportedCollectionFunctions" if the user tries to pass the below request body in PATCH :
{
.....,
"SupportedCollectionFunctions": [
"Average",
"Maximum",
"Minimum",
"Summation"
],
.....
}
Consider that an end-user is trying to modify the values of the SupportedCollectionFunction, which is an array type attribute, by issuing a PATCH request. Please help to clarify the below mentioned points :
1. Does the below mentioned rule needs to be mandatorily applied to all array type attributes mentioned in the Redfish Schema ? or it it optional ?
7.7 PATCH on array properties
The Array properties clause describes the three styles of array properties in a resource.
Within a PATCH request, the service shall accept null to remove an element, and accept an empty object {} to
leave an element unchanged. Array properties that use the fixed or variable length style remove those elements,
while array properties that use the rigid style replace removed elements with null elements. A service may indicate
the maximum size of an array by padding null elements at the end of the array sequence.
The Array properties clause describes the three styles of array properties in a resource.
Within a PATCH request, the service shall accept null to remove an element, and accept an empty object {} to
leave an element unchanged. Array properties that use the fixed or variable length style remove those elements,
while array properties that use the rigid style replace removed elements with null elements. A service may indicate
the maximum size of an array by padding null elements at the end of the array sequence.
2. Please help to explain the below statement with the help of an example :
Array properties that use the fixed or variable length style remove those elements,
while array properties that use the rigid style replace removed elements with null elements.
while array properties that use the rigid style replace removed elements with null elements.
3. What will be the value of the attribute "SupportedCollectionFunctions" if the user tries to pass the below request body in PATCH :
{
.....,
"SupportedCollectionFunctions": [
{},
{},
{}
],
.....
}
4. What will be the value of the attribute "SupportedCollectionFunctions" if the user tries to pass the below request body in PATCH :
{
.....,
"SupportedCollectionFunctions": [
null,
null,
null
],
.....
}
5. What will be the value of the attribute "SupportedCollectionFunctions" if the user tries to pass the below request body in PATCH :
{
.....,
"SupportedCollectionFunctions": [
"Average",
null,
"Minimum",
{}
],
.....
}