Skip to content

Commit

Permalink
[EG] Resource Notifications required/optional (#31334)
Browse files Browse the repository at this point in the history
* update

* addd
  • Loading branch information
l0lawrence authored Dec 13, 2024
1 parent 24319ee commit 495c999
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ across all ARN system topic events
*/
model ResourceNotificationsResourceUpdatedDetails {
/** id of the resource for which the event is being emitted */
id?: string;
id: string;

/** name of the resource for which the event is being emitted */
name?: string;
name: string;

/** the type of the resource for which the event is being emitted */
type?: string;
type: string;

/** the location of the resource for which the event is being emitted */
location?: string;

/** the tags on the resource for which the event is being emitted */
tags: Record<string>;
tags?: Record<string>;

/** properties in the payload of the resource for which the event is being emitted */
#suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of properties is object with additionalProperties object"
properties: Record<unknown>;
properties?: Record<unknown>;
}

/** details of operational info */
Expand All @@ -48,7 +48,7 @@ model ResourceNotificationsResourceUpdatedEventData {
operationalInfo: ResourceNotificationsOperationalDetails;

/** api version of the resource properties bag */
apiVersion?: string;
apiVersion: string;
}

/**
Expand All @@ -57,13 +57,13 @@ across all ARN system topic delete events
*/
model ResourceNotificationsResourceDeletedDetails {
/** id of the resource for which the event is being emitted */
id?: string;
id: string;

/** name of the resource for which the event is being emitted */
name?: string;
name: string;

/** the type of the resource for which the event is being emitted */
type?: string;
type: string;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6904,7 +6904,12 @@
"type": "string",
"description": "the type of the resource for which the event is being emitted"
}
}
},
"required": [
"id",
"name",
"type"
]
},
"ResourceNotificationsResourceDeletedEventData": {
"type": "object",
Expand Down Expand Up @@ -6978,8 +6983,9 @@
}
},
"required": [
"tags",
"properties"
"id",
"name",
"type"
]
},
"ResourceNotificationsResourceUpdatedEventData": {
Expand All @@ -7003,7 +7009,8 @@
},
"required": [
"resourceInfo",
"operationalInfo"
"operationalInfo",
"apiVersion"
]
},
"ResourceWriteCancelEventData": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7031,7 +7031,12 @@
"type": "string",
"description": "the type of the resource for which the event is being emitted"
}
}
},
"required": [
"id",
"name",
"type"
]
},
"ResourceNotificationsResourceDeletedEventData": {
"type": "object",
Expand Down Expand Up @@ -7105,8 +7110,9 @@
}
},
"required": [
"tags",
"properties"
"id",
"name",
"type"
]
},
"ResourceNotificationsResourceUpdatedEventData": {
Expand All @@ -7130,7 +7136,8 @@
},
"required": [
"resourceInfo",
"operationalInfo"
"operationalInfo",
"apiVersion"
]
},
"ResourceWriteCancelEventData": {
Expand Down

0 comments on commit 495c999

Please sign in to comment.