@@ -1218,11 +1218,12 @@ impl Parameter {
12181218#[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
12191219pub struct ProjectReference {
12201220 pub id : String ,
1221- pub name : String ,
1221+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1222+ pub name : Option < String > ,
12221223}
12231224impl ProjectReference {
1224- pub fn new ( id : String , name : String ) -> Self {
1225- Self { id, name }
1225+ pub fn new ( id : String ) -> Self {
1226+ Self { id, name : None }
12261227 }
12271228}
12281229#[ doc = "The class to represent a collection of REST reference links." ]
@@ -1664,17 +1665,19 @@ impl ServiceEndpointOAuthConfigurationReference {
16641665#[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
16651666pub struct ServiceEndpointProjectReference {
16661667 #[ doc = "Gets or sets description of the service endpoint." ]
1667- pub description : String ,
1668+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1669+ pub description : Option < String > ,
16681670 #[ doc = "Gets or sets name of the service endpoint." ]
1669- pub name : String ,
1671+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1672+ pub name : Option < String > ,
16701673 #[ serde( rename = "projectReference" ) ]
16711674 pub project_reference : ProjectReference ,
16721675}
16731676impl ServiceEndpointProjectReference {
1674- pub fn new ( description : String , name : String , project_reference : ProjectReference ) -> Self {
1677+ pub fn new ( project_reference : ProjectReference ) -> Self {
16751678 Self {
1676- description,
1677- name,
1679+ description : None ,
1680+ name : None ,
16781681 project_reference,
16791682 }
16801683 }
0 commit comments