@@ -12937,12 +12937,9 @@ pub mod types {
1293712937 /// "properties": {
1293812938 /// "anti_affinity_groups": {
1293912939 /// "description": "Anti-Affinity groups which this instance should be
12940- /// added.\n\nA \"null\" set of groups is equivalent to an empty set of
12941- /// groups.",
12942- /// "type": [
12943- /// "array",
12944- /// "null"
12945- /// ],
12940+ /// added.",
12941+ /// "default": [],
12942+ /// "type": "array",
1294612943 /// "items": {
1294712944 /// "$ref": "#/components/schemas/NameOrId"
1294812945 /// }
@@ -13102,10 +13099,8 @@ pub mod types {
1310213099 )]
1310313100 pub struct InstanceCreate {
1310413101 /// Anti-Affinity groups which this instance should be added.
13105- ///
13106- /// A "null" set of groups is equivalent to an empty set of groups.
13107- #[serde(default, skip_serializing_if = "::std::option::Option::is_none")]
13108- pub anti_affinity_groups: ::std::option::Option<::std::vec::Vec<NameOrId>>,
13102+ #[serde(default, skip_serializing_if = "::std::vec::Vec::is_empty")]
13103+ pub anti_affinity_groups: ::std::vec::Vec<NameOrId>,
1310913104 /// The auto-restart policy for this instance.
1311013105 ///
1311113106 /// This policy determines whether the instance should be automatically
@@ -40228,10 +40223,8 @@ pub mod types {
4022840223
4022940224 #[derive(Clone, Debug)]
4023040225 pub struct InstanceCreate {
40231- anti_affinity_groups: ::std::result::Result<
40232- ::std::option::Option<::std::vec::Vec<super::NameOrId>>,
40233- ::std::string::String,
40234- >,
40226+ anti_affinity_groups:
40227+ ::std::result::Result<::std::vec::Vec<super::NameOrId>, ::std::string::String>,
4023540228 auto_restart_policy: ::std::result::Result<
4023640229 ::std::option::Option<super::InstanceAutoRestartPolicy>,
4023740230 ::std::string::String,
@@ -40289,7 +40282,7 @@ pub mod types {
4028940282 impl InstanceCreate {
4029040283 pub fn anti_affinity_groups<T>(mut self, value: T) -> Self
4029140284 where
40292- T: ::std::convert::TryInto<::std::option::Option<::std:: vec::Vec<super::NameOrId> >>,
40285+ T: ::std::convert::TryInto<::std::vec::Vec<super::NameOrId>>,
4029340286 T::Error: ::std::fmt::Display,
4029440287 {
4029540288 self.anti_affinity_groups = value.try_into().map_err(|e| {
0 commit comments