Skip to content

Commit

Permalink
CodeGen from PR 13377 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Microsoft.api management 2021 01 01 preview (Azure#13377)

* Adds base for updating Microsoft.ApiManagement from version stable/2020-12-01 to version 2021-01-01-preview

* Updates readme

* Updates API version in new specs and examples

* Bring your Own IP support for vnet injection on API Management (Azure#13102)

* pip support for vnet injection

* fix example

* fix example

* New API and parameter properties added (Azure#13252)

* Changes for websocket entities (Azure#11912)

* add api type and protocol for 2021

* example

* modelAsString

* pretty check

* reference example

* rename file

* Fix enum mismatch

Co-authored-by: Samir Solanki <[email protected]>

* free tls changes and updated examples (Azure#13347)

* free tls changes and updated examples

* renames

Co-authored-by: VitaliyKurokhtin <[email protected]>
Co-authored-by: JJ <[email protected]>
  • Loading branch information
3 people committed Mar 12, 2021
1 parent 869a723 commit 7b3574a
Show file tree
Hide file tree
Showing 153 changed files with 16,120 additions and 4,315 deletions.
2 changes: 1 addition & 1 deletion sdk/apimanagement/arm-apimanagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 Microsoft
Copyright (c) 2021 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 4 additions & 5 deletions sdk/apimanagement/arm-apimanagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-apimanagement

### How to use

#### nodejs - Authentication, client creation and listByService api as an example written in TypeScript.
#### nodejs - client creation and listByService api as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { ApiManagementClient, ApiManagementModels, ApiManagementMappers } from "@azure/arm-apimanagement";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { ApiManagementClient } = require("@azure/arm-apimanagement");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/apimanagement/arm-apimanagement/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
21 changes: 18 additions & 3 deletions sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down Expand Up @@ -37,6 +36,9 @@ class ApiManagementClient extends ApiManagementClientContext {
backend: operations.Backend;
cache: operations.Cache;
certificate: operations.Certificate;
contentType: operations.ContentType;
contentItem: operations.ContentItem;
deletedServices: operations.DeletedServices;
apiManagementOperations: operations.ApiManagementOperations;
apiManagementServiceSkus: operations.ApiManagementServiceSkus;
apiManagementService: operations.ApiManagementService;
Expand All @@ -45,6 +47,7 @@ class ApiManagementClient extends ApiManagementClientContext {
gateway: operations.Gateway;
gatewayHostnameConfiguration: operations.GatewayHostnameConfiguration;
gatewayApi: operations.GatewayApi;
gatewayCertificateAuthority: operations.GatewayCertificateAuthority;
group: operations.Group;
groupUser: operations.GroupUser;
identityProvider: operations.IdentityProvider;
Expand All @@ -58,6 +61,8 @@ class ApiManagementClient extends ApiManagementClientContext {
openIdConnectProvider: operations.OpenIdConnectProvider;
policy: operations.Policy;
policyDescription: operations.PolicyDescription;
portalRevision: operations.PortalRevision;
portalSettings: operations.PortalSettings;
signInSettings: operations.SignInSettings;
signUpSettings: operations.SignUpSettings;
delegationSettings: operations.DelegationSettings;
Expand All @@ -70,6 +75,8 @@ class ApiManagementClient extends ApiManagementClientContext {
quotaByPeriodKeys: operations.QuotaByPeriodKeys;
region: operations.Region;
reports: operations.Reports;
tenantSettings: operations.TenantSettings;
apiManagementSkus: operations.ApiManagementSkus;
subscription: operations.Subscription;
tagResource: operations.TagResource;
tenantAccess: operations.TenantAccess;
Expand Down Expand Up @@ -111,6 +118,9 @@ class ApiManagementClient extends ApiManagementClientContext {
this.backend = new operations.Backend(this);
this.cache = new operations.Cache(this);
this.certificate = new operations.Certificate(this);
this.contentType = new operations.ContentType(this);
this.contentItem = new operations.ContentItem(this);
this.deletedServices = new operations.DeletedServices(this);
this.apiManagementOperations = new operations.ApiManagementOperations(this);
this.apiManagementServiceSkus = new operations.ApiManagementServiceSkus(this);
this.apiManagementService = new operations.ApiManagementService(this);
Expand All @@ -119,6 +129,7 @@ class ApiManagementClient extends ApiManagementClientContext {
this.gateway = new operations.Gateway(this);
this.gatewayHostnameConfiguration = new operations.GatewayHostnameConfiguration(this);
this.gatewayApi = new operations.GatewayApi(this);
this.gatewayCertificateAuthority = new operations.GatewayCertificateAuthority(this);
this.group = new operations.Group(this);
this.groupUser = new operations.GroupUser(this);
this.identityProvider = new operations.IdentityProvider(this);
Expand All @@ -132,6 +143,8 @@ class ApiManagementClient extends ApiManagementClientContext {
this.openIdConnectProvider = new operations.OpenIdConnectProvider(this);
this.policy = new operations.Policy(this);
this.policyDescription = new operations.PolicyDescription(this);
this.portalRevision = new operations.PortalRevision(this);
this.portalSettings = new operations.PortalSettings(this);
this.signInSettings = new operations.SignInSettings(this);
this.signUpSettings = new operations.SignUpSettings(this);
this.delegationSettings = new operations.DelegationSettings(this);
Expand All @@ -144,6 +157,8 @@ class ApiManagementClient extends ApiManagementClientContext {
this.quotaByPeriodKeys = new operations.QuotaByPeriodKeys(this);
this.region = new operations.Region(this);
this.reports = new operations.Reports(this);
this.tenantSettings = new operations.TenantSettings(this);
this.apiManagementSkus = new operations.ApiManagementSkus(this);
this.subscription = new operations.Subscription(this);
this.tagResource = new operations.TagResource(this);
this.tenantAccess = new operations.TenantAccess(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand Down Expand Up @@ -45,7 +44,7 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2019-12-01';
this.apiVersion = '2021-01-01-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
AccessInformationContract,
AdditionalLocation,
ApiContactInformation,
ApiContract,
ApiDiagnosticCreateOrUpdateHeaders,
ApiDiagnosticGetEntityTagHeaders,
ApiDiagnosticGetHeaders,
ApiDiagnosticUpdateHeaders,
ApiLicenseInformation,
ApiManagementServiceIdentity,
ApiManagementServiceResource,
ApiManagementServiceSkuProperties,
Expand Down Expand Up @@ -39,12 +43,18 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticCollection,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
ErrorFieldContract,
ErrorResponse,
GatewayCertificateAuthorityContract,
GatewayContract,
GatewayHostnameConfigurationContract,
GroupContract,
Expand All @@ -56,6 +66,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +82,8 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSettingsContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand All @@ -88,6 +103,7 @@ export {
SubscriptionsDelegationSettingsProperties,
TagContract,
TagDescriptionContract,
TenantSettingsContract,
TermsOfServiceProperties,
TokenBodyParameterContract,
UserContract,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
AccessInformationContract,
AdditionalLocation,
ApiContactInformation,
ApiContract,
ApiIssueAttachmentCreateOrUpdateHeaders,
ApiIssueAttachmentGetEntityTagHeaders,
ApiIssueAttachmentGetHeaders,
ApiLicenseInformation,
ApiManagementServiceIdentity,
ApiManagementServiceResource,
ApiManagementServiceSkuProperties,
Expand Down Expand Up @@ -39,11 +42,17 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
ErrorFieldContract,
ErrorResponse,
GatewayCertificateAuthorityContract,
GatewayContract,
GatewayHostnameConfigurationContract,
GroupContract,
Expand All @@ -56,6 +65,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +81,8 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSettingsContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand All @@ -88,6 +102,7 @@ export {
SubscriptionsDelegationSettingsProperties,
TagContract,
TagDescriptionContract,
TenantSettingsContract,
TermsOfServiceProperties,
TokenBodyParameterContract,
UserContract,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
AccessInformationContract,
AdditionalLocation,
ApiContactInformation,
ApiContract,
ApiIssueCommentCreateOrUpdateHeaders,
ApiIssueCommentGetEntityTagHeaders,
ApiIssueCommentGetHeaders,
ApiLicenseInformation,
ApiManagementServiceIdentity,
ApiManagementServiceResource,
ApiManagementServiceSkuProperties,
Expand Down Expand Up @@ -39,11 +42,17 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
ErrorFieldContract,
ErrorResponse,
GatewayCertificateAuthorityContract,
GatewayContract,
GatewayHostnameConfigurationContract,
GroupContract,
Expand All @@ -56,6 +65,9 @@ export {
IssueCommentCollection,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +81,8 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSettingsContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand All @@ -88,6 +102,7 @@ export {
SubscriptionsDelegationSettingsProperties,
TagContract,
TagDescriptionContract,
TenantSettingsContract,
TermsOfServiceProperties,
TokenBodyParameterContract,
UserContract,
Expand Down
Loading

0 comments on commit 7b3574a

Please sign in to comment.