Skip to content

Commit e804257

Browse files
author
SDKAuto
committed
CodeGen from PR 3482 in test-repo-billy/azure-rest-api-specs
Merge 6c7f4231c72f34d93168540dea930f470444330e into 02e500856ce974e6873e205ffdb6523ffdc60bb7
1 parent b90db00 commit e804257

Some content is hidden

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

59 files changed

+8276
-15970
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 420 additions & 416 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/computefleet/arm-computefleet/.eslintrc.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

sdk/computefleet/arm-computefleet/CHANGELOG.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,117 @@
11
# Release History
22

3+
## 1.0.0-beta.2 (2024-09-10)
4+
Compared with version 1.0.0-beta.1
5+
6+
### Features Added
7+
8+
- Added operation Fleets.beginCreateOrUpdate
9+
- Added operation Fleets.beginCreateOrUpdateAndWait
10+
- Added operation Fleets.beginDelete
11+
- Added operation Fleets.beginDeleteAndWait
12+
- Added operation Fleets.beginUpdate
13+
- Added operation Fleets.beginUpdateAndWait
14+
- Added Interface BasePriorityProfile
15+
- Added Interface ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties
16+
- Added Interface FleetListResult
17+
- Added Interface FleetsCreateOrUpdateHeaders
18+
- Added Interface FleetsDeleteHeaders
19+
- Added Interface FleetsListByResourceGroupNextOptionalParams
20+
- Added Interface FleetsListBySubscriptionNextOptionalParams
21+
- Added Interface FleetsListVirtualMachineScaleSetsNextOptionalParams
22+
- Added Interface FleetsUpdateHeaders
23+
- Added Interface MicrosoftAzureFleetForTestingOptionalParams
24+
- Added Interface OperationListResult
25+
- Added Interface OperationsListNextOptionalParams
26+
- Added Interface SubResourceReadOnly
27+
- Added Interface VirtualMachineScaleSetListResult
28+
- Added Class MicrosoftAzureFleetForTesting
29+
- Added Type Alias FleetsCreateOrUpdateResponse
30+
- Added Type Alias FleetsDeleteResponse
31+
- Added Type Alias FleetsGetResponse
32+
- Added Type Alias FleetsListByResourceGroupNextResponse
33+
- Added Type Alias FleetsListByResourceGroupResponse
34+
- Added Type Alias FleetsListBySubscriptionNextResponse
35+
- Added Type Alias FleetsListBySubscriptionResponse
36+
- Added Type Alias FleetsListVirtualMachineScaleSetsNextResponse
37+
- Added Type Alias FleetsListVirtualMachineScaleSetsResponse
38+
- Added Type Alias FleetsUpdateResponse
39+
- Added Type Alias OperationsListNextResponse
40+
- Added Type Alias OperationsListResponse
41+
- Added Type Alias StatusLevelTypes
42+
- Interface Fleet has a new optional parameter computeProfile
43+
- Interface Fleet has a new optional parameter provisioningState
44+
- Interface Fleet has a new optional parameter regularPriorityProfile
45+
- Interface Fleet has a new optional parameter spotPriorityProfile
46+
- Interface Fleet has a new optional parameter timeCreated
47+
- Interface Fleet has a new optional parameter uniqueId
48+
- Interface Fleet has a new optional parameter vmSizesProfile
49+
- Interface FleetsCreateOrUpdateOptionalParams has a new optional parameter resumeFrom
50+
- Interface FleetsDeleteOptionalParams has a new optional parameter resumeFrom
51+
- Interface FleetsUpdateOptionalParams has a new optional parameter resumeFrom
52+
- Interface VirtualMachineScaleSetDataDisk has a new optional parameter diskIopsReadWrite
53+
- Added Enum KnownProvisioningState
54+
- Added Enum KnownStatusLevelTypes
55+
- Enum KnownDiskControllerTypes has a new value Scsi
56+
- Enum KnownManagedServiceIdentityType has a new value SystemAssignedUserAssigned
57+
- Enum KnownNetworkApiVersion has a new value V20201101
58+
- Enum KnownOrigin has a new value System
59+
- Enum KnownOrigin has a new value User
60+
- Enum KnownOrigin has a new value UserSystem
61+
- Enum KnownStorageAccountTypes has a new value PremiumLRS
62+
- Enum KnownStorageAccountTypes has a new value PremiumV2LRS
63+
- Enum KnownStorageAccountTypes has a new value PremiumZRS
64+
- Enum KnownStorageAccountTypes has a new value StandardLRS
65+
- Enum KnownStorageAccountTypes has a new value StandardSSDLRS
66+
- Enum KnownStorageAccountTypes has a new value StandardSSDZRS
67+
- Enum KnownStorageAccountTypes has a new value UltraSSDLRS
68+
- Added function getContinuationToken
69+
70+
### Breaking Changes
71+
72+
- Removed operation FleetsOperations.createOrUpdate
73+
- Removed operation FleetsOperations.delete
74+
- Removed operation FleetsOperations.update
75+
- Deleted Class AzureFleetClient
76+
- Interface Fleet no longer has parameter properties
77+
- Interface VirtualMachineScaleSetDataDisk no longer has parameter diskIOPSReadWrite
78+
- Interface VirtualMachineScaleSet has a new required parameter name
79+
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, any> to Record<string, unknown>
80+
- Type of parameter tags of interface FleetUpdate is changed from Record<string, string> to {
81+
[propertyName: string]: string;
82+
}
83+
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from Record<string, UserAssignedIdentity | null> to {
84+
[propertyName: string]: UserAssignedIdentity | null;
85+
}
86+
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentityUpdate is changed from Record<string, UserAssignedIdentity | null> to {
87+
[propertyName: string]: ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties | null;
88+
}
89+
- Type of parameter tags of interface TrackedResource is changed from Record<string, string> to {
90+
[propertyName: string]: string;
91+
}
92+
- Type of parameter protectedSettings of interface VirtualMachineScaleSetExtensionProperties is changed from Record<string, any> to {
93+
[propertyName: string]: any;
94+
}
95+
- Type of parameter settings of interface VirtualMachineScaleSetExtensionProperties is changed from Record<string, any> to {
96+
[propertyName: string]: any;
97+
}
98+
- Removed Enum KnownResourceProvisioningState
99+
- Enum KnownDiskControllerTypes no longer has value SCSI
100+
- Enum KnownManagedServiceIdentityType no longer has value "SystemAssigned,UserAssigned"
101+
- Enum KnownNetworkApiVersion no longer has value "2020-11-01"
102+
- Enum KnownOrigin no longer has value "user,system"
103+
- Enum KnownOrigin no longer has value system
104+
- Enum KnownOrigin no longer has value user
105+
- Enum KnownStorageAccountTypes no longer has value Premium_LRS
106+
- Enum KnownStorageAccountTypes no longer has value Premium_ZRS
107+
- Enum KnownStorageAccountTypes no longer has value PremiumV2_LRS
108+
- Enum KnownStorageAccountTypes no longer has value Standard_LRS
109+
- Enum KnownStorageAccountTypes no longer has value StandardSSD_LRS
110+
- Enum KnownStorageAccountTypes no longer has value StandardSSD_ZRS
111+
- Enum KnownStorageAccountTypes no longer has value UltraSSD_LRS
112+
- Removed function restorePoller
113+
114+
3115
## 1.0.0-beta.1 (2024-07-22)
4116

5117
### Features Added

sdk/computefleet/arm-computefleet/README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
# AzureFleet client library for JavaScript
1+
# Azure MicrosoftAzureFleetForTesting client library for JavaScript
2+
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure MicrosoftAzureFleetForTesting client.
24

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureFleet client.
45

5-
Azure Fleet Service
66

77
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/computefleet/arm-computefleet) |
88
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-computefleet) |
99
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-computefleet?view=azure-node-preview) |
10+
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
1011

1112
## Getting started
1213

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

2425
### Install the `@azure/arm-computefleet` package
2526

26-
Install the AzureFleet client library for JavaScript with `npm`:
27+
Install the Azure MicrosoftAzureFleetForTesting client library for JavaScript with `npm`:
2728

2829
```bash
2930
npm install @azure/arm-computefleet
3031
```
3132

32-
### Create and authenticate a `AzureFleetClient`
33+
### Create and authenticate a `MicrosoftAzureFleetForTesting`
3334

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

3738
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).
3839

@@ -42,25 +43,25 @@ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below
4243
npm install @azure/identity
4344
```
4445

45-
You will also need to **register a new AAD application and grant access to AzureFleet** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
46+
You will also need to **register a new AAD application and grant access to Azure MicrosoftAzureFleetForTesting** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
4647
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`.
4748

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

5051
```javascript
51-
const { AzureFleetClient } = require("@azure/arm-computefleet");
52+
const { MicrosoftAzureFleetForTesting } = require("@azure/arm-computefleet");
5253
const { DefaultAzureCredential } = require("@azure/identity");
5354
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
5455

5556
const subscriptionId = "00000000-0000-0000-0000-000000000000";
56-
const client = new AzureFleetClient(new DefaultAzureCredential(), subscriptionId);
57+
const client = new MicrosoftAzureFleetForTesting(new DefaultAzureCredential(), subscriptionId);
5758

5859
// For client-side applications running in the browser, use this code instead:
5960
// const credential = new InteractiveBrowserCredential({
6061
// tenantId: "<YOUR_TENANT_ID>",
6162
// clientId: "<YOUR_CLIENT_ID>"
6263
// });
63-
// const client = new AzureFleetClient(credential, subscriptionId);
64+
// const client = new MicrosoftAzureFleetForTesting(credential, subscriptionId);
6465
```
6566

6667

@@ -69,9 +70,9 @@ To use this client library in the browser, first you need to use a bundler. For
6970

7071
## Key concepts
7172

72-
### AzureFleetClient
73+
### MicrosoftAzureFleetForTesting
7374

74-
`AzureFleetClient` is the primary interface for developers using the AzureFleet client library. Explore the methods on this client object to understand the different features of the AzureFleet service that you can access.
75+
`MicrosoftAzureFleetForTesting` is the primary interface for developers using the Azure MicrosoftAzureFleetForTesting client library. Explore the methods on this client object to understand the different features of the Azure MicrosoftAzureFleetForTesting service that you can access.
7576

7677
## Troubleshooting
7778

@@ -86,6 +87,9 @@ setLogLevel("info");
8687

8788
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
8889

90+
## Next steps
91+
92+
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.
8993

9094
## Contributing
9195

@@ -95,6 +99,10 @@ If you'd like to contribute to this library, please read the [contributing guide
9599

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

102+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcomputefleet%2Farm-computefleet%2FREADME.png)
103+
104+
[azure_cli]: https://docs.microsoft.com/cli/azure
105+
[azure_sub]: https://azure.microsoft.com/free/
98106
[azure_sub]: https://azure.microsoft.com/free/
99107
[azure_portal]: https://portal.azure.com
100108
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"commit": "abdd04c316cd2e71dc4819b4e78eaceb50bae76c",
3+
"readme": "specification/azurefleet/resource-manager/readme.md",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/azurefleet/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
5+
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git",
6+
"release_tool": "@azure-tools/[email protected]",
7+
"use": "@autorest/typescript@^6.0.12"
8+
}
Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "./dist/esm/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
3+
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-computefleet.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/computefleet/arm-computefleet/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)