-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new api-version 2024-02-01-preview to main (#29105)
* Add 2024-02-01-preview to main * fix typespec errors * remove operations.json * fix linters * delete unusued file * edit readme * remove suppressions * Update specification/azurestackhci/Operations.Management/tspconfig.yaml Co-authored-by: Mike Harder <mharder@microsoft.com> * Update specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/tspconfig.yaml Co-authored-by: Mike Harder <mharder@microsoft.com> * ID to id * remove unnecessary suppress * fix examples * copy private folder changes --------- Co-authored-by: Mike Harder <mharder@microsoft.com>
- Loading branch information
1 parent
1c0fd99
commit 814c367
Showing
164 changed files
with
16,809 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/AttestationStatus.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,33 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
import "./VirtualMachineInstance.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("The attestation status of the virtual machine") | ||
@singleton("default") | ||
@parentResource(VirtualMachineInstance) | ||
@includeInapplicableMetadataInPayload(false) | ||
model AttestationStatus is ProxyResource<AttestationStatusProperties> { | ||
@doc("Name of attestation status") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@key("attestationStatus") | ||
@segment("attestationStatus") | ||
@visibility("read") | ||
@path | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface AttestationStatuses { | ||
@doc("Implements AttestationStatus GET method.") | ||
get is ArmResourceRead<AttestationStatus>; | ||
} |
51 changes: 51 additions & 0 deletions
51
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GalleryImages.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,51 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
|
||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("The gallery images resource definition.") | ||
@extension("x-ms-azure-resource", true) | ||
@extension("x-ms-client-flatten", true) | ||
model GalleryImage is TrackedResource<GalleryImageProperties> { | ||
@doc("Name of the gallery image") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@path | ||
@key("galleryImageName") | ||
@segment("galleryImages") | ||
@visibility("read") | ||
name: string; | ||
|
||
@doc("The extendedLocation of the resource.") | ||
extendedLocation?: ExtendedLocation; | ||
} | ||
|
||
@armResourceOperations(GalleryImage) | ||
interface GalleryImages { | ||
@doc("Gets a gallery image") | ||
get is ArmResourceRead<GalleryImage>; | ||
|
||
@doc("The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.") | ||
createOrUpdate is ArmResourceCreateOrReplaceAsync<GalleryImage>; | ||
|
||
@doc("The operation to update a gallery image.") | ||
@parameterVisibility | ||
update is ArmCustomPatchAsync<GalleryImage>; | ||
|
||
@doc("The operation to delete a gallery image.") | ||
delete is ArmResourceDeleteWithoutOkAsync<GalleryImage>; | ||
|
||
@doc("Lists all of the gallery images in the specified resource group. Use the nextLink property in the response to get the next page of gallery images.") | ||
list is ArmResourceListByParent<GalleryImage>; | ||
|
||
@doc("Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.") | ||
listAll is ArmListBySubscription<GalleryImage>; | ||
} |
41 changes: 41 additions & 0 deletions
41
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/GuestAgent.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,41 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
import "./VirtualMachineInstance.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("Defines the GuestAgent.") | ||
@singleton("default") | ||
@parentResource(VirtualMachineInstance) | ||
model GuestAgent is ProxyResource<GuestAgentProperties> { | ||
@doc("guestAgent name") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@key("guestAgent") | ||
@segment("guestAgents") | ||
@visibility("read") | ||
@path | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
interface GuestAgents { | ||
@doc("Implements GuestAgent GET method.") | ||
get is ArmResourceRead<GuestAgent>; | ||
|
||
@doc("Create Or Update GuestAgent.") | ||
create is ArmResourceCreateOrReplaceAsync<GuestAgent>; | ||
|
||
@doc("Implements GuestAgent DELETE method.") | ||
delete is ArmResourceDeleteWithoutOkAsync<GuestAgent>; | ||
|
||
@doc("Returns the list of GuestAgent of the given vm.") | ||
list is ArmResourceListByParent<GuestAgent>; | ||
} |
40 changes: 40 additions & 0 deletions
40
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/HybridIdentityMetadata.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 "@azure-tools/typespec-client-generator-core"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
import "./VirtualMachineInstance.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
|
||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("Defines the HybridIdentityMetadata.") | ||
@extension("x-ms-azure-resource", true) | ||
@singleton("default") | ||
@parentResource(VirtualMachineInstance) | ||
model HybridIdentityMetadata | ||
is ProxyResource<HybridIdentityMetadataProperties> { | ||
@doc("Name of the hybrididentitymetadata") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@key("hybridIdentityMetadatum") | ||
@segment("hybridIdentityMetadata") | ||
@visibility("read") | ||
@path | ||
name: string; | ||
} | ||
|
||
@armResourceOperations | ||
@Azure.ClientGenerator.Core.clientName("HybridIdentityMetadata") | ||
interface HybridIdentityMetadataGroup { | ||
@doc("Implements HybridIdentityMetadata GET method.") | ||
get is ArmResourceRead<HybridIdentityMetadata>; | ||
|
||
@doc("Returns the list of HybridIdentityMetadata of the given vm.") | ||
list is ArmResourceListByParent<HybridIdentityMetadata>; | ||
} |
51 changes: 51 additions & 0 deletions
51
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/LogicalNetworks.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,51 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
|
||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("The logical network resource definition.") | ||
@extension("x-ms-azure-resource", true) | ||
@extension("x-ms-client-flatten", true) | ||
model LogicalNetwork is TrackedResource<LogicalNetworkProperties> { | ||
@doc("Name of the logical network") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@path | ||
@key("logicalNetworkName") | ||
@segment("logicalNetworks") | ||
@visibility("read") | ||
name: string; | ||
|
||
@doc("The extendedLocation of the resource.") | ||
extendedLocation?: ExtendedLocation; | ||
} | ||
|
||
@armResourceOperations | ||
interface LogicalNetworks { | ||
@doc("The operation to get a logical network.") | ||
get is ArmResourceRead<LogicalNetwork>; | ||
|
||
@doc("The operation to create or update a logical network. Please note some properties can be set only during logical network creation.") | ||
createOrUpdate is ArmResourceCreateOrReplaceAsync<LogicalNetwork>; | ||
|
||
@doc("The operation to update a logical network.") | ||
@parameterVisibility | ||
update is ArmCustomPatchAsync<LogicalNetwork, LogicalNetworksUpdateRequest>; | ||
|
||
@doc("The operation to delete a logical network.") | ||
delete is ArmResourceDeleteWithoutOkAsync<LogicalNetwork>; | ||
|
||
@doc("Lists all of the logical networks in the specified resource group. Use the nextLink property in the response to get the next page of logical networks.") | ||
list is ArmResourceListByParent<LogicalNetwork>; | ||
|
||
@doc("Lists all of the logical networks in the specified subscription. Use the nextLink property in the response to get the next page of logical networks.") | ||
listAll is ArmListBySubscription<LogicalNetwork>; | ||
} |
52 changes: 52 additions & 0 deletions
52
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/MarketplaceGalleryImages.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,52 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
|
||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("The marketplace gallery image resource definition.") | ||
@extension("x-ms-azure-resource", true) | ||
@extension("x-ms-client-flatten", true) | ||
model MarketplaceGalleryImage | ||
is TrackedResource<MarketplaceGalleryImageProperties> { | ||
@doc("Name of the marketplace gallery image") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@path | ||
@key("marketplaceGalleryImageName") | ||
@segment("marketplaceGalleryImages") | ||
@visibility("read") | ||
name: string; | ||
|
||
@doc("The extendedLocation of the resource.") | ||
extendedLocation?: ExtendedLocation; | ||
} | ||
|
||
@armResourceOperations | ||
interface MarketplaceGalleryImages { | ||
@doc("Gets a marketplace gallery image") | ||
get is ArmResourceRead<MarketplaceGalleryImage>; | ||
|
||
@doc("The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.") | ||
createOrUpdate is ArmResourceCreateOrReplaceAsync<MarketplaceGalleryImage>; | ||
|
||
@doc("The operation to update a marketplace gallery image.") | ||
@parameterVisibility | ||
update is ArmCustomPatchAsync<MarketplaceGalleryImage>; | ||
|
||
@doc("The operation to delete a marketplace gallery image.") | ||
delete is ArmResourceDeleteWithoutOkAsync<MarketplaceGalleryImage>; | ||
|
||
@doc("Lists all of the marketplace gallery images in the specified resource group. Use the nextLink property in the response to get the next page of marketplace gallery images.") | ||
list is ArmResourceListByParent<MarketplaceGalleryImage>; | ||
|
||
@doc("Lists all of the marketplace gallery images in the specified subscription. Use the nextLink property in the response to get the next page of marketplace gallery images.") | ||
listAll is ArmListBySubscription<MarketplaceGalleryImage>; | ||
} |
51 changes: 51 additions & 0 deletions
51
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkInterfaces.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,51 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
using TypeSpec.OpenAPI; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
|
||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("The network interface resource definition.") | ||
@extension("x-ms-azure-resource", true) | ||
@extension("x-ms-client-flatten", true) | ||
model NetworkInterface is TrackedResource<NetworkInterfaceProperties> { | ||
@doc("Name of the network interface") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@path | ||
@key("networkInterfaceName") | ||
@segment("networkInterfaces") | ||
@visibility("read") | ||
name: string; | ||
|
||
@doc("The extendedLocation of the resource.") | ||
extendedLocation?: ExtendedLocation; | ||
} | ||
|
||
@armResourceOperations | ||
interface NetworkInterfaces { | ||
@doc("Gets a network interface") | ||
get is ArmResourceRead<NetworkInterface>; | ||
|
||
@doc("The operation to create or update a network interface. Please note some properties can be set only during network interface creation.") | ||
createOrUpdate is ArmResourceCreateOrReplaceAsync<NetworkInterface>; | ||
|
||
@doc("The operation to update a network interface.") | ||
@parameterVisibility | ||
update is ArmCustomPatchAsync<NetworkInterface>; | ||
|
||
@doc("The operation to delete a network interface.") | ||
delete is ArmResourceDeleteWithoutOkAsync<NetworkInterface>; | ||
|
||
@doc("Lists all of the network interfaces in the specified resource group. Use the nextLink property in the response to get the next page of network interfaces.") | ||
list is ArmResourceListByParent<NetworkInterface>; | ||
|
||
@doc("Lists all of the network interfaces in the specified subscription. Use the nextLink property in the response to get the next page of network interfaces.") | ||
listAll is ArmListBySubscription<NetworkInterface>; | ||
} |
48 changes: 48 additions & 0 deletions
48
specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/NetworkSecurityGroups.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,48 @@ | ||
import "@azure-tools/typespec-azure-core"; | ||
import "@azure-tools/typespec-azure-resource-manager"; | ||
import "@typespec/openapi"; | ||
import "@typespec/rest"; | ||
import "./models.tsp"; | ||
|
||
using TypeSpec.Rest; | ||
using Azure.ResourceManager; | ||
using TypeSpec.Http; | ||
|
||
namespace Microsoft.AzureStackHCI; | ||
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility" | ||
@doc("NetworkSecurityGroup resource.") | ||
model NetworkSecurityGroup is TrackedResource<NetworkSecurityGroupProperties> { | ||
@doc("Name of the network security group") | ||
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$") | ||
@path | ||
@key("networkSecurityGroupName") | ||
@segment("networkSecurityGroups") | ||
@visibility("read") | ||
name: string; | ||
|
||
@doc("The extendedLocation of the resource.") | ||
extendedLocation?: ExtendedLocation; | ||
|
||
...EntityTagProperty; | ||
} | ||
|
||
@armResourceOperations | ||
interface NetworkSecurityGroups { | ||
@doc("Gets the specified network security group.") | ||
get is ArmResourceRead<NetworkSecurityGroup>; | ||
|
||
@doc("Creates or updates a network security group in the specified resource group.") | ||
createOrUpdate is ArmResourceCreateOrReplaceAsync<NetworkSecurityGroup>; | ||
|
||
@doc("Updates a network security group tags.") | ||
updateTags is ArmTagsPatchAsync<NetworkSecurityGroup, TagsObject>; | ||
|
||
@doc("Deletes the specified network security group.") | ||
delete is ArmResourceDeleteWithoutOkAsync<NetworkSecurityGroup>; | ||
|
||
@doc("Gets all network security groups in a resource group.") | ||
list is ArmResourceListByParent<NetworkSecurityGroup>; | ||
|
||
@doc("Gets all network security groups in a subscription.") | ||
listAll is ArmListBySubscription<NetworkSecurityGroup>; | ||
} |
Oops, something went wrong.