Skip to content
Closed
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
72 changes: 36 additions & 36 deletions common/config/rush/pnpm-lock.yaml

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

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

## 7.2.0 (2022-09-12)

**Features**

- Added operation group CalculateRefund
- Added operation group Return
- Added operation Reservation.archive
- Added operation Reservation.unarchive
- Added Interface CalculateRefundPostOptionalParams
- Added Interface CalculateRefundRequest
- Added Interface CalculateRefundRequestProperties
- Added Interface CalculateRefundResponse
- Added Interface RefundBillingInformation
- Added Interface RefundPolicyError
- Added Interface RefundPolicyResult
- Added Interface RefundPolicyResultProperty
- Added Interface RefundRequest
- Added Interface RefundRequestProperties
- Added Interface RefundResponse
- Added Interface RefundResponseProperties
- Added Interface ReservationArchiveOptionalParams
- Added Interface ReservationUnarchiveOptionalParams
- Added Interface ReturnPostHeaders
- Added Interface ReturnPostOptionalParams
- Added Type Alias CalculateRefundPostResponse
- Added Type Alias ReturnPostResponse
- Class AzureReservationAPI has a new parameter calculateRefund
- Class AzureReservationAPI has a new parameter return
- Enum KnownErrorResponseCode has a new value RefundLimitExceeded
- Enum KnownErrorResponseCode has a new value SelfServiceRefundNotSupported


## 7.1.0 (2022-04-20)

**Features**
Expand Down
14 changes: 7 additions & 7 deletions sdk/reservations/arm-reservations/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Azure Service client library for JavaScript
# AzureReservationApi 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 AzureReservationApi client.

This API describe Azure Reservation

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-reservations` package

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

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

### Create and authenticate a `AzureReservationAPI`

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 AzureReservationApi API, you will need the `endpoint` of your AzureReservationApi resource and a `credential`. The AzureReservationApi client can use Azure Active Directory credentials to authenticate.
You can find the endpoint for your AzureReservationApi 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 AzureReservationApi** 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

### AzureReservationAPI

`AzureReservationAPI` 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.
`AzureReservationAPI` is the primary interface for developers using the AzureReservationApi client library. Explore the methods on this client object to understand the different features of the AzureReservationApi service that you can access.

## Troubleshooting

Expand Down
8 changes: 4 additions & 4 deletions sdk/reservations/arm-reservations/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "8a9bd9c5b65e5c3e5a8536f3c5b2b15bf9920b5d",
"commit": "faed328d0f9c39355cfe8cc86346a68e6f4e7228",
"readme": "specification/reservations/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\\reservations\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --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/reservations/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/typescript@6.0.0-alpha.19.20220408.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1"
}
Loading