@@ -1218,11 +1218,12 @@ impl Parameter {
1218
1218
#[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
1219
1219
pub struct ProjectReference {
1220
1220
pub id : String ,
1221
- pub name : String ,
1221
+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1222
+ pub name : Option < String > ,
1222
1223
}
1223
1224
impl 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 }
1226
1227
}
1227
1228
}
1228
1229
#[ doc = "The class to represent a collection of REST reference links." ]
@@ -1664,17 +1665,19 @@ impl ServiceEndpointOAuthConfigurationReference {
1664
1665
#[ derive( Clone , Debug , PartialEq , Serialize , Deserialize ) ]
1665
1666
pub struct ServiceEndpointProjectReference {
1666
1667
#[ 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 > ,
1668
1670
#[ 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 > ,
1670
1673
#[ serde( rename = "projectReference" ) ]
1671
1674
pub project_reference : ProjectReference ,
1672
1675
}
1673
1676
impl ServiceEndpointProjectReference {
1674
- pub fn new ( description : String , name : String , project_reference : ProjectReference ) -> Self {
1677
+ pub fn new ( project_reference : ProjectReference ) -> Self {
1675
1678
Self {
1676
- description,
1677
- name,
1679
+ description : None ,
1680
+ name : None ,
1678
1681
project_reference,
1679
1682
}
1680
1683
}
0 commit comments