Skip to content

Commit 5f2856a

Browse files
author
SDKAuto
committed
CodeGen from PR 12904 in Azure/azure-rest-api-specs
Merge 309c10cfbc8b02339896dd2e6ed140c614abed05 into 5015df257c6f0f8f55e2491a5c13b6ac589c5288
1 parent 43d9c79 commit 5f2856a

File tree

153 files changed

+15551
-4157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+15551
-4157
lines changed

sdk/apimanagement/arm-apimanagement/LICENSE.txt

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) 2020 Microsoft
3+
Copyright (c) 2021 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

sdk/apimanagement/arm-apimanagement/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ npm install @azure/arm-apimanagement
1515

1616
### How to use
1717

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

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

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

2727
##### Sample code
2828

29+
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
2930
```typescript
30-
import * as msRest from "@azure/ms-rest-js";
31-
import * as msRestAzure from "@azure/ms-rest-azure-js";
32-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
33-
import { ApiManagementClient, ApiManagementModels, ApiManagementMappers } from "@azure/arm-apimanagement";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { ApiManagementClient } = require("@azure/arm-apimanagement");
3433
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3534

3635
msRestNodeAuth.interactiveLogin().then((creds) => {

sdk/apimanagement/arm-apimanagement/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -37,6 +36,9 @@ class ApiManagementClient extends ApiManagementClientContext {
3736
backend: operations.Backend;
3837
cache: operations.Cache;
3938
certificate: operations.Certificate;
39+
contentType: operations.ContentType;
40+
contentItem: operations.ContentItem;
41+
deletedServices: operations.DeletedServices;
4042
apiManagementOperations: operations.ApiManagementOperations;
4143
apiManagementServiceSkus: operations.ApiManagementServiceSkus;
4244
apiManagementService: operations.ApiManagementService;
@@ -45,6 +47,7 @@ class ApiManagementClient extends ApiManagementClientContext {
4547
gateway: operations.Gateway;
4648
gatewayHostnameConfiguration: operations.GatewayHostnameConfiguration;
4749
gatewayApi: operations.GatewayApi;
50+
gatewayCertificateAuthority: operations.GatewayCertificateAuthority;
4851
group: operations.Group;
4952
groupUser: operations.GroupUser;
5053
identityProvider: operations.IdentityProvider;
@@ -58,6 +61,8 @@ class ApiManagementClient extends ApiManagementClientContext {
5861
openIdConnectProvider: operations.OpenIdConnectProvider;
5962
policy: operations.Policy;
6063
policyDescription: operations.PolicyDescription;
64+
portalRevision: operations.PortalRevision;
65+
portalSettings: operations.PortalSettings;
6166
signInSettings: operations.SignInSettings;
6267
signUpSettings: operations.SignUpSettings;
6368
delegationSettings: operations.DelegationSettings;
@@ -70,6 +75,8 @@ class ApiManagementClient extends ApiManagementClientContext {
7075
quotaByPeriodKeys: operations.QuotaByPeriodKeys;
7176
region: operations.Region;
7277
reports: operations.Reports;
78+
tenantSettings: operations.TenantSettings;
79+
apiManagementSkus: operations.ApiManagementSkus;
7380
subscription: operations.Subscription;
7481
tagResource: operations.TagResource;
7582
tenantAccess: operations.TenantAccess;
@@ -111,6 +118,9 @@ class ApiManagementClient extends ApiManagementClientContext {
111118
this.backend = new operations.Backend(this);
112119
this.cache = new operations.Cache(this);
113120
this.certificate = new operations.Certificate(this);
121+
this.contentType = new operations.ContentType(this);
122+
this.contentItem = new operations.ContentItem(this);
123+
this.deletedServices = new operations.DeletedServices(this);
114124
this.apiManagementOperations = new operations.ApiManagementOperations(this);
115125
this.apiManagementServiceSkus = new operations.ApiManagementServiceSkus(this);
116126
this.apiManagementService = new operations.ApiManagementService(this);
@@ -119,6 +129,7 @@ class ApiManagementClient extends ApiManagementClientContext {
119129
this.gateway = new operations.Gateway(this);
120130
this.gatewayHostnameConfiguration = new operations.GatewayHostnameConfiguration(this);
121131
this.gatewayApi = new operations.GatewayApi(this);
132+
this.gatewayCertificateAuthority = new operations.GatewayCertificateAuthority(this);
122133
this.group = new operations.Group(this);
123134
this.groupUser = new operations.GroupUser(this);
124135
this.identityProvider = new operations.IdentityProvider(this);
@@ -132,6 +143,8 @@ class ApiManagementClient extends ApiManagementClientContext {
132143
this.openIdConnectProvider = new operations.OpenIdConnectProvider(this);
133144
this.policy = new operations.Policy(this);
134145
this.policyDescription = new operations.PolicyDescription(this);
146+
this.portalRevision = new operations.PortalRevision(this);
147+
this.portalSettings = new operations.PortalSettings(this);
135148
this.signInSettings = new operations.SignInSettings(this);
136149
this.signUpSettings = new operations.SignUpSettings(this);
137150
this.delegationSettings = new operations.DelegationSettings(this);
@@ -144,6 +157,8 @@ class ApiManagementClient extends ApiManagementClientContext {
144157
this.quotaByPeriodKeys = new operations.QuotaByPeriodKeys(this);
145158
this.region = new operations.Region(this);
146159
this.reports = new operations.Reports(this);
160+
this.tenantSettings = new operations.TenantSettings(this);
161+
this.apiManagementSkus = new operations.ApiManagementSkus(this);
147162
this.subscription = new operations.Subscription(this);
148163
this.tagResource = new operations.TagResource(this);
149164
this.tenantAccess = new operations.TenantAccess(this);

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -45,7 +44,7 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient {
4544

4645
super(credentials, options);
4746

48-
this.apiVersion = '2019-12-01';
47+
this.apiVersion = '2020-12-01';
4948
this.acceptLanguage = 'en-US';
5049
this.longRunningOperationRetryTimeout = 30;
5150
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/apimanagement/arm-apimanagement/src/models/apiDiagnosticMappers.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
10+
AccessInformationContract,
1011
AdditionalLocation,
1112
ApiContract,
1213
ApiDiagnosticCreateOrUpdateHeaders,
1314
ApiDiagnosticGetEntityTagHeaders,
1415
ApiDiagnosticGetHeaders,
16+
ApiDiagnosticUpdateHeaders,
1517
ApiManagementServiceIdentity,
1618
ApiManagementServiceResource,
1719
ApiManagementServiceSkuProperties,
@@ -39,12 +41,18 @@ export {
3941
CertificateConfiguration,
4042
CertificateContract,
4143
CertificateInformation,
44+
ContentItemContract,
45+
ContentTypeContract,
46+
DataMasking,
47+
DataMaskingEntity,
48+
DeletedServiceContract,
4249
DiagnosticCollection,
4350
DiagnosticContract,
4451
EmailTemplateContract,
4552
EmailTemplateParametersContractProperties,
4653
ErrorFieldContract,
4754
ErrorResponse,
55+
GatewayCertificateAuthorityContract,
4856
GatewayContract,
4957
GatewayHostnameConfigurationContract,
5058
GroupContract,
@@ -56,6 +64,9 @@ export {
5664
IssueAttachmentContract,
5765
IssueCommentContract,
5866
IssueContract,
67+
KeyVaultContractCreateProperties,
68+
KeyVaultContractProperties,
69+
KeyVaultLastAccessStatusContractProperties,
5970
LoggerContract,
6071
NamedValueContract,
6172
NamedValueCreateContract,
@@ -69,6 +80,8 @@ export {
6980
PolicyContract,
7081
PolicyDescriptionContract,
7182
PortalDelegationSettings,
83+
PortalRevisionContract,
84+
PortalSettingsContract,
7285
PortalSigninSettings,
7386
PortalSignupSettings,
7487
ProductContract,
@@ -88,6 +101,7 @@ export {
88101
SubscriptionsDelegationSettingsProperties,
89102
TagContract,
90103
TagDescriptionContract,
104+
TenantSettingsContract,
91105
TermsOfServiceProperties,
92106
TokenBodyParameterContract,
93107
UserContract,

sdk/apimanagement/arm-apimanagement/src/models/apiExportMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
10+
AccessInformationContract,
1011
AdditionalLocation,
1112
ApiContract,
1213
ApiIssueAttachmentCreateOrUpdateHeaders,
@@ -39,11 +40,17 @@ export {
3940
CertificateConfiguration,
4041
CertificateContract,
4142
CertificateInformation,
43+
ContentItemContract,
44+
ContentTypeContract,
45+
DataMasking,
46+
DataMaskingEntity,
47+
DeletedServiceContract,
4248
DiagnosticContract,
4349
EmailTemplateContract,
4450
EmailTemplateParametersContractProperties,
4551
ErrorFieldContract,
4652
ErrorResponse,
53+
GatewayCertificateAuthorityContract,
4754
GatewayContract,
4855
GatewayHostnameConfigurationContract,
4956
GroupContract,
@@ -56,6 +63,9 @@ export {
5663
IssueAttachmentContract,
5764
IssueCommentContract,
5865
IssueContract,
66+
KeyVaultContractCreateProperties,
67+
KeyVaultContractProperties,
68+
KeyVaultLastAccessStatusContractProperties,
5969
LoggerContract,
6070
NamedValueContract,
6171
NamedValueCreateContract,
@@ -69,6 +79,8 @@ export {
6979
PolicyContract,
7080
PolicyDescriptionContract,
7181
PortalDelegationSettings,
82+
PortalRevisionContract,
83+
PortalSettingsContract,
7284
PortalSigninSettings,
7385
PortalSignupSettings,
7486
ProductContract,
@@ -88,6 +100,7 @@ export {
88100
SubscriptionsDelegationSettingsProperties,
89101
TagContract,
90102
TagDescriptionContract,
103+
TenantSettingsContract,
91104
TermsOfServiceProperties,
92105
TokenBodyParameterContract,
93106
UserContract,

sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
*/
88

99
export {
10+
AccessInformationContract,
1011
AdditionalLocation,
1112
ApiContract,
1213
ApiIssueCommentCreateOrUpdateHeaders,
@@ -39,11 +40,17 @@ export {
3940
CertificateConfiguration,
4041
CertificateContract,
4142
CertificateInformation,
43+
ContentItemContract,
44+
ContentTypeContract,
45+
DataMasking,
46+
DataMaskingEntity,
47+
DeletedServiceContract,
4248
DiagnosticContract,
4349
EmailTemplateContract,
4450
EmailTemplateParametersContractProperties,
4551
ErrorFieldContract,
4652
ErrorResponse,
53+
GatewayCertificateAuthorityContract,
4754
GatewayContract,
4855
GatewayHostnameConfigurationContract,
4956
GroupContract,
@@ -56,6 +63,9 @@ export {
5663
IssueCommentCollection,
5764
IssueCommentContract,
5865
IssueContract,
66+
KeyVaultContractCreateProperties,
67+
KeyVaultContractProperties,
68+
KeyVaultLastAccessStatusContractProperties,
5969
LoggerContract,
6070
NamedValueContract,
6171
NamedValueCreateContract,
@@ -69,6 +79,8 @@ export {
6979
PolicyContract,
7080
PolicyDescriptionContract,
7181
PortalDelegationSettings,
82+
PortalRevisionContract,
83+
PortalSettingsContract,
7284
PortalSigninSettings,
7385
PortalSignupSettings,
7486
ProductContract,
@@ -88,6 +100,7 @@ export {
88100
SubscriptionsDelegationSettingsProperties,
89101
TagContract,
90102
TagDescriptionContract,
103+
TenantSettingsContract,
91104
TermsOfServiceProperties,
92105
TokenBodyParameterContract,
93106
UserContract,

0 commit comments

Comments
 (0)