Skip to content
Draft
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
20 changes: 17 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

25 changes: 14 additions & 11 deletions sdk/msi/arm-msi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Release History

## 2.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 2.1.0-beta.1 (2022-03-07)

**Features**

- Added operation UserAssignedIdentities.listAssociatedResources
- Added Interface AssociatedResourcesListResult
- Added Interface AzureResource
- Added Interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams
- Added Interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams
- Added Type Alias UserAssignedIdentitiesListAssociatedResourcesNextResponse
- Added Type Alias UserAssignedIdentitiesListAssociatedResourcesResponse


## 2.0.0 (2021-12-17)

The package of @azure/arm-msi is using our next generation design principles since version 2.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/msi/arm-msi/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/msi/arm-msi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Managed Service Identity Client.

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

## Getting started
Expand Down
6 changes: 3 additions & 3 deletions sdk/msi/arm-msi/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "7086ee861c3a6196bb98f8b327af11d03e545a05",
"commit": "6982e62694821ee3d46b0d49ebae173729ac5eaf",
"readme": "specification/msi/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/msi/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211207.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/msi/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.16.20211207.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
25 changes: 19 additions & 6 deletions sdk/msi/arm-msi/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/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-msi.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"
}
}
}
}
}
4 changes: 2 additions & 2 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.0.1",
"version": "1.0.0-beta.1",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -97,4 +97,4 @@
},
"sideEffects": false,
"autoPublish": true
}
}
42 changes: 42 additions & 0 deletions sdk/msi/arm-msi/review/arm-msi.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { PagedAsyncIterableIterator } from '@azure/core-paging';

// @public
export interface AssociatedResourcesListResult {
readonly nextLink?: string;
readonly totalCount?: number;
readonly value?: AzureResource[];
}

// @public
export interface AzureResource {
readonly id?: string;
readonly name?: string;
readonly resourceGroup?: string;
readonly subscriptionDisplayName?: string;
readonly subscriptionId?: string;
readonly type?: string;
}

// @public
export interface CloudError {
error?: CloudErrorBody;
Expand Down Expand Up @@ -149,6 +166,7 @@ export interface UserAssignedIdentities {
createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Identity, options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams): Promise<UserAssignedIdentitiesCreateOrUpdateResponse>;
delete(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesGetOptionalParams): Promise<UserAssignedIdentitiesGetResponse>;
listAssociatedResources(resourceGroupName: string, resourceName: string, options?: UserAssignedIdentitiesListAssociatedResourcesOptionalParams): PagedAsyncIterableIterator<AzureResource>;
listByResourceGroup(resourceGroupName: string, options?: UserAssignedIdentitiesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Identity>;
listBySubscription(options?: UserAssignedIdentitiesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Identity>;
update(resourceGroupName: string, resourceName: string, parameters: IdentityUpdate, options?: UserAssignedIdentitiesUpdateOptionalParams): Promise<UserAssignedIdentitiesUpdateResponse>;
Expand All @@ -172,6 +190,30 @@ export interface UserAssignedIdentitiesGetOptionalParams extends coreClient.Oper
// @public
export type UserAssignedIdentitiesGetResponse = Identity;

// @public
export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
skip?: number;
skiptoken?: string;
top?: number;
}

// @public
export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult;

// @public
export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams extends coreClient.OperationOptions {
filter?: string;
orderby?: string;
skip?: number;
skiptoken?: string;
top?: number;
}

// @public
export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult;

// @public
export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/msi/arm-msi/src/managedServiceIdentityClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-msi/2.0.0`;
const packageDetails = `azsdk-js-arm-msi/2.1.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -75,7 +75,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2018-11-30";
this.apiVersion = options.apiVersion || "2021-09-30-preview";
this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
this.operations = new OperationsImpl(this);
this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);
Expand Down
89 changes: 89 additions & 0 deletions sdk/msi/arm-msi/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,59 @@ export interface UserAssignedIdentitiesListResult {
nextLink?: string;
}

/** Azure resources returned by the resource action to get a list of assigned resources. */
export interface AssociatedResourcesListResult {
/**
* Total number of Azure resources assigned to the identity.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly totalCount?: number;
/**
* The collection of Azure resources returned by the resource action to get a list of assigned resources.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: AzureResource[];
/**
* The url to get the next page of results, if any.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}

/** Describes an Azure resource that is attached to an identity. */
export interface AzureResource {
/**
* The ID of this resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The name of this resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* The type of this resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/**
* The name of the resource group this resource belongs to.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly resourceGroup?: string;
/**
* The ID of the subscription this resource belongs to.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
/**
* The name of the subscription this resource belongs to.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionDisplayName?: string;
}

/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
export type ProxyResource = Resource & {};

Expand Down Expand Up @@ -197,6 +250,24 @@ export interface UserAssignedIdentitiesListByResourceGroupOptionalParams
/** Contains response data for the listByResourceGroup operation. */
export type UserAssignedIdentitiesListByResourceGroupResponse = UserAssignedIdentitiesListResult;

/** Optional parameters. */
export interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams
extends coreClient.OperationOptions {
/** OData filter expression to apply to the query. */
filter?: string;
/** OData orderBy expression to apply to the query. */
orderby?: string;
/** Number of records to return. */
top?: number;
/** Number of records to skip. */
skip?: number;
/** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */
skiptoken?: string;
}

/** Contains response data for the listAssociatedResources operation. */
export type UserAssignedIdentitiesListAssociatedResourcesResponse = AssociatedResourcesListResult;

/** Optional parameters. */
export interface UserAssignedIdentitiesCreateOrUpdateOptionalParams
extends coreClient.OperationOptions {}
Expand Down Expand Up @@ -236,6 +307,24 @@ export interface UserAssignedIdentitiesListByResourceGroupNextOptionalParams
/** Contains response data for the listByResourceGroupNext operation. */
export type UserAssignedIdentitiesListByResourceGroupNextResponse = UserAssignedIdentitiesListResult;

/** Optional parameters. */
export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams
extends coreClient.OperationOptions {
/** OData filter expression to apply to the query. */
filter?: string;
/** OData orderBy expression to apply to the query. */
orderby?: string;
/** Number of records to return. */
top?: number;
/** Number of records to skip. */
skip?: number;
/** A skip token is used to continue retrieving items after an operation returns a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skipToken parameter that specifies a starting point to use for subsequent calls. */
skiptoken?: string;
}

/** Contains response data for the listAssociatedResourcesNext operation. */
export type UserAssignedIdentitiesListAssociatedResourcesNextResponse = AssociatedResourcesListResult;

/** Optional parameters. */
export interface ManagedServiceIdentityClientOptionalParams
extends coreClient.ServiceClientOptions {
Expand Down
Loading