Skip to content

Commit 92795bd

Browse files
author
SDKAuto
committed
CodeGen from PR 13377 in Azure/azure-rest-api-specs
Merge c331ddd3b4e1a43c137675f6d95196693b0bdacf into 33f0337a7d01132c5b1ef9025208c6263b43507c
1 parent 461643a commit 92795bd

File tree

153 files changed

+16120
-4315
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

+16120
-4315
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 = '2021-01-01-preview';
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: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
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,
12+
ApiContactInformation,
1113
ApiContract,
1214
ApiDiagnosticCreateOrUpdateHeaders,
1315
ApiDiagnosticGetEntityTagHeaders,
1416
ApiDiagnosticGetHeaders,
17+
ApiDiagnosticUpdateHeaders,
18+
ApiLicenseInformation,
1519
ApiManagementServiceIdentity,
1620
ApiManagementServiceResource,
1721
ApiManagementServiceSkuProperties,
@@ -39,12 +43,18 @@ export {
3943
CertificateConfiguration,
4044
CertificateContract,
4145
CertificateInformation,
46+
ContentItemContract,
47+
ContentTypeContract,
48+
DataMasking,
49+
DataMaskingEntity,
50+
DeletedServiceContract,
4251
DiagnosticCollection,
4352
DiagnosticContract,
4453
EmailTemplateContract,
4554
EmailTemplateParametersContractProperties,
4655
ErrorFieldContract,
4756
ErrorResponse,
57+
GatewayCertificateAuthorityContract,
4858
GatewayContract,
4959
GatewayHostnameConfigurationContract,
5060
GroupContract,
@@ -56,6 +66,9 @@ export {
5666
IssueAttachmentContract,
5767
IssueCommentContract,
5868
IssueContract,
69+
KeyVaultContractCreateProperties,
70+
KeyVaultContractProperties,
71+
KeyVaultLastAccessStatusContractProperties,
5972
LoggerContract,
6073
NamedValueContract,
6174
NamedValueCreateContract,
@@ -69,6 +82,8 @@ export {
6982
PolicyContract,
7083
PolicyDescriptionContract,
7184
PortalDelegationSettings,
85+
PortalRevisionContract,
86+
PortalSettingsContract,
7287
PortalSigninSettings,
7388
PortalSignupSettings,
7489
ProductContract,
@@ -88,6 +103,7 @@ export {
88103
SubscriptionsDelegationSettingsProperties,
89104
TagContract,
90105
TagDescriptionContract,
106+
TenantSettingsContract,
91107
TermsOfServiceProperties,
92108
TokenBodyParameterContract,
93109
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: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
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,
12+
ApiContactInformation,
1113
ApiContract,
1214
ApiIssueAttachmentCreateOrUpdateHeaders,
1315
ApiIssueAttachmentGetEntityTagHeaders,
1416
ApiIssueAttachmentGetHeaders,
17+
ApiLicenseInformation,
1518
ApiManagementServiceIdentity,
1619
ApiManagementServiceResource,
1720
ApiManagementServiceSkuProperties,
@@ -39,11 +42,17 @@ export {
3942
CertificateConfiguration,
4043
CertificateContract,
4144
CertificateInformation,
45+
ContentItemContract,
46+
ContentTypeContract,
47+
DataMasking,
48+
DataMaskingEntity,
49+
DeletedServiceContract,
4250
DiagnosticContract,
4351
EmailTemplateContract,
4452
EmailTemplateParametersContractProperties,
4553
ErrorFieldContract,
4654
ErrorResponse,
55+
GatewayCertificateAuthorityContract,
4756
GatewayContract,
4857
GatewayHostnameConfigurationContract,
4958
GroupContract,
@@ -56,6 +65,9 @@ export {
5665
IssueAttachmentContract,
5766
IssueCommentContract,
5867
IssueContract,
68+
KeyVaultContractCreateProperties,
69+
KeyVaultContractProperties,
70+
KeyVaultLastAccessStatusContractProperties,
5971
LoggerContract,
6072
NamedValueContract,
6173
NamedValueCreateContract,
@@ -69,6 +81,8 @@ export {
6981
PolicyContract,
7082
PolicyDescriptionContract,
7183
PortalDelegationSettings,
84+
PortalRevisionContract,
85+
PortalSettingsContract,
7286
PortalSigninSettings,
7387
PortalSignupSettings,
7488
ProductContract,
@@ -88,6 +102,7 @@ export {
88102
SubscriptionsDelegationSettingsProperties,
89103
TagContract,
90104
TagDescriptionContract,
105+
TenantSettingsContract,
91106
TermsOfServiceProperties,
92107
TokenBodyParameterContract,
93108
UserContract,

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
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,
12+
ApiContactInformation,
1113
ApiContract,
1214
ApiIssueCommentCreateOrUpdateHeaders,
1315
ApiIssueCommentGetEntityTagHeaders,
1416
ApiIssueCommentGetHeaders,
17+
ApiLicenseInformation,
1518
ApiManagementServiceIdentity,
1619
ApiManagementServiceResource,
1720
ApiManagementServiceSkuProperties,
@@ -39,11 +42,17 @@ export {
3942
CertificateConfiguration,
4043
CertificateContract,
4144
CertificateInformation,
45+
ContentItemContract,
46+
ContentTypeContract,
47+
DataMasking,
48+
DataMaskingEntity,
49+
DeletedServiceContract,
4250
DiagnosticContract,
4351
EmailTemplateContract,
4452
EmailTemplateParametersContractProperties,
4553
ErrorFieldContract,
4654
ErrorResponse,
55+
GatewayCertificateAuthorityContract,
4756
GatewayContract,
4857
GatewayHostnameConfigurationContract,
4958
GroupContract,
@@ -56,6 +65,9 @@ export {
5665
IssueCommentCollection,
5766
IssueCommentContract,
5867
IssueContract,
68+
KeyVaultContractCreateProperties,
69+
KeyVaultContractProperties,
70+
KeyVaultLastAccessStatusContractProperties,
5971
LoggerContract,
6072
NamedValueContract,
6173
NamedValueCreateContract,
@@ -69,6 +81,8 @@ export {
6981
PolicyContract,
7082
PolicyDescriptionContract,
7183
PortalDelegationSettings,
84+
PortalRevisionContract,
85+
PortalSettingsContract,
7286
PortalSigninSettings,
7387
PortalSignupSettings,
7488
ProductContract,
@@ -88,6 +102,7 @@ export {
88102
SubscriptionsDelegationSettingsProperties,
89103
TagContract,
90104
TagDescriptionContract,
105+
TenantSettingsContract,
91106
TermsOfServiceProperties,
92107
TokenBodyParameterContract,
93108
UserContract,

0 commit comments

Comments
 (0)