Skip to content

Commit

Permalink
refresh managementpartner package (Azure#22413)
Browse files Browse the repository at this point in the history
* refresh managementpartner package

* update files

* Update package.json

* Update aCEProvisioningManagementPartnerAPI.ts

* update files

* regenerate managementpartner

Co-authored-by: ZiWei Chen (WICRESOFT NORTH AMERICA LTD) <[email protected]>
  • Loading branch information
kazrael2119 and kazrael2119 authored Jul 4, 2022
1 parent 431b453 commit d4abfb7
Show file tree
Hide file tree
Showing 48 changed files with 264 additions and 650 deletions.
11 changes: 6 additions & 5 deletions common/config/rush/pnpm-lock.yaml

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

12 changes: 12 additions & 0 deletions sdk/managementpartner/arm-managementpartner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release History

## 3.0.0 (2022-07-04)

**Features**

- Added Type Alias ErrorResponseCode
- Added Enum KnownErrorResponseCode

**Breaking Changes**

- Interface ErrorModel no longer has parameter code
- Interface ErrorModel no longer has parameter message

## 2.0.1 (2022-04-24)

**Features**
Expand Down
14 changes: 7 additions & 7 deletions sdk/managementpartner/arm-managementpartner/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure Service client library for JavaScript
# Azure AceProvisioningManagementPartnerApi client library for JavaScript

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

This API describe ACE Provisioning ManagementPartner

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

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

Install the Azure Service client library for JavaScript with `npm`:
Install the Azure AceProvisioningManagementPartnerApi client library for JavaScript with `npm`:

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

### Create and authenticate a `ACEProvisioningManagementPartnerAPI`

To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
To create a client object to access the Azure AceProvisioningManagementPartnerApi API, you will need the `endpoint` of your Azure AceProvisioningManagementPartnerApi resource and a `credential`. The Azure AceProvisioningManagementPartnerApi client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your Azure AceProvisioningManagementPartnerApi 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 @@ -43,7 +43,7 @@ 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 Service** 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 AceProvisioningManagementPartnerApi** 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).
Expand Down Expand Up @@ -72,7 +72,7 @@ To use this client library in the browser, first you need to use a bundler. For

### ACEProvisioningManagementPartnerAPI

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

## Troubleshooting

Expand Down
10 changes: 5 additions & 5 deletions sdk/managementpartner/arm-managementpartner/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "184b23b63ee3a79fb41ca3aa55a31a8d9e636772",
"readme": "specification\\managementpartner\\resource-manager\\readme.md",
"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=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\managementpartner\\resource-manager\\readme.md --use=@autorest/[email protected]alpha.19.20220408.1 --generate-sample=true",
"commit": "d967edeee8fd6af6d40bffe53cceed1bd053d7ad",
"readme": "specification/managementpartner/resource-manager/readme.md",
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\managementpartner\\resource-manager\\readme.md --use=@autorest/[email protected]rc.1 --generate-sample=true --azure-arm=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/[email protected]alpha.19.20220408.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.2",
"use": "@autorest/[email protected]rc.1"
}
17 changes: 10 additions & 7 deletions sdk/managementpartner/arm-managementpartner/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 ACEProvisioningManagementPartnerAPI.",
"version": "2.0.1",
"version": "3.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -38,9 +38,13 @@
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/managementpartner/arm-managementpartner",
"repository": {
Expand Down Expand Up @@ -91,9 +95,8 @@
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -113,4 +116,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-managementpartner?view=azure-node-preview"
}
}
}

This file was deleted.

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

Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,28 @@ export interface ACEProvisioningManagementPartnerAPIOptionalParams extends coreC

// @public
export interface ErrorModel {
code?: string;
error?: ExtendedErrorInfo;
message?: string;
}

// @public
export type ErrorResponseCode = string;

// @public
export interface ExtendedErrorInfo {
code?: string;
code?: ErrorResponseCode;
message?: string;
}

// @public
export enum KnownErrorResponseCode {
BadRequest = "BadRequest",
Conflict = "Conflict",
NotFound = "NotFound"
}

// @public
export enum KnownManagementPartnerState {
// (undocumented)
Active = "Active",
// (undocumented)
Deleted = "Deleted"
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit d4abfb7

Please sign in to comment.