-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
20,843 additions
and
830 deletions.
There are no files selected for viewing
10,065 changes: 10,065 additions & 0 deletions
10,065
packages/extensions/openapi-to-cadl/test/arm-azureintegrationspaces/CodeModel.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
packages/extensions/openapi-to-cadl/test/arm-azureintegrationspaces/Configuration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"output-folder": ".", | ||
"namespace": "Azure.ResourceManager.Integration.Spaces", | ||
"library-name": "AzureIntegrationSpacesResourceManagementAPI", | ||
"shared-source-folders": [ | ||
"C:\\Users\\chenjieshi\\.autorest\\@autorest_csharp@3.0.0-alpha.20231017.8\\node_modules\\@autorest\\csharp\\Generator.Shared", | ||
"C:\\Users\\chenjieshi\\.autorest\\@autorest_csharp@3.0.0-alpha.20231017.8\\node_modules\\@autorest\\csharp\\Azure.Core.Shared" | ||
], | ||
"azure-arm": true, | ||
"public-clients": true, | ||
"head-as-boolean": true, | ||
"RequestPathToResourceData": { | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IntegrationSpaces/spaces/{spaceName}/applications/{applicationName}/resources/{resourceName}": "ApplicationResource" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
864 changes: 437 additions & 427 deletions
864
packages/extensions/openapi-to-cadl/test/arm-azureintegrationspaces/resources.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4,015 changes: 4,014 additions & 1 deletion
4,015
packages/extensions/openapi-to-cadl/test/arm-compute/resources.json
Large diffs are not rendered by default.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...tensions/openapi-to-cadl/test/arm-compute/tsp-output/ComputePrivateEndpointConnection.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
import "./DiskAccess.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using Azure.ResourceManager.Foundations; | ||
using TypeSpec.Http; | ||
|
||
namespace Azure.ResourceManager.Compute; | ||
@doc("The Private Endpoint Connection resource.") | ||
@parentResource(DiskAccess) | ||
model ComputePrivateEndpointConnection | ||
is ProxyResource<PrivateEndpointConnectionProperties> { | ||
@doc("The name of the private endpoint connection.") | ||
@path | ||
@key("privateEndpointConnectionName") | ||
@segment("privateEndpointConnections") | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface ComputePrivateEndpointConnections { | ||
@doc(""" | ||
Gets information about a private endpoint connection under a disk access | ||
resource. | ||
""") | ||
getAPrivateEndpointConnection is ArmResourceRead<ComputePrivateEndpointConnection>; | ||
@doc(""" | ||
Approve or reject a private endpoint connection under disk access resource, | ||
this can't be used to create a new private endpoint connection. | ||
""") | ||
updateAPrivateEndpointConnection is ArmResourceCreateOrUpdateAsync<ComputePrivateEndpointConnection>; | ||
@doc("Deletes a private endpoint connection under a disk access resource.") | ||
deleteAPrivateEndpointConnection is ArmResourceDeleteAsync<ComputePrivateEndpointConnection>; | ||
@doc("List information about private endpoint connections under a disk access resource") | ||
listPrivateEndpointConnections is ArmResourceListByParent<ComputePrivateEndpointConnection>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
packages/extensions/openapi-to-cadl/test/arm-compute/tsp-output/RestorePointGroup.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using Azure.ResourceManager.Foundations; | ||
using TypeSpec.Http; | ||
|
||
namespace Azure.ResourceManager.Compute; | ||
@doc("Create or update Restore Point collection parameters.") | ||
model RestorePointGroup is TrackedResource<RestorePointCollectionProperties> { | ||
@doc("The name of the restore point collection.") | ||
@path | ||
@key("restorePointCollectionName") | ||
@segment("restorePointCollections") | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface RestorePointGroups { | ||
@doc("The operation to get the restore point collection.") | ||
get is ArmResourceRead<RestorePointGroup>; | ||
@doc(""" | ||
The operation to create or update the restore point collection. Please refer to | ||
https://aka.ms/RestorePoints for more details. When updating a restore point | ||
collection, only tags may be modified. | ||
""") | ||
createOrUpdate is ArmResourceCreateOrUpdateAsync<RestorePointGroup>; | ||
@doc("The operation to update the restore point collection.") | ||
update is ArmResourcePatchSync< | ||
RestorePointGroup, | ||
RestorePointCollectionProperties | ||
>; | ||
@doc(""" | ||
The operation to delete the restore point collection. This operation will also | ||
delete all the contained restore points. | ||
""") | ||
delete is ArmResourceDeleteAsync<RestorePointGroup>; | ||
@doc("Gets the list of restore point collections in a resource group.") | ||
list is ArmResourceListByParent<RestorePointGroup>; | ||
@doc(""" | ||
Gets the list of restore point collections in the subscription. Use nextLink | ||
property in the response to get the next page of restore point collections. Do | ||
this till nextLink is not null to fetch all the restore point collections. | ||
""") | ||
listAll is ArmListBySubscription<RestorePointGroup>; | ||
} |
Oops, something went wrong.