Skip to content
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
03cb16a
Update Swagger
dbhatia-ms Jul 18, 2025
1a4caf1
Update Readme Paths
dbhatia-ms Jul 22, 2025
52b4201
Fix SDKs
dbhatia-ms Jul 24, 2025
281dd8f
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
dbhatia-ms Jul 25, 2025
84d0513
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
dbhatia-ms Jul 25, 2025
89375a1
Added missing details
dbhatia-ms Jul 28, 2025
3b99436
Remove Operations config
dbhatia-ms Aug 11, 2025
ca973e5
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
dbhatia-ms Aug 21, 2025
a9e0edd
Add OperationsAPIImplementation suppressions to all Migrate service r…
dbhatia-ms Aug 21, 2025
8a9f7b3
Update suppression reason for OperationsAPIImplementation in AKSAsses…
dbhatia-ms Aug 21, 2025
943e74e
Fixing TypeSpec Formatting issues
dbhatia-ms Aug 21, 2025
b75231b
Address comments for un-necessary example files and removal of un-nec…
dbhatia-ms Aug 25, 2025
3094a62
Adding only necessary suppressions
dbhatia-ms Aug 25, 2025
c2c0ccd
Address spelling error
dbhatia-ms Aug 25, 2025
c522e7e
updated suppressions
dbhatia-ms Aug 25, 2025
a2a7fb7
Update specific file path
dbhatia-ms Aug 25, 2025
57154e9
Update path file
dbhatia-ms Aug 25, 2025
31cd6cb
Address Lint Diff error
dbhatia-ms Aug 25, 2025
cc4b8a6
Address Lint errors
dbhatia-ms Aug 26, 2025
406ee6e
Fixed indentation
dbhatia-ms Aug 26, 2025
faa1037
Updated path
dbhatia-ms Aug 26, 2025
398dce6
Fixed indentation
dbhatia-ms Aug 26, 2025
2910187
Merge branch 'main' into origin/dbhatia/swaggerupdation
v-anishrao Aug 27, 2025
562b3b4
Resolve LRO Diff errors
dbhatia-ms Aug 29, 2025
a918279
Merge branch 'main' into origin/dbhatia/swaggerupdation
dbhatia-ms Sep 1, 2025
d852954
Remove LRO Errors from suppressions.yaml
dbhatia-ms Sep 10, 2025
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "../../../Common/StandardizedContracts/CommonEnums.tsp";
import "../../../Common/StandardizedContracts/Scope.tsp";
import "../../../Common/StandardizedContracts/CommonModels.tsp";
import "../../../Common/StandardizedContracts/AssessedWorkloadProperties.tsp";
import "../../Common/StandardizedContracts/CommonEnums.tsp";
import "../../Common/StandardizedContracts/Scope.tsp";
import "../../Common/StandardizedContracts/CommonModels.tsp";
import "../../Common/StandardizedContracts/AssessedWorkloadProperties.tsp";
import "../../DataModels/Recommendation/RecommendationResult.tsp";

using TypeSpec.Http;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import "../../../Common/StandardizedContracts/CommonEnums.tsp";
import "../../../Common/StandardizedContracts/Scope.tsp";
import "../../../Common/StandardizedContracts/CommonModels.tsp";
import "../../../Common/StandardizedContracts/AssessmentProperties.tsp";
import "../../Common/StandardizedContracts/CommonEnums.tsp";
import "../../Common/StandardizedContracts/Scope.tsp";
import "../../Common/StandardizedContracts/CommonModels.tsp";
import "../../Common/StandardizedContracts/AssessmentProperties.tsp";
import "../../DataModels/Assessment/AKSAssessmentSettings.tsp";
import "../../../Common/ArmModels/AssessmentProjectV2.tsp";
import "../../Common/ArmModels/AssessmentProjectV2.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "../../../Common/StandardizedContracts/CommonAssessmentPropertiesEnums.tsp";
import "../../../Common/Enums/Enums.tsp";
import "../../Common/StandardizedContracts/CommonAssessmentPropertiesEnums.tsp";
import "../../Common/Enums/Enums.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "../../../Common/StandardizedContracts/SummaryProperties.tsp";
import "../../Common/StandardizedContracts/SummaryProperties.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "../../Enums/Enums.tsp";
import "../../../Common/StandardizedContracts/AssessmentProperties.tsp";
import "../../Common/StandardizedContracts/AssessmentProperties.tsp";

namespace Microsoft.Migrate;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "./ArmModels/Cluster/AKSCluster.tsp";
import "./ArmModels/CostDetails/AKSCostDetails.tsp";
import "./ArmModels/Options/AKSAssessmentOptions.tsp";
import "./ArmModels/Summary/AKSSummary.tsp";
import "../Common/DataModels/DownloadUrl.tsp";
import "./Common/DataModels/DownloadUrl.tsp";

import "./AKSApiVersions.tsp";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ using Azure.Core;
using Azure.ResourceManager;
using OpenAPI;

#suppress "@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint" "Operations interface is intentionally excluded"
@armProviderNamespace
@service(#{ title: "Azure Migrate Assessment Service" })
@versioned(AKSApiVersions)
@doc("Azure Migrate Resource Provider management API.")
namespace Microsoft.Migrate;

interface Operations extends Azure.ResourceManager.Operations {}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ linter:
options:
"@azure-tools/typespec-autorest":
emitter-output-dir: "{output-dir}"
output-file: "{azure-resource-provider-folder}/{service-name}/AssessmentProjects/{version-status}/{version}/aksAssessments.json"
output-file: "{azure-resource-provider-folder}/{service-name}/AKSAssessments/{version-status}/{version}/aksAssessments.json"
azure-resource-provider-folder: ./resource-manager
use-read-only-status-schema: true
arm-types-dir: "{project-root}/../../../common-types/resource-management"
Expand Down Expand Up @@ -40,4 +40,4 @@ options:
name: "@azure/arm-migrate"
"@azure-tools/typespec-client-generator-cli":
"additionalDirectories":
- "specification/migrate/AssessmentProjects.Management/Common"
- "specification/migrate/AssessmentProjects.Management/AKSAssessments.Management"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "../Common/ArmModels/AzureResourceProperties.tsp";
import "./Common/ArmModels/AzureResourceProperties.tsp";
import "@azure-tools/typespec-autorest";

using Autorest;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import "./AzureResourceProperties.tsp";
import "./PrivateEndpointConnection.tsp";

using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.ResourceManager;

namespace Microsoft.Migrate;

@doc("An Assessment project site resource.")
model AssessmentProject is TrackedResource<ProjectProperties> {
@doc("Assessment Project Name")
@segment("assessmentProjects")
@key("projectName")
@path
// "^[^<>&:\\?\/#\x00-\x1F\x7F]{1,260}$"
@pattern("^[^<>&:\\?/#]{1,260}$")
name: string;
}

@doc("Properties of a project.")
model ProjectProperties is AzureResourceProperties {
@doc("Time when this project was created. Date-Time represented in ISO-8601 format.")
@visibility(Lifecycle.Read)
createdTimestamp?: utcDateTime;

@doc("""
Time when this project was last updated. Date-Time represented in ISO-8601
format.
""")
@visibility(Lifecycle.Read)
updatedTimestamp?: utcDateTime;

@doc("Endpoint at which the collector agent can call agent REST API.")
@visibility(Lifecycle.Read)
serviceEndpoint?: string;

@doc("Assessment solution ARM id tracked by Microsoft.Migrate/migrateProjects.")
assessmentSolutionId?: string;

@doc("Assessment project status.")
projectStatus?: ProjectStatus;

@doc("The ARM id of service map workspace created by customer.")
customerWorkspaceId?: string;

@doc("Location of service map workspace created by customer.")
customerWorkspaceLocation?: string;

@doc("""
This value can be set to 'enabled' to avoid breaking changes on existing
customer resources and templates. If set to 'disabled', traffic over public
interface is not allowed, and private endpoint connections would be the
exclusive access method.
""")
publicNetworkAccess?: string;

@doc("The list of private endpoint connections to the project.")
@visibility(Lifecycle.Read)
privateEndpointConnections?: PrivateEndpointConnection[];

@doc("""
The ARM id of the storage account used for interactions when public access is
disabled.
""")
customerStorageAccountArmId?: string;
}

@doc("Project Status.")
union ProjectStatus {
@doc("Active Status.")
Active: "Active",

@doc("Inactive Status.")
Inactive: "Inactive",

string,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import "../Enums/Enums.tsp";

namespace Microsoft.Migrate;

@doc("Common properties for all azure tracked and proxy resources.")
model AzureResourceProperties {
@doc("The status of the last operation.")
@visibility(Lifecycle.Read)
provisioningState?: ProvisioningState;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using TypeSpec.Http;
using TypeSpec.Rest;
using Azure.ResourceManager;

namespace Microsoft.Migrate;

@doc("Private endpoint connection resource.")
@parentResource(AssessmentProject)
model PrivateEndpointConnection
is ProxyResource<Azure.ResourceManager.PrivateEndpointConnectionProperties> {
@doc("Private endpoint connection ARM name")
@segment("privateEndpointConnections")
@key("privateEndpointConnectionName")
@path
// "^[^<>&:\\?\/#\x00-\x1F\x7F]{1,260}$"
@pattern("^[^<>&:\\?/#]{1,260}$")
name: string;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace Microsoft.Migrate;

@doc("Data model of Download URL for assessment report.")
model DownloadUrl {
@doc("Hyperlink to download report.")
@visibility(Lifecycle.Read)
assessmentReportUrl: string;

@doc("Expiry date of download url.")
@visibility(Lifecycle.Read)
expirationTime: utcDateTime;
}
Loading
Loading