Skip to content

Commit 7cc03f5

Browse files
author
SDKAuto
committed
CodeGen from PR 17419 in Azure/azure-rest-api-specs
Merge a909488855e304f0b521100e6f35dc4a5849c002 into 75b53c0708590483bb2166b9e2751f1bdf5adefa
1 parent 9ef90e4 commit 7cc03f5

File tree

22 files changed

+1105
-76
lines changed

22 files changed

+1105
-76
lines changed

sdk/apimanagement/arm-apimanagement/CHANGELOG.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
# Release History
2-
3-
## 8.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
2+
3+
## 8.1.0 (2022-01-27)
4+
5+
**Features**
6+
7+
- Added operation group GlobalSchema
8+
- Added Interface GlobalSchemaCollection
9+
- Added Interface GlobalSchemaCreateOrUpdateHeaders
10+
- Added Interface GlobalSchemaCreateOrUpdateOptionalParams
11+
- Added Interface GlobalSchemaDeleteOptionalParams
12+
- Added Interface GlobalSchemaGetEntityTagHeaders
13+
- Added Interface GlobalSchemaGetEntityTagOptionalParams
14+
- Added Interface GlobalSchemaGetHeaders
15+
- Added Interface GlobalSchemaGetOptionalParams
16+
- Added Interface GlobalSchemaListByServiceNextOptionalParams
17+
- Added Interface GlobalSchemaListByServiceOptionalParams
18+
- Added Type Alias GlobalSchemaContract
19+
- Added Type Alias GlobalSchemaCreateOrUpdateResponse
20+
- Added Type Alias GlobalSchemaGetEntityTagResponse
21+
- Added Type Alias GlobalSchemaGetResponse
22+
- Added Type Alias GlobalSchemaListByServiceNextResponse
23+
- Added Type Alias GlobalSchemaListByServiceResponse
24+
- Added Type Alias SchemaType
25+
- Class ApiManagementClient has a new parameter globalSchema
26+
- Added Enum KnownSchemaType
27+
28+
1329
## 8.0.0 (2021-12-13)
1430

1531
The package of @azure/arm-apimanagement is using our next generation design principles since version 8.0.0, which contains breaking changes.

sdk/apimanagement/arm-apimanagement/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Microsoft
3+
Copyright (c) 2022 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1",
2+
"commit": "baa6486be2294ed6e2e673749a5364ca70ff1464",
33
"readme": "specification/apimanagement/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.1.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/apimanagement/resource-manager/readme.md --use=@autorest/[email protected].20211130.1",
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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected].20211130.1"
6+
"use": "@autorest/[email protected].20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-apimanagement.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/apimanagement/arm-apimanagement/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for ApiManagementClient.",
6-
"version": "8.0.1",
6+
"version": "8.1.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -99,4 +99,4 @@
9999
},
100100
"sideEffects": false,
101101
"autoPublish": true
102-
}
102+
}

sdk/apimanagement/arm-apimanagement/review/arm-apimanagement.api.md

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ export class ApiManagementClient extends coreClient.ServiceClient {
705705
// (undocumented)
706706
gatewayHostnameConfiguration: GatewayHostnameConfiguration;
707707
// (undocumented)
708+
globalSchema: GlobalSchema;
709+
// (undocumented)
708710
group: Group;
709711
// (undocumented)
710712
groupUser: GroupUser;
@@ -2745,7 +2747,7 @@ export interface ContentItemCollection {
27452747
// @public
27462748
export type ContentItemContract = Resource & {
27472749
properties?: {
2748-
[propertyName: string]: Record<string, unknown>;
2750+
[propertyName: string]: any;
27492751
};
27502752
};
27512753

@@ -3619,6 +3621,94 @@ export interface GenerateSsoUrlResult {
36193621
value?: string;
36203622
}
36213623

3624+
// @public
3625+
export interface GlobalSchema {
3626+
beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<GlobalSchemaCreateOrUpdateResponse>, GlobalSchemaCreateOrUpdateResponse>>;
3627+
beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise<GlobalSchemaCreateOrUpdateResponse>;
3628+
delete(resourceGroupName: string, serviceName: string, schemaId: string, ifMatch: string, options?: GlobalSchemaDeleteOptionalParams): Promise<void>;
3629+
get(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetOptionalParams): Promise<GlobalSchemaGetResponse>;
3630+
getEntityTag(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetEntityTagOptionalParams): Promise<GlobalSchemaGetEntityTagResponse>;
3631+
listByService(resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator<GlobalSchemaContract>;
3632+
}
3633+
3634+
// @public
3635+
export interface GlobalSchemaCollection {
3636+
count?: number;
3637+
readonly nextLink?: string;
3638+
readonly value?: GlobalSchemaContract[];
3639+
}
3640+
3641+
// @public
3642+
export type GlobalSchemaContract = Resource & {
3643+
schemaType?: SchemaType;
3644+
description?: string;
3645+
value?: any;
3646+
document?: Record<string, unknown>;
3647+
};
3648+
3649+
// @public
3650+
export interface GlobalSchemaCreateOrUpdateHeaders {
3651+
eTag?: string;
3652+
}
3653+
3654+
// @public
3655+
export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
3656+
ifMatch?: string;
3657+
resumeFrom?: string;
3658+
updateIntervalInMs?: number;
3659+
}
3660+
3661+
// @public
3662+
export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract;
3663+
3664+
// @public
3665+
export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {
3666+
}
3667+
3668+
// @public
3669+
export interface GlobalSchemaGetEntityTagHeaders {
3670+
eTag?: string;
3671+
}
3672+
3673+
// @public
3674+
export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {
3675+
}
3676+
3677+
// @public
3678+
export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders;
3679+
3680+
// @public
3681+
export interface GlobalSchemaGetHeaders {
3682+
eTag?: string;
3683+
}
3684+
3685+
// @public
3686+
export interface GlobalSchemaGetOptionalParams extends coreClient.OperationOptions {
3687+
}
3688+
3689+
// @public
3690+
export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & GlobalSchemaContract;
3691+
3692+
// @public
3693+
export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {
3694+
filter?: string;
3695+
skip?: number;
3696+
top?: number;
3697+
}
3698+
3699+
// @public
3700+
export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection;
3701+
3702+
// @public
3703+
export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions {
3704+
filter?: string;
3705+
skip?: number;
3706+
top?: number;
3707+
}
3708+
3709+
// @public
3710+
export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection;
3711+
36223712
// @public
36233713
export type GrantType = string;
36243714

@@ -4557,6 +4647,12 @@ export enum KnownSamplingType {
45574647
Fixed = "fixed"
45584648
}
45594649

4650+
// @public
4651+
export enum KnownSchemaType {
4652+
Json = "json",
4653+
Xml = "xml"
4654+
}
4655+
45604656
// @public
45614657
export enum KnownSettingsTypeName {
45624658
// (undocumented)
@@ -6667,6 +6763,9 @@ export type SchemaContract = Resource & {
66676763
components?: Record<string, unknown>;
66686764
};
66696765

6766+
// @public
6767+
export type SchemaType = string;
6768+
66706769
// @public
66716770
export type SettingsTypeName = string;
66726771

sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import {
7373
QuotaByPeriodKeysImpl,
7474
RegionImpl,
7575
ReportsImpl,
76+
GlobalSchemaImpl,
7677
TenantSettingsImpl,
7778
ApiManagementSkusImpl,
7879
SubscriptionImpl,
@@ -149,6 +150,7 @@ import {
149150
QuotaByPeriodKeys,
150151
Region,
151152
Reports,
153+
GlobalSchema,
152154
TenantSettings,
153155
ApiManagementSkus,
154156
Subscription,
@@ -204,7 +206,7 @@ export class ApiManagementClient extends coreClient.ServiceClient {
204206
credential: credentials
205207
};
206208

207-
const packageDetails = `azsdk-js-arm-apimanagement/8.0.0`;
209+
const packageDetails = `azsdk-js-arm-apimanagement/8.1.0`;
208210
const userAgentPrefix =
209211
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
210212
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -298,6 +300,7 @@ export class ApiManagementClient extends coreClient.ServiceClient {
298300
this.quotaByPeriodKeys = new QuotaByPeriodKeysImpl(this);
299301
this.region = new RegionImpl(this);
300302
this.reports = new ReportsImpl(this);
303+
this.globalSchema = new GlobalSchemaImpl(this);
301304
this.tenantSettings = new TenantSettingsImpl(this);
302305
this.apiManagementSkus = new ApiManagementSkusImpl(this);
303306
this.subscription = new SubscriptionImpl(this);
@@ -472,6 +475,7 @@ export class ApiManagementClient extends coreClient.ServiceClient {
472475
quotaByPeriodKeys: QuotaByPeriodKeys;
473476
region: Region;
474477
reports: Reports;
478+
globalSchema: GlobalSchema;
475479
tenantSettings: TenantSettings;
476480
apiManagementSkus: ApiManagementSkus;
477481
subscription: Subscription;

0 commit comments

Comments
 (0)