Skip to content

Commit 3fb94bf

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge 447c4193246efcde66d0d0feaa59da2c756c794f into a19648565889eaae019e531c15f3045d1244c7ce
1 parent 47033fd commit 3fb94bf

File tree

247 files changed

+4857
-20111
lines changed

Some content is hidden

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

247 files changed

+4857
-20111
lines changed

common/config/rush/pnpm-lock.yaml

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/migrate/arm-migrate/CHANGELOG.md

+120-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,127 @@
11
# Release History
2-
3-
## 2.0.4 (Unreleased)
4-
2+
3+
## 3.0.0-beta.1 (2025-05-13)
4+
Compared with version 2.0.3
5+
56
### Features Added
67

7-
### Breaking Changes
8+
- Added operation group AssessmentProjectsOperationsOperations
9+
- Added operation group AssessmentProjectSummaryOperationsOperations
10+
- Added operation PrivateEndpointConnectionOperationsOperations.listByParent
11+
- Added operation PrivateLinkResourceOperationsOperations.listByParent
12+
- Added Interface AssessmentProject
13+
- Added Interface AssessmentProjectsOperationsCreateOptionalParams
14+
- Added Interface AssessmentProjectsOperationsDeleteOptionalParams
15+
- Added Interface AssessmentProjectsOperationsGetOptionalParams
16+
- Added Interface AssessmentProjectsOperationsListByParentOptionalParams
17+
- Added Interface AssessmentProjectsOperationsListBySubscriptionOptionalParams
18+
- Added Interface AssessmentProjectsOperationsUpdateOptionalParams
19+
- Added Interface AssessmentProjectSummary
20+
- Added Interface AssessmentProjectSummaryOperationsGetOptionalParams
21+
- Added Interface AssessmentProjectSummaryOperationsListByParentOptionalParams
22+
- Added Interface AssessmentProjectSummaryProperties
23+
- Added Interface ErrorAdditionalInfo
24+
- Added Interface ErrorDetail
25+
- Added Interface ErrorResponse
26+
- Added Interface ErrorSummary
27+
- Added Interface MigrateClientOptionalParams
28+
- Added Interface PagedAsyncIterableIterator
29+
- Added Interface PageSettings
30+
- Added Interface PrivateEndpoint
31+
- Added Interface PrivateEndpointConnectionOperationsDeleteOptionalParams
32+
- Added Interface PrivateEndpointConnectionOperationsGetOptionalParams
33+
- Added Interface PrivateEndpointConnectionOperationsListByParentOptionalParams
34+
- Added Interface PrivateEndpointConnectionOperationsUpdateOptionalParams
35+
- Added Interface PrivateLinkResourceOperationsGetOptionalParams
36+
- Added Interface PrivateLinkResourceOperationsListByParentOptionalParams
37+
- Added Interface ProxyResource
38+
- Added Interface Resource
39+
- Added Interface RestorePollerOptions
40+
- Added Interface SystemData
41+
- Added Interface TrackedResource
42+
- Added Class MigrateClient
43+
- Added Type Alias ActionType
44+
- Added Type Alias ContinuablePage
45+
- Added Type Alias CreatedByType
46+
- Added Type Alias Origin
47+
- Added Type Alias PrivateEndpointConnectionProvisioningState
48+
- Added Type Alias PrivateEndpointServiceConnectionStatus
49+
- Interface Operation has a new optional parameter actionType
50+
- Interface Operation has a new optional parameter isDataAction
51+
- Interface PrivateEndpointConnectionProperties has a new optional parameter groupIds
52+
- Added Enum KnownActionType
53+
- Added Enum KnownAssessmentProjectApiVersions
54+
- Added Enum KnownCreatedByType
55+
- Added Enum KnownOrigin
56+
- Added Enum KnownPrivateEndpointConnectionProvisioningState
57+
- Added Enum KnownPrivateEndpointServiceConnectionStatus
58+
- Enum KnownProvisioningState has a new value Canceled
59+
- Enum KnownProvisioningState has a new value Provisioning
60+
- Enum KnownProvisioningState has a new value Updating
61+
- Added function restorePoller
862

9-
### Bugs Fixed
10-
11-
### Other Changes
63+
### Breaking Changes
1264

65+
- Removed operation group AssessedMachines
66+
- Removed operation group Assessments
67+
- Removed operation group Groups
68+
- Removed operation group HyperVCollectors
69+
- Removed operation group ImportCollectors
70+
- Removed operation group Machines
71+
- Removed operation group PrivateEndpointConnectionOperations
72+
- Removed operation group PrivateLinkResourceOperations
73+
- Removed operation group Projects
74+
- Removed operation group ServerCollectors
75+
- Removed operation group VMwareCollectors
76+
- Deleted Class AzureMigrateV2
77+
- Interface PrivateEndpointConnection no longer has parameter eTag
78+
- Interface PrivateEndpointConnection no longer has parameter id
79+
- Interface PrivateEndpointConnection no longer has parameter name
80+
- Interface PrivateEndpointConnection no longer has parameter type
81+
- Interface PrivateLinkResource no longer has parameter id
82+
- Interface PrivateLinkResource no longer has parameter name
83+
- Interface PrivateLinkResource no longer has parameter type
84+
- Interface ProjectProperties no longer has parameter lastAssessmentTimestamp
85+
- Interface ProjectProperties no longer has parameter numberOfAssessments
86+
- Interface ProjectProperties no longer has parameter numberOfGroups
87+
- Interface ProjectProperties no longer has parameter numberOfMachines
88+
- Parameter privateLinkServiceConnectionState of interface PrivateEndpointConnectionProperties is now required
89+
- Type of parameter origin of interface Operation is changed from string to Origin
90+
- Type of parameter privateEndpoint of interface PrivateEndpointConnectionProperties is changed from ResourceId to PrivateEndpoint
91+
- Type of parameter provisioningState of interface PrivateEndpointConnectionProperties is changed from PrivateEndpointConnectionPropertiesProvisioningState to PrivateEndpointConnectionProvisioningState
92+
- Type of parameter status of interface PrivateLinkServiceConnectionState is changed from PrivateLinkServiceConnectionStateStatus to PrivateEndpointServiceConnectionStatus
93+
- Removed Enum KnownAssessmentSizingCriterion
94+
- Removed Enum KnownAssessmentStage
95+
- Removed Enum KnownAssessmentStatus
96+
- Removed Enum KnownAzureDiskSize
97+
- Removed Enum KnownAzureDiskSuitabilityDetail
98+
- Removed Enum KnownAzureDiskSuitabilityExplanation
99+
- Removed Enum KnownAzureDiskType
100+
- Removed Enum KnownAzureHybridUseBenefit
101+
- Removed Enum KnownAzureLocation
102+
- Removed Enum KnownAzureNetworkAdapterSuitabilityDetail
103+
- Removed Enum KnownAzureNetworkAdapterSuitabilityExplanation
104+
- Removed Enum KnownAzureOfferCode
105+
- Removed Enum KnownAzurePricingTier
106+
- Removed Enum KnownAzureStorageRedundancy
107+
- Removed Enum KnownAzureVmFamily
108+
- Removed Enum KnownAzureVmSize
109+
- Removed Enum KnownAzureVmSuitabilityDetail
110+
- Removed Enum KnownAzureVmSuitabilityExplanation
111+
- Removed Enum KnownCloudSuitability
112+
- Removed Enum KnownCurrency
113+
- Removed Enum KnownGroupStatus
114+
- Removed Enum KnownGroupUpdateOperation
115+
- Removed Enum KnownMachineBootType
116+
- Removed Enum KnownPercentile
117+
- Removed Enum KnownPrivateEndpointConnectionPropertiesProvisioningState
118+
- Removed Enum KnownPrivateLinkServiceConnectionStateStatus
119+
- Removed Enum KnownReservedInstance
120+
- Removed Enum KnownTimeRange
121+
- Enum KnownProvisioningState no longer has value Creating
122+
- Enum KnownProvisioningState no longer has value Moving
123+
- Removed function getContinuationToken
124+
13125
## 2.0.3 (2023-01-29)
14126

15127
### Features Added
@@ -40,4 +152,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
40152

41153
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
42154

43-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
155+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).

sdk/migrate/arm-migrate/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/migrate/arm-migrate/README.md

+24-26
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# AzureMigrateV2 client library for JavaScript
1+
# Azure Migrate client library for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMigrateV2 client.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Migrate client.
44

5-
Assess your workloads for Azure.
5+
Azure Migrate Resource Provider management API.
66

7-
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrate/arm-migrate) |
8-
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-migrate) |
9-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-migrate) |
10-
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrate/arm-migrate)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-migrate)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-migrate?view=azure-node-preview)
12+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrate/arm-migrate/samples)
1113

1214
## Getting started
1315

@@ -24,16 +26,16 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
2426

2527
### Install the `@azure/arm-migrate` package
2628

27-
Install the AzureMigrateV2 client library for JavaScript with `npm`:
29+
Install the Azure Migrate client library for JavaScript with `npm`:
2830

2931
```bash
3032
npm install @azure/arm-migrate
3133
```
3234

33-
### Create and authenticate a `AzureMigrateV2`
35+
### Create and authenticate a `MigrateClient`
3436

35-
To create a client object to access the AzureMigrateV2 API, you will need the `endpoint` of your AzureMigrateV2 resource and a `credential`. The AzureMigrateV2 client can use Azure Active Directory credentials to authenticate.
36-
You can find the endpoint for your AzureMigrateV2 resource in the [Azure Portal][azure_portal].
37+
To create a client object to access the Azure Migrate API, you will need the `endpoint` of your Azure Migrate resource and a `credential`. The Azure Migrate client can use Azure Active Directory credentials to authenticate.
38+
You can find the endpoint for your Azure Migrate resource in the [Azure Portal][azure_portal].
3739

3840
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3941

@@ -43,44 +45,42 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
4345
npm install @azure/identity
4446
```
4547

46-
You will also need to **register a new AAD application and grant access to AzureMigrateV2** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
48+
You will also need to **register a new AAD application and grant access to Azure Migrate** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
4849

4950
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5051

5152
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
5253

5354
```ts snippet:ReadmeSampleCreateClient_Node
54-
import { AzureMigrateV2 } from "@azure/arm-migrate";
55+
import { MigrateClient } from "@azure/arm-migrate";
5556
import { DefaultAzureCredential } from "@azure/identity";
5657

5758
const subscriptionId = "00000000-0000-0000-0000-000000000000";
58-
const client = new AzureMigrateV2(new DefaultAzureCredential(), subscriptionId);
59+
const client = new MigrateClient(new DefaultAzureCredential(), subscriptionId);
5960
```
6061

6162
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
6263

6364
```ts snippet:ReadmeSampleCreateClient_Browser
6465
import { InteractiveBrowserCredential } from "@azure/identity";
65-
import { AzureMigrateV2 } from "@azure/arm-migrate";
66+
import { MigrateClient } from "@azure/arm-migrate";
6667

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6868
const credential = new InteractiveBrowserCredential({
6969
tenantId: "<YOUR_TENANT_ID>",
70-
clientId: "<YOUR_CLIENT_ID>",
71-
});
72-
const client = new AzureMigrateV2(credential, subscriptionId);
70+
clientId: "<YOUR_CLIENT_ID>"
71+
});
72+
const client = new MigrateClient(credential, subscriptionId);
7373
```
7474

75-
### JavaScript Bundle
7675

76+
### JavaScript Bundle
7777
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7878

7979
## Key concepts
8080

81-
### AzureMigrateV2
81+
### MigrateClient
8282

83-
`AzureMigrateV2` is the primary interface for developers using the AzureMigrateV2 client library. Explore the methods on this client object to understand the different features of the AzureMigrateV2 service that you can access.
83+
`MigrateClient` is the primary interface for developers using the Azure Migrate client library. Explore the methods on this client object to understand the different features of the Azure Migrate service that you can access.
8484

8585
## Troubleshooting
8686

@@ -98,7 +98,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
9898

9999
## Next steps
100100

101-
Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
101+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/migrate/arm-migrate/samples) directory for detailed examples on how to use this library.
102102

103103
## Contributing
104104

@@ -108,8 +108,6 @@ If you'd like to contribute to this library, please read the [contributing guide
108108

109109
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110110

111-
[azure_cli]: https://learn.microsoft.com/cli/azure
112-
[azure_sub]: https://azure.microsoft.com/free/
113111
[azure_sub]: https://azure.microsoft.com/free/
114112
[azure_portal]: https://portal.azure.com
115113
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/migrate/arm-migrate/_meta.json

-8
This file was deleted.

sdk/migrate/arm-migrate/assets.json

-6
This file was deleted.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default azsdkEslint.config([
4+
{
5+
rules: {
6+
"@azure/azure-sdk/ts-modules-only-named": "warn",
7+
"@azure/azure-sdk/ts-package-json-types": "warn",
8+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
9+
"@azure/azure-sdk/ts-package-json-files-required": "off",
10+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
]);

0 commit comments

Comments
 (0)