Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new api-version 2024-02-01-preview to main #29105

Merged
merged 16 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from 10 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
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>;
}
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>;
}
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>;
}
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>;
}
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>;
}
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>;
}
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>;
}
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>;
}
Loading
Loading