Object type in yang

I am new to yang, And i need suggestion for the object type in yang data modeling language.
this is prototype of the command as describe below

foo ----> Command Name

x -------> x parameters

y --------> y parameters

when i pass command like foo x y it will set foo x to y value.
when i pass command like foo x it will displays the value of foo for x parameters.
and when i pass commad like foo it will diaplay value of foo for all x and y parameters.

Hi,
If you are new to YANG see “The YANG 1.1 Data Modeling Language” https://tools.ietf.org/html/rfc7950
See also the ConfD training videos and exemple set
Are there ConfD training videos available?

Thanks for the suggestion… i know the basics of the yang but can you give me a answer specific to the this question. ?
Thanks in advance…

Without fully understanding your question, I believe you are looking to execute a command which would be modeled as an “action” or “rpc” in yang?
https://tools.ietf.org/html/rfc7950#section-7.15
https://tools.ietf.org/html/rfc7950#section-7.14