Skip to content

Commit

Permalink
CodeGen from PR 11738 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Portal revision API (Azure#11738)

* Portal revision API

* fixed spec errors

* fixed references

* fixed return code on create and added long running operation properties

* fixed create response

* fixed comments

* small fix
  • Loading branch information
SDKAuto committed Dec 4, 2020
1 parent 6c6ce54 commit 3bd85c2
Show file tree
Hide file tree
Showing 144 changed files with 10,599 additions and 3,268 deletions.
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
13 changes: 10 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 @@ -58,6 +60,7 @@ class ApiManagementClient extends ApiManagementClientContext {
openIdConnectProvider: operations.OpenIdConnectProvider;
policy: operations.Policy;
policyDescription: operations.PolicyDescription;
portalRevision: operations.PortalRevision;
signInSettings: operations.SignInSettings;
signUpSettings: operations.SignUpSettings;
delegationSettings: operations.DelegationSettings;
Expand Down Expand Up @@ -111,6 +114,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 @@ -132,6 +138,7 @@ 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.signInSettings = new operations.SignInSettings(this);
this.signUpSettings = new operations.SignUpSettings(this);
this.delegationSettings = new operations.DelegationSettings(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 = '2020-06-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,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 All @@ -12,6 +12,7 @@ export {
ApiDiagnosticCreateOrUpdateHeaders,
ApiDiagnosticGetEntityTagHeaders,
ApiDiagnosticGetHeaders,
ApiDiagnosticUpdateHeaders,
ApiManagementServiceIdentity,
ApiManagementServiceResource,
ApiManagementServiceSkuProperties,
Expand Down Expand Up @@ -39,6 +40,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticCollection,
DiagnosticContract,
EmailTemplateContract,
Expand All @@ -56,6 +62,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +78,7 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
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,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 Expand Up @@ -39,6 +39,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -56,6 +61,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +77,7 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
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 Expand Up @@ -39,6 +39,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -56,6 +61,9 @@ export {
IssueCommentCollection,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -69,6 +77,7 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand Down
14 changes: 12 additions & 2 deletions sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts
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 All @@ -12,6 +12,7 @@ export {
ApiIssueCreateOrUpdateHeaders,
ApiIssueGetEntityTagHeaders,
ApiIssueGetHeaders,
ApiIssueUpdateHeaders,
ApiManagementServiceIdentity,
ApiManagementServiceResource,
ApiManagementServiceSkuProperties,
Expand Down Expand Up @@ -39,6 +40,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -57,6 +63,9 @@ export {
IssueCommentContract,
IssueContract,
IssueUpdateContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -70,6 +79,7 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
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,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 Expand Up @@ -43,6 +43,11 @@ export {
CertificateContract,
CertificateInformation,
CloudError,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -59,6 +64,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -72,6 +80,7 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
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
14 changes: 12 additions & 2 deletions sdk/apimanagement/arm-apimanagement/src/models/apiMappers.ts
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 All @@ -25,6 +25,7 @@ export {
ApiReleaseContract,
ApiTagResourceContractProperties,
ApiUpdateContract,
ApiUpdateHeaders,
ApiVersionConstraint,
ApiVersionSetContract,
ApiVersionSetContractDetails,
Expand All @@ -46,6 +47,11 @@ export {
CertificateConfiguration,
CertificateContract,
CertificateInformation,
ContentItemContract,
ContentTypeContract,
DataMasking,
DataMaskingEntity,
DeletedServiceContract,
DiagnosticContract,
EmailTemplateContract,
EmailTemplateParametersContractProperties,
Expand All @@ -62,6 +68,9 @@ export {
IssueAttachmentContract,
IssueCommentContract,
IssueContract,
KeyVaultContractCreateProperties,
KeyVaultContractProperties,
KeyVaultLastAccessStatusContractProperties,
LoggerContract,
NamedValueContract,
NamedValueCreateContract,
Expand All @@ -76,6 +85,7 @@ export {
PolicyContract,
PolicyDescriptionContract,
PortalDelegationSettings,
PortalRevisionContract,
PortalSigninSettings,
PortalSignupSettings,
ProductContract,
Expand Down

0 comments on commit 3bd85c2

Please sign in to comment.