Skip to content

Commit

Permalink
CodeGen from PR 32865 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge cb33093542b22ecdbfc1cd2e0c9033fe6201aa71 into c39f72c162b0ca345a4745cdfc9a1e276a725d5d
  • Loading branch information
SDKAuto committed Feb 27, 2025
1 parent 804e13d commit f63dc02
Show file tree
Hide file tree
Showing 31 changed files with 625 additions and 486 deletions.
12 changes: 6 additions & 6 deletions common/config/rush/pnpm-lock.yaml

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

20 changes: 12 additions & 8 deletions sdk/msi/arm-msi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 2.1.1 (Unreleased)

## 3.0.0 (2025-02-27)
### Features Added

### Breaking Changes
- Added Type Alias IsolationScope
- Interface Identity has a new optional parameter isolationScope
- Interface IdentityUpdate has a new optional parameter isolationScope
- Added Enum KnownIsolationScope

### Bugs Fixed

### Other Changes
### Breaking Changes

- Class ManagedServiceIdentityClient has a new signature


## 2.1.0 (2023-02-03)

### Features Added
Expand Down Expand Up @@ -46,4 +50,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.

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

To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/msi/arm-msi/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
9 changes: 4 additions & 5 deletions sdk/msi/arm-msi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure ManagedServiceIdentity** 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://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand All @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { ManagedServiceIdentityClient } from "@azure/arm-msi";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new ManagedServiceIdentityClient(credential, subscriptionId);
```

### 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
Expand Down Expand Up @@ -108,6 +105,8 @@ 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%2Fmsi%2Farm-msi%2FREADME.png)

[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
10 changes: 5 additions & 5 deletions sdk/msi/arm-msi/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "9f33c53e4b6d09e22329df29ac2ef404fe2149de",
"commit": "d27dd7b46298f18732a822c549bf5aed9281a94d",
"readme": "specification/msi/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\msi\\resource-manager\\readme.md --use=@autorest/[email protected].0-rc.7 --generate-sample=true",
"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/msi/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0",
"use": "@autorest/[email protected].0-rc.7"
}
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.21",
"use": "@autorest/typescript@^6.0.12"
}
6 changes: 3 additions & 3 deletions sdk/msi/arm-msi/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-msi.d.ts"
"publicTrimmedFilePath": "./types/arm-msi.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
32 changes: 13 additions & 19 deletions sdk/msi/arm-msi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ManagedServiceIdentityClient.",
"version": "2.1.1",
"version": "3.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -19,29 +19,31 @@
"azure",
"typescript",
"browser",
"isomorphic",
"cloud"
"isomorphic"
],
"license": "MIT",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"module": "./dist-esm/src/index.js",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
"@azure-tools/test-recorder": "^4.1.0",
"@azure-tools/test-utils-vitest": "^1.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.6.0",
"@azure/identity": "^4.7.0",
"@azure/logger": "^1.1.4",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.5",
"@vitest/coverage-istanbul": "^3.0.5",
"@vitest/browser": "^3.0.6",
"@vitest/coverage-istanbul": "^3.0.6",
"dotenv": "^16.0.0",
"playwright": "^1.50.1",
"typescript": "~5.7.2",
"vitest": "^3.0.5"
"typescript": "~5.6.2",
"vitest": "^3.0.6"
},
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
Expand Down Expand Up @@ -89,14 +91,6 @@
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/msi/arm-msi",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-msi?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
Expand Down Expand Up @@ -137,4 +131,4 @@
}
}
}
}
}
14 changes: 13 additions & 1 deletion sdk/msi/arm-msi/review/arm-msi.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ export function getContinuationToken(page: unknown): string | undefined;
// @public
export interface Identity extends TrackedResource {
readonly clientId?: string;
isolationScope?: IsolationScope;
readonly principalId?: string;
readonly tenantId?: string;
}

// @public
export interface IdentityUpdate extends Resource {
readonly clientId?: string;
isolationScope?: IsolationScope;
location?: string;
readonly principalId?: string;
tags?: {
Expand All @@ -100,6 +102,9 @@ export interface IdentityUpdate extends Resource {
readonly tenantId?: string;
}

// @public
export type IsolationScope = string;

// @public
export enum KnownCreatedByType {
Application = "Application",
Expand All @@ -108,19 +113,26 @@ export enum KnownCreatedByType {
User = "User"
}

// @public
export enum KnownIsolationScope {
None = "None",
Regional = "Regional"
}

// @public (undocumented)
export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagedServiceIdentityClientOptionalParams);
constructor(credentials: coreAuth.TokenCredential, options?: ManagedServiceIdentityClientOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
federatedIdentityCredentials: FederatedIdentityCredentials;
// (undocumented)
operations: Operations;
// (undocumented)
subscriptionId: string;
subscriptionId?: string;
// (undocumented)
systemAssignedIdentities: SystemAssignedIdentities;
// (undocumented)
Expand Down
5 changes: 1 addition & 4 deletions sdk/msi/arm-msi/sample.env
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# App registration secret for AAD authentication
AZURE_CLIENT_SECRET=
AZURE_CLIENT_ID=
AZURE_TENANT_ID=
# Feel free to add your own environment variables.
Loading

0 comments on commit f63dc02

Please sign in to comment.