Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 0 additions & 6 deletions specification/compute/Common.Management/main.tsp

This file was deleted.

8 changes: 4 additions & 4 deletions specification/compute/cspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ words:
- waagent
overrides:
- filename: >-
**/specification/compute/resource-manager/Microsoft.ContainerService/preview/2015-11-01-preview/containerService.json
**/specification/compute/resource-manager/Microsoft.ContainerService/ContainerService/preview/2015-11-01-preview/containerService.json
words:
- ochestrator
- filename: >-
**/specification/compute/resource-manager/Microsoft.ContainerService/stable/2016-03-30/containerService.json
**/specification/compute/resource-manager/Microsoft.ContainerService/ContainerService/stable/2016-03-30/containerService.json
words:
- ochestrator
- filename: >-
**/specification/compute/resource-manager/Microsoft.ContainerService/stable/2016-09-30/containerService.json
**/specification/compute/resource-manager/Microsoft.ContainerService/ContainerService/stable/2016-09-30/containerService.json
words:
- ochestrator
- filename: '**/specification/compute/resource-manager/readme.md'
- filename: '**/specification/compute/resource-manager/**/readme.md'
words:
- cloudservice

Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@
"$ref": "#/definitions/CloudServiceProperties"
},
"systemData": {
"$ref": "../../../../../../common-types/resource-management/v3/types.json#/definitions/systemData"
"$ref": "../../../../../../../common-types/resource-management/v3/types.json#/definitions/systemData"
},
"zones": {
"description": "List of logical availability zone of the resource. List should contain only 1 zone where cloud service should be provisioned. This field is optional.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- tool: TypeSpecRequirement
path: ./preview/2020-10-01-preview/*.json
reason: Brownfield service not ready to migrate
- tool: TypeSpecRequirement
path: ./stable/2021-03-01/*.json
reason: Brownfield service not ready to migrate
- tool: TypeSpecRequirement
path: ./stable/2022-04-04/*.json
reason: Brownfield service not ready to migrate
- tool: TypeSpecRequirement
path: ./stable/2022-09-04/*.json
reason: Brownfield service not ready to migrate
- tool: TypeSpecRequirement
path: ./stable/2024-11-04/*.json
reason: Brownfield service not ready to migrate
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to an availability set at creation time. An existing VM cannot be added to an availability set.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Specifies information about the capacity reservation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Specifies information about the capacity reservation group that the capacity reservations should be assigned to. Currently, a capacity reservation can only be added to a capacity reservation group at creation time. An existing capacity reservation cannot be added or moved to another capacity reservation group.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Specifies information about the Dedicated host.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Specifies information about the proximity placement group.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Restore Point details.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Create or update Restore Point collection parameters.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* The status of the latest virtual machine scale set rolling upgrade.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Specifies information about the SSH public key.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a Virtual Machine.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a Virtual Machine Extension.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a Virtual Machine Extension Image.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a Virtual Machine run command.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Versioning;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a Virtual Machine Scale Set.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a Virtual Machine Scale Set Extension.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a virtual machine scale set virtual machine.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;
/**
* Describes a VMSS VM Extension.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;
using Microsoft.Compute;
using Compute;
using Common;

#suppress "@azure-tools/typespec-azure-core/no-legacy-usage" "@flattenProperty decorator is not recommended to use."
@@Azure.ClientGenerator.Core.Legacy.flattenProperty(VirtualMachineScaleSetNetworkConfiguration.properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;
using Microsoft.Compute;
using Compute;

@@clientName(NetworkApiVersion.`2020-11-01`, "TwoThousandTwenty1101", "go");
@@clientName(NetworkApiVersion.`2022-11-01`, "TwoThousandTwentyTwo1101", "go");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "../Common.Management/models-ref.tsp";
import "../Common.Management/operations.tsp";
import "../Common.Management/legacy.tsp";
import "../common/models-ref.tsp";
import "../common/operations.tsp";
import "../common/legacy.tsp";
import "./models.tsp";
import "./VirtualMachineScaleSet.tsp";
import "./RollingUpgradeStatusInfo.tsp";
Expand Down Expand Up @@ -43,10 +43,10 @@ using TypeSpec.Versioning;
/**
* Compute Client
*/
@armProviderNamespace
@armProviderNamespace("Microsoft.Compute")
@service(#{ title: "Azure Compute resource management API." })
@versioned(Versions)
namespace Microsoft.Compute;
namespace Compute;

/**
* The available API versions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Http;
using Versioning;
using Azure.Core;
using Azure.ResourceManager;
using Common;

namespace Microsoft.Compute;
namespace Compute;

/**
* Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ using TypeSpec.Rest;
using TypeSpec.Http;
using Azure.ResourceManager;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace Compute;

#suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator" "For backward compatibility"
interface UsageOperationGroup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ emit:
- "@azure-tools/typespec-autorest"
options:
"@azure-tools/typespec-autorest":
emitter-output-dir: "{project-root}/.."
emitter-output-dir: "{project-root}"
azure-resource-provider-folder: "resource-manager"
output-file: "{azure-resource-provider-folder}/{service-name}/ComputeRP/{version-status}/{version}/ComputeRP.json"
output-file: "{version-status}/{version}/ComputeRP.json"
arm-types-dir: "{project-root}/../../../../common-types/resource-management"
examples-dir: "{project-root}/examples"

linter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace ComputeDisk;
/**
* Disk resource.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace ComputeDisk;
/**
* disk access resource.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace ComputeDisk;
/**
* disk encryption set resource.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace ComputeDisk;
/**
* Properties of disk restore point
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using Common;

namespace Microsoft.Compute;
namespace ComputeDisk;
/**
* The Private Endpoint Connection resource.
*/
Expand Down
Loading