Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions specification/fileshares/FileShares.Management/fileshares.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -298,23 +298,14 @@ interface FileShareSnapshots {
#suppress "@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes" "RP doesn't support 201 Created pattern for proxy resources in public preview. To be addressed in GA."
@operationId("FileShareSnapshot_CreateOrUpdate")
@doc("Create a FileShareSnapshot.")
createOrUpdateFileShareSnapshot is ArmResourceCreateOrReplaceAsync<
FileShareSnapshot,
BaseParameters<FileShareSnapshot>,
Response = ArmAcceptedLroResponse<LroHeaders = ArmAsyncOperationHeader &
ArmLroLocationHeader<FinalResult = FileShareSnapshot> &
Azure.Core.Foundations.RetryAfterHeader>
>;
createOrUpdateFileShareSnapshot is ArmResourceCreateOrReplaceSync<FileShareSnapshot>;

@operationId("FileShareSnapshot_Update")
@doc("Update a FileShareSnapshot.")
updateFileShareSnapshot is ArmCustomPatchAsync<
FileShareSnapshot,
ResourceUpdateModel<FileShareSnapshot, FileShareSnapshotProperties>,
BaseParameters<FileShareSnapshot>,
Response = ArmAcceptedLroResponse<LroHeaders = ArmAsyncOperationHeader &
ArmLroLocationHeader<FinalResult = FileShareSnapshot> &
Azure.Core.Foundations.RetryAfterHeader>
BaseParameters<FileShareSnapshot>
>;

@operationId("FileShareSnapshot_Delete")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,22 +760,16 @@
}
],
"responses": {
"202": {
"description": "Resource operation accepted.",
"headers": {
"Azure-AsyncOperation": {
"type": "string",
"description": "A link to the status monitor"
},
"Location": {
"type": "string",
"description": "The Location header contains the URL where the status of the long running operation can be checked."
},
"Retry-After": {
"type": "integer",
"format": "int32",
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
}
"200": {
"description": "Resource 'FileShareSnapshot' update operation succeeded",
"schema": {
"$ref": "#/definitions/FileShareSnapshot"
}
},
"201": {
"description": "Resource 'FileShareSnapshot' create operation succeeded",
"schema": {
"$ref": "#/definitions/FileShareSnapshot"
}
},
"default": {
Expand All @@ -789,11 +783,7 @@
"FileShareSnapshot_CreateOrUpdate_MaximumSet": {
"$ref": "./examples/FileShareSnapshot_CreateOrUpdate_MaximumSet_Gen.json"
}
},
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-long-running-operation": true
}
},
"patch": {
"operationId": "FileShareSnapshot_Update",
Expand Down Expand Up @@ -838,13 +828,15 @@
}
],
"responses": {
"200": {
"description": "Azure operation completed successfully.",
"schema": {
"$ref": "#/definitions/FileShareSnapshot"
}
},
"202": {
"description": "Resource operation accepted.",
"description": "Resource update request accepted.",
"headers": {
"Azure-AsyncOperation": {
"type": "string",
"description": "A link to the status monitor"
},
"Location": {
"type": "string",
"description": "The Location header contains the URL where the status of the long running operation can be checked."
Expand Down
Loading