Skip to content

Commit

Permalink
msi release (#24688)
Browse files Browse the repository at this point in the history
* msi release

* update files
  • Loading branch information
kazrael2119 authored Feb 3, 2023
1 parent 7d8decd commit 70e4df1
Show file tree
Hide file tree
Showing 58 changed files with 1,682 additions and 781 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions sdk/msi/arm-msi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Release History

## 2.1.0-beta.3 (2023-01-29)
## 2.1.0 (2023-02-03)

**Features**

- Added operation group FederatedIdentityCredentials
- Added operation UserAssignedIdentities.listAssociatedResources
- Added Interface AssociatedResourcesListResult
- Added Interface AzureResource
- Added Interface FederatedIdentityCredential
- Added Interface FederatedIdentityCredentialsCreateOrUpdateOptionalParams
- Added Interface FederatedIdentityCredentialsDeleteOptionalParams
Expand All @@ -19,15 +16,15 @@
- Added Interface IdentityUpdate
- Added Interface ProxyResource
- Added Interface SystemAssignedIdentity
- Added Interface SystemData
- Added Interface TrackedResource
- Added Interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams
- Added Interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams
- Added Type Alias CreatedByType
- Added Type Alias FederatedIdentityCredentialsCreateOrUpdateResponse
- Added Type Alias FederatedIdentityCredentialsGetResponse
- Added Type Alias FederatedIdentityCredentialsListNextResponse
- Added Type Alias FederatedIdentityCredentialsListResponse
- Added Type Alias UserAssignedIdentitiesListAssociatedResourcesNextResponse
- Added Type Alias UserAssignedIdentitiesListAssociatedResourcesResponse
- Interface Resource has a new optional parameter systemData
- Added Enum KnownCreatedByType
- Added function getContinuationToken


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?view=azure-node-preview) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-msi) |
[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": "fda2db441da3f1fab31bb235e97da3e33c8e3903",
"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/typescript@6.0.0-rc.7 --generate-sample=true",
"commit": "9f33c53e4b6d09e22329df29ac2ef404fe2149de",
"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/typescript@6.0.0-rc.7 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0",
"use": "@autorest/typescript@6.0.0-rc.7"
Expand Down
2 changes: 1 addition & 1 deletion 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.0-beta.3",
"version": "2.1.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down
59 changes: 22 additions & 37 deletions sdk/msi/arm-msi/review/arm-msi.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,6 @@ 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 All @@ -38,6 +21,9 @@ export interface CloudErrorBody {
target?: string;
}

// @public
export type CreatedByType = string;

// @public
export interface FederatedIdentityCredential extends ProxyResource {
audiences?: string[];
Expand Down Expand Up @@ -114,6 +100,14 @@ export interface IdentityUpdate extends Resource {
readonly tenantId?: string;
}

// @public
export enum KnownCreatedByType {
Application = "Application",
Key = "Key",
ManagedIdentity = "ManagedIdentity",
User = "User"
}

// @public (undocumented)
export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
// (undocumented)
Expand Down Expand Up @@ -187,6 +181,7 @@ export interface ProxyResource extends Resource {
export interface Resource {
readonly id?: string;
readonly name?: string;
readonly systemData?: SystemData;
readonly type?: string;
}

Expand Down Expand Up @@ -214,6 +209,16 @@ export interface SystemAssignedIdentity extends ProxyResource {
readonly tenantId?: string;
}

// @public
export interface SystemData {
createdAt?: Date;
createdBy?: string;
createdByType?: CreatedByType;
lastModifiedAt?: Date;
lastModifiedBy?: string;
lastModifiedByType?: CreatedByType;
}

// @public
export interface TrackedResource extends Resource {
location: string;
Expand All @@ -227,7 +232,6 @@ 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 @@ -251,25 +255,6 @@ export interface UserAssignedIdentitiesGetOptionalParams extends coreClient.Oper
// @public
export type UserAssignedIdentitiesGetResponse = Identity;

// @public
export interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions {
}

// @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
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ dotenv.config();
* This sample demonstrates how to Create or update a federated identity credential under the specified user assigned identity.
*
* @summary Create or update a federated identity credential under the specified user assigned identity.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialCreate.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialCreate.json
*/
async function federatedIdentityCredentialCreate() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["MSI_SUBSCRIPTION_ID"] ||
"c267c0e7-0a73-4789-9e17-d26aeb0904e5";
const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName";
const resourceName = "resourceName";
const federatedIdentityCredentialResourceName = "ficResourceName";
const parameters: FederatedIdentityCredential = {
audiences: ["api://AzureADTokenExchange"],
issuer: "https://oidc.prod-aks.azure.com/IssuerGUID",
issuer: "https://oidc.prod-aks.azure.com/TenantGUID/IssuerGUID",
subject: "system:serviceaccount:ns:svcaccount"
};
const credential = new DefaultAzureCredential();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Deletes the federated identity credential.
*
* @summary Deletes the federated identity credential.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialDelete.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialDelete.json
*/
async function federatedIdentityCredentialDelete() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["MSI_SUBSCRIPTION_ID"] ||
"c267c0e7-0a73-4789-9e17-d26aeb0904e5";
const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName";
const resourceName = "resourceName";
const federatedIdentityCredentialResourceName = "ficResourceName";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Gets the federated identity credential.
*
* @summary Gets the federated identity credential.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialGet.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialGet.json
*/
async function federatedIdentityCredentialGet() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["MSI_SUBSCRIPTION_ID"] ||
"c267c0e7-0a73-4789-9e17-d26aeb0904e5";
const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName";
const resourceName = "resourceName";
const federatedIdentityCredentialResourceName = "ficResourceName";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ dotenv.config();
* This sample demonstrates how to Lists all the federated identity credentials under the specified user assigned identity.
*
* @summary Lists all the federated identity credentials under the specified user assigned identity.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/FederatedIdentityCredentialList.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/FederatedIdentityCredentialList.json
*/
async function federatedIdentityCredentialList() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
const subscriptionId =
process.env["MSI_SUBSCRIPTION_ID"] ||
"c267c0e7-0a73-4789-9e17-d26aeb0904e5";
const resourceGroupName = process.env["MSI_RESOURCE_GROUP"] || "rgName";
const resourceName = "resourceName";
const credential = new DefaultAzureCredential();
Expand Down
2 changes: 1 addition & 1 deletion sdk/msi/arm-msi/samples-dev/operationsListSample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists available operations for the Microsoft.ManagedIdentity provider
*
* @summary Lists available operations for the Microsoft.ManagedIdentity provider
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/MsiOperationsList.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/MsiOperationsList.json
*/
async function msiOperationsList() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the systemAssignedIdentity available under the specified RP scope.
*
* @summary Gets the systemAssignedIdentity available under the specified RP scope.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/SystemAssignedIdentityGet.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/SystemAssignedIdentityGet.json
*/
async function msiOperationsList() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Create or update an identity in the specified subscription and resource group.
*
* @summary Create or update an identity in the specified subscription and resource group.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityCreate.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityCreate.json
*/
async function identityCreate() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Deletes the identity.
*
* @summary Deletes the identity.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityDelete.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityDelete.json
*/
async function identityDelete() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the identity.
*
* @summary Gets the identity.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityGet.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityGet.json
*/
async function identityGet() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the userAssignedIdentities available under the specified ResourceGroup.
*
* @summary Lists all the userAssignedIdentities available under the specified ResourceGroup.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityListByResourceGroup.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListByResourceGroup.json
*/
async function identityListByResourceGroup() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists all the userAssignedIdentities available under the specified subscription.
*
* @summary Lists all the userAssignedIdentities available under the specified subscription.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityListBySubscription.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityListBySubscription.json
*/
async function identityListBySubscription() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Update an identity in the specified subscription and resource group.
*
* @summary Update an identity in the specified subscription and resource group.
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/preview/2022-01-31-preview/examples/IdentityUpdate.json
* x-ms-original-file: specification/msi/resource-manager/Microsoft.ManagedIdentity/stable/2023-01-31/examples/IdentityUpdate.json
*/
async function identityUpdate() {
const subscriptionId = process.env["MSI_SUBSCRIPTION_ID"] || "subid";
Expand Down
Loading

0 comments on commit 70e4df1

Please sign in to comment.