From 2b750e897fd022d072370f932991806c1a128111 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Mon, 24 Feb 2020 20:35:46 +0000 Subject: [PATCH] Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8 Merge pull request #6 from Khushboo-Baheti/master merge --- .../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 | 9 +- .../src/models/apiIssueAttachmentMappers.ts | 9 +- .../src/models/apiIssueCommentMappers.ts | 9 +- .../src/models/apiIssueMappers.ts | 9 +- .../src/models/apiManagementServiceMappers.ts | 11 +- .../models/apiManagementServiceSkusMappers.ts | 3 +- .../src/models/apiMappers.ts | 9 +- .../src/models/apiOperationMappers.ts | 9 +- .../src/models/apiOperationPolicyMappers.ts | 9 +- .../src/models/apiPolicyMappers.ts | 9 +- .../src/models/apiProductMappers.ts | 9 +- .../src/models/apiReleaseMappers.ts | 9 +- .../src/models/apiSchemaMappers.ts | 9 +- .../src/models/apiTagDescriptionMappers.ts | 9 +- .../src/models/apiVersionSetMappers.ts | 9 +- .../src/models/authorizationServerMappers.ts | 10 +- .../src/models/backendMappers.ts | 9 +- .../src/models/cacheMappers.ts | 9 +- .../src/models/certificateMappers.ts | 9 +- .../src/models/delegationSettingsMappers.ts | 10 +- .../src/models/diagnosticMappers.ts | 9 +- .../src/models/emailTemplateMappers.ts | 9 +- .../src/models/groupMappers.ts | 9 +- .../src/models/groupUserMappers.ts | 9 +- .../src/models/identityProviderMappers.ts | 10 +- .../arm-apimanagement/src/models/index.ts | 723 +++++++++++++++--- .../src/models/issueMappers.ts | 9 +- .../src/models/loggerMappers.ts | 9 +- .../arm-apimanagement/src/models/mappers.ts | 620 ++++++++++++--- .../src/models/namedValueMappers.ts | 98 +++ .../src/models/notificationMappers.ts | 9 +- .../notificationRecipientEmailMappers.ts | 9 +- .../notificationRecipientUserMappers.ts | 9 +- .../models/openIdConnectProviderMappers.ts | 10 +- .../src/models/parameters.ts | 43 +- ...Mappers.ts => policyDescriptionMappers.ts} | 15 +- .../src/models/policyMappers.ts | 9 +- .../src/models/policySnippetMappers.ts | 14 - .../src/models/productApiMappers.ts | 9 +- .../src/models/productGroupMappers.ts | 9 +- .../src/models/productMappers.ts | 9 +- .../src/models/productPolicyMappers.ts | 9 +- .../src/models/productSubscriptionsMappers.ts | 9 +- .../src/models/signInSettingsMappers.ts | 9 +- .../src/models/signUpSettingsMappers.ts | 9 +- .../src/models/subscriptionMappers.ts | 10 +- .../src/models/tagMappers.ts | 9 +- .../src/models/tenantAccessGitMappers.ts | 3 +- .../src/models/tenantAccessMappers.ts | 3 +- .../src/models/userGroupMappers.ts | 9 +- .../src/models/userMappers.ts | 9 +- .../src/models/userSubscriptionMappers.ts | 9 +- .../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/delegationSettings.ts | 57 ++ .../src/operations/identityProvider.ts | 75 +- .../arm-apimanagement/src/operations/index.ts | 4 +- .../operations/{property.ts => namedValue.ts} | 343 +++++---- .../src/operations/openIdConnectProvider.ts | 72 +- ...{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 +- 74 files changed, 2402 insertions(+), 618 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/src/models/namedValueMappers.ts rename sdk/apimanagement/arm-apimanagement/src/models/{propertyMappers.ts => policyDescriptionMappers.ts} (89%) delete mode 100644 sdk/apimanagement/arm-apimanagement/src/models/policySnippetMappers.ts rename sdk/apimanagement/arm-apimanagement/src/operations/{property.ts => namedValue.ts} (52%) 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..e52f7ad25264 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, @@ -48,23 +50,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..6f178e49fef8 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, @@ -47,24 +49,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentCollection, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..4c6268d59f39 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, @@ -47,24 +49,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentCollection, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..5133ad82a0c9 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, @@ -47,25 +49,29 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCollection, IssueCommentContract, IssueContract, IssueUpdateContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +82,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..541ddaf11d08 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,28 +46,34 @@ export { DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +84,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..3dd4badf3b09 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, @@ -54,26 +56,30 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, OperationTagResourceContractProperties, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, ProductEntityBaseParameters, ProductTagResourceContractProperties, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -84,7 +90,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..67d40323da78 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, @@ -47,25 +49,29 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationCollection, OperationContract, OperationUpdateContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +82,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..6abcd1acb889 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, @@ -47,24 +49,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..170753e19f04 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, @@ -47,24 +49,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..146059607bf3 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, @@ -44,24 +46,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductCollection, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +78,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..939a1ecfabc4 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, @@ -48,23 +50,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..a60185bfa215 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, @@ -47,23 +49,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..ecd49b8caacf 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, @@ -47,23 +49,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -74,7 +80,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..f15de3f308f3 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, @@ -49,23 +51,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +82,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..4cd67e4f1a67 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, @@ -48,23 +51,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +82,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..be72865c6b8b 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, @@ -49,23 +51,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +82,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..b1ce3d1b418e 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, @@ -49,23 +51,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +82,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..b2845ca58c7e 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, @@ -49,23 +51,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +82,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..95b8204f8773 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, @@ -46,23 +48,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, + PortalSettingValidationKeyContract, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,7 +80,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..09bf759887e2 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, @@ -48,23 +50,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..773ca599232a 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, @@ -48,23 +50,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..5ec7e2797e06 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, @@ -50,23 +52,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -77,7 +83,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..a37dae1e6360 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +77,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..2445dc3333ad 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, @@ -44,6 +47,7 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IdentityProviderCreateOrUpdateHeaders, IdentityProviderGetEntityTagHeaders, IdentityProviderGetHeaders, @@ -53,19 +57,22 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +83,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..b5c7b14e25c7 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). */ @@ -1539,10 +1542,6 @@ export interface AuthorizationServerContractBaseProperties { * Specifies the mechanism by which access token is passed to the API. */ bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - /** - * Client or app secret registered with this authorization server. - */ - clientSecret?: string; /** * Can be optionally specified when resource owner password grant type is supported by this * authorization server. Default resource owner username. @@ -1598,10 +1597,6 @@ export interface AuthorizationServerUpdateContract extends Resource { * Specifies the mechanism by which access token is passed to the API. */ bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - /** - * Client or app secret registered with this authorization server. - */ - clientSecret?: string; /** * Can be optionally specified when resource owner password grant type is supported by this * authorization server. Default resource owner username. @@ -1633,6 +1628,11 @@ export interface AuthorizationServerUpdateContract extends Resource { * Client or app id registered with this authorization server. */ clientId?: string; + /** + * 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; } /** @@ -1678,10 +1678,6 @@ export interface AuthorizationServerContract extends Resource { * Specifies the mechanism by which access token is passed to the API. */ bearerTokenSendingMethods?: BearerTokenSendingMethod[]; - /** - * Client or app secret registered with this authorization server. - */ - clientSecret?: string; /** * Can be optionally specified when resource owner password grant type is supported by this * authorization server. Default resource owner username. @@ -1713,6 +1709,11 @@ export interface AuthorizationServerContract extends Resource { * Client or app id registered with this authorization server. */ clientId: string; + /** + * 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 +2254,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 +2283,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 +2346,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 +2401,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 +2417,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 +2431,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 +2474,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 +2554,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 +2609,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 +2625,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 +2639,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 +2722,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 +2777,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 +2793,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 +2807,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 +3204,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 +3243,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 +3293,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,7 +3329,59 @@ 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; +} + +/** + * Identity Provider details. + */ +export interface IdentityProviderCreateContract extends Resource { + /** + * Identity Provider Type identifier. Possible values include: 'facebook', 'google', 'microsoft', + * 'twitter', 'aad', 'aadB2C' + */ + identityProviderCreateContractType?: 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. + */ + allowedTenants?: string[]; + /** + * OpenID Connect discovery endpoint hostname for AAD or AAD B2C. + */ + authority?: string; + /** + * Signup Policy Name. Only applies to AAD B2C Identity Provider. + */ + signupPolicyName?: string; + /** + * Signin Policy Name. Only applies to AAD B2C Identity Provider. + */ + signinPolicyName?: string; + /** + * Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. + */ + profileEditingPolicyName?: string; + /** + * Password Reset Policy Name. Only applies to AAD B2C Identity Provider. + */ + passwordResetPolicyName?: string; + /** + * Client Id of the Application in the external Identity Provider. It is App ID for Facebook + * login, Client ID for Google login, App ID for Microsoft. + */ + clientId: string; + /** + * 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. This property will not be filled on 'GET' operations! Use '/listSecrets' + * POST request to get the value. */ clientSecret: string; } @@ -3477,24 +3630,40 @@ export interface OpenidConnectProviderContract extends Resource { } /** - * Policy snippet. + * OpenId Connect Provider details. */ -export interface PolicySnippetContract { +export interface OpenidConnectProviderCreateContract extends Resource { /** - * Snippet name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * User-friendly OpenID Connect Provider name. */ - readonly name?: string; + displayName: string; /** - * Snippet content. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * User-friendly description of OpenID Connect Provider. + */ + description?: string; + /** + * Metadata endpoint URI. + */ + metadataEndpoint: string; + /** + * Client ID of developer console which is the client application. + */ + clientId: string; + /** + * Client Secret of developer console which is the client application. */ - readonly content?: string; + clientSecret: string; +} + +/** + * Policy description details. + */ +export interface PolicyDescriptionContract extends Resource { /** - * Snippet toolTip. + * Policy description. * **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 +3672,27 @@ 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; +} + +/** + * Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. + */ +export interface PortalSettingValidationKeyContract { + /** + * This is secret value of the validation key in portal settings. + */ + validationKey?: string; } /** @@ -3659,13 +3842,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 +3909,21 @@ export interface ProductUpdateParameters { } /** - * Property Entity Base Parameters set. + * Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. + */ +export interface PropertyValueContract { + /** + * This is secret value of the NamedValue entity. + */ + value?: string; +} + +/** + * 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 +3934,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 +3947,49 @@ 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; + /** + * Value of the NamedValue. Can contain policy expressions. It may not be empty or consist only + * of whitespace. This property will not be filled on 'GET' operations! Use '/listSecrets' POST + * request to get the value. + */ + value?: string; +} + +/** + * NamedValue update Parameters. + */ +export interface NamedValueUpdateParameters { + /** + * Optional tags that when provided can be used to filter the NamedValue list. + */ + tags?: string[]; + /** + * Determines whether the value is a secret and should be encrypted or not. Default value is + * false. + */ + secret?: boolean; + /** + * Unique name of NamedValue. It may contain only letters, digits, period, dash, and underscore * characters. */ 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; } /** - * Property details. + * NamedValue details. */ -export interface PropertyContract extends Resource { +export interface NamedValueCreateContract 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[]; /** @@ -3777,13 +3998,14 @@ 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; /** - * 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. This property will not be filled on 'GET' operations! Use '/listSecrets' POST + * request to get the value. */ value: string; } @@ -4049,6 +4271,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 +4522,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 +5085,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 +5770,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 +5989,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 +6010,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 +7335,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 +7346,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 +7357,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 +7464,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 +7486,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 +7898,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 +8003,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 +8049,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 +8154,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 +8286,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 +10183,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 +11478,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 +12023,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 +12151,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 +12164,7 @@ export type PolicySnippetListByServiceResponse = PolicySnippetsCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicySnippetsCollection; + parsedBody: PolicyDescriptionCollection; }; }; @@ -11970,6 +12348,26 @@ export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings }; }; +/** + * Contains response data for the listSecrets operation. + */ +export type DelegationSettingsListSecretsResponse = PortalSettingValidationKeyContract & { + /** + * 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: PortalSettingValidationKeyContract; + }; +}; + /** * Contains response data for the listByService operation. */ @@ -12363,7 +12761,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 +12774,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 +12789,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 +12804,7 @@ export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: PropertyGetHeaders; + parsedHeaders: NamedValueGetHeaders; /** * The response body as text (string format) @@ -12416,14 +12814,14 @@ 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. */ @@ -12431,7 +12829,7 @@ export type PropertyCreateOrUpdateResponse = PropertyContract & PropertyCreateOr /** * The parsed HTTP response headers. */ - parsedHeaders: PropertyCreateOrUpdateHeaders; + parsedHeaders: NamedValueCreateOrUpdateHeaders; /** * The response body as text (string format) @@ -12441,14 +12839,59 @@ export type PropertyCreateOrUpdateResponse = PropertyContract & PropertyCreateOr /** * The response body as parsed JSON or XML */ - parsedBody: PropertyContract; + parsedBody: NamedValueContract; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type NamedValueUpdateResponse = NamedValueContract & NamedValueUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: NamedValueUpdateHeaders; + + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: NamedValueContract; + }; +}; + +/** + * Contains response data for the listValue operation. + */ +export type NamedValueListValueResponse = PropertyValueContract & { + /** + * 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: PropertyValueContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type PropertyListByServiceNextResponse = PropertyCollection & { +export type NamedValueListByServiceNextResponse = NamedValueCollection & { /** * The underlying HTTP response. */ @@ -12461,7 +12904,7 @@ export type PropertyListByServiceNextResponse = PropertyCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyCollection; + parsedBody: NamedValueCollection; }; }; @@ -12930,6 +13373,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 +13493,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 +13543,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..164657676aeb 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, @@ -44,25 +46,29 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCollection, IssueCommentContract, IssueContract, IssueGetHeaders, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,7 +79,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..b89cd549bc46 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, @@ -44,6 +46,7 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, @@ -53,19 +56,22 @@ export { LoggerGetEntityTagHeaders, LoggerGetHeaders, LoggerUpdateContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +82,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..66e314295d00 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: { @@ -2689,12 +2699,6 @@ export const AuthorizationServerContractBaseProperties: msRest.CompositeMapper = } } }, - clientSecret: { - serializedName: "clientSecret", - type: { - name: "String" - } - }, resourceOwnerUsername: { serializedName: "resourceOwnerUsername", type: { @@ -2797,12 +2801,6 @@ export const AuthorizationServerUpdateContract: msRest.CompositeMapper = { } } }, - clientSecret: { - serializedName: "properties.clientSecret", - type: { - name: "String" - } - }, resourceOwnerUsername: { serializedName: "properties.resourceOwnerUsername", type: { @@ -2853,6 +2851,12 @@ export const AuthorizationServerUpdateContract: msRest.CompositeMapper = { type: { name: "String" } + }, + clientSecret: { + serializedName: "properties.clientSecret", + type: { + name: "String" + } } } } @@ -2944,12 +2948,6 @@ export const AuthorizationServerContract: msRest.CompositeMapper = { } } }, - clientSecret: { - serializedName: "properties.clientSecret", - type: { - name: "String" - } - }, resourceOwnerUsername: { serializedName: "properties.resourceOwnerUsername", type: { @@ -3005,6 +3003,12 @@ export const AuthorizationServerContract: msRest.CompositeMapper = { type: { name: "String" } + }, + clientSecret: { + serializedName: "properties.clientSecret", + type: { + name: "String" + } } } } @@ -3978,6 +3982,13 @@ export const AdditionalLocation: msRest.CompositeMapper = { type: { name: "String" } + }, + disableGateway: { + serializedName: "disableGateway", + defaultValue: false, + type: { + name: "Boolean" + } } } } @@ -4021,6 +4032,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 +4119,13 @@ export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "hostnameConfigurations", type: { @@ -4177,12 +4211,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 +4268,7 @@ export const ApiManagementServiceIdentity: msRest.CompositeMapper = { modelProperties: { type: { required: true, - isConstant: true, serializedName: "type", - defaultValue: 'SystemAssigned', type: { name: "String" } @@ -4216,6 +4286,18 @@ export const ApiManagementServiceIdentity: msRest.CompositeMapper = { type: { name: "Uuid" } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ApiManagementServiceIdentityUserAssignedIdentitiesValue" + } + } + } } } } @@ -4335,6 +4417,13 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "properties.developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "properties.hostnameConfigurations", type: { @@ -4420,6 +4509,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 +4523,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 +4655,13 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "properties.developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "properties.hostnameConfigurations", type: { @@ -4637,6 +4747,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 +4761,13 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint" + } + }, publisherEmail: { serializedName: "properties.publisherEmail", constraints: { @@ -5336,6 +5460,12 @@ export const IdentityProviderBaseParameters: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "allowedTenants", constraints: { @@ -5408,6 +5538,12 @@ export const IdentityProviderUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "properties.signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "properties.allowedTenants", constraints: { @@ -5499,6 +5635,110 @@ export const IdentityProviderContract: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "properties.signinTenant", + type: { + name: "String" + } + }, + allowedTenants: { + serializedName: "properties.allowedTenants", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + authority: { + serializedName: "properties.authority", + type: { + name: "String" + } + }, + signupPolicyName: { + serializedName: "properties.signupPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + signinPolicyName: { + serializedName: "properties.signinPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + profileEditingPolicyName: { + serializedName: "properties.profileEditingPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + passwordResetPolicyName: { + serializedName: "properties.passwordResetPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "properties.clientId", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "properties.clientSecret", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderCreateContract: msRest.CompositeMapper = { + serializedName: "IdentityProviderCreateContract", + type: { + name: "Composite", + className: "IdentityProviderCreateContract", + modelProperties: { + ...Resource.type.modelProperties, + identityProviderCreateContractType: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + signinTenant: { + serializedName: "properties.signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "properties.allowedTenants", constraints: { @@ -6024,36 +6264,71 @@ export const OpenidConnectProviderContract: msRest.CompositeMapper = { } }; -export const PolicySnippetContract: msRest.CompositeMapper = { - serializedName: "PolicySnippetContract", +export const OpenidConnectProviderCreateContract: msRest.CompositeMapper = { + serializedName: "OpenidConnectProviderCreateContract", type: { name: "Composite", - className: "PolicySnippetContract", + className: "OpenidConnectProviderCreateContract", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 50 + }, type: { name: "String" } }, - content: { - readOnly: true, - serializedName: "content", + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + metadataEndpoint: { + required: true, + serializedName: "properties.metadataEndpoint", + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "properties.clientId", type: { name: "String" } }, - toolTip: { + clientSecret: { + required: true, + serializedName: "properties.clientSecret", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyDescriptionContract: msRest.CompositeMapper = { + serializedName: "PolicyDescriptionContract", + type: { + name: "Composite", + className: "PolicyDescriptionContract", + modelProperties: { + ...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 +6337,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 +6350,32 @@ export const PolicySnippetsCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicySnippetContract" + className: "PolicyDescriptionContract" } } } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + } + } + } +}; + +export const PortalSettingValidationKeyContract: msRest.CompositeMapper = { + serializedName: "PortalSettingValidationKeyContract", + type: { + name: "Composite", + className: "PortalSettingValidationKeyContract", + modelProperties: { + validationKey: { + serializedName: "validationKey", + type: { + name: "String" + } } } } @@ -6299,7 +6596,6 @@ export const SubscriptionContract: msRest.CompositeMapper = { } }, primaryKey: { - required: true, serializedName: "properties.primaryKey", constraints: { MaxLength: 256, @@ -6310,7 +6606,6 @@ export const SubscriptionContract: msRest.CompositeMapper = { } }, secondaryKey: { - required: true, serializedName: "properties.secondaryKey", constraints: { MaxLength: 256, @@ -6400,11 +6695,27 @@ export const ProductUpdateParameters: msRest.CompositeMapper = { } }; -export const PropertyEntityBaseParameters: msRest.CompositeMapper = { - serializedName: "PropertyEntityBaseParameters", +export const PropertyValueContract: msRest.CompositeMapper = { + serializedName: "PropertyValueContract", type: { name: "Composite", - className: "PropertyEntityBaseParameters", + className: "PropertyValueContract", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "NamedValueEntityBaseParameters", + type: { + name: "Composite", + className: "NamedValueEntityBaseParameters", modelProperties: { tags: { serializedName: "tags", @@ -6430,11 +6741,64 @@ 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: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + secret: { + serializedName: "properties.secret", + type: { + name: "Boolean" + } + }, + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueUpdateParameters: msRest.CompositeMapper = { + serializedName: "NamedValueUpdateParameters", + type: { + name: "Composite", + className: "NamedValueUpdateParameters", modelProperties: { tags: { serializedName: "properties.tags", @@ -6481,11 +6845,11 @@ export const PropertyUpdateParameters: msRest.CompositeMapper = { } }; -export const PropertyContract: msRest.CompositeMapper = { - serializedName: "PropertyContract", +export const NamedValueCreateContract: msRest.CompositeMapper = { + serializedName: "NamedValueCreateContract", type: { name: "Composite", - className: "PropertyContract", + className: "NamedValueCreateContract", modelProperties: { ...Resource.type.modelProperties, tags: { @@ -6930,6 +7294,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 +9424,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 +9440,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 +9456,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 +9616,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 +9648,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 +10554,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 +10567,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..74fa36c763a0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/models/namedValueMappers.ts @@ -0,0 +1,98 @@ +/* + * 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, + IdentityProviderCreateContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + LoggerContract, + NamedValueCollection, + NamedValueContract, + NamedValueCreateContract, + NamedValueCreateOrUpdateHeaders, + NamedValueGetEntityTagHeaders, + NamedValueGetHeaders, + NamedValueUpdateHeaders, + NamedValueUpdateParameters, + NotificationContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, + OperationContract, + ParameterContract, + PipelineDiagnosticSettings, + PolicyContract, + PolicyDescriptionContract, + PortalDelegationSettings, + PortalSigninSettings, + PortalSignupSettings, + ProductContract, + PropertyValueContract, + 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..a5f8b6cea1ca 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, @@ -44,24 +46,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationCollection, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +78,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..0b9f2cec0d99 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailCollection, RecipientEmailContract, RecipientsContractProperties, @@ -72,7 +78,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..24856e9421d6 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserCollection, @@ -72,7 +78,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..57d1f160ff12 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, @@ -44,15 +47,19 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenIdConnectProviderCollection, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OpenIdConnectProviderCreateOrUpdateHeaders, OpenIdConnectProviderGetEntityTagHeaders, OpenIdConnectProviderGetHeaders, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +83,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 89% rename from sdk/apimanagement/arm-apimanagement/src/models/propertyMappers.ts rename to sdk/apimanagement/arm-apimanagement/src/models/policyDescriptionMappers.ts index 6412f6f50666..7a0184f0b33d 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, @@ -44,28 +46,28 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionCollection, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyCollection, - PropertyContract, - PropertyCreateOrUpdateHeaders, - PropertyGetEntityTagHeaders, - PropertyGetHeaders, - PropertyUpdateParameters, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -76,7 +78,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..712345a4c6bd 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, @@ -44,27 +46,31 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyCollection, PolicyContract, PolicyCreateOrUpdateHeaders, + PolicyDescriptionContract, PolicyGetEntityTagHeaders, PolicyGetHeaders, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..adc854cd68de 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, @@ -45,23 +47,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +78,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..79366632ce6e 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, @@ -45,23 +47,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +78,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..f955793b0459 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, @@ -47,19 +49,24 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, OperationTagResourceContractProperties, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, @@ -71,7 +78,6 @@ export { ProductGetHeaders, ProductTagResourceContractProperties, ProductUpdateParameters, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -82,7 +88,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..2cec0538cbbf 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, @@ -44,19 +46,24 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, @@ -64,7 +71,6 @@ export { ProductPolicyCreateOrUpdateHeaders, ProductPolicyGetEntityTagHeaders, ProductPolicyGetHeaders, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -75,7 +81,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..50d43bad98a5 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +77,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..be78f183cf9e 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +77,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..0640878c4215 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +77,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..38ec14849e47 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +77,6 @@ export { ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionCollection, SubscriptionContract, SubscriptionCreateOrUpdateHeaders, @@ -79,6 +84,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..e06714d25053 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +77,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..79366632ce6e 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, @@ -45,23 +47,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +78,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..63e27f222f15 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, @@ -45,23 +47,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,7 +78,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..50d43bad98a5 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, @@ -44,23 +46,27 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, OpenidConnectProviderContract, + OpenidConnectProviderCreateContract, OperationContract, ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,7 +77,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/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts index e1289ca3ddd1..28179a2c2dd6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/delegationSettings.ts @@ -168,6 +168,38 @@ export class DelegationSettings { createOrUpdateOperationSpec, callback) as Promise; } + + /** + * Gets the secret validation key of the DelegationSettings. + * @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 @@ -286,3 +318,28 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PortalSettingValidationKeyContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts index a9dc72ce8502..b1d63a641d45 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/identityProvider.ts @@ -147,7 +147,7 @@ export class IdentityProvider { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, options?: Models.IdentityProviderCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderCreateContract, options?: Models.IdentityProviderCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -156,7 +156,7 @@ export class IdentityProvider { * @param parameters Create parameters. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderCreateContract, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -166,8 +166,8 @@ export class IdentityProvider { * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, options: Models.IdentityProviderCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, options?: Models.IdentityProviderCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderCreateContract, options: Models.IdentityProviderCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderCreateContract, options?: Models.IdentityProviderCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -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. @@ -404,7 +443,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.IdentityProviderContract, + ...Mappers.IdentityProviderCreateContract, required: true } }, @@ -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 52% rename from sdk/apimanagement/arm-apimanagement/src/operations/property.ts rename to sdk/apimanagement/arm-apimanagement/src/operations/namedValue.ts index af83fe7a925d..741f6c25bc54 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,263 @@ 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.NamedValueCreateContract, 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. + * Gets the secret value of the 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 [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + listValue(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 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 callback The callback */ - deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + listValue(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 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 options The optional parameters * @param callback The callback */ - 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 { + listValue(resourceGroupName: string, serviceName: string, namedValueId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listValue(resourceGroupName: string, serviceName: string, namedValueId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - propId, + namedValueId, + options + }, + listValueOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a NamedValue. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param namedValueId Identifier of the NamedValue. + * @param parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: Models.NamedValueCreateContract, 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 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 + */ + beginUpdate(resourceGroupName: string, serviceName: string, namedValueId: string, parameters: Models.NamedValueUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + 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 +320,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 +337,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PropertyCollection + bodyMapper: Mappers.NamedValueCollection }, default: { bodyMapper: Mappers.ErrorResponse @@ -321,11 +348,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 +363,7 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - headersMapper: Mappers.PropertyGetEntityTagHeaders + headersMapper: Mappers.NamedValueGetEntityTagHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -347,11 +374,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 +389,8 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PropertyContract, - headersMapper: Mappers.PropertyGetHeaders + bodyMapper: Mappers.NamedValueContract, + headersMapper: Mappers.NamedValueGetHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -372,37 +399,50 @@ 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: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse } }, + serializer +}; + +const listValueOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/namedValues/{namedValueId}/listValue", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.namedValueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], responses: { 200: { - bodyMapper: Mappers.PropertyContract, - headersMapper: Mappers.PropertyCreateOrUpdateHeaders - }, - 201: { - bodyMapper: Mappers.PropertyContract, - headersMapper: Mappers.PropertyCreateOrUpdateHeaders + bodyMapper: Mappers.PropertyValueContract }, default: { bodyMapper: Mappers.ErrorResponse @@ -411,31 +451,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.NamedValueCreateContract, 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 +493,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 +509,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 +546,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..4fe1bda8998f 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -139,7 +139,7 @@ export class OpenIdConnectProvider { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, options?: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderCreateContract, options?: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -147,7 +147,7 @@ export class OpenIdConnectProvider { * @param parameters Create parameters. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderCreateContract, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -156,8 +156,8 @@ export class OpenIdConnectProvider { * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, options: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, options?: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderCreateContract, options: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderCreateContract, options?: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -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. @@ -391,7 +427,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.OpenidConnectProviderContract, + ...Mappers.OpenidConnectProviderCreateContract, required: true } }, @@ -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