Skip to content

[AutoPR @azure/arm-computefleet] Batch 2 sdk gen #11786

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

Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
836 changes: 420 additions & 416 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions sdk/computefleet/arm-computefleet/.eslintrc.json

This file was deleted.

112 changes: 112 additions & 0 deletions sdk/computefleet/arm-computefleet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,117 @@
# Release History

## 1.0.0-beta.2 (2024-09-10)
Compared with version 1.0.0-beta.1

### Features Added

- Added operation Fleets.beginCreateOrUpdate
- Added operation Fleets.beginCreateOrUpdateAndWait
- Added operation Fleets.beginDelete
- Added operation Fleets.beginDeleteAndWait
- Added operation Fleets.beginUpdate
- Added operation Fleets.beginUpdateAndWait
- Added Interface BasePriorityProfile
- Added Interface ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties
- Added Interface FleetListResult
- Added Interface FleetsCreateOrUpdateHeaders
- Added Interface FleetsDeleteHeaders
- Added Interface FleetsListByResourceGroupNextOptionalParams
- Added Interface FleetsListBySubscriptionNextOptionalParams
- Added Interface FleetsListVirtualMachineScaleSetsNextOptionalParams
- Added Interface FleetsUpdateHeaders
- Added Interface MicrosoftAzureFleetForTestingOptionalParams
- Added Interface OperationListResult
- Added Interface OperationsListNextOptionalParams
- Added Interface SubResourceReadOnly
- Added Interface VirtualMachineScaleSetListResult
- Added Class MicrosoftAzureFleetForTesting
- Added Type Alias FleetsCreateOrUpdateResponse
- Added Type Alias FleetsDeleteResponse
- Added Type Alias FleetsGetResponse
- Added Type Alias FleetsListByResourceGroupNextResponse
- Added Type Alias FleetsListByResourceGroupResponse
- Added Type Alias FleetsListBySubscriptionNextResponse
- Added Type Alias FleetsListBySubscriptionResponse
- Added Type Alias FleetsListVirtualMachineScaleSetsNextResponse
- Added Type Alias FleetsListVirtualMachineScaleSetsResponse
- Added Type Alias FleetsUpdateResponse
- Added Type Alias OperationsListNextResponse
- Added Type Alias OperationsListResponse
- Added Type Alias StatusLevelTypes
- Interface Fleet has a new optional parameter computeProfile
- Interface Fleet has a new optional parameter provisioningState
- Interface Fleet has a new optional parameter regularPriorityProfile
- Interface Fleet has a new optional parameter spotPriorityProfile
- Interface Fleet has a new optional parameter timeCreated
- Interface Fleet has a new optional parameter uniqueId
- Interface Fleet has a new optional parameter vmSizesProfile
- Interface FleetsCreateOrUpdateOptionalParams has a new optional parameter resumeFrom
- Interface FleetsDeleteOptionalParams has a new optional parameter resumeFrom
- Interface FleetsUpdateOptionalParams has a new optional parameter resumeFrom
- Interface VirtualMachineScaleSetDataDisk has a new optional parameter diskIopsReadWrite
- Added Enum KnownProvisioningState
- Added Enum KnownStatusLevelTypes
- Enum KnownDiskControllerTypes has a new value Scsi
- Enum KnownManagedServiceIdentityType has a new value SystemAssignedUserAssigned
- Enum KnownNetworkApiVersion has a new value V20201101
- Enum KnownOrigin has a new value System
- Enum KnownOrigin has a new value User
- Enum KnownOrigin has a new value UserSystem
- Enum KnownStorageAccountTypes has a new value PremiumLRS
- Enum KnownStorageAccountTypes has a new value PremiumV2LRS
- Enum KnownStorageAccountTypes has a new value PremiumZRS
- Enum KnownStorageAccountTypes has a new value StandardLRS
- Enum KnownStorageAccountTypes has a new value StandardSSDLRS
- Enum KnownStorageAccountTypes has a new value StandardSSDZRS
- Enum KnownStorageAccountTypes has a new value UltraSSDLRS
- Added function getContinuationToken

### Breaking Changes

- Removed operation FleetsOperations.createOrUpdate
- Removed operation FleetsOperations.delete
- Removed operation FleetsOperations.update
- Deleted Class AzureFleetClient
- Interface Fleet no longer has parameter properties
- Interface VirtualMachineScaleSetDataDisk no longer has parameter diskIOPSReadWrite
- Interface VirtualMachineScaleSet has a new required parameter name
- Type of parameter info of interface ErrorAdditionalInfo is changed from Record<string, any> to Record<string, unknown>
- Type of parameter tags of interface FleetUpdate is changed from Record<string, string> to {
[propertyName: string]: string;
}
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from Record<string, UserAssignedIdentity | null> to {
[propertyName: string]: UserAssignedIdentity | null;
}
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentityUpdate is changed from Record<string, UserAssignedIdentity | null> to {
[propertyName: string]: ComponentsQjfoe3SchemasManagedserviceidentityupdatePropertiesUserassignedidentitiesAdditionalproperties | null;
}
- Type of parameter tags of interface TrackedResource is changed from Record<string, string> to {
[propertyName: string]: string;
}
- Type of parameter protectedSettings of interface VirtualMachineScaleSetExtensionProperties is changed from Record<string, any> to {
[propertyName: string]: any;
}
- Type of parameter settings of interface VirtualMachineScaleSetExtensionProperties is changed from Record<string, any> to {
[propertyName: string]: any;
}
- Removed Enum KnownResourceProvisioningState
- Enum KnownDiskControllerTypes no longer has value SCSI
- Enum KnownManagedServiceIdentityType no longer has value "SystemAssigned,UserAssigned"
- Enum KnownNetworkApiVersion no longer has value "2020-11-01"
- Enum KnownOrigin no longer has value "user,system"
- Enum KnownOrigin no longer has value system
- Enum KnownOrigin no longer has value user
- Enum KnownStorageAccountTypes no longer has value Premium_LRS
- Enum KnownStorageAccountTypes no longer has value Premium_ZRS
- Enum KnownStorageAccountTypes no longer has value PremiumV2_LRS
- Enum KnownStorageAccountTypes no longer has value Standard_LRS
- Enum KnownStorageAccountTypes no longer has value StandardSSD_LRS
- Enum KnownStorageAccountTypes no longer has value StandardSSD_ZRS
- Enum KnownStorageAccountTypes no longer has value UltraSSD_LRS
- Removed function restorePoller


## 1.0.0-beta.1 (2024-07-22)

### Features Added
Expand Down
34 changes: 21 additions & 13 deletions sdk/computefleet/arm-computefleet/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# AzureFleet client library for JavaScript
# Azure MicrosoftAzureFleetForTesting client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure MicrosoftAzureFleetForTesting client.

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

Azure Fleet Service

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

## Getting started

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

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

Install the AzureFleet client library for JavaScript with `npm`:
Install the Azure MicrosoftAzureFleetForTesting client library for JavaScript with `npm`:

```bash
npm install @azure/arm-computefleet
```

### Create and authenticate a `AzureFleetClient`
### Create and authenticate a `MicrosoftAzureFleetForTesting`

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.
You can find the endpoint for your AzureFleet resource in the [Azure Portal][azure_portal].
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.
You can find the endpoint for your Azure MicrosoftAzureFleetForTesting resource in the [Azure Portal][azure_portal].

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

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

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).
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).
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`.

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

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

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new AzureFleetClient(new DefaultAzureCredential(), subscriptionId);
const client = new MicrosoftAzureFleetForTesting(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new AzureFleetClient(credential, subscriptionId);
// const client = new MicrosoftAzureFleetForTesting(credential, subscriptionId);
```


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

## Key concepts

### AzureFleetClient
### MicrosoftAzureFleetForTesting

`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.
`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.

## Troubleshooting

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

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

## Next steps

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.

## Contributing

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

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

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fcomputefleet%2Farm-computefleet%2FREADME.png)

[azure_cli]: https://docs.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 8 additions & 0 deletions sdk/computefleet/arm-computefleet/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"commit": "abdd04c316cd2e71dc4819b4e78eaceb50bae76c",
"readme": "specification/azurefleet/resource-manager/readme.md",
"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",
"repository_url": "https://github.com/test-repo-billy/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/typescript@^6.0.12"
}
27 changes: 20 additions & 7 deletions sdk/computefleet/arm-computefleet/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist/esm/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-computefleet.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
6 changes: 0 additions & 6 deletions sdk/computefleet/arm-computefleet/assets.json

This file was deleted.

Loading