Skip to content

Commit

Permalink
CodeGen from PR 31921 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 2d9fe78dff0a0f918932ee265707cef76751be99 into 96c44f99e15d99f1ae43a793f1845f912f664964
  • Loading branch information
SDKAuto committed Dec 19, 2024
1 parent dfefda3 commit d10addc
Show file tree
Hide file tree
Showing 97 changed files with 2,790 additions and 5,790 deletions.
92 changes: 75 additions & 17 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 52 additions & 7 deletions sdk/liftrqumulo/arm-qumulo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,60 @@
# Release History

## 2.0.1 (Unreleased)

## 3.0.0 (2024-12-19)
### Features Added

### Breaking Changes
- Added operation FileSystemsOperations.createOrUpdate
- Added operation FileSystemsOperations.delete
- Added Interface FileSystemResourceProperties
- Added Interface PagedAsyncIterableIterator
- Added Interface PageSettings
- Added Interface RestorePollerOptions
- Added Interface StorageClientOptionalParams
- Added Class StorageClient
- Added Type Alias ContinuablePage
- Interface FileSystemResource has a new optional parameter properties
- Added Enum KnownVersions
- Enum KnownManagedServiceIdentityType has a new value "SystemAssigned,UserAssigned"
- Enum KnownOrigin has a new value "user,system"
- Enum KnownOrigin has a new value system
- Enum KnownOrigin has a new value user
- Added function restorePoller

### Bugs Fixed

### Other Changes
### Breaking Changes

- Removed operation FileSystems.beginCreateOrUpdate
- Removed operation FileSystems.beginCreateOrUpdateAndWait
- Removed operation FileSystems.beginDelete
- Removed operation FileSystems.beginDeleteAndWait
- Deleted Class QumuloStorage
- Interface FileSystemResource no longer has parameter adminPassword
- Interface FileSystemResource no longer has parameter availabilityZone
- Interface FileSystemResource no longer has parameter clusterLoginUrl
- Interface FileSystemResource no longer has parameter delegatedSubnetId
- Interface FileSystemResource no longer has parameter marketplaceDetails
- Interface FileSystemResource no longer has parameter privateIPs
- Interface FileSystemResource no longer has parameter provisioningState
- Interface FileSystemResource no longer has parameter storageSku
- Interface FileSystemResource no longer has parameter userDetails
- Interface FileSystemsCreateOrUpdateOptionalParams no longer has parameter resumeFrom
- Interface FileSystemsDeleteOptionalParams no longer has parameter resumeFrom
- Type of parameter tags of interface FileSystemResourceUpdate is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from {
[propertyName: string]: UserAssignedIdentity;
} to Record<string, UserAssignedIdentity>
- Type of parameter tags of interface TrackedResource is changed from {
[propertyName: string]: string;
} to Record<string, string>
- Enum KnownManagedServiceIdentityType no longer has value SystemAssignedUserAssigned
- Enum KnownOrigin no longer has value System
- Enum KnownOrigin no longer has value User
- Enum KnownOrigin no longer has value UserSystem
- Removed function getContinuationToken


## 2.0.0 (2024-07-17)

### Features Added
Expand Down
47 changes: 21 additions & 26 deletions sdk/liftrqumulo/arm-qumulo/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Azure QumuloStorage client library for JavaScript
# Azure Storage client library for JavaScript

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

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/liftrqumulo/arm-qumulo) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-qumulo) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-qumulo) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)


Key links:

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

## Getting started

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

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

Install the Azure QumuloStorage client library for JavaScript with `npm`:
Install the Azure Storage client library for JavaScript with `npm`:

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

### Create and authenticate a `QumuloStorage`
### Create and authenticate a `StorageClient`

To create a client object to access the Azure QumuloStorage API, you will need the `endpoint` of your Azure QumuloStorage resource and a `credential`. The Azure QumuloStorage client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure QumuloStorage resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure Storage API, you will need the `endpoint` of your Azure Storage resource and a `credential`. The Azure Storage client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure Storage 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 @@ -41,36 +44,35 @@ 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 Azure QumuloStorage** 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`.
You will also need to **register a new AAD application and grant access to Azure Storage** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).

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).
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 { QumuloStorage } = require("@azure/arm-qumulo");
const { StorageClient } = require("@azure/arm-qumulo");
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 QumuloStorage(new DefaultAzureCredential(), subscriptionId);
const client = new StorageClient(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 QumuloStorage(credential, subscriptionId);
// const client = new StorageClient(credential, subscriptionId);
```

### JavaScript Bundle

### JavaScript Bundle
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).

## Key concepts

### QumuloStorage
### StorageClient

`QumuloStorage` is the primary interface for developers using the Azure QumuloStorage client library. Explore the methods on this client object to understand the different features of the Azure QumuloStorage service that you can access.
`StorageClient` is the primary interface for developers using the Azure Storage client library. Explore the methods on this client object to understand the different features of the Azure Storage service that you can access.

## Troubleshooting

Expand All @@ -85,9 +87,6 @@ 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 @@ -97,10 +96,6 @@ 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%2Fliftrqumulo%2Farm-qumulo%2FREADME.png)

[azure_cli]: https://learn.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: 0 additions & 8 deletions sdk/liftrqumulo/arm-qumulo/_meta.json

This file was deleted.

27 changes: 7 additions & 20 deletions sdk/liftrqumulo/arm-qumulo/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"mainEntryPointFilePath": "./dist/esm/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-qumulo.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/liftrqumulo/arm-qumulo/assets.json

This file was deleted.

17 changes: 17 additions & 0 deletions sdk/liftrqumulo/arm-qumulo/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default [
...azsdkEslint.configs.recommended,
{
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-apiextractor-json-types": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"@azure/azure-sdk/ts-package-json-module": "off",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn"
}
}
];
Loading

0 comments on commit d10addc

Please sign in to comment.