Skip to content

Commit

Permalink
CodeGen from PR 3555 in test-repo-billy/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge db86af35224db05c8dda1f165cd73dbefa1fb7d3 into 35a65fea3e15956e7742e6b6d821768e8aff2903
  • Loading branch information
SDKAuto committed Oct 31, 2024
1 parent b90db00 commit 4537759
Show file tree
Hide file tree
Showing 59 changed files with 9,015 additions and 15,970 deletions.
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.

95 changes: 93 additions & 2 deletions sdk/computefleet/arm-computefleet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,98 @@
# Release History

## 1.0.0-beta.1 (2024-07-22)
## 2.0.0 (2024-10-31)

### 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 ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface FleetListResult
- Added Interface FleetsCreateOrUpdateHeaders
- Added Interface FleetsDeleteHeaders
- Added Interface FleetsListByResourceGroupNextOptionalParams
- Added Interface FleetsListBySubscriptionNextOptionalParams
- Added Interface FleetsListVirtualMachineScaleSetsNextOptionalParams
- Added Interface FleetsUpdateHeaders
- Added Interface MicrosoftAzureFleetTestingOptionalParams
- Added Interface OperationListResult
- Added Interface OperationsListNextOptionalParams
- Added Interface SubResourceReadOnly
- Added Interface VirtualMachineScaleSetListResult
- Added Class MicrosoftAzureFleetTesting
- 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 additionalLocationsProfile
- 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 vmAttributes
- 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 KnownStatusLevelTypes
- Enum KnownAcceleratorType has a new value Fpga
- Enum KnownDiskControllerTypes has a new value Scsi
- 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 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;
}
- Enum KnownAcceleratorType no longer has value FPGA
- Enum KnownDiskControllerTypes no longer has value SCSI
- Removed function restorePoller


## 1.0.0 (2024-10-21)

### Features Added

Initial release of the Azure Compute Fleet package
This is the first stable version with the package of @azure/arm-computefleet.
36 changes: 22 additions & 14 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 MicrosoftAzureFleetTesting client library for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure MicrosoftAzureFleetTesting 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) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-computefleet) |
[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 MicrosoftAzureFleetTesting client library for JavaScript with `npm`:

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

### Create and authenticate a `AzureFleetClient`
### Create and authenticate a `MicrosoftAzureFleetTesting`

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 MicrosoftAzureFleetTesting API, you will need the `endpoint` of your Azure MicrosoftAzureFleetTesting resource and a `credential`. The Azure MicrosoftAzureFleetTesting client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure MicrosoftAzureFleetTesting 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 MicrosoftAzureFleetTesting** 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 { MicrosoftAzureFleetTesting } = 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 MicrosoftAzureFleetTesting(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 MicrosoftAzureFleetTesting(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
### MicrosoftAzureFleetTesting

`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.
`MicrosoftAzureFleetTesting` is the primary interface for developers using the Azure MicrosoftAzureFleetTesting client library. Explore the methods on this client object to understand the different features of the Azure MicrosoftAzureFleetTesting 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": "678f0ac6c05aa3ee76c01f2e99533c7e20e390bd",
"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

0 comments on commit 4537759

Please sign in to comment.