Skip to content

Commit f2e2e9f

Browse files
shraddhasunmikeharder
authored andcommitted
Add new api-version 2024-02-01-preview to main (Azure#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 <[email protected]> * Update specification/azurestackhci/AzureStackHCI.StackHCIVM.Management/tspconfig.yaml Co-authored-by: Mike Harder <[email protected]> * ID to id * remove unnecessary suppress * fix examples * copy private folder changes --------- Co-authored-by: Mike Harder <[email protected]>
1 parent 86de0c6 commit f2e2e9f

File tree

164 files changed

+16809
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+16809
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
import "./VirtualMachineInstance.tsp";
7+
8+
using TypeSpec.Rest;
9+
using Azure.ResourceManager;
10+
using TypeSpec.Http;
11+
using TypeSpec.OpenAPI;
12+
13+
namespace Microsoft.AzureStackHCI;
14+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
15+
@doc("The attestation status of the virtual machine")
16+
@singleton("default")
17+
@parentResource(VirtualMachineInstance)
18+
@includeInapplicableMetadataInPayload(false)
19+
model AttestationStatus is ProxyResource<AttestationStatusProperties> {
20+
@doc("Name of attestation status")
21+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
22+
@key("attestationStatus")
23+
@segment("attestationStatus")
24+
@visibility("read")
25+
@path
26+
name: string;
27+
}
28+
29+
@armResourceOperations
30+
interface AttestationStatuses {
31+
@doc("Implements AttestationStatus GET method.")
32+
get is ArmResourceRead<AttestationStatus>;
33+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
7+
using TypeSpec.Rest;
8+
using Azure.ResourceManager;
9+
using TypeSpec.Http;
10+
using TypeSpec.OpenAPI;
11+
12+
namespace Microsoft.AzureStackHCI;
13+
14+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
15+
@doc("The gallery images resource definition.")
16+
@extension("x-ms-azure-resource", true)
17+
@extension("x-ms-client-flatten", true)
18+
model GalleryImage is TrackedResource<GalleryImageProperties> {
19+
@doc("Name of the gallery image")
20+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
21+
@path
22+
@key("galleryImageName")
23+
@segment("galleryImages")
24+
@visibility("read")
25+
name: string;
26+
27+
@doc("The extendedLocation of the resource.")
28+
extendedLocation?: ExtendedLocation;
29+
}
30+
31+
@armResourceOperations(GalleryImage)
32+
interface GalleryImages {
33+
@doc("Gets a gallery image")
34+
get is ArmResourceRead<GalleryImage>;
35+
36+
@doc("The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.")
37+
createOrUpdate is ArmResourceCreateOrReplaceAsync<GalleryImage>;
38+
39+
@doc("The operation to update a gallery image.")
40+
@parameterVisibility
41+
update is ArmCustomPatchAsync<GalleryImage>;
42+
43+
@doc("The operation to delete a gallery image.")
44+
delete is ArmResourceDeleteWithoutOkAsync<GalleryImage>;
45+
46+
@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.")
47+
list is ArmResourceListByParent<GalleryImage>;
48+
49+
@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.")
50+
listAll is ArmListBySubscription<GalleryImage>;
51+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
import "./VirtualMachineInstance.tsp";
7+
8+
using TypeSpec.Rest;
9+
using Azure.ResourceManager;
10+
using TypeSpec.Http;
11+
using TypeSpec.OpenAPI;
12+
13+
namespace Microsoft.AzureStackHCI;
14+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
15+
@doc("Defines the GuestAgent.")
16+
@singleton("default")
17+
@parentResource(VirtualMachineInstance)
18+
model GuestAgent is ProxyResource<GuestAgentProperties> {
19+
@doc("guestAgent name")
20+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
21+
@key("guestAgent")
22+
@segment("guestAgents")
23+
@visibility("read")
24+
@path
25+
name: string;
26+
}
27+
28+
@armResourceOperations
29+
interface GuestAgents {
30+
@doc("Implements GuestAgent GET method.")
31+
get is ArmResourceRead<GuestAgent>;
32+
33+
@doc("Create Or Update GuestAgent.")
34+
create is ArmResourceCreateOrReplaceAsync<GuestAgent>;
35+
36+
@doc("Implements GuestAgent DELETE method.")
37+
delete is ArmResourceDeleteWithoutOkAsync<GuestAgent>;
38+
39+
@doc("Returns the list of GuestAgent of the given vm.")
40+
list is ArmResourceListByParent<GuestAgent>;
41+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@azure-tools/typespec-client-generator-core";
4+
import "@typespec/openapi";
5+
import "@typespec/rest";
6+
import "./models.tsp";
7+
import "./VirtualMachineInstance.tsp";
8+
9+
using TypeSpec.Rest;
10+
using Azure.ResourceManager;
11+
using TypeSpec.Http;
12+
using TypeSpec.OpenAPI;
13+
14+
namespace Microsoft.AzureStackHCI;
15+
16+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
17+
@doc("Defines the HybridIdentityMetadata.")
18+
@extension("x-ms-azure-resource", true)
19+
@singleton("default")
20+
@parentResource(VirtualMachineInstance)
21+
model HybridIdentityMetadata
22+
is ProxyResource<HybridIdentityMetadataProperties> {
23+
@doc("Name of the hybrididentitymetadata")
24+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
25+
@key("hybridIdentityMetadatum")
26+
@segment("hybridIdentityMetadata")
27+
@visibility("read")
28+
@path
29+
name: string;
30+
}
31+
32+
@armResourceOperations
33+
@Azure.ClientGenerator.Core.clientName("HybridIdentityMetadata")
34+
interface HybridIdentityMetadataGroup {
35+
@doc("Implements HybridIdentityMetadata GET method.")
36+
get is ArmResourceRead<HybridIdentityMetadata>;
37+
38+
@doc("Returns the list of HybridIdentityMetadata of the given vm.")
39+
list is ArmResourceListByParent<HybridIdentityMetadata>;
40+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
7+
using TypeSpec.Rest;
8+
using Azure.ResourceManager;
9+
using TypeSpec.Http;
10+
using TypeSpec.OpenAPI;
11+
12+
namespace Microsoft.AzureStackHCI;
13+
14+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
15+
@doc("The logical network resource definition.")
16+
@extension("x-ms-azure-resource", true)
17+
@extension("x-ms-client-flatten", true)
18+
model LogicalNetwork is TrackedResource<LogicalNetworkProperties> {
19+
@doc("Name of the logical network")
20+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
21+
@path
22+
@key("logicalNetworkName")
23+
@segment("logicalNetworks")
24+
@visibility("read")
25+
name: string;
26+
27+
@doc("The extendedLocation of the resource.")
28+
extendedLocation?: ExtendedLocation;
29+
}
30+
31+
@armResourceOperations
32+
interface LogicalNetworks {
33+
@doc("The operation to get a logical network.")
34+
get is ArmResourceRead<LogicalNetwork>;
35+
36+
@doc("The operation to create or update a logical network. Please note some properties can be set only during logical network creation.")
37+
createOrUpdate is ArmResourceCreateOrReplaceAsync<LogicalNetwork>;
38+
39+
@doc("The operation to update a logical network.")
40+
@parameterVisibility
41+
update is ArmCustomPatchAsync<LogicalNetwork, LogicalNetworksUpdateRequest>;
42+
43+
@doc("The operation to delete a logical network.")
44+
delete is ArmResourceDeleteWithoutOkAsync<LogicalNetwork>;
45+
46+
@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.")
47+
list is ArmResourceListByParent<LogicalNetwork>;
48+
49+
@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.")
50+
listAll is ArmListBySubscription<LogicalNetwork>;
51+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
7+
using TypeSpec.Rest;
8+
using Azure.ResourceManager;
9+
using TypeSpec.Http;
10+
using TypeSpec.OpenAPI;
11+
12+
namespace Microsoft.AzureStackHCI;
13+
14+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
15+
@doc("The marketplace gallery image resource definition.")
16+
@extension("x-ms-azure-resource", true)
17+
@extension("x-ms-client-flatten", true)
18+
model MarketplaceGalleryImage
19+
is TrackedResource<MarketplaceGalleryImageProperties> {
20+
@doc("Name of the marketplace gallery image")
21+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
22+
@path
23+
@key("marketplaceGalleryImageName")
24+
@segment("marketplaceGalleryImages")
25+
@visibility("read")
26+
name: string;
27+
28+
@doc("The extendedLocation of the resource.")
29+
extendedLocation?: ExtendedLocation;
30+
}
31+
32+
@armResourceOperations
33+
interface MarketplaceGalleryImages {
34+
@doc("Gets a marketplace gallery image")
35+
get is ArmResourceRead<MarketplaceGalleryImage>;
36+
37+
@doc("The operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.")
38+
createOrUpdate is ArmResourceCreateOrReplaceAsync<MarketplaceGalleryImage>;
39+
40+
@doc("The operation to update a marketplace gallery image.")
41+
@parameterVisibility
42+
update is ArmCustomPatchAsync<MarketplaceGalleryImage>;
43+
44+
@doc("The operation to delete a marketplace gallery image.")
45+
delete is ArmResourceDeleteWithoutOkAsync<MarketplaceGalleryImage>;
46+
47+
@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.")
48+
list is ArmResourceListByParent<MarketplaceGalleryImage>;
49+
50+
@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.")
51+
listAll is ArmListBySubscription<MarketplaceGalleryImage>;
52+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
7+
using TypeSpec.Rest;
8+
using Azure.ResourceManager;
9+
using TypeSpec.Http;
10+
using TypeSpec.OpenAPI;
11+
12+
namespace Microsoft.AzureStackHCI;
13+
14+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
15+
@doc("The network interface resource definition.")
16+
@extension("x-ms-azure-resource", true)
17+
@extension("x-ms-client-flatten", true)
18+
model NetworkInterface is TrackedResource<NetworkInterfaceProperties> {
19+
@doc("Name of the network interface")
20+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
21+
@path
22+
@key("networkInterfaceName")
23+
@segment("networkInterfaces")
24+
@visibility("read")
25+
name: string;
26+
27+
@doc("The extendedLocation of the resource.")
28+
extendedLocation?: ExtendedLocation;
29+
}
30+
31+
@armResourceOperations
32+
interface NetworkInterfaces {
33+
@doc("Gets a network interface")
34+
get is ArmResourceRead<NetworkInterface>;
35+
36+
@doc("The operation to create or update a network interface. Please note some properties can be set only during network interface creation.")
37+
createOrUpdate is ArmResourceCreateOrReplaceAsync<NetworkInterface>;
38+
39+
@doc("The operation to update a network interface.")
40+
@parameterVisibility
41+
update is ArmCustomPatchAsync<NetworkInterface>;
42+
43+
@doc("The operation to delete a network interface.")
44+
delete is ArmResourceDeleteWithoutOkAsync<NetworkInterface>;
45+
46+
@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.")
47+
list is ArmResourceListByParent<NetworkInterface>;
48+
49+
@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.")
50+
listAll is ArmListBySubscription<NetworkInterface>;
51+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import "@azure-tools/typespec-azure-core";
2+
import "@azure-tools/typespec-azure-resource-manager";
3+
import "@typespec/openapi";
4+
import "@typespec/rest";
5+
import "./models.tsp";
6+
7+
using TypeSpec.Rest;
8+
using Azure.ResourceManager;
9+
using TypeSpec.Http;
10+
11+
namespace Microsoft.AzureStackHCI;
12+
#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-envelope-property" "For backward compatibility"
13+
@doc("NetworkSecurityGroup resource.")
14+
model NetworkSecurityGroup is TrackedResource<NetworkSecurityGroupProperties> {
15+
@doc("Name of the network security group")
16+
@pattern("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$")
17+
@path
18+
@key("networkSecurityGroupName")
19+
@segment("networkSecurityGroups")
20+
@visibility("read")
21+
name: string;
22+
23+
@doc("The extendedLocation of the resource.")
24+
extendedLocation?: ExtendedLocation;
25+
26+
...EntityTagProperty;
27+
}
28+
29+
@armResourceOperations
30+
interface NetworkSecurityGroups {
31+
@doc("Gets the specified network security group.")
32+
get is ArmResourceRead<NetworkSecurityGroup>;
33+
34+
@doc("Creates or updates a network security group in the specified resource group.")
35+
createOrUpdate is ArmResourceCreateOrReplaceAsync<NetworkSecurityGroup>;
36+
37+
@doc("Updates a network security group tags.")
38+
updateTags is ArmTagsPatchAsync<NetworkSecurityGroup, TagsObject>;
39+
40+
@doc("Deletes the specified network security group.")
41+
delete is ArmResourceDeleteWithoutOkAsync<NetworkSecurityGroup>;
42+
43+
@doc("Gets all network security groups in a resource group.")
44+
list is ArmResourceListByParent<NetworkSecurityGroup>;
45+
46+
@doc("Gets all network security groups in a subscription.")
47+
listAll is ArmListBySubscription<NetworkSecurityGroup>;
48+
}

0 commit comments

Comments
 (0)