Skip to content

Commit 4c834a7

Browse files
authored
refresh subscriptions (Azure#23768)
* refresh subscriptions * update files
1 parent 1100a7d commit 4c834a7

File tree

18 files changed

+416
-145
lines changed

18 files changed

+416
-145
lines changed

common/config/rush/pnpm-lock.yaml

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

sdk/subscription/arm-subscriptions/CHANGELOG.md

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
# Release History
2+
3+
## 5.1.0 (2022-11-11)
4+
5+
**Features**
26

3-
## 5.0.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added Type Alias Provisioning
8+
- Interface AcceptOwnershipStatusResponse has a new optional parameter provisioningState
9+
- Interface Subscription has a new optional parameter tags
10+
- Interface Subscription has a new optional parameter tenantId
11+
- Interface TenantIdDescription has a new optional parameter country
12+
- Interface TenantIdDescription has a new optional parameter countryCode
13+
- Interface TenantIdDescription has a new optional parameter defaultDomain
14+
- Interface TenantIdDescription has a new optional parameter displayName
15+
- Interface TenantIdDescription has a new optional parameter domains
16+
- Interface TenantIdDescription has a new optional parameter tenantCategory
17+
- Interface TenantIdDescription has a new optional parameter tenantType
18+
- Added Enum KnownProvisioning
19+
1320
## 5.0.1 (2022-05-05)
1421

1522
**Features**
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "d600759c3516b61a7c353bc8682bccbab85a6f65",
3-
"readme": "specification\\subscription\\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:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\subscription\\resource-manager\\readme.md --use=@autorest/[email protected]alpha.19.20220408.1 --generate-sample=true",
2+
"commit": "52a770004c3019a067e9dcdbb2e95b4992d42728",
3+
"readme": "specification/subscription/resource-manager/readme.md",
4+
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\subscription\\resource-manager\\readme.md --use=@autorest/[email protected]rc.3.20221108.1 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
7-
"use": "@autorest/[email protected]alpha.19.20220408.1"
8-
}
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
7+
"use": "@autorest/[email protected]rc.3.20221108.1"
8+
}

sdk/subscription/arm-subscriptions/package.json

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for SubscriptionClient.",
6-
"version": "5.0.2",
6+
"version": "5.1.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
1111
"@azure/core-lro": "^2.2.0",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.5.0",
14+
"@azure/core-client": "^1.6.1",
1515
"@azure/core-auth": "^1.3.0",
1616
"@azure/core-rest-pipeline": "^1.8.0",
1717
"tslib": "^2.2.0"
@@ -36,13 +36,18 @@
3636
"mkdirp": "^1.0.4",
3737
"rollup": "^2.66.1",
3838
"rollup-plugin-sourcemaps": "^0.6.3",
39-
"typescript": "~4.2.0",
39+
"typescript": "~4.8.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
4242
"@azure/identity": "^2.0.1",
43-
"@azure-tools/test-recorder": "^1.0.0",
43+
"@azure-tools/test-recorder": "^2.0.0",
44+
"@azure-tools/test-credential": "^1.0.0",
4445
"mocha": "^7.1.1",
45-
"cross-env": "^7.0.2"
46+
"@types/chai": "^4.2.8",
47+
"chai": "^4.2.0",
48+
"cross-env": "^7.0.2",
49+
"@types/node": "^14.0.0",
50+
"@azure/dev-tool": "^1.0.0"
4651
},
4752
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/subscription/arm-subscriptions",
4853
"repository": {
@@ -93,9 +98,8 @@
9398
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
9499
"unit-test:browser": "echo skipped",
95100
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
96-
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
97-
"integration-test:browser": "echo skipped",
98-
"docs": "echo skipped"
101+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
102+
"integration-test:browser": "echo skipped"
99103
},
100104
"sideEffects": false,
101105
"//metadata": {
@@ -115,4 +119,4 @@
115119
"disableDocsMs": true,
116120
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-subscriptions?view=azure-node-preview"
117121
}
118-
}
122+
}

sdk/subscription/arm-subscriptions/recordings/node/my_test/recording_sample_test.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

sdk/subscription/arm-subscriptions/recordings/node/my_test/recording_sample_test.json

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

sdk/subscription/arm-subscriptions/review/arm-subscriptions.api.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export interface AcceptOwnershipStatusResponse {
3232
readonly acceptOwnershipState?: AcceptOwnership;
3333
readonly billingOwner?: string;
3434
displayName?: string;
35+
readonly provisioningState?: Provisioning;
3536
readonly subscriptionId?: string;
3637
subscriptionTenantId?: string;
3738
tags?: {
@@ -128,6 +129,9 @@ export interface ErrorResponseBody {
128129
message?: string;
129130
}
130131

132+
// @public
133+
export function getContinuationToken(page: unknown): string | undefined;
134+
131135
// @public
132136
export interface GetTenantPolicyListResponse {
133137
readonly nextLink?: string;
@@ -145,41 +149,36 @@ export interface GetTenantPolicyResponse {
145149

146150
// @public
147151
export enum KnownAcceptOwnership {
148-
// (undocumented)
149152
Completed = "Completed",
150-
// (undocumented)
151153
Expired = "Expired",
152-
// (undocumented)
153154
Pending = "Pending"
154155
}
155156

156157
// @public
157158
export enum KnownCreatedByType {
158-
// (undocumented)
159159
Application = "Application",
160-
// (undocumented)
161160
Key = "Key",
162-
// (undocumented)
163161
ManagedIdentity = "ManagedIdentity",
164-
// (undocumented)
165162
User = "User"
166163
}
167164

165+
// @public
166+
export enum KnownProvisioning {
167+
Accepted = "Accepted",
168+
Pending = "Pending",
169+
Succeeded = "Succeeded"
170+
}
171+
168172
// @public
169173
export enum KnownProvisioningState {
170-
// (undocumented)
171174
Accepted = "Accepted",
172-
// (undocumented)
173175
Failed = "Failed",
174-
// (undocumented)
175176
Succeeded = "Succeeded"
176177
}
177178

178179
// @public
179180
export enum KnownWorkload {
180-
// (undocumented)
181181
DevTest = "DevTest",
182-
// (undocumented)
183182
Production = "Production"
184183
}
185184

@@ -239,6 +238,9 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
239238
// @public
240239
export type OperationsListResponse = OperationListResult;
241240

241+
// @public
242+
export type Provisioning = string;
243+
242244
// @public
243245
export type ProvisioningState = string;
244246

@@ -296,6 +298,10 @@ export interface Subscription {
296298
readonly state?: SubscriptionState;
297299
readonly subscriptionId?: string;
298300
subscriptionPolicies?: SubscriptionPolicies;
301+
tags?: {
302+
[propertyName: string]: string;
303+
};
304+
readonly tenantId?: string;
299305
}
300306

301307
// @public
@@ -396,7 +402,7 @@ export type SubscriptionEnableResponse = EnabledSubscriptionId;
396402

397403
// @public
398404
export interface SubscriptionListResult {
399-
nextLink: string;
405+
nextLink?: string;
400406
value?: Subscription[];
401407
}
402408

@@ -514,8 +520,15 @@ export interface SystemData {
514520

515521
// @public
516522
export interface TenantIdDescription {
523+
readonly country?: string;
524+
readonly countryCode?: string;
525+
readonly defaultDomain?: string;
526+
readonly displayName?: string;
527+
readonly domains?: string;
517528
readonly id?: string;
529+
readonly tenantCategory?: string;
518530
readonly tenantId?: string;
531+
readonly tenantType?: string;
519532
}
520533

521534
// @public

sdk/subscription/arm-subscriptions/samples/v5/typescript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"devDependencies": {
3737
"@types/node": "^14.0.0",
38-
"typescript": "~4.4.0",
38+
"typescript": "~4.8.0",
3939
"rimraf": "latest"
4040
}
4141
}

sdk/subscription/arm-subscriptions/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
/// <reference lib="esnext.asynciterable" />
10+
export { getContinuationToken } from "./pagingHelper";
1011
export * from "./models";
1112
export { SubscriptionClient } from "./subscriptionClient";
1213
export * from "./operationsInterfaces";

0 commit comments

Comments
 (0)