Skip to content

Commit 6832a20

Browse files
Fixes nullable properties issue (#40200)
1 parent 1565735 commit 6832a20

8 files changed

Lines changed: 257 additions & 15 deletions

File tree

specification/app/resource-manager/Microsoft.App/SreAgent/agent.models.tsp

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,42 @@ model AgentPatch {
1515
...ManagedServiceIdentityProperty;
1616

1717
/** Agent specific properties */
18-
properties?: AgentProperties;
18+
properties?: AgentPatchProperties;
19+
}
20+
21+
/**
22+
* Agent specific properties for PATCH requests.
23+
*
24+
* PATCH request bodies must not include required properties and should not include read-only properties.
25+
*/
26+
model AgentPatchProperties {
27+
/** The agent space ID referenced by the agent */
28+
agentSpaceId?: armResourceIdentifier<[
29+
{
30+
type: "Microsoft.App/agentSpaces";
31+
}
32+
]>;
33+
34+
/** Knowledge graph configuration for agent */
35+
knowledgeGraphConfiguration?: KnowledgeGraphConfiguration;
36+
37+
/** Configuration for action */
38+
actionConfiguration?: ActionConfiguration;
39+
40+
/** Log configurations */
41+
logConfiguration?: LogConfiguration;
42+
43+
/** Incident management configurations */
44+
incidentManagementConfiguration?: IncidentManagementConfiguration;
45+
46+
/** The upgrade channel of the agent */
47+
upgradeChannel?: UpgradeChannel;
48+
49+
/** Agent identity configuration for accessing resources */
50+
agentIdentity?: AgentIdentityPatch;
51+
52+
/** Default AI model configuration for the agent */
53+
defaultModel?: DefaultModel;
1954
}
2055

2156
/** Properties of the Agent */
@@ -120,6 +155,12 @@ model AgentIdentity {
120155
clientId?: string;
121156

122157
/** Initial sponsor group ID (required for agent identity) */
158+
initialSponsorGroupId: string;
159+
}
160+
161+
/** Agent identity configuration for PATCH requests */
162+
model AgentIdentityPatch {
163+
/** Initial sponsor group ID (required for PUT but optional for PATCH) */
123164
initialSponsorGroupId?: string;
124165
}
125166

specification/app/resource-manager/Microsoft.App/SreAgent/agentspace.models.tsp

Lines changed: 54 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,26 @@ model AgentSpacePatch {
1515
...ManagedServiceIdentityProperty;
1616

1717
/** Agent Space specific properties */
18-
properties?: AgentSpaceProperties;
18+
properties?: AgentSpacePatchProperties;
19+
}
20+
21+
/**
22+
* Agent Space specific properties for PATCH requests.
23+
*
24+
* PATCH request bodies must not include required properties and should not include read-only properties.
25+
*/
26+
model AgentSpacePatchProperties {
27+
/** Description of the Agent Space */
28+
description?: string;
29+
30+
/** Policy configurations for the Agent Space */
31+
policies?: AgentSpacePoliciesPatch;
32+
33+
/** Maximum number of agents allowed in the Agent Space */
34+
maxAgentCount?: int32;
35+
36+
/** Universal unique ID (UUID) of the Service Tree associated with this Agent Space */
37+
serviceTreeId?: string;
1938
}
2039

2140
/** Agent Space specific properties */
@@ -78,12 +97,15 @@ union AgentSpaceProvisioningState {
7897
/** Compliance status of the Agent Space */
7998
model AgentSpaceComplianceStatus {
8099
/** Indicates whether the Agent Space is compliant */
81-
isCompliant?: boolean;
100+
@visibility(Lifecycle.Read)
101+
isCompliant: boolean;
82102

83103
/** List of compliance issues found in the Agent Space */
104+
@visibility(Lifecycle.Read)
84105
complianceIssues?: string[];
85106

86107
/** Timestamp of the last compliance check */
108+
@visibility(Lifecycle.Read)
87109
lastComplianceCheck?: utcDateTime;
88110
}
89111

@@ -93,6 +115,12 @@ model AgentSpacePolicies {
93115
genevaActionsConfiguration?: GenevaActionsPolicy;
94116
}
95117

118+
/** Policy configurations for an Agent Space (PATCH request model) */
119+
model AgentSpacePoliciesPatch {
120+
/** Configuration for Geneva Actions policy */
121+
genevaActionsConfiguration?: GenevaActionsPolicyPatch;
122+
}
123+
96124
/** Geneva Actions policy configuration for Agent Space */
97125
model GenevaActionsPolicy {
98126
/** ACIS (Azure Container Instance Service) endpoint URL */
@@ -108,16 +136,39 @@ model GenevaActionsPolicy {
108136
authenticationMode?: GenevaActionAuthenticationMode;
109137

110138
/** Name of the Geneva extension */
111-
extensionName?: string;
139+
extensionName: string;
112140

113141
/** Collection of allowed Geneva actions */
114142
@identifiers(#["actionName", "extension"])
115143
allowedActions?: GenevaActionConfig[];
116144

117145
/** Subject alternative name of the certificate used for authentication */
146+
@visibility(Lifecycle.Read)
118147
certificateSubjectAlternativeName?: string;
119148
}
120149

150+
/** Geneva Actions policy configuration for Agent Space (PATCH request model) */
151+
model GenevaActionsPolicyPatch {
152+
/** ACIS (Azure Container Instance Service) endpoint URL */
153+
acisEndpoint?: string;
154+
155+
/** Client ID for authentication */
156+
clientId?: string;
157+
158+
/** Subject name of the certificate used for authentication */
159+
certificateSubjectName?: string;
160+
161+
/** Authentication mode for Geneva Actions */
162+
authenticationMode?: GenevaActionAuthenticationMode;
163+
164+
/** Name of the Geneva extension */
165+
extensionName?: string;
166+
167+
/** Collection of allowed Geneva actions */
168+
@identifiers(#["actionName", "extension"])
169+
allowedActions?: GenevaActionConfig[];
170+
}
171+
121172
/** Geneva Action authentication mode */
122173
union GenevaActionAuthenticationMode {
123174
string,

specification/app/resource-manager/Microsoft.App/SreAgent/examples/2026-01-01/AgentSpaces_ListByResourceGroup.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"policies": {
4545
"genevaActionsConfiguration": {
4646
"acisEndpoint": "https://acis.eastus.monitoring.azure.com",
47+
"extensionName": "GenevaActions",
4748
"allowedActions": [
4849
{
4950
"actionName": "RestartService",

specification/app/resource-manager/Microsoft.App/SreAgent/examples/2026-01-01/AgentSpaces_ListBySubscription.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"policies": {
4444
"genevaActionsConfiguration": {
4545
"acisEndpoint": "https://acis.eastus.monitoring.azure.com",
46+
"extensionName": "GenevaActions",
4647
"allowedActions": [
4748
{
4849
"actionName": "RestartService",
@@ -114,6 +115,7 @@
114115
"policies": {
115116
"genevaActionsConfiguration": {
116117
"acisEndpoint": "https://acis.westus2.monitoring.azure.com",
118+
"extensionName": "GenevaActions",
117119
"allowedActions": [
118120
{
119121
"actionName": "GetMetrics",

specification/app/resource-manager/Microsoft.App/SreAgent/stable/2026-01-01/examples/AgentSpaces_ListByResourceGroup.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"policies": {
4545
"genevaActionsConfiguration": {
4646
"acisEndpoint": "https://acis.eastus.monitoring.azure.com",
47+
"extensionName": "GenevaActions",
4748
"allowedActions": [
4849
{
4950
"actionName": "RestartService",

specification/app/resource-manager/Microsoft.App/SreAgent/stable/2026-01-01/examples/AgentSpaces_ListBySubscription.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"policies": {
4444
"genevaActionsConfiguration": {
4545
"acisEndpoint": "https://acis.eastus.monitoring.azure.com",
46+
"extensionName": "GenevaActions",
4647
"allowedActions": [
4748
{
4849
"actionName": "RestartService",
@@ -114,6 +115,7 @@
114115
"policies": {
115116
"genevaActionsConfiguration": {
116117
"acisEndpoint": "https://acis.westus2.monitoring.azure.com",
118+
"extensionName": "GenevaActions",
117119
"allowedActions": [
118120
{
119121
"actionName": "GetMetrics",

0 commit comments

Comments
 (0)