You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fa48a11
Browse filesBrowse the repository at this point in the historyBrowse files
error_messages.append(f"Error! Input type `{type(v)}` is not `DestinationCIDRv6`")
77
80
else:
78
81
match+=1
82
+
# validate data type: DestinationPrefixList
83
+
ifnotisinstance(v, DestinationPrefixList):
84
+
error_messages.append(f"Error! Input type `{type(v)}` is not `DestinationPrefixList`")
85
+
else:
86
+
match+=1
79
87
ifmatch==0:
80
88
# no match
81
89
raiseValueError(
82
-
"No match found when setting `actual_instance` in RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6. Details: "
90
+
"No match found when setting `actual_instance` in RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6, DestinationPrefixList. Details: "
"Multiple matches found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6. Details: "
129
+
"Multiple matches found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6, DestinationPrefixList. Details: "
116
130
+", ".join(error_messages)
117
131
)
118
132
elifmatch==0:
119
133
# no match
120
134
raiseValueError(
121
-
"No match found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6. Details: "
135
+
"No match found when deserializing the JSON string into RouteDestination with oneOf schemas: DestinationCIDRv4, DestinationCIDRv6, DestinationPrefixList. Details: "
Copy file name to clipboardExpand all lines: services/iaas/src/stackit/iaas/models/server_agent.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,9 +30,14 @@ class ServerAgent(BaseModel):
30
30
31
31
provisioned: Optional[StrictBool] =Field(
32
32
default=None,
33
-
description="Configure the STACKIT server agent provisioning during the first boot of the server. Only works when booting from an images that supports the STACKIT server agent. When `false` the agent IS NOT installed. When `true` the agent IS installed. When its not set the result depend on the used image and its default provisioning setting.",
33
+
description="Configure the STACKIT server agent provisioning during the first boot of the server. When `false`, the agent is not installed. When `true`, the agent is installed. Setting it to `true` when booting from an image requires an image that supports the agent; otherwise, the request is rejected. If omitted when booting from an image, the image default (`provisionByDefault`) applies.",
description="Configuration property that controls whether active virtual machine monitoring is enabled for a server instance. When `true` it allows the platform to collect metrics, monitor system health, and track guest-level performance on the VM. It operates as a dependent option - meaning `vmMonitoring` cannot be active unless the main server agent is also enabled.",
0 commit comments