Skip to content

Commit 1cac6e1

Browse files
authored
marketplaceordering-migrate-mixedreality-netapp-release (Azure#19930)
* marketplaceordering-release * migrate-relesae * mixedreality-release * marketplaceordering-migrate-mixedreality-netapp-release * update
1 parent a21e29b commit 1cac6e1

File tree

385 files changed

+37627
-15569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+37627
-15569
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 172 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/ignore-links.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ https://docs.microsoft.com/javascript/api/@azure/arm-communication
1515
https://docs.microsoft.com/javascript/api/@azure/arm-databoxedge
1616
https://docs.microsoft.com/javascript/api/@azure/arm-datadog
1717
https://docs.microsoft.com/javascript/api/@azure/arm-healthbot
18-
https://docs.microsoft.com/javascript/api/@azure/arm-deploymentmanager?view=azure-node-preview
19-
https://docs.microsoft.com/javascript/api/@azure/arm-hanaonazure?view=azure-node-preview
2018
https://docs.microsoft.com/javascript/api/@azure/arm-kubernetesconfiguration?view=azure-node-preview
21-
https://docs.microsoft.com/en-us/azure/azure-resource-manager/deployment-manager-overview
2219
https://docs.microsoft.com/javascript/api/@azure/arm-datamigration?view=azure-node-preview
2320
https://docs.microsoft.com/javascript/api/@azure/arm-healthcareapis?view=azure-node-preview
2421
https://docs.microsoft.com/javascript/api/@azure/arm-hybridkubernetes?view=azure-node-preview
2522
https://docs.microsoft.com/javascript/api/@azure/arm-healthcareapis
2623
https://docs.microsoft.com/javascript/api/@azure/arm-hybridkubernetes
2724
https://docs.microsoft.com/javascript/api/@azure/arm-oep?view=azure-node-preview
2825
https://docs.microsoft.com/javascript/api/@azure/arm-securityinsight?view=azure-node-preview
26+
https://docs.microsoft.com/javascript/api/@azure/arm-netapp

rush.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,6 +1410,26 @@
14101410
"packageName": "@azure/arm-mariadb",
14111411
"projectFolder": "sdk/mariadb/arm-mariadb",
14121412
"versionPolicyName": "management"
1413+
},
1414+
{
1415+
"packageName": "@azure/arm-marketplaceordering",
1416+
"projectFolder": "sdk/marketplaceordering/arm-marketplaceordering",
1417+
"versionPolicyName": "management"
1418+
},
1419+
{
1420+
"packageName": "@azure/arm-migrate",
1421+
"projectFolder": "sdk/migrate/arm-migrate",
1422+
"versionPolicyName": "management"
1423+
},
1424+
{
1425+
"packageName": "@azure/arm-mixedreality",
1426+
"projectFolder": "sdk/mixedreality/arm-mixedreality",
1427+
"versionPolicyName": "management"
1428+
},
1429+
{
1430+
"packageName": "@azure/arm-netapp",
1431+
"projectFolder": "sdk/netapp/arm-netapp",
1432+
"versionPolicyName": "management"
14131433
}
14141434
]
14151435
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Release History
2+
3+
## 3.0.0 (2022-01-20)
4+
5+
The package of @azure/arm-marketplaceordering is using our next generation design principles since version 3.0.0, which contains breaking changes.
6+
7+
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
8+
9+
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
10+
11+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2022 Microsoft
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 72 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,98 @@
1-
## Azure MarketplaceOrderingAgreements SDK for JavaScript
1+
# Azure Service client library for JavaScript
22

3-
This package contains an isomorphic SDK for MarketplaceOrderingAgreements.
3+
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client.
4+
5+
REST API for MarketplaceOrdering Agreements.
6+
7+
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/marketplaceordering/arm-marketplaceordering) |
8+
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-marketplaceordering) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-marketplaceordering) |
10+
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11+
12+
## Getting started
413

514
### Currently supported environments
615

716
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
9-
### How to Install
17+
- Latest versions of Safari, Chrome, Edge and Firefox.
18+
19+
### Prerequisites
20+
21+
- An [Azure subscription][azure_sub].
22+
23+
### Install the `@azure/arm-marketplaceordering` package
24+
25+
Install the Azure Service client library for JavaScript with `npm`:
1026

1127
```bash
1228
npm install @azure/arm-marketplaceordering
1329
```
1430

15-
### How to use
31+
### Create and authenticate a `MarketplaceOrderingAgreements`
32+
33+
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.
34+
You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
1635

17-
#### nodejs - Authentication, client creation and get marketplaceAgreements as an example written in TypeScript.
36+
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).
1837

19-
##### Install @azure/ms-rest-nodeauth
38+
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
2039

21-
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
2240
```bash
23-
npm install @azure/ms-rest-nodeauth@"^3.0.0"
41+
npm install @azure/identity
2442
```
2543

26-
##### Sample code
27-
28-
```typescript
29-
import * as msRest from "@azure/ms-rest-js";
30-
import * as msRestAzure from "@azure/ms-rest-azure-js";
31-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
32-
import { MarketplaceOrderingAgreements, MarketplaceOrderingAgreementsModels, MarketplaceOrderingAgreementsMappers } from "@azure/arm-marketplaceordering";
33-
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
34-
35-
msRestNodeAuth.interactiveLogin().then((creds) => {
36-
const client = new MarketplaceOrderingAgreements(creds, subscriptionId);
37-
const publisherId = "testpublisherId";
38-
const offerId = "testofferId";
39-
const planId = "testplanId";
40-
client.marketplaceAgreements.get(publisherId, offerId, planId).then((result) => {
41-
console.log("The result is:");
42-
console.log(result);
43-
});
44-
}).catch((err) => {
45-
console.error(err);
46-
});
44+
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).
45+
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`.
46+
47+
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).
48+
49+
```javascript
50+
const { MarketplaceOrderingAgreements } = require("@azure/arm-marketplaceordering");
51+
const { DefaultAzureCredential } = require("@azure/identity");
52+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
53+
const client = new MarketplaceOrderingAgreements(new DefaultAzureCredential(), subscriptionId);
4754
```
4855

49-
#### browser - Authentication, client creation and get marketplaceAgreements as an example written in JavaScript.
5056

51-
##### Install @azure/ms-rest-browserauth
57+
### JavaScript Bundle
58+
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).
5259

53-
```bash
54-
npm install @azure/ms-rest-browserauth
55-
```
60+
## Key concepts
5661

57-
##### Sample code
58-
59-
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
60-
61-
- index.html
62-
```html
63-
<!DOCTYPE html>
64-
<html lang="en">
65-
<head>
66-
<title>@azure/arm-marketplaceordering sample</title>
67-
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
68-
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
69-
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
70-
<script src="node_modules/@azure/arm-marketplaceordering/dist/arm-marketplaceordering.js"></script>
71-
<script type="text/javascript">
72-
const subscriptionId = "<Subscription_Id>";
73-
const authManager = new msAuth.AuthManager({
74-
clientId: "<client id for your Azure AD app>",
75-
tenant: "<optional tenant for your organization>"
76-
});
77-
authManager.finalizeLogin().then((res) => {
78-
if (!res.isLoggedIn) {
79-
// may cause redirects
80-
authManager.login();
81-
}
82-
const client = new Azure.ArmMarketplaceordering.MarketplaceOrderingAgreements(res.creds, subscriptionId);
83-
const publisherId = "testpublisherId";
84-
const offerId = "testofferId";
85-
const planId = "testplanId";
86-
client.marketplaceAgreements.get(publisherId, offerId, planId).then((result) => {
87-
console.log("The result is:");
88-
console.log(result);
89-
}).catch((err) => {
90-
console.log("An error occurred:");
91-
console.error(err);
92-
});
93-
});
94-
</script>
95-
</head>
96-
<body></body>
97-
</html>
62+
### MarketplaceOrderingAgreements
63+
64+
`MarketplaceOrderingAgreements` 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.
65+
66+
## Troubleshooting
67+
68+
### Logging
69+
70+
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
71+
72+
```javascript
73+
const { setLogLevel } = require("@azure/logger");
74+
setLogLevel("info");
9875
```
9976

77+
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).
78+
79+
## Next steps
80+
81+
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.
82+
83+
## Contributing
84+
85+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
86+
10087
## Related projects
10188

102-
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
89+
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
90+
91+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fmarketplaceordering%2Farm-marketplaceordering%2FREADME.png)
10392

104-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/marketplaceordering/arm-marketplaceordering/README.png)
93+
[azure_cli]: https://docs.microsoft.com/cli/azure
94+
[azure_sub]: https://azure.microsoft.com/free/
95+
[azure_sub]: https://azure.microsoft.com/free/
96+
[azure_portal]: https://portal.azure.com
97+
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
98+
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
3+
"readme": "specification/marketplaceordering/resource-manager/readme.md",
4+
"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:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/marketplaceordering/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6+
"use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
7+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4+
"docModel": { "enabled": true },
5+
"apiReport": { "enabled": true, "reportFolder": "./review" },
6+
"dtsRollup": {
7+
"enabled": true,
8+
"untrimmedFilePath": "",
9+
"publicTrimmedFilePath": "./types/arm-marketplaceordering.d.ts"
10+
},
11+
"messages": {
12+
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
13+
"extractorMessageReporting": {
14+
"ae-missing-release-tag": { "logLevel": "none" },
15+
"ae-unresolved-link": { "logLevel": "none" }
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)