From 6151e9707bbb2351d7c6517008545be7ee6076c9 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 5 Feb 2020 17:47:44 +0000 Subject: [PATCH] Generated from 775f62f555dfa7282b025c894208c3aa0f181a30 Fixing open id connect provider list secrects operation ID. --- .../arm-apimanagement/LICENSE.txt | 2 +- sdk/apimanagement/arm-apimanagement/README.md | 5 +- .../arm-apimanagement/package.json | 14 +- .../arm-apimanagement/rollup.config.js | 2 +- .../src/apiManagementClient.ts | 8 +- .../src/apiManagementClientContext.ts | 4 +- .../src/models/apiDiagnosticMappers.ts | 6 +- .../src/models/apiIssueAttachmentMappers.ts | 6 +- .../src/models/apiIssueCommentMappers.ts | 6 +- .../src/models/apiIssueMappers.ts | 6 +- .../src/models/apiManagementServiceMappers.ts | 8 +- .../models/apiManagementServiceSkusMappers.ts | 3 +- .../src/models/apiMappers.ts | 6 +- .../src/models/apiOperationMappers.ts | 6 +- .../src/models/apiOperationPolicyMappers.ts | 6 +- .../src/models/apiPolicyMappers.ts | 6 +- .../src/models/apiProductMappers.ts | 6 +- .../src/models/apiReleaseMappers.ts | 6 +- .../src/models/apiSchemaMappers.ts | 6 +- .../src/models/apiTagDescriptionMappers.ts | 6 +- .../src/models/apiVersionSetMappers.ts | 6 +- .../src/models/authorizationServerMappers.ts | 7 +- .../src/models/backendMappers.ts | 6 +- .../src/models/cacheMappers.ts | 6 +- .../src/models/certificateMappers.ts | 6 +- .../src/models/delegationSettingsMappers.ts | 6 +- .../src/models/diagnosticMappers.ts | 6 +- .../src/models/emailTemplateMappers.ts | 6 +- .../src/models/groupMappers.ts | 6 +- .../src/models/groupUserMappers.ts | 6 +- .../src/models/identityProviderMappers.ts | 7 +- .../arm-apimanagement/src/models/index.ts | 564 ++++++++++++++---- .../src/models/issueMappers.ts | 6 +- .../src/models/loggerMappers.ts | 6 +- .../arm-apimanagement/src/models/mappers.ts | 382 +++++++++--- .../src/models/namedValueMappers.ts | 94 +++ .../src/models/notificationMappers.ts | 6 +- .../notificationRecipientEmailMappers.ts | 6 +- .../notificationRecipientUserMappers.ts | 6 +- .../models/openIdConnectProviderMappers.ts | 7 +- .../src/models/parameters.ts | 43 +- ...Mappers.ts => policyDescriptionMappers.ts} | 12 +- .../src/models/policyMappers.ts | 6 +- .../src/models/policySnippetMappers.ts | 14 - .../src/models/productApiMappers.ts | 6 +- .../src/models/productGroupMappers.ts | 6 +- .../src/models/productMappers.ts | 6 +- .../src/models/productPolicyMappers.ts | 6 +- .../src/models/productSubscriptionsMappers.ts | 6 +- .../src/models/signInSettingsMappers.ts | 6 +- .../src/models/signUpSettingsMappers.ts | 6 +- .../src/models/subscriptionMappers.ts | 7 +- .../src/models/tagMappers.ts | 6 +- .../src/models/tenantAccessGitMappers.ts | 3 +- .../src/models/tenantAccessMappers.ts | 3 +- .../src/models/userGroupMappers.ts | 6 +- .../src/models/userMappers.ts | 6 +- .../src/models/userSubscriptionMappers.ts | 6 +- .../src/operations/apiExport.ts | 6 +- .../src/operations/apiManagementService.ts | 22 +- .../operations/apiManagementServiceSkus.ts | 4 +- .../src/operations/apiSchema.ts | 117 ++-- .../src/operations/apiTagDescription.ts | 92 +-- .../src/operations/authorizationServer.ts | 62 ++ .../src/operations/identityProvider.ts | 65 ++ .../arm-apimanagement/src/operations/index.ts | 4 +- .../operations/{property.ts => namedValue.ts} | 301 +++++----- .../src/operations/openIdConnectProvider.ts | 62 ++ ...{policySnippet.ts => policyDescription.ts} | 26 +- .../src/operations/subscription.ts | 65 ++ .../src/operations/tenantAccess.ts | 61 +- .../src/operations/tenantAccessGit.ts | 61 +- .../arm-apimanagement/tsconfig.json | 2 +- 73 files changed, 1755 insertions(+), 612 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/src/models/namedValueMappers.ts rename sdk/apimanagement/arm-apimanagement/src/models/{propertyMappers.ts => policyDescriptionMappers.ts} (92%) delete mode 100644 sdk/apimanagement/arm-apimanagement/src/models/policySnippetMappers.ts rename sdk/apimanagement/arm-apimanagement/src/operations/{property.ts => namedValue.ts} (55%) rename sdk/apimanagement/arm-apimanagement/src/operations/{policySnippet.ts => policyDescription.ts} (70%) diff --git a/sdk/apimanagement/arm-apimanagement/LICENSE.txt b/sdk/apimanagement/arm-apimanagement/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/apimanagement/arm-apimanagement/LICENSE.txt +++ b/sdk/apimanagement/arm-apimanagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 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 diff --git a/sdk/apimanagement/arm-apimanagement/README.md b/sdk/apimanagement/arm-apimanagement/README.md index 36fd1d2cac1d..5e1af20aa892 100644 --- a/sdk/apimanagement/arm-apimanagement/README.md +++ b/sdk/apimanagement/arm-apimanagement/README.md @@ -19,8 +19,9 @@ npm install @azure/arm-apimanagement ##### Install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. ```bash -npm install @azure/ms-rest-nodeauth +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code @@ -109,4 +110,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fapimanagement%2Farm-apimanagement%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/apimanagement/arm-apimanagement/README.png) diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index ce5065797769..79f273316857 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/arm-apimanagement/package.json @@ -4,9 +4,9 @@ "description": "ApiManagementClient Library with typescript type definitions for node.js and browser.", "version": "5.1.1", "dependencies": { - "@azure/ms-rest-azure-js": "^1.3.2", - "@azure/ms-rest-js": "^1.8.1", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,11 +20,11 @@ "module": "./esm/apiManagementClient.js", "types": "./esm/apiManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-sourcemaps": "^0.4.2", - "uglify-js": "^3.4.9" + "uglify-js": "^3.6.0" }, "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/apimanagement/arm-apimanagement", "repository": { diff --git a/sdk/apimanagement/arm-apimanagement/rollup.config.js b/sdk/apimanagement/arm-apimanagement/rollup.config.js index dc0dc5622703..25f5d95d9aa9 100644 --- a/sdk/apimanagement/arm-apimanagement/rollup.config.js +++ b/sdk/apimanagement/arm-apimanagement/rollup.config.js @@ -29,7 +29,7 @@ const config = { */` }, plugins: [ - nodeResolve({ module: true }), + nodeResolve({ mainFields: ['module', 'main'] }), sourcemaps() ] }; diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts index 454cda6b424c..672c45036f6d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -53,7 +53,7 @@ class ApiManagementClient extends ApiManagementClientContext { notificationRecipientEmail: operations.NotificationRecipientEmail; openIdConnectProvider: operations.OpenIdConnectProvider; policy: operations.Policy; - policySnippet: operations.PolicySnippet; + policyDescription: operations.PolicyDescription; signInSettings: operations.SignInSettings; signUpSettings: operations.SignUpSettings; delegationSettings: operations.DelegationSettings; @@ -62,7 +62,7 @@ class ApiManagementClient extends ApiManagementClientContext { productGroup: operations.ProductGroup; productSubscriptions: operations.ProductSubscriptions; productPolicy: operations.ProductPolicy; - property: operations.Property; + namedValue: operations.NamedValue; quotaByCounterKeys: operations.QuotaByCounterKeys; quotaByPeriodKeys: operations.QuotaByPeriodKeys; region: operations.Region; @@ -124,7 +124,7 @@ class ApiManagementClient extends ApiManagementClientContext { this.notificationRecipientEmail = new operations.NotificationRecipientEmail(this); this.openIdConnectProvider = new operations.OpenIdConnectProvider(this); this.policy = new operations.Policy(this); - this.policySnippet = new operations.PolicySnippet(this); + this.policyDescription = new operations.PolicyDescription(this); this.signInSettings = new operations.SignInSettings(this); this.signUpSettings = new operations.SignUpSettings(this); this.delegationSettings = new operations.DelegationSettings(this); @@ -133,7 +133,7 @@ class ApiManagementClient extends ApiManagementClientContext { this.productGroup = new operations.ProductGroup(this); this.productSubscriptions = new operations.ProductSubscriptions(this); this.productPolicy = new operations.ProductPolicy(this); - this.property = new operations.Property(this); + this.namedValue = new operations.NamedValue(this); this.quotaByCounterKeys = new operations.QuotaByCounterKeys(this); this.quotaByPeriodKeys = new operations.QuotaByPeriodKeys(this); this.region = new operations.Region(this); diff --git a/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts b/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts index 0a2d57d4bcfe..c36b95e6a09e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-apimanagement"; -const packageVersion = "5.1.0"; +const packageVersion = "5.1.1"; export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -45,7 +45,7 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2019-01-01'; + this.apiVersion = '2019-12-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiDiagnosticMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiDiagnosticMappers.ts index 498d54a774ca..94030170c4a3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiDiagnosticMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiDiagnosticMappers.ts @@ -13,11 +13,13 @@ export { ApiDiagnosticGetEntityTagHeaders, ApiDiagnosticGetHeaders, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -52,6 +54,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts index 0b6ee1bdd250..151aa46c75fd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts @@ -13,11 +13,13 @@ export { ApiIssueAttachmentGetEntityTagHeaders, ApiIssueAttachmentGetHeaders, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -52,6 +54,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts index 1a55d0cc8cfa..b458800e51ac 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts @@ -13,11 +13,13 @@ export { ApiIssueCommentGetEntityTagHeaders, ApiIssueCommentGetHeaders, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -52,6 +54,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts index e4dd6527e8a3..510e7eda86ab 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts @@ -13,11 +13,13 @@ export { ApiIssueGetEntityTagHeaders, ApiIssueGetHeaders, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -53,6 +55,7 @@ export { IssueContract, IssueUpdateContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts index 8a00eace8c09..95bf0bcc8b97 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts @@ -14,6 +14,7 @@ export { ApiManagementServiceCheckNameAvailabilityParameters, ApiManagementServiceGetSsoTokenResult, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceListResult, ApiManagementServiceNameAvailabilityResult, ApiManagementServiceResource, @@ -21,6 +22,7 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -44,6 +46,8 @@ export { DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, GroupContract, GroupContractProperties, HostnameConfiguration, @@ -53,6 +57,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +66,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +81,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceSkusMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceSkusMappers.ts index d7b3464dd804..ca99c5f93a41 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceSkusMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceSkusMappers.ts @@ -7,7 +7,8 @@ */ export { - CloudError, + ErrorFieldContract, + ErrorResponse, ResourceSku, ResourceSkuCapacity, ResourceSkuResult, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiMappers.ts index 071dfb8b0589..f5e864a76046 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiMappers.ts @@ -18,6 +18,7 @@ export { ApiGetEntityTagHeaders, ApiGetHeaders, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, @@ -25,6 +26,7 @@ export { ApiReleaseContract, ApiTagResourceContractProperties, ApiUpdateContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -58,6 +60,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -67,13 +70,13 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, ProductEntityBaseParameters, ProductTagResourceContractProperties, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -84,7 +87,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts index 02c1e4f2da8a..904538fddae4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts @@ -10,6 +10,7 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, @@ -18,6 +19,7 @@ export { ApiOperationGetEntityTagHeaders, ApiOperationGetHeaders, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -51,6 +53,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts index eb2f4b6ee681..43c2bc641a8e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts @@ -10,6 +10,7 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, @@ -18,6 +19,7 @@ export { ApiOperationPolicyGetEntityTagHeaders, ApiOperationPolicyGetHeaders, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -51,6 +53,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts index 1ee08b079a94..9e426cc405de 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts @@ -10,6 +10,7 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, @@ -18,6 +19,7 @@ export { ApiPolicyGetEntityTagHeaders, ApiPolicyGetHeaders, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -51,6 +53,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts index f7e533e044e7..31b13aa40fa3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,12 +59,12 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductCollection, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts index 8398ba1dcac3..2e87fc6ecf77 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts @@ -10,6 +10,7 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, @@ -19,6 +20,7 @@ export { ApiReleaseCreateOrUpdateHeaders, ApiReleaseGetEntityTagHeaders, ApiReleaseGetHeaders, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -52,6 +54,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts index 58456c66efd7..95c8ef5cb1f6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts @@ -10,6 +10,7 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, @@ -18,6 +19,7 @@ export { ApiSchemaCreateOrUpdateHeaders, ApiSchemaGetEntityTagHeaders, ApiSchemaGetHeaders, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -51,6 +53,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -59,11 +62,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { SamplingSettings, SchemaCollection, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts index 4840c3a1465a..0a62b013a518 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts @@ -10,6 +10,7 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, @@ -18,6 +19,7 @@ export { ApiTagDescriptionCreateOrUpdateHeaders, ApiTagDescriptionGetEntityTagHeaders, ApiTagDescriptionGetHeaders, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -51,6 +53,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -59,11 +62,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -74,7 +77,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts index 7a93b3422eeb..457fc85a25d3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetCollection, ApiVersionSetContract, ApiVersionSetContractDetails, @@ -53,6 +55,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts index e2e742c43968..4d9d84f53770 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -38,6 +40,7 @@ export { CertificateConfiguration, CertificateContract, CertificateInformation, + ClientSecretContract, DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, @@ -52,6 +55,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts index e3df0f4a1ff2..f8f206e1faed 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -53,6 +55,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts index 785e56ee9e3b..f85e4e46a34c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -53,6 +55,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts index 6aa87a13ef23..8e1b7a8ca2b8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -53,6 +55,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts index 04f1814a256c..03932a50df41 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -50,6 +52,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -58,11 +61,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,7 +76,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts index 6d609e8902f8..9af530f2cdc9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -52,6 +54,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts index f943eec8c3c3..cff79a592736 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -52,6 +54,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts index c959d5a9ce85..435d7f3cc3c1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -54,6 +56,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -62,11 +65,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -77,7 +80,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts index a904f335e598..ce87cb877641 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +74,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts index fce351db8e91..61a018455886 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -34,6 +36,7 @@ export { CertificateConfiguration, CertificateContract, CertificateInformation, + ClientSecretContract, DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, @@ -53,6 +56,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +65,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +80,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 670bb7eeb4b8..83e3fc051c0e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/index.ts @@ -295,12 +295,6 @@ export interface AuthenticationSettingsContract { * OpenID Connect Authentication Settings */ openid?: OpenIdAuthenticationSettingsContract; - /** - * Specifies whether subscription key is required during call to this API, true - API is included - * into closed products only, false - API is included into open products alone, null - there is a - * mix of products. - */ - subscriptionKeyRequired?: boolean; } /** @@ -527,6 +521,10 @@ export interface TagDescriptionContract extends Resource { * Description of the external resources describing the tag. */ externalDocsDescription?: string; + /** + * Identifier of the tag in the form of /tags/{tagId} + */ + tagId?: string; /** * Tag name. */ @@ -747,35 +745,25 @@ export interface DiagnosticContract extends Resource { */ backend?: PipelineDiagnosticSettings; /** - * Whether to process Correlation Headers coming to Api Management Service. Only applicable to - * Application Insights diagnostics. Default is true. + * Log the ClientIP. Default is false. */ - enableHttpCorrelationHeaders?: boolean; -} - -/** - * Schema Contract details. - */ -export interface SchemaContract extends Resource { + logClientIp?: boolean; /** - * Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media - * type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema - * use `application/vnd.ms-azure-apim.swagger.definitions+json`
- `WSDL` Schema use - * `application/vnd.ms-azure-apim.xsd+xml`
- `OpenApi` Schema use - * `application/vnd.oai.openapi.components+json`
- `WADL Schema` use - * `application/vnd.ms-azure-apim.wadl.grammars+xml`. + * Sets correlation protocol to use for Application Insights diagnostics. Possible values + * include: 'None', 'Legacy', 'W3C' */ - contentType: string; + httpCorrelationProtocol?: HttpCorrelationProtocol; /** - * Properties of the Schema Document. + * The verbosity level applied to traces emitted by trace policies. Possible values include: + * 'verbose', 'information', 'error' */ - document?: any; + verbosity?: Verbosity; } /** * Schema Contract details. */ -export interface SchemaCreateOrUpdateContract extends Resource { +export interface SchemaContract extends Resource { /** * Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media * type of the schema document (e.g. application/json, application/xml).
- `Swagger` Schema @@ -786,9 +774,14 @@ export interface SchemaCreateOrUpdateContract extends Resource { */ contentType: string; /** - * Json escaped string defining the document representing the Schema. + * Json escaped string defining the document representing the Schema. Used for schemas other than + * Swagger/OpenAPI. */ value?: string; + /** + * Types definitions. Used for Swagger/OpenAPI schemas only, null otherwise. + */ + definitions?: any; } /** @@ -1391,7 +1384,7 @@ export interface ApiCreateOrUpdateParameter { /** * Format of the Content in which the API is getting imported. Possible values include: * 'wadl-xml', 'wadl-link-json', 'swagger-json', 'swagger-link-json', 'wsdl', 'wsdl-link', - * 'openapi', 'openapi+json', 'openapi-link' + * 'openapi', 'openapi+json', 'openapi-link', 'openapi+json-link' */ format?: ContentFormat; /** @@ -1482,6 +1475,16 @@ export interface ApiVersionSetContract extends Resource { versioningScheme: VersioningScheme; } +/** + * Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. + */ +export interface ClientSecretContract { + /** + * Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. + */ + clientSecret?: string; +} + /** * OAuth acquire token request body parameter (www-url-form-encoded). */ @@ -1540,7 +1543,8 @@ export interface AuthorizationServerContractBaseProperties { */ bearerTokenSendingMethods?: BearerTokenSendingMethod[]; /** - * Client or app secret registered with this authorization server. + * Client or app secret registered with this authorization server. This property will not be + * filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ clientSecret?: string; /** @@ -1599,7 +1603,8 @@ export interface AuthorizationServerUpdateContract extends Resource { */ bearerTokenSendingMethods?: BearerTokenSendingMethod[]; /** - * Client or app secret registered with this authorization server. + * Client or app secret registered with this authorization server. This property will not be + * filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ clientSecret?: string; /** @@ -1679,7 +1684,8 @@ export interface AuthorizationServerContract extends Resource { */ bearerTokenSendingMethods?: BearerTokenSendingMethod[]; /** - * Client or app secret registered with this authorization server. + * Client or app secret registered with this authorization server. This property will not be + * filled on 'GET' operations! Use '/listSecrets' POST request to get the value. */ clientSecret?: string; /** @@ -2253,6 +2259,11 @@ export interface AdditionalLocation { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly gatewayRegionalUrl?: string; + /** + * Property only valid for an Api Management service deployed in multiple locations. This can be + * used to disable the gateway in this additional location. Default value: false. + */ + disableGateway?: boolean; } /** @@ -2277,6 +2288,17 @@ export interface ApiManagementServiceBackupRestoreParameters { backupName: string; } +/** + * Control Plane Apis version constraint for the API Management service. + */ +export interface ApiVersionConstraint { + /** + * Limit control plane API calls to API Management service with version equal to or newer than + * this value. + */ + minApiVersion?: string; +} + /** * Base Properties of an API Management service resource description. */ @@ -2329,6 +2351,11 @@ export interface ApiManagementServiceBaseProperties { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly scmUrl?: string; + /** + * DEveloper Portal endpoint URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly developerPortalUrl?: string; /** * Custom hostname configuration of the API Management service. */ @@ -2379,7 +2406,9 @@ export interface ApiManagementServiceBaseProperties { * TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. * For example, * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. - * The default value is `true` for them. + * The default value is `true` for them. Note: next ciphers can't be disabled since they are + * required by Azure CloudService internal components: + * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ customProperties?: { [propertyName: string]: string }; /** @@ -2393,6 +2422,11 @@ export interface ApiManagementServiceBaseProperties { * the certificate in the policy on the gateway. Default value: false. */ enableClientCertificate?: boolean; + /** + * Property only valid for an Api Management service deployed in multiple locations. This can be + * used to disable the gateway in master region. Default value: false. + */ + disableGateway?: boolean; /** * The type of VPN in which API Management service needs to be configured in. None (Default * Value) means the API Management service is not part of any Virtual Network, External means the @@ -2402,12 +2436,39 @@ export interface ApiManagementServiceBaseProperties { * 'Internal'. Default value: 'None'. */ virtualNetworkType?: VirtualNetworkType; + /** + * Control Plane Apis version constraint for the API Management service. + */ + apiVersionConstraint?: ApiVersionConstraint; +} + +/** + * An interface representing ApiManagementServiceIdentityUserAssignedIdentitiesValue. + */ +export interface ApiManagementServiceIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: string; } /** * Identity properties of the Api Management service resource. */ export interface ApiManagementServiceIdentity { + /** + * The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes + * both an implicitly created identity and a set of user assigned identities. The type 'None' + * will remove any identities from the service. Possible values include: 'SystemAssigned', + * 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + */ + type: ApimIdentityType; /** * The principal id of the identity. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2418,6 +2479,7 @@ export interface ApiManagementServiceIdentity { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; + userAssignedIdentities?: { [propertyName: string]: ApiManagementServiceIdentityUserAssignedIdentitiesValue }; } /** @@ -2497,6 +2559,11 @@ export interface ApiManagementServiceResource extends ApimResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly scmUrl?: string; + /** + * DEveloper Portal endpoint URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly developerPortalUrl?: string; /** * Custom hostname configuration of the API Management service. */ @@ -2547,7 +2614,9 @@ export interface ApiManagementServiceResource extends ApimResource { * TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. * For example, * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. - * The default value is `true` for them. + * The default value is `true` for them. Note: next ciphers can't be disabled since they are + * required by Azure CloudService internal components: + * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ customProperties?: { [propertyName: string]: string }; /** @@ -2561,6 +2630,11 @@ export interface ApiManagementServiceResource extends ApimResource { * the certificate in the policy on the gateway. Default value: false. */ enableClientCertificate?: boolean; + /** + * Property only valid for an Api Management service deployed in multiple locations. This can be + * used to disable the gateway in master region. Default value: false. + */ + disableGateway?: boolean; /** * The type of VPN in which API Management service needs to be configured in. None (Default * Value) means the API Management service is not part of any Virtual Network, External means the @@ -2570,6 +2644,10 @@ export interface ApiManagementServiceResource extends ApimResource { * 'Internal'. Default value: 'None'. */ virtualNetworkType?: VirtualNetworkType; + /** + * Control Plane Apis version constraint for the API Management service. + */ + apiVersionConstraint?: ApiVersionConstraint; /** * Publisher email. */ @@ -2649,6 +2727,11 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly scmUrl?: string; + /** + * DEveloper Portal endpoint URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly developerPortalUrl?: string; /** * Custom hostname configuration of the API Management service. */ @@ -2699,7 +2782,9 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. * For example, * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. - * The default value is `true` for them. + * The default value is `true` for them. Note: next ciphers can't be disabled since they are + * required by Azure CloudService internal components: + * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ customProperties?: { [propertyName: string]: string }; /** @@ -2713,6 +2798,11 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * the certificate in the policy on the gateway. Default value: false. */ enableClientCertificate?: boolean; + /** + * Property only valid for an Api Management service deployed in multiple locations. This can be + * used to disable the gateway in master region. Default value: false. + */ + disableGateway?: boolean; /** * The type of VPN in which API Management service needs to be configured in. None (Default * Value) means the API Management service is not part of any Virtual Network, External means the @@ -2722,6 +2812,10 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * 'Internal'. Default value: 'None'. */ virtualNetworkType?: VirtualNetworkType; + /** + * Control Plane Apis version constraint for the API Management service. + */ + apiVersionConstraint?: ApiVersionConstraint; /** * Publisher email. */ @@ -3115,6 +3209,10 @@ export interface IdentityProviderBaseParameters { * 'twitter', 'aad', 'aadB2C' */ type?: IdentityProviderType; + /** + * The TenantId to use instead of Common when logging into Active Directory + */ + signinTenant?: string; /** * List of Allowed Tenants when configuring Azure Active Directory login. */ @@ -3150,6 +3248,10 @@ export interface IdentityProviderUpdateParameters { * 'twitter', 'aad', 'aadB2C' */ type?: IdentityProviderType; + /** + * The TenantId to use instead of Common when logging into Active Directory + */ + signinTenant?: string; /** * List of Allowed Tenants when configuring Azure Active Directory login. */ @@ -3196,6 +3298,10 @@ export interface IdentityProviderContract extends Resource { * 'twitter', 'aad', 'aadB2C' */ identityProviderContractType?: IdentityProviderType; + /** + * The TenantId to use instead of Common when logging into Active Directory + */ + signinTenant?: string; /** * List of Allowed Tenants when configuring Azure Active Directory login. */ @@ -3228,9 +3334,10 @@ export interface IdentityProviderContract extends Resource { /** * Client secret of the Application in external Identity Provider, used to authenticate login * request. For example, it is App Secret for Facebook login, API Key for Google login, Public - * Key for Microsoft. + * Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' + * POST request to get the value. */ - clientSecret: string; + clientSecret?: string; } /** @@ -3477,24 +3584,14 @@ export interface OpenidConnectProviderContract extends Resource { } /** - * Policy snippet. + * Policy description details. */ -export interface PolicySnippetContract { +export interface PolicyDescriptionContract extends Resource { /** - * Snippet name. + * Policy description. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; - /** - * Snippet content. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly content?: string; - /** - * Snippet toolTip. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly toolTip?: string; + readonly description?: string; /** * Binary OR value of the Snippet scope. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -3503,13 +3600,17 @@ export interface PolicySnippetContract { } /** - * The response of the list policy snippets operation. + * Descriptions of APIM policies. */ -export interface PolicySnippetsCollection { +export interface PolicyDescriptionCollection { + /** + * Descriptions of APIM policies. + */ + value?: PolicyDescriptionContract[]; /** - * Policy snippet value. + * Total record count number. */ - value?: PolicySnippetContract[]; + count?: number; } /** @@ -3659,13 +3760,15 @@ export interface SubscriptionContract extends Resource { */ notificationDate?: Date; /** - * Subscription primary key. + * Subscription primary key. This property will not be filled on 'GET' operations! Use + * '/listSecrets' POST request to get the value. */ - primaryKey: string; + primaryKey?: string; /** - * Subscription secondary key. + * Subscription secondary key. This property will not be filled on 'GET' operations! Use + * '/listSecrets' POST request to get the value. */ - secondaryKey: string; + secondaryKey?: string; /** * Optional subscription comment added by an administrator. */ @@ -3724,11 +3827,11 @@ export interface ProductUpdateParameters { } /** - * Property Entity Base Parameters set. + * NamedValue Entity Base Parameters set. */ -export interface PropertyEntityBaseParameters { +export interface NamedValueEntityBaseParameters { /** - * Optional tags that when provided can be used to filter the property list. + * Optional tags that when provided can be used to filter the NamedValue list. */ tags?: string[]; /** @@ -3739,11 +3842,11 @@ export interface PropertyEntityBaseParameters { } /** - * Property update Parameters. + * NamedValue details. */ -export interface PropertyUpdateParameters { +export interface NamedValueContract extends Resource { /** - * Optional tags that when provided can be used to filter the property list. + * Optional tags that when provided can be used to filter the NamedValue list. */ tags?: string[]; /** @@ -3752,23 +3855,23 @@ export interface PropertyUpdateParameters { */ secret?: boolean; /** - * Unique name of Property. It may contain only letters, digits, period, dash, and underscore + * Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore * characters. */ - displayName?: string; + displayName: string; /** - * Value of the property. Can contain policy expressions. It may not be empty or consist only of - * whitespace. + * Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only + * of whitespace. */ - value?: string; + value: string; } /** - * Property details. + * NamedValue update Parameters. */ -export interface PropertyContract extends Resource { +export interface NamedValueUpdateParameters { /** - * Optional tags that when provided can be used to filter the property list. + * Optional tags that when provided can be used to filter the NamedValue list. */ tags?: string[]; /** @@ -3777,15 +3880,15 @@ export interface PropertyContract extends Resource { */ secret?: boolean; /** - * Unique name of Property. It may contain only letters, digits, period, dash, and underscore + * Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore * characters. */ - displayName: string; + displayName?: string; /** - * Value of the property. Can contain policy expressions. It may not be empty or consist only of - * whitespace. + * Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only + * of whitespace. */ - value: string; + value?: string; } /** @@ -4049,6 +4152,20 @@ export interface ReportRecordContract { serviceTimeMax?: number; } +/** + * Subscription keys. + */ +export interface SubscriptionKeysContract { + /** + * Subscription primary key. + */ + primaryKey?: string; + /** + * Subscription secondary key. + */ + secondaryKey?: string; +} + /** * Subscription update details. */ @@ -4286,11 +4403,13 @@ export interface AccessInformationContract { */ id?: string; /** - * Primary access key. + * Primary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' + * POST request to get the value. */ primaryKey?: string; /** - * Secondary access key. + * Secondary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' + * POST request to get the value. */ secondaryKey?: string; /** @@ -4847,6 +4966,17 @@ export interface ApiSchemaDeleteMethodOptionalParams extends msRest.RequestOptio force?: boolean; } +/** + * Optional Parameters. + */ +export interface ApiSchemaBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an + * entity. + */ + ifMatch?: string; +} + /** * Optional Parameters. */ @@ -5521,7 +5651,7 @@ export interface PolicyCreateOrUpdateOptionalParams extends msRest.RequestOption /** * Optional Parameters. */ -export interface PolicySnippetListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface PolicyDescriptionListByServiceOptionalParams extends msRest.RequestOptionsBase { /** * Policy scope. Possible values include: 'Tenant', 'Product', 'Api', 'Operation', 'All' */ @@ -5740,7 +5870,7 @@ export interface ProductPolicyCreateOrUpdateOptionalParams extends msRest.Reques /** * Optional Parameters. */ -export interface PropertyListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface NamedValueListByServiceOptionalParams extends msRest.RequestOptionsBase { /** * | Field | Usage | Supported operators | Supported functions * |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, @@ -5761,7 +5891,18 @@ export interface PropertyListByServiceOptionalParams extends msRest.RequestOptio /** * Optional Parameters. */ -export interface PropertyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface NamedValueCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * ETag of the Entity. Not required when creating an entity, but required when updating an + * entity. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface NamedValueBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * ETag of the Entity. Not required when creating an entity, but required when updating an * entity. @@ -7075,7 +7216,7 @@ export interface TagGetByProductHeaders { /** * Defines headers for GetEntityTag operation. */ -export interface PropertyGetEntityTagHeaders { +export interface NamedValueGetEntityTagHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7086,7 +7227,7 @@ export interface PropertyGetEntityTagHeaders { /** * Defines headers for Get operation. */ -export interface PropertyGetHeaders { +export interface NamedValueGetHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7097,7 +7238,18 @@ export interface PropertyGetHeaders { /** * Defines headers for CreateOrUpdate operation. */ -export interface PropertyCreateOrUpdateHeaders { +export interface NamedValueCreateOrUpdateHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for Update operation. + */ +export interface NamedValueUpdateHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7193,6 +7345,17 @@ export interface TenantAccessGetHeaders { eTag: string; } +/** + * Defines headers for ListSecrets operation. + */ +export interface TenantAccessListSecretsHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + /** * Defines headers for Get operation. */ @@ -7204,6 +7367,17 @@ export interface TenantAccessGitGetHeaders { eTag: string; } +/** + * Defines headers for ListSecrets operation. + */ +export interface TenantAccessGitListSecretsHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + /** * Defines headers for GetEntityTag operation. */ @@ -7605,10 +7779,10 @@ export interface SubscriptionCollection extends Array { /** * @interface - * Paged Property list representation. - * @extends Array + * Paged NamedValue list representation. + * @extends Array */ -export interface PropertyCollection extends Array { +export interface NamedValueCollection extends Array { /** * Next page link if any. */ @@ -7710,11 +7884,11 @@ export type Protocol = 'http' | 'https'; /** * Defines values for ContentFormat. * Possible values include: 'wadl-xml', 'wadl-link-json', 'swagger-json', 'swagger-link-json', - * 'wsdl', 'wsdl-link', 'openapi', 'openapi+json', 'openapi-link' + * 'wsdl', 'wsdl-link', 'openapi', 'openapi+json', 'openapi-link', 'openapi+json-link' * @readonly * @enum {string} */ -export type ContentFormat = 'wadl-xml' | 'wadl-link-json' | 'swagger-json' | 'swagger-link-json' | 'wsdl' | 'wsdl-link' | 'openapi' | 'openapi+json' | 'openapi-link'; +export type ContentFormat = 'wadl-xml' | 'wadl-link-json' | 'swagger-json' | 'swagger-link-json' | 'wsdl' | 'wsdl-link' | 'openapi' | 'openapi+json' | 'openapi-link' | 'openapi+json-link'; /** * Defines values for SoapApiType. @@ -7756,6 +7930,22 @@ export type SamplingType = 'fixed'; */ export type AlwaysLog = 'allErrors'; +/** + * Defines values for HttpCorrelationProtocol. + * Possible values include: 'None', 'Legacy', 'W3C' + * @readonly + * @enum {string} + */ +export type HttpCorrelationProtocol = 'None' | 'Legacy' | 'W3C'; + +/** + * Defines values for Verbosity. + * Possible values include: 'verbose', 'information', 'error' + * @readonly + * @enum {string} + */ +export type Verbosity = 'verbose' | 'information' | 'error'; + /** * Defines values for PolicyContentFormat. * Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link' @@ -7845,6 +8035,15 @@ export type HostnameType = 'Proxy' | 'Portal' | 'Management' | 'Scm' | 'Develope */ export type VirtualNetworkType = 'None' | 'External' | 'Internal'; +/** + * Defines values for ApimIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', + * 'None' + * @readonly + * @enum {string} + */ +export type ApimIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; + /** * Defines values for NameAvailabilityReason. * Possible values include: 'Valid', 'Invalid', 'AlreadyExists' @@ -7968,11 +8167,11 @@ export type PolicyScopeContract = 'Tenant' | 'Product' | 'Api' | 'Operation' | ' /** * Defines values for ExportFormat. - * Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi', 'OpenapiJson' * @readonly * @enum {string} */ -export type ExportFormat = 'swagger-link' | 'wsdl-link' | 'wadl-link' | 'openapi-link'; +export type ExportFormat = 'swagger-link' | 'wsdl-link' | 'wadl-link' | 'openapi-link' | 'openapi+json-link'; /** * Defines values for VersioningScheme1. @@ -9865,6 +10064,26 @@ export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerContr }; }; +/** + * Contains response data for the listSecrets operation. + */ +export type AuthorizationServerListSecretsResponse = ClientSecretContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClientSecretContract; + }; +}; + /** * Contains response data for the listByServiceNext operation. */ @@ -11140,6 +11359,26 @@ export type IdentityProviderCreateOrUpdateResponse = IdentityProviderContract & }; }; +/** + * Contains response data for the listSecrets operation. + */ +export type IdentityProviderListSecretsResponse = ClientSecretContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClientSecretContract; + }; +}; + /** * Contains response data for the listByServiceNext operation. */ @@ -11665,6 +11904,26 @@ export type OpenIdConnectProviderCreateOrUpdateResponse = OpenidConnectProviderC }; }; +/** + * Contains response data for the listSecrets operation. + */ +export type OpenIdConnectProviderListSecretsResponse = ClientSecretContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ClientSecretContract; + }; +}; + /** * Contains response data for the listByServiceNext operation. */ @@ -11773,7 +12032,7 @@ export type PolicyCreateOrUpdateResponse = PolicyContract & PolicyCreateOrUpdate /** * Contains response data for the listByService operation. */ -export type PolicySnippetListByServiceResponse = PolicySnippetsCollection & { +export type PolicyDescriptionListByServiceResponse = PolicyDescriptionCollection & { /** * The underlying HTTP response. */ @@ -11786,7 +12045,7 @@ export type PolicySnippetListByServiceResponse = PolicySnippetsCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicySnippetsCollection; + parsedBody: PolicyDescriptionCollection; }; }; @@ -12363,7 +12622,7 @@ export type ProductPolicyCreateOrUpdateResponse = PolicyContract & ProductPolicy /** * Contains response data for the listByService operation. */ -export type PropertyListByServiceResponse = PropertyCollection & { +export type NamedValueListByServiceResponse = NamedValueCollection & { /** * The underlying HTTP response. */ @@ -12376,14 +12635,14 @@ export type PropertyListByServiceResponse = PropertyCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyCollection; + parsedBody: NamedValueCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type PropertyGetEntityTagResponse = PropertyGetEntityTagHeaders & { +export type NamedValueGetEntityTagResponse = NamedValueGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -12391,14 +12650,14 @@ export type PropertyGetEntityTagResponse = PropertyGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: PropertyGetEntityTagHeaders; + parsedHeaders: NamedValueGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { +export type NamedValueGetResponse = NamedValueContract & NamedValueGetHeaders & { /** * The underlying HTTP response. */ @@ -12406,7 +12665,7 @@ export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: PropertyGetHeaders; + parsedHeaders: NamedValueGetHeaders; /** * The response body as text (string format) @@ -12416,14 +12675,39 @@ export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyContract; + parsedBody: NamedValueContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type PropertyCreateOrUpdateResponse = PropertyContract & PropertyCreateOrUpdateHeaders & { +export type NamedValueCreateOrUpdateResponse = NamedValueContract & NamedValueCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: NamedValueCreateOrUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NamedValueContract; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type NamedValueUpdateResponse = NamedValueContract & NamedValueUpdateHeaders & { /** * The underlying HTTP response. */ @@ -12431,7 +12715,7 @@ export type PropertyCreateOrUpdateResponse = PropertyContract & PropertyCreateOr /** * The parsed HTTP response headers. */ - parsedHeaders: PropertyCreateOrUpdateHeaders; + parsedHeaders: NamedValueUpdateHeaders; /** * The response body as text (string format) @@ -12441,14 +12725,14 @@ export type PropertyCreateOrUpdateResponse = PropertyContract & PropertyCreateOr /** * The response body as parsed JSON or XML */ - parsedBody: PropertyContract; + parsedBody: NamedValueContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type PropertyListByServiceNextResponse = PropertyCollection & { +export type NamedValueListByServiceNextResponse = NamedValueCollection & { /** * The underlying HTTP response. */ @@ -12461,7 +12745,7 @@ export type PropertyListByServiceNextResponse = PropertyCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyCollection; + parsedBody: NamedValueCollection; }; }; @@ -12930,6 +13214,26 @@ export type SubscriptionCreateOrUpdateResponse = SubscriptionContract & Subscrip }; }; +/** + * Contains response data for the listSecrets operation. + */ +export type SubscriptionListSecretsResponse = SubscriptionKeysContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SubscriptionKeysContract; + }; +}; + /** * Contains response data for the listNext operation. */ @@ -13030,6 +13334,31 @@ export type TenantAccessGetResponse = AccessInformationContract & TenantAccessGe }; }; +/** + * Contains response data for the listSecrets operation. + */ +export type TenantAccessListSecretsResponse = AccessInformationContract & TenantAccessListSecretsHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TenantAccessListSecretsHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccessInformationContract; + }; +}; + /** * Contains response data for the get operation. */ @@ -13055,6 +13384,31 @@ export type TenantAccessGitGetResponse = AccessInformationContract & TenantAcces }; }; +/** + * Contains response data for the listSecrets operation. + */ +export type TenantAccessGitListSecretsResponse = AccessInformationContract & TenantAccessGitListSecretsHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TenantAccessGitListSecretsHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccessInformationContract; + }; +}; + /** * Contains response data for the deploy operation. */ diff --git a/sdk/apimanagement/arm-apimanagement/src/models/issueMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/issueMappers.ts index 7bfd25b66236..8344e79955b2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/issueMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/issueMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -50,6 +52,7 @@ export { IssueContract, IssueGetHeaders, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -58,11 +61,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,7 +76,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts index c23b4d5dafc6..bf2f8cbfdeb4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -53,6 +55,7 @@ export { LoggerGetEntityTagHeaders, LoggerGetHeaders, LoggerUpdateContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +79,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index 6b65ce34b85f..4472c5e63688 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts @@ -450,12 +450,6 @@ export const AuthenticationSettingsContract: msRest.CompositeMapper = { name: "Composite", className: "OpenIdAuthenticationSettingsContract" } - }, - subscriptionKeyRequired: { - serializedName: "subscriptionKeyRequired", - type: { - name: "Boolean" - } } } } @@ -874,6 +868,12 @@ export const TagDescriptionContract: msRest.CompositeMapper = { name: "String" } }, + tagId: { + serializedName: "properties.tagId", + type: { + name: "String" + } + }, displayName: { serializedName: "properties.displayName", constraints: { @@ -1244,45 +1244,33 @@ export const DiagnosticContract: msRest.CompositeMapper = { className: "PipelineDiagnosticSettings" } }, - enableHttpCorrelationHeaders: { - serializedName: "properties.enableHttpCorrelationHeaders", + logClientIp: { + serializedName: "properties.logClientIp", type: { name: "Boolean" } - } - } - } -}; - -export const SchemaContract: msRest.CompositeMapper = { - serializedName: "SchemaContract", - type: { - name: "Composite", - className: "SchemaContract", - modelProperties: { - ...Resource.type.modelProperties, - contentType: { - required: true, - serializedName: "properties.contentType", + }, + httpCorrelationProtocol: { + serializedName: "properties.httpCorrelationProtocol", type: { name: "String" } }, - document: { - serializedName: "properties.document", + verbosity: { + serializedName: "properties.verbosity", type: { - name: "Object" + name: "String" } } } } }; -export const SchemaCreateOrUpdateContract: msRest.CompositeMapper = { - serializedName: "SchemaCreateOrUpdateContract", +export const SchemaContract: msRest.CompositeMapper = { + serializedName: "SchemaContract", type: { name: "Composite", - className: "SchemaCreateOrUpdateContract", + className: "SchemaContract", modelProperties: { ...Resource.type.modelProperties, contentType: { @@ -1297,6 +1285,12 @@ export const SchemaCreateOrUpdateContract: msRest.CompositeMapper = { type: { name: "String" } + }, + definitions: { + serializedName: "properties.document.definitions", + type: { + name: "Object" + } } } } @@ -2580,6 +2574,22 @@ export const ApiVersionSetContract: msRest.CompositeMapper = { } }; +export const ClientSecretContract: msRest.CompositeMapper = { + serializedName: "ClientSecretContract", + type: { + name: "Composite", + className: "ClientSecretContract", + modelProperties: { + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + } + } + } +}; + export const TokenBodyParameterContract: msRest.CompositeMapper = { serializedName: "TokenBodyParameterContract", type: { @@ -3978,6 +3988,13 @@ export const AdditionalLocation: msRest.CompositeMapper = { type: { name: "String" } + }, + disableGateway: { + serializedName: "disableGateway", + defaultValue: false, + type: { + name: "Boolean" + } } } } @@ -4021,6 +4038,22 @@ export const ApiManagementServiceBackupRestoreParameters: msRest.CompositeMapper } }; +export const ApiVersionConstraint: msRest.CompositeMapper = { + serializedName: "ApiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint", + modelProperties: { + minApiVersion: { + serializedName: "minApiVersion", + type: { + name: "String" + } + } + } + } +}; + export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { serializedName: "ApiManagementServiceBaseProperties", type: { @@ -4092,6 +4125,13 @@ export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "hostnameConfigurations", type: { @@ -4177,12 +4217,50 @@ export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { name: "Boolean" } }, + disableGateway: { + serializedName: "disableGateway", + defaultValue: false, + type: { + name: "Boolean" + } + }, virtualNetworkType: { serializedName: "virtualNetworkType", defaultValue: 'None', type: { name: "String" } + }, + apiVersionConstraint: { + serializedName: "apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint" + } + } + } + } +}; + +export const ApiManagementServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceIdentity_userAssignedIdentitiesValue", + type: { + name: "Composite", + className: "ApiManagementServiceIdentityUserAssignedIdentitiesValue", + modelProperties: { + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + readOnly: true, + serializedName: "clientId", + type: { + name: "String" + } } } } @@ -4196,9 +4274,7 @@ export const ApiManagementServiceIdentity: msRest.CompositeMapper = { modelProperties: { type: { required: true, - isConstant: true, serializedName: "type", - defaultValue: 'SystemAssigned', type: { name: "String" } @@ -4216,6 +4292,18 @@ export const ApiManagementServiceIdentity: msRest.CompositeMapper = { type: { name: "Uuid" } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ApiManagementServiceIdentityUserAssignedIdentitiesValue" + } + } + } } } } @@ -4335,6 +4423,13 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "properties.developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "properties.hostnameConfigurations", type: { @@ -4420,6 +4515,13 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { name: "Boolean" } }, + disableGateway: { + serializedName: "properties.disableGateway", + defaultValue: false, + type: { + name: "Boolean" + } + }, virtualNetworkType: { serializedName: "properties.virtualNetworkType", defaultValue: 'None', @@ -4427,6 +4529,13 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { name: "String" } }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint" + } + }, publisherEmail: { required: true, serializedName: "properties.publisherEmail", @@ -4552,6 +4661,13 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "properties.developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "properties.hostnameConfigurations", type: { @@ -4637,6 +4753,13 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + disableGateway: { + serializedName: "properties.disableGateway", + defaultValue: false, + type: { + name: "Boolean" + } + }, virtualNetworkType: { serializedName: "properties.virtualNetworkType", defaultValue: 'None', @@ -4644,6 +4767,13 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint" + } + }, publisherEmail: { serializedName: "properties.publisherEmail", constraints: { @@ -5336,6 +5466,12 @@ export const IdentityProviderBaseParameters: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "allowedTenants", constraints: { @@ -5408,6 +5544,12 @@ export const IdentityProviderUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "properties.signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "properties.allowedTenants", constraints: { @@ -5499,6 +5641,12 @@ export const IdentityProviderContract: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "properties.signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "properties.allowedTenants", constraints: { @@ -5566,7 +5714,6 @@ export const IdentityProviderContract: msRest.CompositeMapper = { } }, clientSecret: { - required: true, serializedName: "properties.clientSecret", constraints: { MinLength: 1 @@ -6024,36 +6171,23 @@ export const OpenidConnectProviderContract: msRest.CompositeMapper = { } }; -export const PolicySnippetContract: msRest.CompositeMapper = { - serializedName: "PolicySnippetContract", +export const PolicyDescriptionContract: msRest.CompositeMapper = { + serializedName: "PolicyDescriptionContract", type: { name: "Composite", - className: "PolicySnippetContract", + className: "PolicyDescriptionContract", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - content: { - readOnly: true, - serializedName: "content", - type: { - name: "String" - } - }, - toolTip: { + ...Resource.type.modelProperties, + description: { readOnly: true, - serializedName: "toolTip", + serializedName: "properties.description", type: { name: "String" } }, scope: { readOnly: true, - serializedName: "scope", + serializedName: "properties.scope", type: { name: "Number" } @@ -6062,11 +6196,11 @@ export const PolicySnippetContract: msRest.CompositeMapper = { } }; -export const PolicySnippetsCollection: msRest.CompositeMapper = { - serializedName: "PolicySnippetsCollection", +export const PolicyDescriptionCollection: msRest.CompositeMapper = { + serializedName: "PolicyDescriptionCollection", type: { name: "Composite", - className: "PolicySnippetsCollection", + className: "PolicyDescriptionCollection", modelProperties: { value: { serializedName: "value", @@ -6075,10 +6209,16 @@ export const PolicySnippetsCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicySnippetContract" + className: "PolicyDescriptionContract" } } } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } } } } @@ -6299,7 +6439,6 @@ export const SubscriptionContract: msRest.CompositeMapper = { } }, primaryKey: { - required: true, serializedName: "properties.primaryKey", constraints: { MaxLength: 256, @@ -6310,7 +6449,6 @@ export const SubscriptionContract: msRest.CompositeMapper = { } }, secondaryKey: { - required: true, serializedName: "properties.secondaryKey", constraints: { MaxLength: 256, @@ -6400,11 +6538,11 @@ export const ProductUpdateParameters: msRest.CompositeMapper = { } }; -export const PropertyEntityBaseParameters: msRest.CompositeMapper = { - serializedName: "PropertyEntityBaseParameters", +export const NamedValueEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "NamedValueEntityBaseParameters", type: { name: "Composite", - className: "PropertyEntityBaseParameters", + className: "NamedValueEntityBaseParameters", modelProperties: { tags: { serializedName: "tags", @@ -6430,12 +6568,13 @@ export const PropertyEntityBaseParameters: msRest.CompositeMapper = { } }; -export const PropertyUpdateParameters: msRest.CompositeMapper = { - serializedName: "PropertyUpdateParameters", +export const NamedValueContract: msRest.CompositeMapper = { + serializedName: "NamedValueContract", type: { name: "Composite", - className: "PropertyUpdateParameters", + className: "NamedValueContract", modelProperties: { + ...Resource.type.modelProperties, tags: { serializedName: "properties.tags", constraints: { @@ -6457,6 +6596,7 @@ export const PropertyUpdateParameters: msRest.CompositeMapper = { } }, displayName: { + required: true, serializedName: "properties.displayName", constraints: { MaxLength: 256, @@ -6468,6 +6608,7 @@ export const PropertyUpdateParameters: msRest.CompositeMapper = { } }, value: { + required: true, serializedName: "properties.value", constraints: { MaxLength: 4096, @@ -6481,13 +6622,12 @@ export const PropertyUpdateParameters: msRest.CompositeMapper = { } }; -export const PropertyContract: msRest.CompositeMapper = { - serializedName: "PropertyContract", +export const NamedValueUpdateParameters: msRest.CompositeMapper = { + serializedName: "NamedValueUpdateParameters", type: { name: "Composite", - className: "PropertyContract", + className: "NamedValueUpdateParameters", modelProperties: { - ...Resource.type.modelProperties, tags: { serializedName: "properties.tags", constraints: { @@ -6509,7 +6649,6 @@ export const PropertyContract: msRest.CompositeMapper = { } }, displayName: { - required: true, serializedName: "properties.displayName", constraints: { MaxLength: 256, @@ -6521,7 +6660,6 @@ export const PropertyContract: msRest.CompositeMapper = { } }, value: { - required: true, serializedName: "properties.value", constraints: { MaxLength: 4096, @@ -6930,6 +7068,36 @@ export const ReportRecordContract: msRest.CompositeMapper = { } }; +export const SubscriptionKeysContract: msRest.CompositeMapper = { + serializedName: "SubscriptionKeysContract", + type: { + name: "Composite", + className: "SubscriptionKeysContract", + modelProperties: { + primaryKey: { + serializedName: "primaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + export const SubscriptionUpdateParameters: msRest.CompositeMapper = { serializedName: "SubscriptionUpdateParameters", type: { @@ -9030,11 +9198,11 @@ export const TagGetByProductHeaders: msRest.CompositeMapper = { } }; -export const PropertyGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "property-getentitytag-headers", +export const NamedValueGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "namedvalue-getentitytag-headers", type: { name: "Composite", - className: "PropertyGetEntityTagHeaders", + className: "NamedValueGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -9046,11 +9214,11 @@ export const PropertyGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const PropertyGetHeaders: msRest.CompositeMapper = { - serializedName: "property-get-headers", +export const NamedValueGetHeaders: msRest.CompositeMapper = { + serializedName: "namedvalue-get-headers", type: { name: "Composite", - className: "PropertyGetHeaders", + className: "NamedValueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -9062,11 +9230,27 @@ export const PropertyGetHeaders: msRest.CompositeMapper = { } }; -export const PropertyCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "property-createorupdate-headers", +export const NamedValueCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "namedvalue-createorupdate-headers", type: { name: "Composite", - className: "PropertyCreateOrUpdateHeaders", + className: "NamedValueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueUpdateHeaders: msRest.CompositeMapper = { + serializedName: "namedvalue-update-headers", + type: { + name: "Composite", + className: "NamedValueUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -9206,6 +9390,22 @@ export const TenantAccessGetHeaders: msRest.CompositeMapper = { } }; +export const TenantAccessListSecretsHeaders: msRest.CompositeMapper = { + serializedName: "tenantaccess-listsecrets-headers", + type: { + name: "Composite", + className: "TenantAccessListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const TenantAccessGitGetHeaders: msRest.CompositeMapper = { serializedName: "tenantaccessgit-get-headers", type: { @@ -9222,6 +9422,22 @@ export const TenantAccessGitGetHeaders: msRest.CompositeMapper = { } }; +export const TenantAccessGitListSecretsHeaders: msRest.CompositeMapper = { + serializedName: "tenantaccessgit-listsecrets-headers", + type: { + name: "Composite", + className: "TenantAccessGitListSecretsHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const UserGetEntityTagHeaders: msRest.CompositeMapper = { serializedName: "user-getentitytag-headers", type: { @@ -10112,11 +10328,11 @@ export const SubscriptionCollection: msRest.CompositeMapper = { } }; -export const PropertyCollection: msRest.CompositeMapper = { - serializedName: "PropertyCollection", +export const NamedValueCollection: msRest.CompositeMapper = { + serializedName: "NamedValueCollection", type: { name: "Composite", - className: "PropertyCollection", + className: "NamedValueCollection", modelProperties: { value: { serializedName: "", @@ -10125,7 +10341,7 @@ export const PropertyCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PropertyContract" + className: "NamedValueContract" } } } diff --git a/sdk/apimanagement/arm-apimanagement/src/models/namedValueMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/namedValueMappers.ts new file mode 100644 index 000000000000..e439f9daee6c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/models/namedValueMappers.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + AdditionalLocation, + ApiContract, + ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, + ApiManagementServiceResource, + ApiManagementServiceSkuProperties, + ApiManagementServiceUpdateParameters, + ApimResource, + ApiReleaseContract, + ApiVersionConstraint, + ApiVersionSetContract, + ApiVersionSetContractDetails, + AuthenticationSettingsContract, + AuthorizationServerContract, + AuthorizationServerUpdateContract, + BackendAuthorizationHeaderCredentials, + BackendContract, + BackendCredentialsContract, + BackendProperties, + BackendProxyContract, + BackendReconnectContract, + BackendServiceFabricClusterProperties, + BackendTlsProperties, + BaseResource, + BodyDiagnosticSettings, + CacheContract, + CertificateConfiguration, + CertificateContract, + CertificateInformation, + DiagnosticContract, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, + GroupContract, + GroupContractProperties, + HostnameConfiguration, + HttpMessageDiagnostic, + IdentityProviderContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + LoggerContract, + NamedValueCollection, + NamedValueContract, + NamedValueCreateOrUpdateHeaders, + NamedValueGetEntityTagHeaders, + NamedValueGetHeaders, + NamedValueUpdateHeaders, + NamedValueUpdateParameters, + NotificationContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + OpenidConnectProviderContract, + OperationContract, + ParameterContract, + PipelineDiagnosticSettings, + PolicyContract, + PolicyDescriptionContract, + PortalDelegationSettings, + PortalSigninSettings, + PortalSignupSettings, + ProductContract, + RecipientEmailContract, + RecipientsContractProperties, + RecipientUserContract, + RegistrationDelegationSettingsProperties, + RepresentationContract, + RequestContract, + Resource, + ResponseContract, + SamplingSettings, + SchemaContract, + SubscriptionContract, + SubscriptionKeyParameterNamesContract, + SubscriptionsDelegationSettingsProperties, + TagContract, + TagDescriptionContract, + TermsOfServiceProperties, + TokenBodyParameterContract, + UserContract, + UserIdentityContract, + VirtualNetworkConfiguration, + X509CertificateName +} from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/notificationMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/notificationMappers.ts index 13c5204da562..8127533c8164 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/notificationMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/notificationMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationCollection, NotificationContract, OAuth2AuthenticationSettingsContract, @@ -57,11 +60,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts index bdd08eeb56c1..af7a8ba93979 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailCollection, RecipientEmailContract, RecipientsContractProperties, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts index 271e0693fe00..3a3f28fb1cd3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserCollection, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts index 3955587dcdc6..63d064a11da1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -34,6 +36,7 @@ export { CertificateConfiguration, CertificateContract, CertificateInformation, + ClientSecretContract, DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, @@ -48,6 +51,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +65,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +80,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index ecefc49f61d1..7a93b511a0cd 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -460,6 +460,20 @@ export const loggerId: msRest.OperationURLParameter = { } } }; +export const namedValueId: msRest.OperationURLParameter = { + parameterPath: "namedValueId", + mapper: { + required: true, + serializedName: "namedValueId", + constraints: { + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { @@ -559,20 +573,6 @@ export const productId: msRest.OperationURLParameter = { } } }; -export const propId: msRest.OperationURLParameter = { - parameterPath: "propId", - mapper: { - required: true, - serializedName: "propId", - constraints: { - MaxLength: 256, - Pattern: /^[^*#&+:<>?]+$/ - }, - type: { - name: "String" - } - } -}; export const quotaCounterKey: msRest.OperationURLParameter = { parameterPath: "quotaCounterKey", mapper: { @@ -718,6 +718,21 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const tagDescriptionId: msRest.OperationURLParameter = { + parameterPath: "tagDescriptionId", + mapper: { + required: true, + serializedName: "tagDescriptionId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; export const tagId: msRest.OperationURLParameter = { parameterPath: "tagId", mapper: { diff --git a/sdk/apimanagement/arm-apimanagement/src/models/propertyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/policyDescriptionMappers.ts similarity index 92% rename from sdk/apimanagement/arm-apimanagement/src/models/propertyMappers.ts rename to sdk/apimanagement/arm-apimanagement/src/models/policyDescriptionMappers.ts index 6412f6f50666..55cc8366bc13 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/propertyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/policyDescriptionMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,16 +59,12 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionCollection, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyCollection, - PropertyContract, - PropertyCreateOrUpdateHeaders, - PropertyGetEntityTagHeaders, - PropertyGetHeaders, - PropertyUpdateParameters, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts index 30f4ebce5764..f061f7e34d33 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -58,13 +61,13 @@ export { PolicyCollection, PolicyContract, PolicyCreateOrUpdateHeaders, + PolicyDescriptionContract, PolicyGetEntityTagHeaders, PolicyGetHeaders, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/policySnippetMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/policySnippetMappers.ts deleted file mode 100644 index 954c397e162c..000000000000 --- a/sdk/apimanagement/arm-apimanagement/src/models/policySnippetMappers.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - ErrorFieldContract, - ErrorResponse, - PolicySnippetContract, - PolicySnippetsCollection -} from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productApiMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productApiMappers.ts index 3286f5c7b521..e02b59a7c1fb 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productApiMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productApiMappers.ts @@ -11,11 +11,13 @@ export { ApiCollection, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -49,6 +51,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +60,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts index 5e6b3bf3190e..b808a7e74e64 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -49,6 +51,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +60,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts index 35190c904e56..46de0923d140 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts @@ -12,12 +12,14 @@ export { ApiContractProperties, ApiEntityBaseContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, ApiTagResourceContractProperties, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -51,6 +53,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,6 +63,7 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, @@ -71,7 +75,6 @@ export { ProductGetHeaders, ProductTagResourceContractProperties, ProductUpdateParameters, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -82,7 +85,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts index 020c559805dc..cd87aa95c528 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,6 +60,7 @@ export { PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, @@ -64,7 +68,6 @@ export { ProductPolicyCreateOrUpdateHeaders, ProductPolicyGetEntityTagHeaders, ProductPolicyGetHeaders, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +78,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts index 153310815752..415ffa420a06 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +74,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionCollection, SubscriptionContract, SubscriptionKeyParameterNamesContract, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts index 5d6c0671b47e..d017070f1d96 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +74,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SignInSettingsGetEntityTagHeaders, SignInSettingsGetHeaders, SubscriptionContract, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts index 7e47f95961ff..7c16810d0535 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +74,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SignUpSettingsGetEntityTagHeaders, SignUpSettingsGetHeaders, SubscriptionContract, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts index a273cbdac0fa..659b2ab4d49e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +74,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionCollection, SubscriptionContract, SubscriptionCreateOrUpdateHeaders, @@ -79,6 +81,7 @@ export { SubscriptionGetEntityTagHeaders, SubscriptionGetHeaders, SubscriptionKeyParameterNamesContract, + SubscriptionKeysContract, SubscriptionsDelegationSettingsProperties, SubscriptionUpdateParameters, TagContract, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts index 4fe85a75f430..1dec5f402066 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +74,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessGitMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessGitMappers.ts index 067c998f429c..0ca93979ab37 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessGitMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessGitMappers.ts @@ -10,5 +10,6 @@ export { AccessInformationContract, ErrorFieldContract, ErrorResponse, - TenantAccessGitGetHeaders + TenantAccessGitGetHeaders, + TenantAccessGitListSecretsHeaders } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessMappers.ts index 5b5a9c7abbf0..3605444a18b5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/tenantAccessMappers.ts @@ -12,5 +12,6 @@ export { ErrorFieldContract, ErrorResponse, TenantAccessGetEntityTagHeaders, - TenantAccessGetHeaders + TenantAccessGetHeaders, + TenantAccessListSecretsHeaders } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/userGroupMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/userGroupMappers.ts index 5e6b3bf3190e..b808a7e74e64 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/userGroupMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/userGroupMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -49,6 +51,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +60,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts index 7ce3db17b830..e82c99334af9 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -49,6 +51,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +60,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +75,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts index 153310815752..415ffa420a06 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts @@ -10,11 +10,13 @@ export { AdditionalLocation, ApiContract, ApiManagementServiceIdentity, + ApiManagementServiceIdentityUserAssignedIdentitiesValue, ApiManagementServiceResource, ApiManagementServiceSkuProperties, ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, AuthenticationSettingsContract, @@ -48,6 +50,7 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +59,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +74,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionCollection, SubscriptionContract, SubscriptionKeyParameterNamesContract, diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts index eccbf4429a22..df074d370348 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiExport.ts @@ -34,7 +34,7 @@ export class ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid - * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi', 'OpenapiJson' * @param [options] The optional parameters * @returns Promise */ @@ -45,7 +45,7 @@ export class ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid - * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi', 'OpenapiJson' * @param callback The callback */ get(resourceGroupName: string, serviceName: string, apiId: string, format: Models.ExportFormat, callback: msRest.ServiceCallback): void; @@ -55,7 +55,7 @@ export class ApiExport { * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. * @param format Format in which to export the Api Details to the Storage Blob with Sas Key valid - * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi', 'OpenapiJson' * @param options The optional parameters * @param callback The callback */ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts index e098f991f33b..b2239b624ec4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementService.ts @@ -453,7 +453,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiManagementServiceResource }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -477,7 +477,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiManagementServiceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -525,7 +525,7 @@ const getSsoTokenOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -555,7 +555,7 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -588,7 +588,7 @@ const beginRestoreOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -621,7 +621,7 @@ const beginBackupOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -657,7 +657,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -690,7 +690,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -717,7 +717,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { }, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -750,7 +750,7 @@ const beginApplyNetworkConfigurationUpdatesOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -771,7 +771,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ApiManagementServiceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts index 4ed93c82e480..1ab8969c599a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiManagementServiceSkus.ts @@ -110,7 +110,7 @@ const listAvailableServiceSkusOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceSkuResults }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -131,7 +131,7 @@ const listAvailableServiceSkusNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ResourceSkuResults }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts index da91eb979f4d..0dd8f3e7d781 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiSchema.ts @@ -9,6 +9,7 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; import * as Mappers from "../models/apiSchemaMappers"; import * as Parameters from "../models/parameters"; @@ -169,42 +170,9 @@ export class ApiSchema { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaCreateOrUpdateContract, options?: Models.ApiSchemaCreateOrUpdateOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param apiId API revision identifier. Must be unique in the current API Management service - * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. - * @param parameters The schema contents to apply. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaCreateOrUpdateContract, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param apiId API revision identifier. Must be unique in the current API Management service - * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param schemaId Schema identifier within an API. Must be unique in the current API Management - * service instance. - * @param parameters The schema contents to apply. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaCreateOrUpdateContract, options: Models.ApiSchemaCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaCreateOrUpdateContract, options?: Models.ApiSchemaCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - apiId, - schemaId, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaContract, options?: Models.ApiSchemaCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serviceName,apiId,schemaId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -260,6 +228,32 @@ export class ApiSchema { callback); } + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters The schema contents to apply. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaContract, options?: Models.ApiSchemaBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + apiId, + schemaId, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + /** * Get the schema configuration at the API level. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -375,8 +369,8 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", urlParameters: [ Parameters.resourceGroupName, @@ -386,28 +380,16 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.force, Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.SchemaCreateOrUpdateContract, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders - }, - 201: { - bodyMapper: Mappers.SchemaContract, - headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -415,8 +397,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", urlParameters: [ Parameters.resourceGroupName, @@ -426,16 +408,31 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.force, Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SchemaContract, + required: true + } + }, responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + }, + 202: { + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts index dd13e851c706..3b9dbd9265ca 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/apiTagDescription.ts @@ -72,37 +72,40 @@ export class ApiTagDescription { * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param [options] The optional parameters * @returns Promise */ - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param options The optional parameters * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, - tagId, + tagDescriptionId, options }, getEntityTagOperationSpec, @@ -115,37 +118,40 @@ export class ApiTagDescription { * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, - tagId, + tagDescriptionId, options }, getOperationSpec, @@ -158,40 +164,43 @@ export class ApiTagDescription { * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param parameters Create parameters. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, parameters: Models.TagDescriptionCreateParameters, options?: Models.ApiTagDescriptionCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, parameters: Models.TagDescriptionCreateParameters, options?: Models.ApiTagDescriptionCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param parameters Create parameters. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, parameters: Models.TagDescriptionCreateParameters, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, parameters: Models.TagDescriptionCreateParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param parameters Create parameters. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, parameters: Models.TagDescriptionCreateParameters, options: Models.ApiTagDescriptionCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, parameters: Models.TagDescriptionCreateParameters, options?: Models.ApiTagDescriptionCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, parameters: Models.TagDescriptionCreateParameters, options: Models.ApiTagDescriptionCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, parameters: Models.TagDescriptionCreateParameters, options?: Models.ApiTagDescriptionCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, - tagId, + tagDescriptionId, parameters, options }, @@ -205,43 +214,46 @@ export class ApiTagDescription { * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param callback The callback */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API revision identifier. Must be unique in the current API Management service * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param tagDescriptionId Tag description identifier. Used when creating tagDescription for + * API/Tag association. Based on API and Tag names. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, tagDescriptionId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, - tagId, + tagDescriptionId, ifMatch, options }, @@ -312,12 +324,12 @@ const listByServiceOperationSpec: msRest.OperationSpec = { const getEntityTagOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.apiId0, - Parameters.tagId, + Parameters.tagDescriptionId, Parameters.subscriptionId ], queryParameters: [ @@ -339,12 +351,12 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.apiId0, - Parameters.tagId, + Parameters.tagDescriptionId, Parameters.subscriptionId ], queryParameters: [ @@ -367,12 +379,12 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.apiId0, - Parameters.tagId, + Parameters.tagDescriptionId, Parameters.subscriptionId ], queryParameters: [ @@ -407,12 +419,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.apiId0, - Parameters.tagId, + Parameters.tagDescriptionId, Parameters.subscriptionId ], queryParameters: [ diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts index 8a3182d35653..6ec8faf37b10 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/authorizationServer.ts @@ -260,6 +260,42 @@ export class AuthorizationServer { callback); } + /** + * Gets the client secret details of the authorization server. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, authsid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, authsid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, authsid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, authsid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authsid, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + /** * Lists a collection of authorization servers defined within a service instance. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -469,6 +505,32 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.authsid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClientSecretContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listByServiceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index a9dc72ce8502..175fcd677fc5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -276,6 +276,45 @@ export class IdentityProvider { callback); } + /** + * Gets the client secret details of the Identity Provider. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + identityProviderName, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + /** * Lists a collection of Identity Provider configured in the specified service instance. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -482,6 +521,32 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.identityProviderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClientSecretContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listByServiceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts index bce8caa2814e..d5bcd463d3a2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -44,7 +44,7 @@ export * from "./notificationRecipientUser"; export * from "./notificationRecipientEmail"; export * from "./openIdConnectProvider"; export * from "./policy"; -export * from "./policySnippet"; +export * from "./policyDescription"; export * from "./signInSettings"; export * from "./signUpSettings"; export * from "./delegationSettings"; @@ -53,7 +53,7 @@ export * from "./productApi"; export * from "./productGroup"; export * from "./productSubscriptions"; export * from "./productPolicy"; -export * from "./property"; +export * from "./namedValue"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; export * from "./region"; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/property.ts b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts similarity index 55% rename from sdk/apimanagement/arm-apimanagement/src/operations/property.ts rename to sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index af83fe7a925d..48b4f794eaa5 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/property.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts @@ -9,17 +9,18 @@ */ import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as Models from "../models"; -import * as Mappers from "../models/propertyMappers"; +import * as Mappers from "../models/namedValueMappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClientContext } from "../apiManagementClientContext"; -/** Class representing a Property. */ -export class Property { +/** Class representing a NamedValue. */ +export class NamedValue { private readonly client: ApiManagementClientContext; /** - * Create a Property. + * Create a NamedValue. * @param {ApiManagementClientContext} client Reference to the service client. */ constructor(client: ApiManagementClientContext) { @@ -27,27 +28,27 @@ export class Property { } /** - * Lists a collection of properties defined within a service instance. + * Lists a collection of NamedValues defined within a service instance. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByService(resourceGroupName: string, serviceName: string, options?: Models.PropertyListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: Models.NamedValueListByServiceOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param options The optional parameters * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, options: Models.PropertyListByServiceOptionalParams, callback: msRest.ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options?: Models.PropertyListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByService(resourceGroupName: string, serviceName: string, options: Models.NamedValueListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.NamedValueListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -55,237 +56,227 @@ export class Property { options }, listByServiceOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Gets the entity state (Etag) version of the property specified by its identifier. + * Gets the entity state (Etag) version of the NamedValue specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getEntityTag(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, namedValueId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, propId: string, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, namedValueId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. * @param options The optional parameters * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, propId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityTag(resourceGroupName: string, serviceName: string, namedValueId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, namedValueId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - propId, + namedValueId, options }, getEntityTagOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Gets the details of the property specified by its identifier. + * Gets the details of the NamedValue specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serviceName: string, namedValueId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, propId: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, namedValueId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, propId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serviceName: string, namedValueId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, namedValueId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - propId, + namedValueId, options }, getOperationSpec, - callback) as Promise; + callback) as Promise; } /** - * Creates or updates a property. + * Creates or updates a NamedValue. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. * @param parameters Create parameters. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, options?: Models.PropertyCreateOrUpdateOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. - * @param parameters Create parameters. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: Models.NamedValueContract, options?: Models.NamedValueCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serviceName,namedValueId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** + * Updates the specific NamedValue. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. - * @param parameters Create parameters. - * @param options The optional parameters - * @param callback The callback + * @param namedValueId Identifier of the NamedValue. + * @param parameters Update parameters. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param [options] The optional parameters + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, options: Models.PropertyCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, options?: Models.PropertyCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - propId, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + update(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: Models.NamedValueUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,serviceName,namedValueId,parameters,ifMatch,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** - * Updates the specific property. + * Deletes specific NamedValue from the API Management service instance. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. - * @param parameters Update parameters. + * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. - * @param parameters Update parameters. + * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. - * @param parameters Update parameters. + * @param namedValueId Identifier of the NamedValue. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, namedValueId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - propId, - parameters, + namedValueId, ifMatch, options }, - updateOperationSpec, + deleteMethodOperationSpec, callback); } /** - * Deletes specific property from the API Management service instance. + * Creates or updates a NamedValue. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. - * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header - * response of the GET request or it should be * for unconditional update. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. - * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header - * response of the GET request or it should be * for unconditional update. - * @param callback The callback + * @returns Promise */ - deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: Models.NamedValueContract, options?: Models.NamedValueBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + namedValueId, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + /** + * Updates the specific NamedValue. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param propId Identifier of the property. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Update parameters. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. - * @param options The optional parameters - * @param callback The callback + * @param [options] The optional parameters + * @returns Promise */ - deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( + beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: Models.NamedValueUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( { resourceGroupName, serviceName, - propId, + namedValueId, + parameters, ifMatch, options }, - deleteMethodOperationSpec, - callback); + beginUpdateOperationSpec, + options); } /** - * Lists a collection of properties defined within a service instance. + * Lists a collection of NamedValues defined within a service instance. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByServiceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByServiceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param options The optional parameters * @param callback The callback */ - listByServiceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByServiceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByServiceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByServiceNextOperationSpec, - callback) as Promise; + callback) as Promise; } } @@ -293,7 +284,7 @@ export class Property { const serializer = new msRest.Serializer(Mappers); const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, @@ -310,7 +301,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PropertyCollection + bodyMapper: Mappers.NamedValueCollection }, default: { bodyMapper: Mappers.ErrorResponse @@ -321,11 +312,11 @@ const listByServiceOperationSpec: msRest.OperationSpec = { const getEntityTagOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.propId, + Parameters.namedValueId, Parameters.subscriptionId ], queryParameters: [ @@ -336,7 +327,7 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - headersMapper: Mappers.PropertyGetEntityTagHeaders + headersMapper: Mappers.NamedValueGetEntityTagHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -347,11 +338,11 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.propId, + Parameters.namedValueId, Parameters.subscriptionId ], queryParameters: [ @@ -362,8 +353,8 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PropertyContract, - headersMapper: Mappers.PropertyGetHeaders + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.NamedValueGetHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -372,38 +363,25 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.propId, + Parameters.namedValueId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.PropertyContract, - required: true - } - }, responses: { - 200: { - bodyMapper: Mappers.PropertyContract, - headersMapper: Mappers.PropertyCreateOrUpdateHeaders - }, - 201: { - bodyMapper: Mappers.PropertyContract, - headersMapper: Mappers.PropertyCreateOrUpdateHeaders - }, + 200: {}, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -411,31 +389,41 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.propId, + Parameters.namedValueId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.PropertyUpdateParameters, + ...Mappers.NamedValueContract, required: true } }, responses: { - 204: {}, + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + }, + 202: { + headersMapper: Mappers.NamedValueCreateOrUpdateHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -443,13 +431,13 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.propId, + Parameters.namedValueId, Parameters.subscriptionId ], queryParameters: [ @@ -459,9 +447,24 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.ifMatch1, Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.NamedValueUpdateParameters, + required: true + } + }, responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.NamedValueUpdateHeaders + }, + 202: { + headersMapper: Mappers.NamedValueUpdateHeaders + }, + 204: { + headersMapper: Mappers.NamedValueUpdateHeaders + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -481,7 +484,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PropertyCollection + bodyMapper: Mappers.NamedValueCollection }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts index 6b7772a13ea3..61367e1b6b9a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -260,6 +260,42 @@ export class OpenIdConnectProvider { callback); } + /** + * Gets the client secret details of the OpenID Connect Provider. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, opid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, opid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + opid, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + /** * Lists of all the OpenId Connect Providers. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -469,6 +505,32 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.opid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClientSecretContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listByServiceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policySnippet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts similarity index 70% rename from sdk/apimanagement/arm-apimanagement/src/operations/policySnippet.ts rename to sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts index d0ba7845bb1f..2e190512dfc7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policySnippet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -10,16 +10,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; -import * as Mappers from "../models/policySnippetMappers"; +import * as Mappers from "../models/policyDescriptionMappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClientContext } from "../apiManagementClientContext"; -/** Class representing a PolicySnippet. */ -export class PolicySnippet { +/** Class representing a PolicyDescription. */ +export class PolicyDescription { private readonly client: ApiManagementClientContext; /** - * Create a PolicySnippet. + * Create a PolicyDescription. * @param {ApiManagementClientContext} client Reference to the service client. */ constructor(client: ApiManagementClientContext) { @@ -27,27 +27,27 @@ export class PolicySnippet { } /** - * Lists all policy snippets. + * Lists all policy descriptions. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicySnippetListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicyDescriptionListByServiceOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param options The optional parameters * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, options: Models.PolicySnippetListByServiceOptionalParams, callback: msRest.ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicySnippetListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByService(resourceGroupName: string, serviceName: string, options: Models.PolicyDescriptionListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicyDescriptionListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -55,7 +55,7 @@ export class PolicySnippet { options }, listByServiceOperationSpec, - callback) as Promise; + callback) as Promise; } } @@ -63,7 +63,7 @@ export class PolicySnippet { const serializer = new msRest.Serializer(Mappers); const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policySnippets", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, @@ -78,7 +78,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PolicySnippetsCollection + bodyMapper: Mappers.PolicyDescriptionCollection }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 630cfbf109fc..6d68505b8bc1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -354,6 +354,45 @@ export class Subscription { callback); } + /** + * Gets the subscription keys. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, sid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, sid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + /** * Lists all subscriptions of the API Management service instance. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -613,6 +652,32 @@ const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { serializer }; +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionKeysContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index 79018f752dfd..c18facbb8662 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -59,7 +59,7 @@ export class TenantAccess { } /** - * Get tenant access information details + * Get tenant access information details without secrets. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -196,6 +196,38 @@ export class TenantAccess { regenerateSecondaryKeyOperationSpec, callback); } + + /** + * Get tenant access information details. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -332,3 +364,30 @@ const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccessInformationContract, + headersMapper: Mappers.TenantAccessListSecretsHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index c7fbd0f24509..3a031c37eb46 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -27,7 +27,7 @@ export class TenantAccessGit { } /** - * Gets the Git access configuration for the tenant. + * Gets the Git access configuration for the tenant. Without secrets. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -121,6 +121,38 @@ export class TenantAccessGit { regenerateSecondaryKeyOperationSpec, callback); } + + /** + * Gets the Git access configuration for the tenant. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -199,3 +231,30 @@ const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccessInformationContract, + headersMapper: Mappers.TenantAccessGitListSecretsHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true