Skip to content

Commit

Permalink
revert credential scops for mgmt plane sdks b-c (#23436)
Browse files Browse the repository at this point in the history
* revert credential scops for mgmt plane sdks b-c

* update files
  • Loading branch information
kazrael2119 authored Oct 8, 2022
1 parent 6a0e3ec commit 37d088d
Show file tree
Hide file tree
Showing 42 changed files with 190 additions and 70 deletions.
10 changes: 7 additions & 3 deletions sdk/batch/arm-batch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 7.2.1 (2022-09-30)
## 7.2.1 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 7.2.0 (2022-07-19)

Expand Down
3 changes: 3 additions & 0 deletions sdk/batch/arm-batch/src/batchManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export class BatchManagementClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/billing/arm-billing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 4.0.2 (2022-09-30)
## 4.0.2 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 4.0.1 (2022-04-11)

Expand Down
3 changes: 3 additions & 0 deletions sdk/billing/arm-billing/src/billingManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ export class BillingManagementClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/botservice/arm-botservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 4.0.0-beta.5 (2022-09-30)
## 4.0.0-beta.5 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 4.0.0-beta.4 (2022-04-20)

Expand Down
3 changes: 3 additions & 0 deletions sdk/botservice/arm-botservice/src/azureBotService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export class AzureBotService extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
6 changes: 0 additions & 6 deletions sdk/cdn/arm-cdn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Release History

## 7.0.2 (2022-09-30)

**Bugs Fixed**

- fix better user experience of credential scopes in government cloud

## 7.0.1 (2022-04-21)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/cdn/arm-cdn/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 CdnManagementClient.",
"version": "7.0.2",
"version": "7.0.1",
"engines": {
"node": ">=12.0.0"
},
Expand Down
5 changes: 4 additions & 1 deletion sdk/cdn/arm-cdn/src/cdnManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,15 @@ export class CdnManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-cdn/7.0.2`;
const packageDetails = `azsdk-js-arm-cdn/7.0.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/changeanalysis/arm-changeanalysis/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 2.0.2 (2022-09-30)
## 2.0.2 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 2.0.1 (2022-04-11)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export class AzureChangeAnalysisManagementClient extends coreClient.ServiceClien
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/changes/arm-changes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 1.0.1 (2022-09-30)
## 1.0.1 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0 (2022-05-09)

Expand Down
3 changes: 3 additions & 0 deletions sdk/changes/arm-changes/src/changesClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export class ChangesClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/chaos/arm-chaos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 1.0.0-beta.2 (2022-09-30)
## 1.0.0-beta.2 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0-beta.1 (2022-09-13)

Expand Down
3 changes: 3 additions & 0 deletions sdk/chaos/arm-chaos/src/chaosManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export class ChaosManagementClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
6 changes: 0 additions & 6 deletions sdk/cognitiveservices/arm-cognitiveservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# Release History

## 7.2.1 (2022-09-30)

**Bugs Fixed**

- fix better user experience of credential scopes in government cloud

## 7.2.0 (2022-06-10)

Expand Down
2 changes: 1 addition & 1 deletion sdk/cognitiveservices/arm-cognitiveservices/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 CognitiveServicesManagementClient.",
"version": "7.2.1",
"version": "7.2.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,15 @@ export class CognitiveServicesManagementClient extends coreClient.ServiceClient
credential: credentials
};

const packageDetails = `azsdk-js-arm-cognitiveservices/7.2.1`;
const packageDetails = `azsdk-js-arm-cognitiveservices/7.2.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/commerce/arm-commerce/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 4.0.0-beta.3 (2022-09-30)
## 4.0.0-beta.3 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 4.0.0-beta.2 (2022-04-11)

Expand Down
3 changes: 3 additions & 0 deletions sdk/commerce/arm-commerce/src/usageManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export class UsageManagementClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
9 changes: 6 additions & 3 deletions sdk/communication/arm-communication/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Release History

## 4.0.0-beta.3 (2022-09-30)
## 4.0.0-beta.3 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes
## 4.0.0-beta.2 (2022-08-19)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export class CommunicationServiceManagementClient extends coreClient.ServiceClie
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/compute/arm-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 19.2.1 (2022-09-30)
## 19.2.1 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 19.2.0 (2022-09-21)

Expand Down
3 changes: 3 additions & 0 deletions sdk/compute/arm-compute/src/computeManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/confidentialledger/arm-confidentialledger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 1.1.1 (2022-09-30)
## 1.1.1 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.1.0 (2022-07-05)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
10 changes: 7 additions & 3 deletions sdk/confluent/arm-confluent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Release History

## 3.0.0-beta.3 (2022-09-30)
## 3.0.0-beta.3 (Unreleased)

**Bugs Fixed**
### Features Added

- fix better user experience of credential scopes in government cloud
### Breaking Changes

### Bugs Fixed

### Other Changes

## 3.0.0-beta.2 (2022-04-12)

Expand Down
3 changes: 3 additions & 0 deletions sdk/confluent/arm-confluent/src/confluentManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export class ConfluentManagementClient extends coreClient.ServiceClient {
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;

if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
Expand Down
Loading

0 comments on commit 37d088d

Please sign in to comment.