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..3a8572c21030 100644 --- a/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts +++ b/sdk/apimanagement/arm-apimanagement/src/apiManagementClient.ts @@ -42,18 +42,22 @@ class ApiManagementClient extends ApiManagementClientContext { apiManagementService: operations.ApiManagementService; diagnostic: operations.Diagnostic; emailTemplate: operations.EmailTemplate; + gateway: operations.Gateway; + gatewayHostnameConfiguration: operations.GatewayHostnameConfiguration; + gatewayApi: operations.GatewayApi; group: operations.Group; groupUser: operations.GroupUser; identityProvider: operations.IdentityProvider; issue: operations.Issue; logger: operations.Logger; + namedValue: operations.NamedValue; networkStatus: operations.NetworkStatus; notification: operations.Notification; notificationRecipientUser: operations.NotificationRecipientUser; 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 +66,6 @@ class ApiManagementClient extends ApiManagementClientContext { productGroup: operations.ProductGroup; productSubscriptions: operations.ProductSubscriptions; productPolicy: operations.ProductPolicy; - property: operations.Property; quotaByCounterKeys: operations.QuotaByCounterKeys; quotaByPeriodKeys: operations.QuotaByPeriodKeys; region: operations.Region; @@ -113,18 +116,22 @@ class ApiManagementClient extends ApiManagementClientContext { this.apiManagementService = new operations.ApiManagementService(this); this.diagnostic = new operations.Diagnostic(this); this.emailTemplate = new operations.EmailTemplate(this); + this.gateway = new operations.Gateway(this); + this.gatewayHostnameConfiguration = new operations.GatewayHostnameConfiguration(this); + this.gatewayApi = new operations.GatewayApi(this); this.group = new operations.Group(this); this.groupUser = new operations.GroupUser(this); this.identityProvider = new operations.IdentityProvider(this); this.issue = new operations.Issue(this); this.logger = new operations.Logger(this); + this.namedValue = new operations.NamedValue(this); this.networkStatus = new operations.NetworkStatus(this); this.notification = new operations.Notification(this); this.notificationRecipientUser = new operations.NotificationRecipientUser(this); 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 +140,6 @@ 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.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..ac7e6c962913 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'; 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..10326b642115 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiDiagnosticMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiDiagnosticMappers.ts @@ -18,8 +18,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -43,15 +45,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts index 0b6ee1bdd250..bcf025c555ad 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueAttachmentMappers.ts @@ -18,8 +18,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,16 +44,21 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentCollection, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts index 1a55d0cc8cfa..94550c31a779 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueCommentMappers.ts @@ -18,8 +18,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,16 +44,21 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentCollection, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts index e4dd6527e8a3..f7f41cb57c0b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiIssueMappers.ts @@ -18,8 +18,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,17 +44,22 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCollection, IssueCommentContract, IssueContract, IssueUpdateContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts index 8a00eace8c09..6a3825a39a8b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiManagementServiceMappers.ts @@ -21,8 +21,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -44,15 +46,22 @@ export { DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +70,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +82,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +95,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; 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..55e0a2e7f17c 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiMappers.ts @@ -25,8 +25,10 @@ export { ApiReleaseContract, ApiTagResourceContractProperties, ApiUpdateContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -49,15 +51,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -67,13 +74,13 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, ProductEntityBaseParameters, ProductTagResourceContractProperties, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -81,10 +88,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -97,6 +104,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts index 02c1e4f2da8a..9fea7c297f13 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationMappers.ts @@ -18,8 +18,10 @@ export { ApiOperationGetEntityTagHeaders, ApiOperationGetHeaders, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,15 +44,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts index eb2f4b6ee681..d839005cf4d1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiOperationPolicyMappers.ts @@ -18,8 +18,10 @@ export { ApiOperationPolicyGetEntityTagHeaders, ApiOperationPolicyGetHeaders, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,15 +44,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts index 1ee08b079a94..bd3f2e158024 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiPolicyMappers.ts @@ -18,8 +18,10 @@ export { ApiPolicyGetEntityTagHeaders, ApiPolicyGetHeaders, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,15 +44,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts index f7e533e044e7..04e121e71a4e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiProductMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,12 +63,12 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductCollection, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts index 8398ba1dcac3..3e5875867ed8 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiReleaseMappers.ts @@ -19,8 +19,10 @@ export { ApiReleaseCreateOrUpdateHeaders, ApiReleaseGetEntityTagHeaders, ApiReleaseGetHeaders, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -43,15 +45,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts index 58456c66efd7..97c1c14738d4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiSchemaMappers.ts @@ -18,8 +18,10 @@ export { ApiSchemaCreateOrUpdateHeaders, ApiSchemaGetEntityTagHeaders, ApiSchemaGetHeaders, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,15 +44,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -59,11 +66,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,11 +78,11 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaCollection, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts index 4840c3a1465a..95bcfc931452 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiTagDescriptionMappers.ts @@ -18,8 +18,10 @@ export { ApiTagDescriptionCreateOrUpdateHeaders, ApiTagDescriptionGetEntityTagHeaders, ApiTagDescriptionGetHeaders, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,15 +44,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -59,11 +66,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -71,10 +78,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts index 7a93b3422eeb..1b1849674045 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/apiVersionSetMappers.ts @@ -15,6 +15,7 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetCollection, ApiVersionSetContract, ApiVersionSetContractDetails, @@ -22,6 +23,7 @@ export { ApiVersionSetGetEntityTagHeaders, ApiVersionSetGetHeaders, ApiVersionSetUpdateParameters, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -44,15 +46,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts index e2e742c43968..ff6bb419d095 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/authorizationServerMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerCollection, AuthorizationServerContract, @@ -38,20 +40,26 @@ export { CertificateConfiguration, CertificateContract, CertificateInformation, + ClientSecretContract, DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts index e3df0f4a1ff2..96dc17f4f00d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/backendMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -44,15 +46,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts index 785e56ee9e3b..925c1c8e995b 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/cacheMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -44,15 +46,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts index 6aa87a13ef23..dc1c4422c33d 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/certificateMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -44,15 +46,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts index 04f1814a256c..fec1853e62b2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/delegationSettingsMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -41,15 +43,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -58,11 +65,12 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, + PortalSettingValidationKeyContract, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -70,10 +78,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -83,6 +91,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts index 6d609e8902f8..1001dfb6804e 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/diagnosticMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -43,15 +45,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts index f943eec8c3c3..e95c43143839 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/emailTemplateMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -43,15 +45,20 @@ export { EmailTemplateUpdateParameters, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,11 +67,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/gatewayApiMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/gatewayApiMappers.ts new file mode 100644 index 000000000000..3923b13a0f3c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/models/gatewayApiMappers.ts @@ -0,0 +1,96 @@ +/* + * 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, + ApiCollection, + ApiContract, + ApiManagementServiceIdentity, + ApiManagementServiceResource, + ApiManagementServiceSkuProperties, + ApiManagementServiceUpdateParameters, + ApimResource, + ApiReleaseContract, + ApiVersionConstraint, + ApiVersionSetContract, + ApiVersionSetContractDetails, + AssociationContract, + AuthenticationSettingsContract, + AuthorizationServerContract, + AuthorizationServerUpdateContract, + BackendAuthorizationHeaderCredentials, + BackendContract, + BackendCredentialsContract, + BackendProperties, + BackendProxyContract, + BackendReconnectContract, + BackendServiceFabricClusterProperties, + BackendTlsProperties, + BaseResource, + BodyDiagnosticSettings, + CacheContract, + CertificateConfiguration, + CertificateContract, + CertificateInformation, + DiagnosticContract, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, + GatewayApiGetEntityTagHeaders, + GatewayContract, + GatewayHostnameConfigurationContract, + GroupContract, + GroupContractProperties, + HostnameConfiguration, + HttpMessageDiagnostic, + IdentityProviderContract, + IdentityProviderCreateContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + LoggerContract, + NamedValueContract, + NamedValueCreateContract, + NotificationContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + OpenidConnectProviderContract, + OperationContract, + ParameterContract, + PipelineDiagnosticSettings, + PolicyContract, + PolicyDescriptionContract, + PortalDelegationSettings, + PortalSigninSettings, + PortalSignupSettings, + ProductContract, + RecipientEmailContract, + RecipientsContractProperties, + RecipientUserContract, + RegistrationDelegationSettingsProperties, + RepresentationContract, + RequestContract, + Resource, + ResourceLocationDataContract, + ResponseContract, + SamplingSettings, + SchemaContract, + SubscriptionContract, + SubscriptionKeyParameterNamesContract, + SubscriptionsDelegationSettingsProperties, + TagContract, + TagDescriptionContract, + TermsOfServiceProperties, + TokenBodyParameterContract, + UserContract, + UserIdentityContract, + UserIdentityProperties, + VirtualNetworkConfiguration, + X509CertificateName +} from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/gatewayHostnameConfigurationMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/gatewayHostnameConfigurationMappers.ts new file mode 100644 index 000000000000..8a77fa12242c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/models/gatewayHostnameConfigurationMappers.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, + ApiManagementServiceResource, + ApiManagementServiceSkuProperties, + ApiManagementServiceUpdateParameters, + ApimResource, + ApiReleaseContract, + ApiVersionConstraint, + ApiVersionSetContract, + ApiVersionSetContractDetails, + AssociationContract, + AuthenticationSettingsContract, + AuthorizationServerContract, + AuthorizationServerUpdateContract, + BackendAuthorizationHeaderCredentials, + BackendContract, + BackendCredentialsContract, + BackendProperties, + BackendProxyContract, + BackendReconnectContract, + BackendServiceFabricClusterProperties, + BackendTlsProperties, + BaseResource, + BodyDiagnosticSettings, + CacheContract, + CertificateConfiguration, + CertificateContract, + CertificateInformation, + DiagnosticContract, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationCollection, + GatewayHostnameConfigurationContract, + GatewayHostnameConfigurationCreateOrUpdateHeaders, + GatewayHostnameConfigurationGetEntityTagHeaders, + GatewayHostnameConfigurationGetHeaders, + GroupContract, + GroupContractProperties, + HostnameConfiguration, + HttpMessageDiagnostic, + IdentityProviderContract, + IdentityProviderCreateContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + LoggerContract, + NamedValueContract, + NamedValueCreateContract, + NotificationContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + OpenidConnectProviderContract, + OperationContract, + ParameterContract, + PipelineDiagnosticSettings, + PolicyContract, + PolicyDescriptionContract, + PortalDelegationSettings, + PortalSigninSettings, + PortalSignupSettings, + ProductContract, + RecipientEmailContract, + RecipientsContractProperties, + RecipientUserContract, + RegistrationDelegationSettingsProperties, + RepresentationContract, + RequestContract, + Resource, + ResourceLocationDataContract, + ResponseContract, + SamplingSettings, + SchemaContract, + SubscriptionContract, + SubscriptionKeyParameterNamesContract, + SubscriptionsDelegationSettingsProperties, + TagContract, + TagDescriptionContract, + TermsOfServiceProperties, + TokenBodyParameterContract, + UserContract, + UserIdentityContract, + UserIdentityProperties, + VirtualNetworkConfiguration, + X509CertificateName +} from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/gatewayMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/gatewayMappers.ts new file mode 100644 index 000000000000..c1c140d0632a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/models/gatewayMappers.ts @@ -0,0 +1,103 @@ +/* + * 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, + ApiManagementServiceResource, + ApiManagementServiceSkuProperties, + ApiManagementServiceUpdateParameters, + ApimResource, + ApiReleaseContract, + ApiVersionConstraint, + ApiVersionSetContract, + ApiVersionSetContractDetails, + AssociationContract, + AuthenticationSettingsContract, + AuthorizationServerContract, + AuthorizationServerUpdateContract, + BackendAuthorizationHeaderCredentials, + BackendContract, + BackendCredentialsContract, + BackendProperties, + BackendProxyContract, + BackendReconnectContract, + BackendServiceFabricClusterProperties, + BackendTlsProperties, + BaseResource, + BodyDiagnosticSettings, + CacheContract, + CertificateConfiguration, + CertificateContract, + CertificateInformation, + DiagnosticContract, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, + GatewayCollection, + GatewayContract, + GatewayCreateOrUpdateHeaders, + GatewayGetEntityTagHeaders, + GatewayGetHeaders, + GatewayHostnameConfigurationContract, + GatewayKeyRegenerationRequestContract, + GatewayKeysContract, + GatewayListKeysHeaders, + GatewayTokenContract, + GatewayTokenRequestContract, + GroupContract, + GroupContractProperties, + HostnameConfiguration, + HttpMessageDiagnostic, + IdentityProviderContract, + IdentityProviderCreateContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + LoggerContract, + NamedValueContract, + NamedValueCreateContract, + NotificationContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + OpenidConnectProviderContract, + OperationContract, + ParameterContract, + PipelineDiagnosticSettings, + PolicyContract, + PolicyDescriptionContract, + PortalDelegationSettings, + PortalSigninSettings, + PortalSignupSettings, + ProductContract, + RecipientEmailContract, + RecipientsContractProperties, + RecipientUserContract, + RegistrationDelegationSettingsProperties, + RepresentationContract, + RequestContract, + Resource, + ResourceLocationDataContract, + ResponseContract, + SamplingSettings, + SchemaContract, + SubscriptionContract, + SubscriptionKeyParameterNamesContract, + SubscriptionsDelegationSettingsProperties, + TagContract, + TagDescriptionContract, + TermsOfServiceProperties, + TokenBodyParameterContract, + UserContract, + UserIdentityContract, + UserIdentityProperties, + VirtualNetworkConfiguration, + X509CertificateName +} from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts index c959d5a9ce85..cc5873a72832 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/groupMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,6 +41,8 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupCollection, GroupContract, GroupContractProperties, @@ -50,10 +54,13 @@ export { HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -62,11 +69,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -74,10 +81,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -87,6 +94,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts index a904f335e598..2eeab6b3baf7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/groupUserMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -68,10 +75,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { UserCollection, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts index fce351db8e91..674b64208ffa 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/identityProviderMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -34,16 +36,20 @@ export { CertificateConfiguration, CertificateContract, CertificateInformation, + ClientSecretContract, DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IdentityProviderCreateOrUpdateHeaders, IdentityProviderGetEntityTagHeaders, IdentityProviderGetHeaders, @@ -53,6 +59,8 @@ export { IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +69,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +81,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +94,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/index.ts b/sdk/apimanagement/arm-apimanagement/src/models/index.ts index 670bb7eeb4b8..00a9ffa0200a 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; } /** @@ -2214,9 +2215,10 @@ export interface ApiManagementServiceSkuProperties { */ name: SkuType; /** - * Capacity of the SKU (number of deployed units of the SKU). + * Capacity of the SKU (number of deployed units of the SKU). For Consumption SKU capacity must + * be specified as 0. */ - capacity?: number; + capacity: number; } /** @@ -2253,6 +2255,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 +2284,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 +2347,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 +2402,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 +2418,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 +2432,37 @@ export interface ApiManagementServiceBaseProperties { * 'Internal'. Default value: 'None'. */ virtualNetworkType?: VirtualNetworkType; + /** + * Control Plane Apis version constraint for the API Management service. + */ + apiVersionConstraint?: ApiVersionConstraint; +} + +/** + * An interface representing UserIdentityProperties. + */ +export interface UserIdentityProperties { + /** + * The principal id of user assigned identity. + */ + principalId?: string; + /** + * The client id of user assigned identity. + */ + 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 +2473,13 @@ export interface ApiManagementServiceIdentity { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tenantId?: string; + /** + * The list of user identities associated with the resource. The user identity + * dictionary key references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/ + * providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; } /** @@ -2497,6 +2559,11 @@ export interface ApiManagementServiceResource extends ApimResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly scmUrl?: string; + /** + * DEveloper Portal endpoint URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly developerPortalUrl?: string; /** * Custom hostname configuration of the API Management service. */ @@ -2547,7 +2614,9 @@ export interface ApiManagementServiceResource extends ApimResource { * TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. * For example, * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. - * The default value is `true` for them. + * The default value is `true` for them. Note: next ciphers can't be disabled since they are + * required by Azure CloudService internal components: + * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ customProperties?: { [propertyName: string]: string }; /** @@ -2561,6 +2630,11 @@ export interface ApiManagementServiceResource extends ApimResource { * the certificate in the policy on the gateway. Default value: false. */ enableClientCertificate?: boolean; + /** + * Property only valid for an Api Management service deployed in multiple locations. This can be + * used to disable the gateway in master region. Default value: false. + */ + disableGateway?: boolean; /** * The type of VPN in which API Management service needs to be configured in. None (Default * Value) means the API Management service is not part of any Virtual Network, External means the @@ -2570,6 +2644,10 @@ export interface ApiManagementServiceResource extends ApimResource { * 'Internal'. Default value: 'None'. */ virtualNetworkType?: VirtualNetworkType; + /** + * Control Plane Apis version constraint for the API Management service. + */ + apiVersionConstraint?: ApiVersionConstraint; /** * Publisher email. */ @@ -2649,6 +2727,11 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly scmUrl?: string; + /** + * DEveloper Portal endpoint URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly developerPortalUrl?: string; /** * Custom hostname configuration of the API Management service. */ @@ -2699,7 +2782,9 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. * For example, * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. - * The default value is `true` for them. + * The default value is `true` for them. Note: next ciphers can't be disabled since they are + * required by Azure CloudService internal components: + * TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384 */ customProperties?: { [propertyName: string]: string }; /** @@ -2713,6 +2798,11 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * the certificate in the policy on the gateway. Default value: false. */ enableClientCertificate?: boolean; + /** + * Property only valid for an Api Management service deployed in multiple locations. This can be + * used to disable the gateway in master region. Default value: false. + */ + disableGateway?: boolean; /** * The type of VPN in which API Management service needs to be configured in. None (Default * Value) means the API Management service is not part of any Virtual Network, External means the @@ -2722,6 +2812,10 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * 'Internal'. Default value: 'None'. */ virtualNetworkType?: VirtualNetworkType; + /** + * Control Plane Apis version constraint for the API Management service. + */ + apiVersionConstraint?: ApiVersionConstraint; /** * Publisher email. */ @@ -2922,6 +3016,120 @@ export interface EmailTemplateContract extends Resource { parameters?: EmailTemplateParametersContractProperties[]; } +/** + * Association entity details. + */ +export interface AssociationContract extends Resource { + /** + * Provisioning state. Possible values include: 'created' + */ + provisioningState?: ProvisioningState; +} + +/** + * Gateway hostname configuration details. + */ +export interface GatewayHostnameConfigurationContract extends Resource { + /** + * Hostname value. Supports valid domain name, partial or full wildcard + */ + hostname?: string; + /** + * Identifier of Certificate entity that will be used for TLS connection establishment + */ + certificateId?: string; + /** + * Determines whether gateway requests client certificate + */ + negotiateClientCertificate?: boolean; +} + +/** + * Gateway access token. + */ +export interface GatewayTokenContract { + /** + * Shared Access Authentication token value for the Gateway. + */ + value?: string; +} + +/** + * Gateway token request contract properties. + */ +export interface GatewayTokenRequestContract { + /** + * The Key to be used to generate gateway token. Possible values include: 'primary', 'secondary'. + * Default value: 'primary'. + */ + keyType: KeyType; + /** + * The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms + * to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + */ + expiry: Date; +} + +/** + * Gateway key regeneration request contract properties. + */ +export interface GatewayKeyRegenerationRequestContract { + /** + * The Key being regenerated. Possible values include: 'primary', 'secondary' + */ + keyType: KeyType; +} + +/** + * Gateway authentication keys. + */ +export interface GatewayKeysContract { + /** + * Primary gateway key. + */ + primary?: string; + /** + * Secondary gateway key. + */ + secondary?: string; +} + +/** + * Resource location data properties. + */ +export interface ResourceLocationDataContract { + /** + * A canonical name for the geographic or physical location. + */ + name: string; + /** + * The city or locality where the resource is located. + */ + city?: string; + /** + * The district, state, or province where the resource is located. + */ + district?: string; + /** + * The country or region where the resource is located. + */ + countryOrRegion?: string; +} + +/** + * Gateway details. + */ +export interface GatewayContract extends Resource { + /** + * Gateway location. + */ + locationData?: ResourceLocationDataContract; + /** + * Gateway description + */ + description?: string; +} + /** * User identity details. */ @@ -3115,6 +3323,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 +3362,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 +3412,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 +3448,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; } @@ -3284,64 +3556,166 @@ export interface LoggerContract extends Resource { } /** - * Details about connectivity to a resource. + * Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. */ -export interface ConnectivityStatusContract { - /** - * The hostname of the resource which the service depends on. This can be the database, storage - * or any other azure resource on which the service depends upon. - */ - name: string; - /** - * Resource Connectivity Status Type identifier. Possible values include: 'initializing', - * 'success', 'failure' - */ - status: ConnectivityStatusType; - /** - * Error details of the connectivity to the resource. - */ - error?: string; - /** - * The date when the resource connectivity status was last updated. This status should be updated - * every 15 minutes. If this status has not been updated, then it means that the service has lost - * network connectivity to the resource, from inside the Virtual Network.The date conforms to the - * following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. - */ - lastUpdated: Date; +export interface PropertyValueContract { /** - * The date when the resource connectivity status last Changed from success to failure or - * vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by - * the ISO 8601 standard. + * This is secret value of the NamedValue entity. */ - lastStatusChange: Date; + value?: string; } /** - * Network Status details. + * NamedValue Entity Base Parameters set. */ -export interface NetworkStatusContract { +export interface NamedValueEntityBaseParameters { /** - * Gets the list of DNS servers IPV4 addresses. + * Optional tags that when provided can be used to filter the NamedValue list. */ - dnsServers: string[]; + tags?: string[]; /** - * Gets the list of Connectivity Status to the Resources on which the service depends upon. + * Determines whether the value is a secret and should be encrypted or not. Default value is + * false. */ - connectivityStatus: ConnectivityStatusContract[]; + secret?: boolean; } /** - * Network Status in the Location + * NamedValue details. */ -export interface NetworkStatusContractByLocation { +export interface NamedValueContract extends Resource { /** - * Location of service + * Optional tags that when provided can be used to filter the NamedValue list. */ - location?: string; + tags?: string[]; /** - * Network status in Location + * Determines whether the value is a secret and should be encrypted or not. Default value is + * false. */ - networkStatus?: NetworkStatusContract; + secret?: boolean; + /** + * 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 NamedValue. Can contain policy expressions. It may not be empty or consist only + * of whitespace. + */ + value?: string; +} + +/** + * NamedValue details. + */ +export interface NamedValueCreateContract extends Resource { + /** + * 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 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; +} + +/** + * Details about connectivity to a resource. + */ +export interface ConnectivityStatusContract { + /** + * The hostname of the resource which the service depends on. This can be the database, storage + * or any other azure resource on which the service depends upon. + */ + name: string; + /** + * Resource Connectivity Status Type identifier. Possible values include: 'initializing', + * 'success', 'failure' + */ + status: ConnectivityStatusType; + /** + * Error details of the connectivity to the resource. + */ + error?: string; + /** + * The date when the resource connectivity status was last updated. This status should be updated + * every 15 minutes. If this status has not been updated, then it means that the service has lost + * network connectivity to the resource, from inside the Virtual Network.The date conforms to the + * following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + */ + lastUpdated: Date; + /** + * The date when the resource connectivity status last Changed from success to failure or + * vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. + */ + lastStatusChange: Date; +} + +/** + * Network Status details. + */ +export interface NetworkStatusContract { + /** + * Gets the list of DNS servers IPV4 addresses. + */ + dnsServers: string[]; + /** + * Gets the list of Connectivity Status to the Resources on which the service depends upon. + */ + connectivityStatus: ConnectivityStatusContract[]; +} + +/** + * Network Status in the Location + */ +export interface NetworkStatusContractByLocation { + /** + * Location of service + */ + location?: string; + /** + * Network status in Location + */ + networkStatus?: NetworkStatusContract; } /** @@ -3477,39 +3851,43 @@ export interface OpenidConnectProviderContract extends Resource { } /** - * Policy snippet. + * Policy description details. */ -export interface PolicySnippetContract { +export interface PolicyDescriptionContract extends Resource { /** - * Snippet name. + * Policy description. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly name?: string; + readonly description?: string; /** - * Snippet content. + * Binary OR value of the Snippet scope. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly content?: string; + readonly scope?: number; +} + +/** + * Descriptions of APIM policies. + */ +export interface PolicyDescriptionCollection { /** - * Snippet toolTip. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Descriptions of APIM policies. */ - readonly toolTip?: string; + value?: PolicyDescriptionContract[]; /** - * Binary OR value of the Snippet scope. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Total record count number. */ - readonly scope?: number; + count?: number; } /** - * The response of the list policy snippets operation. + * Client or app secret used in IdentityProviders, Aad, OpenID or OAuth. */ -export interface PolicySnippetsCollection { +export interface PortalSettingValidationKeyContract { /** - * Policy snippet value. + * This is secret value of the validation key in portal settings. */ - value?: PolicySnippetContract[]; + validationKey?: string; } /** @@ -3659,13 +4037,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. */ @@ -3723,71 +4103,6 @@ export interface ProductUpdateParameters { displayName?: string; } -/** - * Property Entity Base Parameters set. - */ -export interface PropertyEntityBaseParameters { - /** - * Optional tags that when provided can be used to filter the property list. - */ - tags?: string[]; - /** - * Determines whether the value is a secret and should be encrypted or not. Default value is - * false. - */ - secret?: boolean; -} - -/** - * Property update Parameters. - */ -export interface PropertyUpdateParameters { - /** - * Optional tags that when provided can be used to filter the property 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 Property. 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?: string; -} - -/** - * Property details. - */ -export interface PropertyContract extends Resource { - /** - * Optional tags that when provided can be used to filter the property 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 Property. 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: string; -} - /** * Quota counter value details. */ @@ -4049,6 +4364,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 +4615,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; /** @@ -4415,6 +4746,11 @@ export interface UserCreateParameters { * User Password. If no value is provided, a default password is generated. */ password?: string; + /** + * Determines the type of application which send the create user request. Default is old + * publisher portal. Possible values include: 'developerPortal' + */ + appType?: AppType; /** * Determines the type of confirmation e-mail that will be sent to the newly created user. * Possible values include: 'signup', 'invite' @@ -4847,6 +5183,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. */ @@ -5301,6 +5648,66 @@ export interface EmailTemplateCreateOrUpdateOptionalParams extends msRest.Reques ifMatch?: string; } +/** + * Optional Parameters. + */ +export interface GatewayListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of records to return. + */ + top?: number; + /** + * Number of records to skip. + */ + skip?: number; +} + +/** + * Optional Parameters. + */ +export interface GatewayCreateOrUpdateOptionalParams 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 GatewayHostnameConfigurationListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of records to return. + */ + top?: number; + /** + * Number of records to skip. + */ + skip?: number; +} + +/** + * Optional Parameters. + */ +export interface GatewayApiListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of records to return. + */ + top?: number; + /** + * Number of records to skip. + */ + skip?: number; +} + +/** + * Optional Parameters. + */ +export interface GatewayApiCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + parameters?: AssociationContract; +} + /** * Optional Parameters. */ @@ -5443,10 +5850,53 @@ export interface LoggerDeleteMethodOptionalParams extends msRest.RequestOptionsB /** * Optional Parameters. */ -export interface NotificationListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface NamedValueListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * Number of records to return. - */ + * | Field | Usage | Supported operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, + * eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | + * filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
+ */ + filter?: string; + /** + * Number of records to return. + */ + top?: number; + /** + * Number of records to skip. + */ + skip?: number; +} + +/** + * Optional Parameters. + */ +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. + */ + ifMatch?: string; +} + +/** + * Optional Parameters. + */ +export interface NotificationListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * Number of records to return. + */ top?: number; /** * Number of records to skip. @@ -5521,7 +5971,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' */ @@ -5737,38 +6187,6 @@ export interface ProductPolicyCreateOrUpdateOptionalParams extends msRest.Reques ifMatch?: string; } -/** - * Optional Parameters. - */ -export interface PropertyListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * | Field | Usage | Supported operators | Supported functions - * |
|-------------|-------------|-------------|-------------|
| tags | filter | ge, le, - * eq, ne, gt, lt | substringof, contains, startswith, endswith, any, all |
| displayName | - * filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
- */ - filter?: string; - /** - * Number of records to return. - */ - top?: number; - /** - * Number of records to skip. - */ - skip?: number; -} - -/** - * Optional Parameters. - */ -export interface PropertyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * ETag of the Entity. Not required when creating an entity, but required when updating an - * entity. - */ - ifMatch?: string; -} - /** * Optional Parameters. */ @@ -6742,6 +7160,94 @@ export interface EmailTemplateGetHeaders { eTag: string; } +/** + * Defines headers for GetEntityTag operation. + */ +export interface GatewayGetEntityTagHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for Get operation. + */ +export interface GatewayGetHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface GatewayCreateOrUpdateHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for ListKeys operation. + */ +export interface GatewayListKeysHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for GetEntityTag operation. + */ +export interface GatewayHostnameConfigurationGetEntityTagHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for Get operation. + */ +export interface GatewayHostnameConfigurationGetHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +export interface GatewayHostnameConfigurationCreateOrUpdateHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for GetEntityTag operation. + */ +export interface GatewayApiGetEntityTagHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + /** * Defines headers for GetEntityTag operation. */ @@ -6852,6 +7358,50 @@ export interface LoggerCreateOrUpdateHeaders { eTag: string; } +/** + * Defines headers for GetEntityTag operation. + */ +export interface NamedValueGetEntityTagHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for Get operation. + */ +export interface NamedValueGetHeaders { + /** + * Current entity state version. Should be treated as opaque and used to make conditional HTTP + * requests. + */ + eTag: string; +} + +/** + * Defines headers for CreateOrUpdate operation. + */ +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. + */ + eTag: string; +} + /** * Defines headers for GetEntityTag operation. */ @@ -7075,7 +7625,7 @@ export interface TagGetByProductHeaders { /** * Defines headers for GetEntityTag operation. */ -export interface PropertyGetEntityTagHeaders { +export interface SubscriptionGetEntityTagHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7086,7 +7636,7 @@ export interface PropertyGetEntityTagHeaders { /** * Defines headers for Get operation. */ -export interface PropertyGetHeaders { +export interface SubscriptionGetHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7097,7 +7647,7 @@ export interface PropertyGetHeaders { /** * Defines headers for CreateOrUpdate operation. */ -export interface PropertyCreateOrUpdateHeaders { +export interface SubscriptionCreateOrUpdateHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7106,9 +7656,9 @@ export interface PropertyCreateOrUpdateHeaders { } /** - * Defines headers for GetEntityTag operation. + * Defines headers for GetEntityState operation. */ -export interface SubscriptionGetEntityTagHeaders { +export interface TagGetEntityStateHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7119,7 +7669,7 @@ export interface SubscriptionGetEntityTagHeaders { /** * Defines headers for Get operation. */ -export interface SubscriptionGetHeaders { +export interface TagGetHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7130,7 +7680,7 @@ export interface SubscriptionGetHeaders { /** * Defines headers for CreateOrUpdate operation. */ -export interface SubscriptionCreateOrUpdateHeaders { +export interface TagCreateOrUpdateHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7139,9 +7689,9 @@ export interface SubscriptionCreateOrUpdateHeaders { } /** - * Defines headers for GetEntityState operation. + * Defines headers for GetEntityTag operation. */ -export interface TagGetEntityStateHeaders { +export interface TenantAccessGetEntityTagHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7152,18 +7702,7 @@ export interface TagGetEntityStateHeaders { /** * Defines headers for Get operation. */ -export interface TagGetHeaders { - /** - * Current entity state version. Should be treated as opaque and used to make conditional HTTP - * requests. - */ - eTag: string; -} - -/** - * Defines headers for CreateOrUpdate operation. - */ -export interface TagCreateOrUpdateHeaders { +export interface TenantAccessGetHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7172,9 +7711,9 @@ export interface TagCreateOrUpdateHeaders { } /** - * Defines headers for GetEntityTag operation. + * Defines headers for ListSecrets operation. */ -export interface TenantAccessGetEntityTagHeaders { +export interface TenantAccessListSecretsHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7185,7 +7724,7 @@ export interface TenantAccessGetEntityTagHeaders { /** * Defines headers for Get operation. */ -export interface TenantAccessGetHeaders { +export interface TenantAccessGitGetHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7194,9 +7733,9 @@ export interface TenantAccessGetHeaders { } /** - * Defines headers for Get operation. + * Defines headers for ListSecrets operation. */ -export interface TenantAccessGitGetHeaders { +export interface TenantAccessGitListSecretsHeaders { /** * Current entity state version. Should be treated as opaque and used to make conditional HTTP * requests. @@ -7515,6 +8054,32 @@ export interface EmailTemplateCollection extends Array { nextLink?: string; } +/** + * @interface + * Paged Gateway list representation. + * @extends Array + */ +export interface GatewayCollection extends Array { + /** + * Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * Paged Gateway hostname configuration list representation. + * @extends Array + */ +export interface GatewayHostnameConfigurationCollection extends Array { + /** + * Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * @interface * Paged Group list representation. @@ -7567,6 +8132,18 @@ export interface LoggerCollection extends Array { nextLink?: string; } +/** + * @interface + * Paged NamedValue list representation. + * @extends Array + */ +export interface NamedValueCollection extends Array { + /** + * Next page link if any. + */ + nextLink?: string; +} + /** * @interface * Paged Notification list representation. @@ -7605,20 +8182,8 @@ export interface SubscriptionCollection extends Array { /** * @interface - * Paged Property list representation. - * @extends Array - */ -export interface PropertyCollection extends Array { - /** - * Next page link if any. - */ - nextLink?: string; -} - -/** - * @interface - * Lists Regions operation response details. - * @extends Array + * Lists Regions operation response details. + * @extends Array */ export interface RegionListResult extends Array { /** @@ -7710,11 +8275,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 +8321,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 +8426,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' @@ -7853,6 +8443,30 @@ export type VirtualNetworkType = 'None' | 'External' | 'Internal'; */ export type NameAvailabilityReason = 'Valid' | 'Invalid' | 'AlreadyExists'; +/** + * Defines values for ProvisioningState. + * Possible values include: 'created' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'created'; + +/** + * Defines values for KeyType. + * Possible values include: 'primary', 'secondary' + * @readonly + * @enum {string} + */ +export type KeyType = 'primary' | 'secondary'; + +/** + * Defines values for AppType. + * Possible values include: 'developerPortal' + * @readonly + * @enum {string} + */ +export type AppType = 'developerPortal'; + /** * Defines values for Confirmation. * Possible values include: 'signup', 'invite' @@ -7917,14 +8531,6 @@ export type SubscriptionState = 'suspended' | 'active' | 'expired' | 'submitted' */ export type AsyncOperationStatus = 'Started' | 'InProgress' | 'Succeeded' | 'Failed'; -/** - * Defines values for KeyType. - * Possible values include: 'primary', 'secondary' - * @readonly - * @enum {string} - */ -export type KeyType = 'primary' | 'secondary'; - /** * Defines values for NotificationName. * Possible values include: 'RequestPublisherNotificationMessage', @@ -7968,11 +8574,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 +10471,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. */ @@ -10868,7 +11494,7 @@ export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection & { /** * Contains response data for the listByService operation. */ -export type GroupListByServiceResponse = GroupCollection & { +export type GatewayListByServiceResponse = GatewayCollection & { /** * The underlying HTTP response. */ @@ -10881,14 +11507,14 @@ export type GroupListByServiceResponse = GroupCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupCollection; + parsedBody: GatewayCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders & { +export type GatewayGetEntityTagResponse = GatewayGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -10896,14 +11522,14 @@ export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: GroupGetEntityTagHeaders; + parsedHeaders: GatewayGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type GroupGetResponse = GroupContract & GroupGetHeaders & { +export type GatewayGetResponse = GatewayContract & GatewayGetHeaders & { /** * The underlying HTTP response. */ @@ -10911,7 +11537,7 @@ export type GroupGetResponse = GroupContract & GroupGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: GroupGetHeaders; + parsedHeaders: GatewayGetHeaders; /** * The response body as text (string format) @@ -10921,14 +11547,14 @@ export type GroupGetResponse = GroupContract & GroupGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupContract; + parsedBody: GatewayContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type GroupCreateOrUpdateResponse = GroupContract & GroupCreateOrUpdateHeaders & { +export type GatewayCreateOrUpdateResponse = GatewayContract & GatewayCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ @@ -10936,28 +11562,8 @@ export type GroupCreateOrUpdateResponse = GroupContract & GroupCreateOrUpdateHea /** * The parsed HTTP response headers. */ - parsedHeaders: GroupCreateOrUpdateHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: GroupContract; - }; -}; + parsedHeaders: GatewayCreateOrUpdateHeaders; -/** - * Contains response data for the listByServiceNext operation. - */ -export type GroupListByServiceNextResponse = GroupCollection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -10966,43 +11572,23 @@ export type GroupListByServiceNextResponse = GroupCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupCollection; + parsedBody: GatewayContract; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listKeys operation. */ -export type GroupUserListResponse = UserCollection & { +export type GatewayListKeysResponse = GatewayKeysContract & GatewayListKeysHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML + * The parsed HTTP response headers. */ - parsedBody: UserCollection; - }; -}; - -/** - * Contains response data for the checkEntityExists operation. - */ -export type GroupUserCheckEntityExistsResponse = { - /** - * The parsed response body. - */ - body: boolean; + parsedHeaders: GatewayListKeysHeaders; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -11011,14 +11597,14 @@ export type GroupUserCheckEntityExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: GatewayKeysContract; }; }; /** - * Contains response data for the create operation. + * Contains response data for the generateToken operation. */ -export type GroupUserCreateResponse = UserContract & { +export type GatewayGenerateTokenResponse = GatewayTokenContract & { /** * The underlying HTTP response. */ @@ -11031,14 +11617,14 @@ export type GroupUserCreateResponse = UserContract & { /** * The response body as parsed JSON or XML */ - parsedBody: UserContract; + parsedBody: GatewayTokenContract; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByServiceNext operation. */ -export type GroupUserListNextResponse = UserCollection & { +export type GatewayListByServiceNextResponse = GatewayCollection & { /** * The underlying HTTP response. */ @@ -11051,14 +11637,14 @@ export type GroupUserListNextResponse = UserCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: UserCollection; + parsedBody: GatewayCollection; }; }; /** * Contains response data for the listByService operation. */ -export type IdentityProviderListByServiceResponse = IdentityProviderList & { +export type GatewayHostnameConfigurationListByServiceResponse = GatewayHostnameConfigurationCollection & { /** * The underlying HTTP response. */ @@ -11071,14 +11657,14 @@ export type IdentityProviderListByServiceResponse = IdentityProviderList & { /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderList; + parsedBody: GatewayHostnameConfigurationCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders & { +export type GatewayHostnameConfigurationGetEntityTagResponse = GatewayHostnameConfigurationGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -11086,14 +11672,14 @@ export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagH /** * The parsed HTTP response headers. */ - parsedHeaders: IdentityProviderGetEntityTagHeaders; + parsedHeaders: GatewayHostnameConfigurationGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type IdentityProviderGetResponse = IdentityProviderContract & IdentityProviderGetHeaders & { +export type GatewayHostnameConfigurationGetResponse = GatewayHostnameConfigurationContract & GatewayHostnameConfigurationGetHeaders & { /** * The underlying HTTP response. */ @@ -11101,7 +11687,7 @@ export type IdentityProviderGetResponse = IdentityProviderContract & IdentityPro /** * The parsed HTTP response headers. */ - parsedHeaders: IdentityProviderGetHeaders; + parsedHeaders: GatewayHostnameConfigurationGetHeaders; /** * The response body as text (string format) @@ -11111,14 +11697,14 @@ export type IdentityProviderGetResponse = IdentityProviderContract & IdentityPro /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderContract; + parsedBody: GatewayHostnameConfigurationContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type IdentityProviderCreateOrUpdateResponse = IdentityProviderContract & IdentityProviderCreateOrUpdateHeaders & { +export type GatewayHostnameConfigurationCreateOrUpdateResponse = GatewayHostnameConfigurationContract & GatewayHostnameConfigurationCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ @@ -11126,7 +11712,7 @@ export type IdentityProviderCreateOrUpdateResponse = IdentityProviderContract & /** * The parsed HTTP response headers. */ - parsedHeaders: IdentityProviderCreateOrUpdateHeaders; + parsedHeaders: GatewayHostnameConfigurationCreateOrUpdateHeaders; /** * The response body as text (string format) @@ -11136,14 +11722,14 @@ export type IdentityProviderCreateOrUpdateResponse = IdentityProviderContract & /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderContract; + parsedBody: GatewayHostnameConfigurationContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type IdentityProviderListByServiceNextResponse = IdentityProviderList & { +export type GatewayHostnameConfigurationListByServiceNextResponse = GatewayHostnameConfigurationCollection & { /** * The underlying HTTP response. */ @@ -11156,14 +11742,14 @@ export type IdentityProviderListByServiceNextResponse = IdentityProviderList & { /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderList; + parsedBody: GatewayHostnameConfigurationCollection; }; }; /** * Contains response data for the listByService operation. */ -export type IssueListByServiceResponse = IssueCollection & { +export type GatewayApiListByServiceResponse = ApiCollection & { /** * The underlying HTTP response. */ @@ -11176,14 +11762,14 @@ export type IssueListByServiceResponse = IssueCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: IssueCollection; + parsedBody: ApiCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getEntityTag operation. */ -export type IssueGetResponse = IssueContract & IssueGetHeaders & { +export type GatewayApiGetEntityTagResponse = GatewayApiGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -11191,8 +11777,18 @@ export type IssueGetResponse = IssueContract & IssueGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: IssueGetHeaders; + parsedHeaders: GatewayApiGetEntityTagHeaders; + }; +}; +/** + * Contains response data for the createOrUpdate operation. + */ +export type GatewayApiCreateOrUpdateResponse = ApiContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -11201,14 +11797,14 @@ export type IssueGetResponse = IssueContract & IssueGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: IssueContract; + parsedBody: ApiContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type IssueListByServiceNextResponse = IssueCollection & { +export type GatewayApiListByServiceNextResponse = ApiCollection & { /** * The underlying HTTP response. */ @@ -11221,14 +11817,14 @@ export type IssueListByServiceNextResponse = IssueCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: IssueCollection; + parsedBody: ApiCollection; }; }; /** * Contains response data for the listByService operation. */ -export type LoggerListByServiceResponse = LoggerCollection & { +export type GroupListByServiceResponse = GroupCollection & { /** * The underlying HTTP response. */ @@ -11241,14 +11837,14 @@ export type LoggerListByServiceResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: GroupCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders & { +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -11256,14 +11852,14 @@ export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: LoggerGetEntityTagHeaders; + parsedHeaders: GroupGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type LoggerGetResponse = LoggerContract & LoggerGetHeaders & { +export type GroupGetResponse = GroupContract & GroupGetHeaders & { /** * The underlying HTTP response. */ @@ -11271,7 +11867,7 @@ export type LoggerGetResponse = LoggerContract & LoggerGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: LoggerGetHeaders; + parsedHeaders: GroupGetHeaders; /** * The response body as text (string format) @@ -11281,14 +11877,14 @@ export type LoggerGetResponse = LoggerContract & LoggerGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerContract; + parsedBody: GroupContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type LoggerCreateOrUpdateResponse = LoggerContract & LoggerCreateOrUpdateHeaders & { +export type GroupCreateOrUpdateResponse = GroupContract & GroupCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ @@ -11296,7 +11892,7 @@ export type LoggerCreateOrUpdateResponse = LoggerContract & LoggerCreateOrUpdate /** * The parsed HTTP response headers. */ - parsedHeaders: LoggerCreateOrUpdateHeaders; + parsedHeaders: GroupCreateOrUpdateHeaders; /** * The response body as text (string format) @@ -11306,14 +11902,14 @@ export type LoggerCreateOrUpdateResponse = LoggerContract & LoggerCreateOrUpdate /** * The response body as parsed JSON or XML */ - parsedBody: LoggerContract; + parsedBody: GroupContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type LoggerListByServiceNextResponse = LoggerCollection & { +export type GroupListByServiceNextResponse = GroupCollection & { /** * The underlying HTTP response. */ @@ -11326,14 +11922,14 @@ export type LoggerListByServiceNextResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: GroupCollection; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the list operation. */ -export type NetworkStatusListByServiceResponse = Array & { +export type GroupUserListResponse = UserCollection & { /** * The underlying HTTP response. */ @@ -11346,14 +11942,19 @@ export type NetworkStatusListByServiceResponse = Array & { + /** + * 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: NetworkStatusContractByLocation[]; + }; +}; + +/** + * Contains response data for the listByLocation operation. + */ +export type NetworkStatusListByLocationResponse = NetworkStatusContract & { + /** + * 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: NetworkStatusContract; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type NotificationListByServiceResponse = NotificationCollection & { + /** + * 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: NotificationCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NotificationGetResponse = NotificationContract & { + /** + * 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: NotificationContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type NotificationCreateOrUpdateResponse = NotificationContract & { + /** + * 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: NotificationContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type NotificationListByServiceNextResponse = NotificationCollection & { + /** + * 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: NotificationCollection; + }; +}; + +/** + * Contains response data for the listByNotification operation. + */ +export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection & { + /** + * 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: RecipientUserCollection; + }; +}; + +/** + * Contains response data for the checkEntityExists operation. + */ +export type NotificationRecipientUserCheckEntityExistsResponse = { + /** + * The parsed response body. + */ + body: boolean; + /** * The underlying HTTP response. */ @@ -11665,6 +12791,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 +12919,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 +12932,7 @@ export type PolicySnippetListByServiceResponse = PolicySnippetsCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicySnippetsCollection; + parsedBody: PolicyDescriptionCollection; }; }; @@ -11970,6 +13116,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. */ @@ -12360,111 +13526,6 @@ export type ProductPolicyCreateOrUpdateResponse = PolicyContract & ProductPolicy }; }; -/** - * Contains response data for the listByService operation. - */ -export type PropertyListByServiceResponse = PropertyCollection & { - /** - * 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: PropertyCollection; - }; -}; - -/** - * Contains response data for the getEntityTag operation. - */ -export type PropertyGetEntityTagResponse = PropertyGetEntityTagHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PropertyGetEntityTagHeaders; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PropertyGetHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PropertyContract; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type PropertyCreateOrUpdateResponse = PropertyContract & PropertyCreateOrUpdateHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: PropertyCreateOrUpdateHeaders; - - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: PropertyContract; - }; -}; - -/** - * Contains response data for the listByServiceNext operation. - */ -export type PropertyListByServiceNextResponse = PropertyCollection & { - /** - * 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: PropertyCollection; - }; -}; - /** * Contains response data for the listByService operation. */ @@ -12930,6 +13991,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 +14111,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 +14161,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..997f8c08da60 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/issueMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/issueMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,17 +41,22 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCollection, IssueCommentContract, IssueContract, IssueGetHeaders, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -58,11 +65,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -70,10 +77,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -83,6 +90,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts index c23b4d5dafc6..f6fa57322949 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/loggerMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,11 +41,14 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, @@ -53,6 +58,8 @@ export { LoggerGetEntityTagHeaders, LoggerGetHeaders, LoggerUpdateContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +68,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +80,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +93,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/mappers.ts index 6b65ce34b85f..76d5c775cee6 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" + } } } } @@ -3911,6 +3915,7 @@ export const ApiManagementServiceSkuProperties: msRest.CompositeMapper = { } }, capacity: { + required: true, serializedName: "capacity", type: { name: "Number" @@ -3978,6 +3983,13 @@ export const AdditionalLocation: msRest.CompositeMapper = { type: { name: "String" } + }, + disableGateway: { + serializedName: "disableGateway", + defaultValue: false, + type: { + name: "Boolean" + } } } } @@ -4021,6 +4033,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 +4120,13 @@ export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "hostnameConfigurations", type: { @@ -4177,12 +4212,48 @@ 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 UserIdentityProperties: msRest.CompositeMapper = { + serializedName: "UserIdentityProperties", + type: { + name: "Composite", + className: "UserIdentityProperties", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } } } } @@ -4196,9 +4267,7 @@ export const ApiManagementServiceIdentity: msRest.CompositeMapper = { modelProperties: { type: { required: true, - isConstant: true, serializedName: "type", - defaultValue: 'SystemAssigned', type: { name: "String" } @@ -4216,6 +4285,18 @@ export const ApiManagementServiceIdentity: msRest.CompositeMapper = { type: { name: "Uuid" } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserIdentityProperties" + } + } + } } } } @@ -4335,6 +4416,13 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "properties.developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "properties.hostnameConfigurations", type: { @@ -4420,6 +4508,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 +4522,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 +4654,13 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + developerPortalUrl: { + readOnly: true, + serializedName: "properties.developerPortalUrl", + type: { + name: "String" + } + }, hostnameConfigurations: { serializedName: "properties.hostnameConfigurations", type: { @@ -4637,6 +4746,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 +4760,13 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + apiVersionConstraint: { + serializedName: "properties.apiVersionConstraint", + type: { + name: "Composite", + className: "ApiVersionConstraint" + } + }, publisherEmail: { serializedName: "properties.publisherEmail", constraints: { @@ -4998,119 +5121,330 @@ export const EmailTemplateContract: msRest.CompositeMapper = { } }; -export const UserIdentityContract: msRest.CompositeMapper = { - serializedName: "UserIdentityContract", +export const AssociationContract: msRest.CompositeMapper = { + serializedName: "AssociationContract", type: { name: "Composite", - className: "UserIdentityContract", + className: "AssociationContract", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - id: { - serializedName: "id", + ...Resource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", type: { - name: "String" + name: "Enum", + allowedValues: [ + "created" + ] } } } } }; -export const UserEntityBaseParameters: msRest.CompositeMapper = { - serializedName: "UserEntityBaseParameters", +export const GatewayHostnameConfigurationContract: msRest.CompositeMapper = { + serializedName: "GatewayHostnameConfigurationContract", type: { name: "Composite", - className: "UserEntityBaseParameters", + className: "GatewayHostnameConfigurationContract", modelProperties: { - state: { - serializedName: "state", - defaultValue: 'active', + ...Resource.type.modelProperties, + hostname: { + serializedName: "properties.hostname", type: { name: "String" } }, - note: { - serializedName: "note", + certificateId: { + serializedName: "properties.certificateId", type: { name: "String" } }, - identities: { - serializedName: "identities", + negotiateClientCertificate: { + serializedName: "properties.negotiateClientCertificate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } + name: "Boolean" } } } } }; -export const GroupContractProperties: msRest.CompositeMapper = { - serializedName: "GroupContractProperties", +export const GatewayTokenContract: msRest.CompositeMapper = { + serializedName: "GatewayTokenContract", type: { name: "Composite", - className: "GroupContractProperties", + className: "GatewayTokenContract", modelProperties: { - displayName: { - required: true, - serializedName: "displayName", - constraints: { - MaxLength: 300, - MinLength: 1 - }, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - constraints: { - MaxLength: 1000 - }, + value: { + serializedName: "value", type: { name: "String" } - }, - builtIn: { - readOnly: true, - serializedName: "builtIn", - type: { - name: "Boolean" - } - }, - type: { - serializedName: "type", + } + } + } +}; + +export const GatewayTokenRequestContract: msRest.CompositeMapper = { + serializedName: "GatewayTokenRequestContract", + type: { + name: "Composite", + className: "GatewayTokenRequestContract", + modelProperties: { + keyType: { + required: true, + serializedName: "keyType", + defaultValue: 'primary', type: { name: "Enum", allowedValues: [ - "custom", - "system", - "external" + "primary", + "secondary" ] } }, - externalId: { - serializedName: "externalId", + expiry: { + required: true, + serializedName: "expiry", type: { - name: "String" + name: "DateTime" } } } } }; -export const UserContract: msRest.CompositeMapper = { - serializedName: "UserContract", +export const GatewayKeyRegenerationRequestContract: msRest.CompositeMapper = { + serializedName: "GatewayKeyRegenerationRequestContract", + type: { + name: "Composite", + className: "GatewayKeyRegenerationRequestContract", + modelProperties: { + keyType: { + required: true, + serializedName: "keyType", + type: { + name: "Enum", + allowedValues: [ + "primary", + "secondary" + ] + } + } + } + } +}; + +export const GatewayKeysContract: msRest.CompositeMapper = { + serializedName: "GatewayKeysContract", + type: { + name: "Composite", + className: "GatewayKeysContract", + modelProperties: { + primary: { + serializedName: "primary", + type: { + name: "String" + } + }, + secondary: { + serializedName: "secondary", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceLocationDataContract: msRest.CompositeMapper = { + serializedName: "ResourceLocationDataContract", + type: { + name: "Composite", + className: "ResourceLocationDataContract", + modelProperties: { + name: { + required: true, + serializedName: "name", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + city: { + serializedName: "city", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + district: { + serializedName: "district", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + countryOrRegion: { + serializedName: "countryOrRegion", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + } + } + } +}; + +export const GatewayContract: msRest.CompositeMapper = { + serializedName: "GatewayContract", + type: { + name: "Composite", + className: "GatewayContract", + modelProperties: { + ...Resource.type.modelProperties, + locationData: { + serializedName: "properties.locationData", + type: { + name: "Composite", + className: "ResourceLocationDataContract" + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 1000 + }, + type: { + name: "String" + } + } + } + } +}; + +export const UserIdentityContract: msRest.CompositeMapper = { + serializedName: "UserIdentityContract", + type: { + name: "Composite", + className: "UserIdentityContract", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const UserEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "UserEntityBaseParameters", + type: { + name: "Composite", + className: "UserEntityBaseParameters", + modelProperties: { + state: { + serializedName: "state", + defaultValue: 'active', + type: { + name: "String" + } + }, + note: { + serializedName: "note", + type: { + name: "String" + } + }, + identities: { + serializedName: "identities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract" + } + } + } + } + } + } +}; + +export const GroupContractProperties: msRest.CompositeMapper = { + serializedName: "GroupContractProperties", + type: { + name: "Composite", + className: "GroupContractProperties", + modelProperties: { + displayName: { + required: true, + serializedName: "displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + constraints: { + MaxLength: 1000 + }, + type: { + name: "String" + } + }, + builtIn: { + readOnly: true, + serializedName: "builtIn", + type: { + name: "Boolean" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "custom", + "system", + "external" + ] + } + }, + externalId: { + serializedName: "externalId", + type: { + name: "String" + } + } + } + } +}; + +export const UserContract: msRest.CompositeMapper = { + serializedName: "UserContract", type: { name: "Composite", className: "UserContract", @@ -5336,6 +5670,12 @@ export const IdentityProviderBaseParameters: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "allowedTenants", constraints: { @@ -5408,6 +5748,12 @@ export const IdentityProviderUpdateParameters: msRest.CompositeMapper = { name: "String" } }, + signinTenant: { + serializedName: "properties.signinTenant", + type: { + name: "String" + } + }, allowedTenants: { serializedName: "properties.allowedTenants", constraints: { @@ -5499,6 +5845,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: { @@ -5608,59 +6058,263 @@ export const LoggerUpdateContract: msRest.CompositeMapper = { } } }, - isBuffered: { - serializedName: "properties.isBuffered", + isBuffered: { + serializedName: "properties.isBuffered", + type: { + name: "Boolean" + } + } + } + } +}; + +export const LoggerContract: msRest.CompositeMapper = { + serializedName: "LoggerContract", + type: { + name: "Composite", + className: "LoggerContract", + modelProperties: { + ...Resource.type.modelProperties, + loggerType: { + required: true, + serializedName: "properties.loggerType", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + credentials: { + required: true, + serializedName: "properties.credentials", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + isBuffered: { + serializedName: "properties.isBuffered", + type: { + name: "Boolean" + } + }, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const PropertyValueContract: msRest.CompositeMapper = { + serializedName: "PropertyValueContract", + type: { + name: "Composite", + 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", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + secret: { + serializedName: "secret", + type: { + name: "Boolean" + } + } + } + } +}; + +export const NamedValueContract: msRest.CompositeMapper = { + serializedName: "NamedValueContract", + type: { + name: "Composite", + 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", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + secret: { + serializedName: "properties.secret", + type: { + name: "Boolean" + } + }, + displayName: { + 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: "Boolean" + name: "String" } } } } }; -export const LoggerContract: msRest.CompositeMapper = { - serializedName: "LoggerContract", +export const NamedValueCreateContract: msRest.CompositeMapper = { + serializedName: "NamedValueCreateContract", type: { name: "Composite", - className: "LoggerContract", + className: "NamedValueCreateContract", modelProperties: { ...Resource.type.modelProperties, - loggerType: { - required: true, - serializedName: "properties.loggerType", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", + tags: { + serializedName: "properties.tags", constraints: { - MaxLength: 256 + MaxItems: 32 }, type: { - name: "String" - } - }, - credentials: { - required: true, - serializedName: "properties.credentials", - type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "String" } } } }, - isBuffered: { - serializedName: "properties.isBuffered", + secret: { + serializedName: "properties.secret", type: { name: "Boolean" } }, - resourceId: { - serializedName: "properties.resourceId", + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "properties.value", + constraints: { + MaxLength: 4096, + MinLength: 1 + }, type: { name: "String" } @@ -6024,36 +6678,23 @@ export const OpenidConnectProviderContract: msRest.CompositeMapper = { } }; -export const PolicySnippetContract: msRest.CompositeMapper = { - serializedName: "PolicySnippetContract", +export const PolicyDescriptionContract: msRest.CompositeMapper = { + serializedName: "PolicyDescriptionContract", type: { name: "Composite", - className: "PolicySnippetContract", + className: "PolicyDescriptionContract", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - content: { - readOnly: true, - serializedName: "content", - type: { - name: "String" - } - }, - toolTip: { + ...Resource.type.modelProperties, + description: { readOnly: true, - serializedName: "toolTip", + serializedName: "properties.description", type: { name: "String" } }, scope: { readOnly: true, - serializedName: "scope", + serializedName: "properties.scope", type: { name: "Number" } @@ -6062,11 +6703,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 +6716,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" + } } } } @@ -6286,245 +6949,108 @@ export const SubscriptionContract: msRest.CompositeMapper = { name: "DateTime" } }, - endDate: { - serializedName: "properties.endDate", - type: { - name: "DateTime" - } - }, - notificationDate: { - serializedName: "properties.notificationDate", - type: { - name: "DateTime" - } - }, - primaryKey: { - required: true, - serializedName: "properties.primaryKey", - constraints: { - MaxLength: 256, - MinLength: 1 - }, - type: { - name: "String" - } - }, - secondaryKey: { - required: true, - serializedName: "properties.secondaryKey", - constraints: { - MaxLength: 256, - MinLength: 1 - }, - type: { - name: "String" - } - }, - stateComment: { - serializedName: "properties.stateComment", - type: { - name: "String" - } - }, - allowTracing: { - serializedName: "properties.allowTracing", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ProductUpdateParameters: msRest.CompositeMapper = { - serializedName: "ProductUpdateParameters", - type: { - name: "Composite", - className: "ProductUpdateParameters", - modelProperties: { - description: { - serializedName: "properties.description", - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - type: { - name: "String" - } - }, - terms: { - serializedName: "properties.terms", - type: { - name: "String" - } - }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", - type: { - name: "Boolean" - } - }, - approvalRequired: { - serializedName: "properties.approvalRequired", - type: { - name: "Boolean" - } - }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", - type: { - name: "Number" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "notPublished", - "published" - ] - } - }, - displayName: { - serializedName: "properties.displayName", - constraints: { - MaxLength: 300, - MinLength: 1 - }, - type: { - name: "String" - } - } - } - } -}; - -export const PropertyEntityBaseParameters: msRest.CompositeMapper = { - serializedName: "PropertyEntityBaseParameters", - type: { - name: "Composite", - className: "PropertyEntityBaseParameters", - modelProperties: { - tags: { - serializedName: "tags", - constraints: { - MaxItems: 32 - }, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - secret: { - serializedName: "secret", - type: { - name: "Boolean" - } - } - } - } -}; - -export const PropertyUpdateParameters: msRest.CompositeMapper = { - serializedName: "PropertyUpdateParameters", - type: { - name: "Composite", - className: "PropertyUpdateParameters", - modelProperties: { - tags: { - serializedName: "properties.tags", - constraints: { - MaxItems: 32 - }, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + endDate: { + serializedName: "properties.endDate", + type: { + name: "DateTime" } }, - secret: { - serializedName: "properties.secret", + notificationDate: { + serializedName: "properties.notificationDate", type: { - name: "Boolean" + name: "DateTime" } }, - displayName: { - serializedName: "properties.displayName", + primaryKey: { + serializedName: "properties.primaryKey", constraints: { MaxLength: 256, - MinLength: 1, - Pattern: /^[A-Za-z0-9-._]+$/ + MinLength: 1 }, type: { name: "String" } }, - value: { - serializedName: "properties.value", + secondaryKey: { + serializedName: "properties.secondaryKey", constraints: { - MaxLength: 4096, + MaxLength: 256, MinLength: 1 }, type: { name: "String" } + }, + stateComment: { + serializedName: "properties.stateComment", + type: { + name: "String" + } + }, + allowTracing: { + serializedName: "properties.allowTracing", + type: { + name: "Boolean" + } } } } }; -export const PropertyContract: msRest.CompositeMapper = { - serializedName: "PropertyContract", +export const ProductUpdateParameters: msRest.CompositeMapper = { + serializedName: "ProductUpdateParameters", type: { name: "Composite", - className: "PropertyContract", + className: "ProductUpdateParameters", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "properties.tags", + description: { + serializedName: "properties.description", constraints: { - MaxItems: 32 + MaxLength: 1000, + MinLength: 1 }, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - secret: { - serializedName: "properties.secret", + terms: { + serializedName: "properties.terms", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", type: { name: "Boolean" } }, - displayName: { - required: true, - serializedName: "properties.displayName", - constraints: { - MaxLength: 256, - MinLength: 1, - Pattern: /^[A-Za-z0-9-._]+$/ - }, + approvalRequired: { + serializedName: "properties.approvalRequired", type: { - name: "String" + name: "Boolean" } }, - value: { - required: true, - serializedName: "properties.value", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + type: { + name: "Number" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "notPublished", + "published" + ] + } + }, + displayName: { + serializedName: "properties.displayName", constraints: { - MaxLength: 4096, + MaxLength: 300, MinLength: 1 }, type: { @@ -6930,6 +7456,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: { @@ -7549,6 +8105,12 @@ export const UserCreateParameters: msRest.CompositeMapper = { name: "String" } }, + appType: { + serializedName: "properties.appType", + type: { + name: "String" + } + }, confirmation: { serializedName: "properties.confirmation", type: { @@ -8314,7 +8876,135 @@ export const AuthorizationServerCreateOrUpdateHeaders: msRest.CompositeMapper = serializedName: "authorizationserver-createorupdate-headers", type: { name: "Composite", - className: "AuthorizationServerCreateOrUpdateHeaders", + className: "AuthorizationServerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "backend-getentitytag-headers", + type: { + name: "Composite", + className: "BackendGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendGetHeaders: msRest.CompositeMapper = { + serializedName: "backend-get-headers", + type: { + name: "Composite", + className: "BackendGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "backend-createorupdate-headers", + type: { + name: "Composite", + className: "BackendCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "cache-getentitytag-headers", + type: { + name: "Composite", + className: "CacheGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetHeaders: msRest.CompositeMapper = { + serializedName: "cache-get-headers", + type: { + name: "Composite", + className: "CacheGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "cache-createorupdate-headers", + type: { + name: "Composite", + className: "CacheCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "certificate-getentitytag-headers", + type: { + name: "Composite", + className: "CertificateGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateGetHeaders: msRest.CompositeMapper = { + serializedName: "certificate-get-headers", + type: { + name: "Composite", + className: "CertificateGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8326,11 +9016,11 @@ export const AuthorizationServerCreateOrUpdateHeaders: msRest.CompositeMapper = } }; -export const BackendGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "backend-getentitytag-headers", +export const CertificateCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "certificate-createorupdate-headers", type: { name: "Composite", - className: "BackendGetEntityTagHeaders", + className: "CertificateCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8342,11 +9032,11 @@ export const BackendGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const BackendGetHeaders: msRest.CompositeMapper = { - serializedName: "backend-get-headers", +export const DiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-getentitytag-headers", type: { name: "Composite", - className: "BackendGetHeaders", + className: "DiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8358,11 +9048,11 @@ export const BackendGetHeaders: msRest.CompositeMapper = { } }; -export const BackendCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "backend-createorupdate-headers", +export const DiagnosticGetHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-get-headers", type: { name: "Composite", - className: "BackendCreateOrUpdateHeaders", + className: "DiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8374,11 +9064,11 @@ export const BackendCreateOrUpdateHeaders: msRest.CompositeMapper = { } }; -export const CacheGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "cache-getentitytag-headers", +export const DiagnosticCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-createorupdate-headers", type: { name: "Composite", - className: "CacheGetEntityTagHeaders", + className: "DiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8390,11 +9080,11 @@ export const CacheGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const CacheGetHeaders: msRest.CompositeMapper = { - serializedName: "cache-get-headers", +export const EmailTemplateGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "emailtemplate-getentitytag-headers", type: { name: "Composite", - className: "CacheGetHeaders", + className: "EmailTemplateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8406,11 +9096,11 @@ export const CacheGetHeaders: msRest.CompositeMapper = { } }; -export const CacheCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "cache-createorupdate-headers", +export const EmailTemplateGetHeaders: msRest.CompositeMapper = { + serializedName: "emailtemplate-get-headers", type: { name: "Composite", - className: "CacheCreateOrUpdateHeaders", + className: "EmailTemplateGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8422,11 +9112,11 @@ export const CacheCreateOrUpdateHeaders: msRest.CompositeMapper = { } }; -export const CertificateGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "certificate-getentitytag-headers", +export const GatewayGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "gateway-getentitytag-headers", type: { name: "Composite", - className: "CertificateGetEntityTagHeaders", + className: "GatewayGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8438,11 +9128,11 @@ export const CertificateGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const CertificateGetHeaders: msRest.CompositeMapper = { - serializedName: "certificate-get-headers", +export const GatewayGetHeaders: msRest.CompositeMapper = { + serializedName: "gateway-get-headers", type: { name: "Composite", - className: "CertificateGetHeaders", + className: "GatewayGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8454,11 +9144,11 @@ export const CertificateGetHeaders: msRest.CompositeMapper = { } }; -export const CertificateCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "certificate-createorupdate-headers", +export const GatewayCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "gateway-createorupdate-headers", type: { name: "Composite", - className: "CertificateCreateOrUpdateHeaders", + className: "GatewayCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8470,11 +9160,11 @@ export const CertificateCreateOrUpdateHeaders: msRest.CompositeMapper = { } }; -export const DiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "diagnostic-getentitytag-headers", +export const GatewayListKeysHeaders: msRest.CompositeMapper = { + serializedName: "gateway-listkeys-headers", type: { name: "Composite", - className: "DiagnosticGetEntityTagHeaders", + className: "GatewayListKeysHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8486,11 +9176,11 @@ export const DiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const DiagnosticGetHeaders: msRest.CompositeMapper = { - serializedName: "diagnostic-get-headers", +export const GatewayHostnameConfigurationGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "gatewayhostnameconfiguration-getentitytag-headers", type: { name: "Composite", - className: "DiagnosticGetHeaders", + className: "GatewayHostnameConfigurationGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8502,11 +9192,11 @@ export const DiagnosticGetHeaders: msRest.CompositeMapper = { } }; -export const DiagnosticCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "diagnostic-createorupdate-headers", +export const GatewayHostnameConfigurationGetHeaders: msRest.CompositeMapper = { + serializedName: "gatewayhostnameconfiguration-get-headers", type: { name: "Composite", - className: "DiagnosticCreateOrUpdateHeaders", + className: "GatewayHostnameConfigurationGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8518,11 +9208,11 @@ export const DiagnosticCreateOrUpdateHeaders: msRest.CompositeMapper = { } }; -export const EmailTemplateGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "emailtemplate-getentitytag-headers", +export const GatewayHostnameConfigurationCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "gatewayhostnameconfiguration-createorupdate-headers", type: { name: "Composite", - className: "EmailTemplateGetEntityTagHeaders", + className: "GatewayHostnameConfigurationCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8534,11 +9224,11 @@ export const EmailTemplateGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const EmailTemplateGetHeaders: msRest.CompositeMapper = { - serializedName: "emailtemplate-get-headers", +export const GatewayApiGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "gatewayapi-getentitytag-headers", type: { name: "Composite", - className: "EmailTemplateGetHeaders", + className: "GatewayApiGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8710,6 +9400,70 @@ export const LoggerCreateOrUpdateHeaders: msRest.CompositeMapper = { } }; +export const NamedValueGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "namedvalue-getentitytag-headers", + type: { + name: "Composite", + className: "NamedValueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueGetHeaders: msRest.CompositeMapper = { + serializedName: "namedvalue-get-headers", + type: { + name: "Composite", + className: "NamedValueGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const NamedValueCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "namedvalue-createorupdate-headers", + type: { + name: "Composite", + 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", + type: { + name: "String" + } + } + } + } +}; + export const OpenIdConnectProviderGetEntityTagHeaders: msRest.CompositeMapper = { serializedName: "openidconnectprovider-getentitytag-headers", type: { @@ -9030,54 +9784,6 @@ export const TagGetByProductHeaders: msRest.CompositeMapper = { } }; -export const PropertyGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "property-getentitytag-headers", - type: { - name: "Composite", - className: "PropertyGetEntityTagHeaders", - modelProperties: { - eTag: { - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const PropertyGetHeaders: msRest.CompositeMapper = { - serializedName: "property-get-headers", - type: { - name: "Composite", - className: "PropertyGetHeaders", - modelProperties: { - eTag: { - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const PropertyCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "property-createorupdate-headers", - type: { - name: "Composite", - className: "PropertyCreateOrUpdateHeaders", - modelProperties: { - eTag: { - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - export const SubscriptionGetEntityTagHeaders: msRest.CompositeMapper = { serializedName: "subscription-getentitytag-headers", type: { @@ -9206,6 +9912,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 +9944,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: { @@ -9910,6 +10648,66 @@ export const EmailTemplateCollection: msRest.CompositeMapper = { } }; +export const GatewayCollection: msRest.CompositeMapper = { + serializedName: "GatewayCollection", + type: { + name: "Composite", + className: "GatewayCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GatewayHostnameConfigurationCollection: msRest.CompositeMapper = { + serializedName: "GatewayHostnameConfigurationCollection", + type: { + name: "Composite", + className: "GatewayHostnameConfigurationCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GatewayHostnameConfigurationContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const GroupCollection: msRest.CompositeMapper = { serializedName: "GroupCollection", type: { @@ -10028,11 +10826,11 @@ export const LoggerCollection: msRest.CompositeMapper = { } }; -export const NotificationCollection: msRest.CompositeMapper = { - serializedName: "NotificationCollection", +export const NamedValueCollection: msRest.CompositeMapper = { + serializedName: "NamedValueCollection", type: { name: "Composite", - className: "NotificationCollection", + className: "NamedValueCollection", modelProperties: { value: { serializedName: "", @@ -10041,7 +10839,7 @@ export const NotificationCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "NotificationContract" + className: "NamedValueContract" } } } @@ -10056,11 +10854,11 @@ export const NotificationCollection: msRest.CompositeMapper = { } }; -export const OpenIdConnectProviderCollection: msRest.CompositeMapper = { - serializedName: "OpenIdConnectProviderCollection", +export const NotificationCollection: msRest.CompositeMapper = { + serializedName: "NotificationCollection", type: { name: "Composite", - className: "OpenIdConnectProviderCollection", + className: "NotificationCollection", modelProperties: { value: { serializedName: "", @@ -10069,7 +10867,7 @@ export const OpenIdConnectProviderCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "OpenidConnectProviderContract" + className: "NotificationContract" } } } @@ -10084,11 +10882,11 @@ export const OpenIdConnectProviderCollection: msRest.CompositeMapper = { } }; -export const SubscriptionCollection: msRest.CompositeMapper = { - serializedName: "SubscriptionCollection", +export const OpenIdConnectProviderCollection: msRest.CompositeMapper = { + serializedName: "OpenIdConnectProviderCollection", type: { name: "Composite", - className: "SubscriptionCollection", + className: "OpenIdConnectProviderCollection", modelProperties: { value: { serializedName: "", @@ -10097,7 +10895,7 @@ export const SubscriptionCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "SubscriptionContract" + className: "OpenidConnectProviderContract" } } } @@ -10112,11 +10910,11 @@ export const SubscriptionCollection: msRest.CompositeMapper = { } }; -export const PropertyCollection: msRest.CompositeMapper = { - serializedName: "PropertyCollection", +export const SubscriptionCollection: msRest.CompositeMapper = { + serializedName: "SubscriptionCollection", type: { name: "Composite", - className: "PropertyCollection", + className: "SubscriptionCollection", modelProperties: { value: { serializedName: "", @@ -10125,7 +10923,7 @@ export const PropertyCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PropertyContract" + className: "SubscriptionContract" } } } 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..ff5563e54053 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/models/namedValueMappers.ts @@ -0,0 +1,101 @@ +/* + * 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, + ApiManagementServiceResource, + ApiManagementServiceSkuProperties, + ApiManagementServiceUpdateParameters, + ApimResource, + ApiReleaseContract, + ApiVersionConstraint, + ApiVersionSetContract, + ApiVersionSetContractDetails, + AssociationContract, + AuthenticationSettingsContract, + AuthorizationServerContract, + AuthorizationServerUpdateContract, + BackendAuthorizationHeaderCredentials, + BackendContract, + BackendCredentialsContract, + BackendProperties, + BackendProxyContract, + BackendReconnectContract, + BackendServiceFabricClusterProperties, + BackendTlsProperties, + BaseResource, + BodyDiagnosticSettings, + CacheContract, + CertificateConfiguration, + CertificateContract, + CertificateInformation, + DiagnosticContract, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + ErrorFieldContract, + ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, + GroupContract, + GroupContractProperties, + HostnameConfiguration, + HttpMessageDiagnostic, + IdentityProviderContract, + IdentityProviderCreateContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + LoggerContract, + NamedValueCollection, + NamedValueContract, + NamedValueCreateContract, + NamedValueCreateOrUpdateHeaders, + NamedValueGetEntityTagHeaders, + NamedValueGetHeaders, + NamedValueUpdateHeaders, + NamedValueUpdateParameters, + NotificationContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + OpenidConnectProviderContract, + OperationContract, + ParameterContract, + PipelineDiagnosticSettings, + PolicyContract, + PolicyDescriptionContract, + PortalDelegationSettings, + PortalSigninSettings, + PortalSignupSettings, + ProductContract, + PropertyValueContract, + RecipientEmailContract, + RecipientsContractProperties, + RecipientUserContract, + RegistrationDelegationSettingsProperties, + RepresentationContract, + RequestContract, + Resource, + ResourceLocationDataContract, + ResponseContract, + SamplingSettings, + SchemaContract, + SubscriptionContract, + SubscriptionKeyParameterNamesContract, + SubscriptionsDelegationSettingsProperties, + TagContract, + TagDescriptionContract, + TermsOfServiceProperties, + TokenBodyParameterContract, + UserContract, + UserIdentityContract, + UserIdentityProperties, + 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..b82a3ea1eab4 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/notificationMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/notificationMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationCollection, NotificationContract, OAuth2AuthenticationSettingsContract, @@ -57,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts index bdd08eeb56c1..16c005715b18 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientEmailMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailCollection, RecipientEmailContract, RecipientsContractProperties, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts index 271e0693fe00..a1fb53d824c6 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/notificationRecipientUserMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserCollection, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts index 3955587dcdc6..4ffb64cf0376 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/openIdConnectProviderMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -34,20 +36,26 @@ export { CertificateConfiguration, CertificateContract, CertificateInformation, + ClientSecretContract, DiagnosticContract, EmailTemplateContract, EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -61,11 +69,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +81,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +94,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts index ecefc49f61d1..40b557d6bd63 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/parameters.ts @@ -326,6 +326,20 @@ export const format1: msRest.OperationQueryParameter = { } } }; +export const gatewayId: msRest.OperationURLParameter = { + parameterPath: "gatewayId", + mapper: { + required: true, + serializedName: "gatewayId", + constraints: { + MaxLength: 80, + MinLength: 1 + }, + type: { + name: "String" + } + } +}; export const groupId: msRest.OperationURLParameter = { parameterPath: "groupId", mapper: { @@ -340,6 +354,20 @@ export const groupId: msRest.OperationURLParameter = { } } }; +export const hcId: msRest.OperationURLParameter = { + parameterPath: "hcId", + mapper: { + required: true, + serializedName: "hcId", + constraints: { + MaxLength: 80, + MinLength: 1 + }, + type: { + name: "String" + } + } +}; export const identityProviderName: msRest.OperationURLParameter = { parameterPath: "identityProviderName", mapper: { @@ -460,6 +488,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 +601,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 +746,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 88% rename from sdk/apimanagement/arm-apimanagement/src/models/propertyMappers.ts rename to sdk/apimanagement/arm-apimanagement/src/models/policyDescriptionMappers.ts index 6412f6f50666..b0eb43eb71d2 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/propertyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/policyDescriptionMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,16 +63,12 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionCollection, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyCollection, - PropertyContract, - PropertyCreateOrUpdateHeaders, - PropertyGetEntityTagHeaders, - PropertyGetHeaders, - PropertyUpdateParameters, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -73,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -86,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts index 30f4ebce5764..9caf6ee9ab57 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/policyMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -58,13 +65,13 @@ export { PolicyCollection, PolicyContract, PolicyCreateOrUpdateHeaders, + PolicyDescriptionContract, PolicyGetEntityTagHeaders, PolicyGetHeaders, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; 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..76b1488cc812 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productApiMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productApiMappers.ts @@ -16,8 +16,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -40,15 +42,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts index 5e6b3bf3190e..f48788d98b20 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productGroupMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,16 +41,21 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupCollection, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts index 35190c904e56..87092fa3ab06 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productMappers.ts @@ -18,8 +18,10 @@ export { ApimResource, ApiReleaseContract, ApiTagResourceContractProperties, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -42,15 +44,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -60,6 +67,7 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, @@ -71,7 +79,6 @@ export { ProductGetHeaders, ProductTagResourceContractProperties, ProductUpdateParameters, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -79,10 +86,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -95,6 +102,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts index 020c559805dc..64ac202f796a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productPolicyMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,6 +64,7 @@ export { PipelineDiagnosticSettings, PolicyCollection, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, @@ -64,7 +72,6 @@ export { ProductPolicyCreateOrUpdateHeaders, ProductPolicyGetEntityTagHeaders, ProductPolicyGetHeaders, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -72,10 +79,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -85,6 +92,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts index 153310815752..e21019e9e856 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/productSubscriptionsMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -68,10 +75,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionCollection, SubscriptionContract, SubscriptionKeyParameterNamesContract, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts index 5d6c0671b47e..25a28d6ee8ef 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/signInSettingsMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -68,10 +75,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SignInSettingsGetEntityTagHeaders, SignInSettingsGetHeaders, SubscriptionContract, @@ -83,6 +90,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts index 7e47f95961ff..050a808f4053 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/signUpSettingsMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -68,10 +75,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SignUpSettingsGetEntityTagHeaders, SignUpSettingsGetHeaders, SubscriptionContract, @@ -83,6 +90,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts index a273cbdac0fa..eda090037b74 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/subscriptionMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -68,10 +75,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionCollection, SubscriptionContract, SubscriptionCreateOrUpdateHeaders, @@ -79,6 +86,7 @@ export { SubscriptionGetEntityTagHeaders, SubscriptionGetHeaders, SubscriptionKeyParameterNamesContract, + SubscriptionKeysContract, SubscriptionsDelegationSettingsProperties, SubscriptionUpdateParameters, TagContract, @@ -87,6 +95,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts index 4fe85a75f430..887095666625 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/tagMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -68,10 +75,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -93,6 +100,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; 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..f48788d98b20 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/userGroupMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/userGroupMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,16 +41,21 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupCollection, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; diff --git a/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts index 7ce3db17b830..d2d15d6016db 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/userMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,16 +41,21 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GenerateSsoUrlResult, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -57,11 +64,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -69,10 +76,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionContract, SubscriptionKeyParameterNamesContract, SubscriptionsDelegationSettingsProperties, @@ -87,6 +94,7 @@ export { UserGetEntityTagHeaders, UserGetHeaders, UserIdentityContract, + UserIdentityProperties, UserTokenParameters, UserTokenResult, UserUpdateParameters, diff --git a/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts index 153310815752..e21019e9e856 100644 --- a/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts +++ b/sdk/apimanagement/arm-apimanagement/src/models/userSubscriptionMappers.ts @@ -15,8 +15,10 @@ export { ApiManagementServiceUpdateParameters, ApimResource, ApiReleaseContract, + ApiVersionConstraint, ApiVersionSetContract, ApiVersionSetContractDetails, + AssociationContract, AuthenticationSettingsContract, AuthorizationServerContract, AuthorizationServerUpdateContract, @@ -39,15 +41,20 @@ export { EmailTemplateParametersContractProperties, ErrorFieldContract, ErrorResponse, + GatewayContract, + GatewayHostnameConfigurationContract, GroupContract, GroupContractProperties, HostnameConfiguration, HttpMessageDiagnostic, IdentityProviderContract, + IdentityProviderCreateContract, IssueAttachmentContract, IssueCommentContract, IssueContract, LoggerContract, + NamedValueContract, + NamedValueCreateContract, NotificationContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, @@ -56,11 +63,11 @@ export { ParameterContract, PipelineDiagnosticSettings, PolicyContract, + PolicyDescriptionContract, PortalDelegationSettings, PortalSigninSettings, PortalSignupSettings, ProductContract, - PropertyContract, RecipientEmailContract, RecipientsContractProperties, RecipientUserContract, @@ -68,10 +75,10 @@ export { RepresentationContract, RequestContract, Resource, + ResourceLocationDataContract, ResponseContract, SamplingSettings, SchemaContract, - SchemaCreateOrUpdateContract, SubscriptionCollection, SubscriptionContract, SubscriptionKeyParameterNamesContract, @@ -82,6 +89,7 @@ export { TokenBodyParameterContract, UserContract, UserIdentityContract, + UserIdentityProperties, VirtualNetworkConfiguration, X509CertificateName } from "../models/mappers"; 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/gateway.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts new file mode 100644 index 000000000000..e2e9bc6fe6a3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gateway.ts @@ -0,0 +1,721 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/gatewayMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Gateway. */ +export class Gateway { + private readonly client: ApiManagementClientContext; + + /** + * Create a Gateway. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of gateways registered with 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 + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.GatewayListByServiceOptionalParams): 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; + /** + * @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.GatewayListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.GatewayListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the Gateway specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Gateway specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, gatewayId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, gatewayId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, gatewayId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, gatewayId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a Gateway to be used in Api Management instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, options?: Models.GatewayCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, options: Models.GatewayCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, options?: Models.GatewayCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the gateway specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param 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 + */ + update(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param 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 callback The callback + */ + update(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific Gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @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, gatewayId: 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 gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @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, gatewayId: 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 gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @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, gatewayId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieves gateway keys. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param [options] The optional parameters + * @returns Promise + */ + listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param callback The callback + */ + listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The optional parameters + * @param callback The callback + */ + listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listKeys(resourceGroupName: string, serviceName: string, gatewayId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + options + }, + listKeysOperationSpec, + callback) as Promise; + } + + /** + * Regenerates specified gateway key invalidating any tokens created with it. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayKeyRegenerationRequestContract, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayKeyRegenerationRequestContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayKeyRegenerationRequestContract, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKey(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayKeyRegenerationRequestContract, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + parameters, + options + }, + regenerateKeyOperationSpec, + callback); + } + + /** + * Gets the Shared Access Authorization Token for the gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayTokenRequestContract, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param callback The callback + */ + generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayTokenRequestContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayTokenRequestContract, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateToken(resourceGroupName: string, serviceName: string, gatewayId: string, parameters: Models.GatewayTokenRequestContract, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + parameters, + options + }, + generateTokenOperationSpec, + callback) as Promise; + } + + /** + * Lists a collection of gateways registered with service instance. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServiceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.GatewayGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayContract, + headersMapper: Mappers.GatewayGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GatewayContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GatewayContract, + headersMapper: Mappers.GatewayCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.GatewayContract, + headersMapper: Mappers.GatewayCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GatewayContract, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/listKeys", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayKeysContract, + headersMapper: Mappers.GatewayListKeysHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regenerateKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/regenerateKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GatewayKeyRegenerationRequestContract, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const generateTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/generateToken", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GatewayTokenRequestContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GatewayTokenContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByServiceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts new file mode 100644 index 000000000000..1037389d498b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayApi.ts @@ -0,0 +1,365 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/gatewayApiMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a GatewayApi. */ +export class GatewayApi { + private readonly client: ApiManagementClientContext; + + /** + * Create a GatewayApi. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of the APIs associated with a gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: Models.GatewayApiListByServiceOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The optional parameters + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options: Models.GatewayApiListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: Models.GatewayApiListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Checks that API entity specified by identifier is associated with the Gateway entity. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + apiId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Adds an API to the specified Gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: Models.GatewayApiCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options: Models.GatewayApiCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: Models.GatewayApiCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + apiId, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified API from the specified Gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + apiId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of the APIs associated with a gateway. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServiceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.apiId1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.GatewayApiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.apiId1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.AssociationContract + }, + responses: { + 200: { + bodyMapper: Mappers.ApiContract + }, + 201: { + bodyMapper: Mappers.ApiContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.apiId1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByServiceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts new file mode 100644 index 000000000000..a7aa24ccfb2a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/src/operations/gatewayHostnameConfiguration.ts @@ -0,0 +1,455 @@ +/* + * 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. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/gatewayHostnameConfigurationMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a GatewayHostnameConfiguration. */ +export class GatewayHostnameConfiguration { + private readonly client: ApiManagementClientContext; + + /** + * Create a GatewayHostnameConfiguration. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists the collection of hostname configurations for the specified gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: Models.GatewayHostnameConfigurationListByServiceOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param options The optional parameters + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options: Models.GatewayHostnameConfigurationListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, gatewayId: string, options?: Models.GatewayHostnameConfigurationListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Checks that hostname configuration entity specified by identifier exists for specified Gateway + * entity. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + hcId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Gateway hostname configuration specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + hcId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates of updates hostname configuration for a Gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param parameters + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, parameters: Models.GatewayHostnameConfigurationContract, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, parameters: Models.GatewayHostnameConfigurationContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param parameters + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, parameters: Models.GatewayHostnameConfigurationContract, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, parameters: Models.GatewayHostnameConfigurationContract, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + hcId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified hostname configuration from the specified Gateway. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param gatewayId Gateway entity identifier. Must be unique in the current API Management service + * instance. Must not have value 'managed' + * @param hcId Gateway hostname configuration identifier. Must be unique in the scope of parent + * Gateway entity. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, gatewayId: string, hcId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + gatewayId, + hcId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists the collection of hostname configurations for the specified gateway. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByServiceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayHostnameConfigurationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.hcId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.GatewayHostnameConfigurationGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.hcId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayHostnameConfigurationContract, + headersMapper: Mappers.GatewayHostnameConfigurationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.hcId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GatewayHostnameConfigurationContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GatewayHostnameConfigurationContract, + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.GatewayHostnameConfigurationContract, + headersMapper: Mappers.GatewayHostnameConfigurationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/gateways/{gatewayId}/hostnameConfigurations/{hcId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.gatewayId, + Parameters.hcId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByServiceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GatewayHostnameConfigurationCollection + }, + 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..c17f4b2b9cf3 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/index.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/index.ts @@ -33,18 +33,22 @@ export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; export * from "./emailTemplate"; +export * from "./gateway"; +export * from "./gatewayHostnameConfiguration"; +export * from "./gatewayApi"; export * from "./group"; export * from "./groupUser"; export * from "./identityProvider"; export * from "./issue"; export * from "./logger"; +export * from "./namedValue"; export * from "./networkStatus"; export * from "./notification"; 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 +57,6 @@ export * from "./productApi"; export * from "./productGroup"; export * from "./productSubscriptions"; export * from "./productPolicy"; -export * from "./property"; 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..61367e1b6b9a 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/openIdConnectProvider.ts @@ -260,6 +260,42 @@ export class OpenIdConnectProvider { callback); } + /** + * Gets the client secret details of the OpenID Connect Provider. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, opid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, opid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + opid, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + /** * Lists of all the OpenId Connect Providers. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -469,6 +505,32 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.opid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClientSecretContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listByServiceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/policySnippet.ts b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts similarity index 70% rename from sdk/apimanagement/arm-apimanagement/src/operations/policySnippet.ts rename to sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts index d0ba7845bb1f..2e190512dfc7 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/policySnippet.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/policyDescription.ts @@ -10,16 +10,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "../models"; -import * as Mappers from "../models/policySnippetMappers"; +import * as Mappers from "../models/policyDescriptionMappers"; import * as Parameters from "../models/parameters"; import { ApiManagementClientContext } from "../apiManagementClientContext"; -/** Class representing a PolicySnippet. */ -export class PolicySnippet { +/** Class representing a PolicyDescription. */ +export class PolicyDescription { private readonly client: ApiManagementClientContext; /** - * Create a PolicySnippet. + * Create a PolicyDescription. * @param {ApiManagementClientContext} client Reference to the service client. */ constructor(client: ApiManagementClientContext) { @@ -27,27 +27,27 @@ export class PolicySnippet { } /** - * Lists all policy snippets. + * Lists all policy descriptions. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicySnippetListByServiceOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicyDescriptionListByServiceOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param options The optional parameters * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, options: Models.PolicySnippetListByServiceOptionalParams, callback: msRest.ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicySnippetListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByService(resourceGroupName: string, serviceName: string, options: Models.PolicyDescriptionListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicyDescriptionListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -55,7 +55,7 @@ export class PolicySnippet { options }, listByServiceOperationSpec, - callback) as Promise; + callback) as Promise; } } @@ -63,7 +63,7 @@ export class PolicySnippet { const serializer = new msRest.Serializer(Mappers); const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policySnippets", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyDescriptions", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, @@ -78,7 +78,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PolicySnippetsCollection + bodyMapper: Mappers.PolicyDescriptionCollection }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts index 630cfbf109fc..6d68505b8bc1 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/subscription.ts @@ -354,6 +354,45 @@ export class Subscription { callback); } + /** + * Gets the subscription keys. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, sid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, sid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } + /** * Lists all subscriptions of the API Management service instance. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -613,6 +652,32 @@ const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { serializer }; +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionKeysContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts index 79018f752dfd..c18facbb8662 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccess.ts @@ -59,7 +59,7 @@ export class TenantAccess { } /** - * Get tenant access information details + * Get tenant access information details without secrets. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -196,6 +196,38 @@ export class TenantAccess { regenerateSecondaryKeyOperationSpec, callback); } + + /** + * Get tenant access information details. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -332,3 +364,30 @@ const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccessInformationContract, + headersMapper: Mappers.TenantAccessListSecretsHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts index c7fbd0f24509..3a031c37eb46 100644 --- a/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts +++ b/sdk/apimanagement/arm-apimanagement/src/operations/tenantAccessGit.ts @@ -27,7 +27,7 @@ export class TenantAccessGit { } /** - * Gets the Git access configuration for the tenant. + * Gets the Git access configuration for the tenant. Without secrets. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -121,6 +121,38 @@ export class TenantAccessGit { regenerateSecondaryKeyOperationSpec, callback); } + + /** + * Gets the Git access configuration for the tenant. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param options The optional parameters + * @param callback The callback + */ + listSecrets(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSecrets(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listSecretsOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -199,3 +231,30 @@ const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listSecretsOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/listSecrets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccessInformationContract, + headersMapper: Mappers.TenantAccessGitListSecretsHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true