Skip to content

Commit

Permalink
CodeGen from PR 18478 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
New Api-Version onboarding 2021-12-01-preview (Azure#18478)

* Adding 2021-12-01-preview as a copy of 2021-08-01

* Readme update

* Updating version in the 2021-12-01-preview folder

* update description for keyvault contract (Azure#17150)

Co-authored-by: Kacie Kang <jikang@microsoft.com>

* fix for the last cherry pick (06d2de8)

* fixing readme again

* APIM Policy fragments (Azure#16403)

* Adding the policy fragments spec

* Formatting

* Updating descriptions

* PolicyFragmentIdParameter as a string

* ID validation

* Adding fragment description

* Adding policy fragment format

* Adding raw xml format

* Addinga 202 response for creating/updating

* Generalising the resource collection

* formatting

* Moving everything to 2021-12-01

* version fix

* Adding pagination params. Generalising the IdParam

* Adding missing fields, fixing id param name

* Removing link formats. Fixing format param name

* POST list references

* name filter now supports "contains"

* PUT is always async

* Fixing header location url

* PUT can now return 200 and 201

* Adding more OData query support. Fixing examples.

* Resolving the cross breaking change

Co-authored-by: Milan Zolota <mizolota@microsoft.com>

* Added CORS and CSP configuration resources (Azure#16822)

* Added CORS and CSP settings resources.

* Added missing definitions.

* Added suppression of R4009 for apimportalsettings.json.

* Ran Prettier.

* Renamed definitions.

* Fixed references.

* Updated examples.

* Reversed change.

* Created new resource for portal settings.

* Added list example.

* Added missing collection contract.

* Added missing example. Cleaned up old ones.

* Fixed references.

* Fixed examples

* Fixed version.

* Added custom words. Fixed linting.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Fixes.

* Fixes

* Fixes.

* Fixes.

* Fixes

* Fixes

* Removed conflicting constraint.

* Updated readme.go.md.

* Reverted removing the restriction.

* Revert "Reverted removing the restriction."

This reverts commit 72d070f6ccc8231e4d4c9f22ac3a9c3090a545aa.

* Removed duplicate.

* Addressing PR comments.

* Adjusted reportUri property type in CSP config contract. (Azure#17947)

* Added missing body parameter description for content type resource. (Azure#18036)

* Igo/msal client version (Azure#17866)

* Added clientLibrary property to IdentityProvider

* fixed length for clientLibrary property

* Model validation fixes

* moved changes for clientLibrary property to the right spec file

* Update readme.md

Co-authored-by: Milan Zolota <mizolota@microsoft.com>
Co-authored-by: Kacie <35987382+KacieKK@users.noreply.github.com>
Co-authored-by: Kacie Kang <jikang@microsoft.com>
Co-authored-by: Alexander Zaslonov <zaslonov.alexander@gmail.com>
Co-authored-by: Igor O <ygrik@hotmail.com>
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
  • Loading branch information
7 people committed Apr 8, 2022
1 parent e0b9841 commit ca8562e
Show file tree
Hide file tree
Showing 28 changed files with 1,180 additions and 166 deletions.
19 changes: 9 additions & 10 deletions common/config/rush/pnpm-lock.yaml

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

37 changes: 26 additions & 11 deletions sdk/apimanagement/arm-apimanagement/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
# Release History

## 8.0.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 8.1.0 (2022-04-08)

**Features**

- Added operation group GlobalSchema
- Added Interface GlobalSchemaCollection
- Added Interface GlobalSchemaCreateOrUpdateHeaders
- Added Interface GlobalSchemaCreateOrUpdateOptionalParams
- Added Interface GlobalSchemaDeleteOptionalParams
- Added Interface GlobalSchemaGetEntityTagHeaders
- Added Interface GlobalSchemaGetEntityTagOptionalParams
- Added Interface GlobalSchemaGetHeaders
- Added Interface GlobalSchemaGetOptionalParams
- Added Interface GlobalSchemaListByServiceNextOptionalParams
- Added Interface GlobalSchemaListByServiceOptionalParams
- Added Type Alias GlobalSchemaContract
- Added Type Alias GlobalSchemaCreateOrUpdateResponse
- Added Type Alias GlobalSchemaGetEntityTagResponse
- Added Type Alias GlobalSchemaGetResponse
- Added Type Alias GlobalSchemaListByServiceNextResponse
- Added Type Alias GlobalSchemaListByServiceResponse
- Added Type Alias SchemaType
- Class ApiManagementClient has a new parameter globalSchema
- Added Enum KnownSchemaType

## 8.0.1 (2022-04-06)

**features**
Expand Down
11 changes: 0 additions & 11 deletions sdk/apimanagement/arm-apimanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ ApiManagement Client
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
Expand Down Expand Up @@ -51,17 +49,8 @@ For more information about how to create an Azure AD Application check out [this
```javascript
const { ApiManagementClient } = require("@azure/arm-apimanagement");
const { DefaultAzureCredential } = require("@azure/identity");
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new ApiManagementClient(new DefaultAzureCredential(), subscriptionId);

// For client-side applications running in the browser, use this code instead:
// const credential = new InteractiveBrowserCredential({
// tenantId: "<YOUR_TENANT_ID>",
// clientId: "<YOUR_CLIENT_ID>"
// });
// const client = new ApiManagementClient(credential, subscriptionId);
```


Expand Down
10 changes: 5 additions & 5 deletions sdk/apimanagement/arm-apimanagement/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "b8cae07c799a07f2e779a9e301f639e9b85124b1",
"readme": "specification\\apimanagement\\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\\apimanagement\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.18.20220329.1",
"commit": "34a34e014e7b34cae63da58f44a9652bf8ea8bf5",
"readme": "specification/apimanagement/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/apimanagement/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.1",
"use": "@autorest/typescript@6.0.0-alpha.18.20220329.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/typescript@6.0.0-alpha.16.20220105.1"
}
24 changes: 8 additions & 16 deletions sdk/apimanagement/arm-apimanagement/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 ApiManagementClient.",
"version": "8.0.2",
"version": "8.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand All @@ -29,13 +29,13 @@
"types": "./types/arm-apimanagement.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^8.0.0",
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
Expand Down Expand Up @@ -98,13 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/apiManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ export class ApiManagementClient extends coreClient.ServiceClient {
// (undocumented)
gatewayHostnameConfiguration: GatewayHostnameConfiguration;
// (undocumented)
globalSchema: GlobalSchema;
// (undocumented)
group: Group;
// (undocumented)
groupUser: GroupUser;
Expand Down Expand Up @@ -3619,6 +3621,94 @@ export interface GenerateSsoUrlResult {
value?: string;
}

// @public
export interface GlobalSchema {
beginCreateOrUpdate(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<GlobalSchemaCreateOrUpdateResponse>, GlobalSchemaCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, serviceName: string, schemaId: string, parameters: GlobalSchemaContract, options?: GlobalSchemaCreateOrUpdateOptionalParams): Promise<GlobalSchemaCreateOrUpdateResponse>;
delete(resourceGroupName: string, serviceName: string, schemaId: string, ifMatch: string, options?: GlobalSchemaDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetOptionalParams): Promise<GlobalSchemaGetResponse>;
getEntityTag(resourceGroupName: string, serviceName: string, schemaId: string, options?: GlobalSchemaGetEntityTagOptionalParams): Promise<GlobalSchemaGetEntityTagResponse>;
listByService(resourceGroupName: string, serviceName: string, options?: GlobalSchemaListByServiceOptionalParams): PagedAsyncIterableIterator<GlobalSchemaContract>;
}

// @public
export interface GlobalSchemaCollection {
count?: number;
readonly nextLink?: string;
readonly value?: GlobalSchemaContract[];
}

// @public
export type GlobalSchemaContract = Resource & {
schemaType?: SchemaType;
description?: string;
value?: any;
document?: Record<string, unknown>;
};

// @public
export interface GlobalSchemaCreateOrUpdateHeaders {
eTag?: string;
}

// @public
export interface GlobalSchemaCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
ifMatch?: string;
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type GlobalSchemaCreateOrUpdateResponse = GlobalSchemaCreateOrUpdateHeaders & GlobalSchemaContract;

// @public
export interface GlobalSchemaDeleteOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface GlobalSchemaGetEntityTagHeaders {
eTag?: string;
}

// @public
export interface GlobalSchemaGetEntityTagOptionalParams extends coreClient.OperationOptions {
}

// @public
export type GlobalSchemaGetEntityTagResponse = GlobalSchemaGetEntityTagHeaders;

// @public
export interface GlobalSchemaGetHeaders {
eTag?: string;
}

// @public
export interface GlobalSchemaGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export type GlobalSchemaGetResponse = GlobalSchemaGetHeaders & GlobalSchemaContract;

// @public
export interface GlobalSchemaListByServiceNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
skip?: number;
top?: number;
}

// @public
export type GlobalSchemaListByServiceNextResponse = GlobalSchemaCollection;

// @public
export interface GlobalSchemaListByServiceOptionalParams extends coreClient.OperationOptions {
filter?: string;
skip?: number;
top?: number;
}

// @public
export type GlobalSchemaListByServiceResponse = GlobalSchemaCollection;

// @public
export type GrantType = string;

Expand Down Expand Up @@ -4557,6 +4647,12 @@ export enum KnownSamplingType {
Fixed = "fixed"
}

// @public
export enum KnownSchemaType {
Json = "json",
Xml = "xml"
}

// @public
export enum KnownSettingsTypeName {
// (undocumented)
Expand Down Expand Up @@ -6667,6 +6763,9 @@ export type SchemaContract = Resource & {
components?: Record<string, unknown>;
};

// @public
export type SchemaType = string;

// @public
export type SettingsTypeName = string;

Expand Down
Loading

0 comments on commit ca8562e

Please sign in to comment.