diff --git a/packages/@azure/arm-apimanagement/LICENSE.txt b/packages/@azure/arm-apimanagement/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-apimanagement/LICENSE.txt +++ b/packages/@azure/arm-apimanagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 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/packages/@azure/arm-apimanagement/README.md b/packages/@azure/arm-apimanagement/README.md index 2fbe3ffdeae6..0cf289e7fc06 100644 --- a/packages/@azure/arm-apimanagement/README.md +++ b/packages/@azure/arm-apimanagement/README.md @@ -9,23 +9,23 @@ This package contains an isomorphic SDK for ApiManagementClient. ### How to Install -``` +```bash npm install @azure/arm-apimanagement ``` ### How to use -#### nodejs - Authentication, client creation and listByService policy as an example written in TypeScript. +#### nodejs - Authentication, client creation and listByService api as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -36,8 +36,12 @@ msRestNodeAuth.interactiveLogin().then((creds) => { const client = new ApiManagementClient(creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const serviceName = "testserviceName"; - const scope = "Tenant"; - client.policy.listByService(resourceGroupName, serviceName, scope).then((result) => { + const filter = "testfilter"; + const top = 1; + const skip = 1; + const tags = "testtags"; + const expandApiVersionSet = true; + client.api.listByService(resourceGroupName, serviceName, filter, top, skip, tags, expandApiVersionSet).then((result) => { console.log("The result is:"); console.log(result); }); @@ -46,11 +50,11 @@ msRestNodeAuth.interactiveLogin().then((creds) => { }); ``` -#### browser - Authentication, client creation and listByService policy as an example written in JavaScript. +#### browser - Authentication, client creation and listByService api as an example written in JavaScript. ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -82,8 +86,12 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to const client = new Azure.ArmApimanagement.ApiManagementClient(res.creds, subscriptionId); const resourceGroupName = "testresourceGroupName"; const serviceName = "testserviceName"; - const scope = "Tenant"; - client.policy.listByService(resourceGroupName, serviceName, scope).then((result) => { + const filter = "testfilter"; + const top = 1; + const skip = 1; + const tags = "testtags"; + const expandApiVersionSet = true; + client.api.listByService(resourceGroupName, serviceName, filter, top, skip, tags, expandApiVersionSet).then((result) => { console.log("The result is:"); console.log(result); }).catch((err) => { @@ -100,6 +108,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [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%2Fpackages%2F%40azure%2Farm-apimanagement%2FREADME.png) diff --git a/packages/@azure/arm-apimanagement/lib/apiManagementClient.ts b/packages/@azure/arm-apimanagement/lib/apiManagementClient.ts index ee9357bd6dfb..454cda6b424c 100644 --- a/packages/@azure/arm-apimanagement/lib/apiManagementClient.ts +++ b/packages/@azure/arm-apimanagement/lib/apiManagementClient.ts @@ -17,39 +17,43 @@ import { ApiManagementClientContext } from "./apiManagementClientContext"; class ApiManagementClient extends ApiManagementClientContext { // Operation groups - policy: operations.Policy; - policySnippets: operations.PolicySnippets; - regions: operations.Regions; api: operations.Api; - apiRevisions: operations.ApiRevisions; + apiRevision: operations.ApiRevision; apiRelease: operations.ApiRelease; apiOperation: operations.ApiOperation; apiOperationPolicy: operations.ApiOperationPolicy; + tag: operations.Tag; apiProduct: operations.ApiProduct; apiPolicy: operations.ApiPolicy; apiSchema: operations.ApiSchema; apiDiagnostic: operations.ApiDiagnostic; - apiDiagnosticLogger: operations.ApiDiagnosticLogger; apiIssue: operations.ApiIssue; apiIssueComment: operations.ApiIssueComment; apiIssueAttachment: operations.ApiIssueAttachment; + apiTagDescription: operations.ApiTagDescription; + operation: operations.OperationOperations; + apiVersionSet: operations.ApiVersionSet; authorizationServer: operations.AuthorizationServer; backend: operations.Backend; + cache: operations.Cache; certificate: operations.Certificate; apiManagementOperations: operations.ApiManagementOperations; + apiManagementServiceSkus: operations.ApiManagementServiceSkus; apiManagementService: operations.ApiManagementService; diagnostic: operations.Diagnostic; - diagnosticLogger: operations.DiagnosticLogger; emailTemplate: operations.EmailTemplate; group: operations.Group; groupUser: operations.GroupUser; identityProvider: operations.IdentityProvider; + issue: operations.Issue; logger: operations.Logger; + networkStatus: operations.NetworkStatus; notification: operations.Notification; notificationRecipientUser: operations.NotificationRecipientUser; notificationRecipientEmail: operations.NotificationRecipientEmail; - networkStatus: operations.NetworkStatus; openIdConnectProvider: operations.OpenIdConnectProvider; + policy: operations.Policy; + policySnippet: operations.PolicySnippet; signInSettings: operations.SignInSettings; signUpSettings: operations.SignUpSettings; delegationSettings: operations.DelegationSettings; @@ -61,12 +65,10 @@ class ApiManagementClient extends ApiManagementClientContext { property: operations.Property; quotaByCounterKeys: operations.QuotaByCounterKeys; quotaByPeriodKeys: operations.QuotaByPeriodKeys; + region: operations.Region; reports: operations.Reports; subscription: operations.Subscription; tagResource: operations.TagResource; - tag: operations.Tag; - tagDescription: operations.TagDescription; - operation: operations.OperationOperations; tenantAccess: operations.TenantAccess; tenantAccessGit: operations.TenantAccessGit; tenantConfiguration: operations.TenantConfiguration; @@ -74,7 +76,7 @@ class ApiManagementClient extends ApiManagementClientContext { userGroup: operations.UserGroup; userSubscription: operations.UserSubscription; userIdentities: operations.UserIdentities; - apiVersionSet: operations.ApiVersionSet; + userConfirmationPassword: operations.UserConfirmationPassword; apiExport: operations.ApiExport; /** @@ -86,39 +88,43 @@ class ApiManagementClient extends ApiManagementClientContext { */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ApiManagementClientOptions) { super(credentials, subscriptionId, options); - this.policy = new operations.Policy(this); - this.policySnippets = new operations.PolicySnippets(this); - this.regions = new operations.Regions(this); this.api = new operations.Api(this); - this.apiRevisions = new operations.ApiRevisions(this); + this.apiRevision = new operations.ApiRevision(this); this.apiRelease = new operations.ApiRelease(this); this.apiOperation = new operations.ApiOperation(this); this.apiOperationPolicy = new operations.ApiOperationPolicy(this); + this.tag = new operations.Tag(this); this.apiProduct = new operations.ApiProduct(this); this.apiPolicy = new operations.ApiPolicy(this); this.apiSchema = new operations.ApiSchema(this); this.apiDiagnostic = new operations.ApiDiagnostic(this); - this.apiDiagnosticLogger = new operations.ApiDiagnosticLogger(this); this.apiIssue = new operations.ApiIssue(this); this.apiIssueComment = new operations.ApiIssueComment(this); this.apiIssueAttachment = new operations.ApiIssueAttachment(this); + this.apiTagDescription = new operations.ApiTagDescription(this); + this.operation = new operations.OperationOperations(this); + this.apiVersionSet = new operations.ApiVersionSet(this); this.authorizationServer = new operations.AuthorizationServer(this); this.backend = new operations.Backend(this); + this.cache = new operations.Cache(this); this.certificate = new operations.Certificate(this); this.apiManagementOperations = new operations.ApiManagementOperations(this); + this.apiManagementServiceSkus = new operations.ApiManagementServiceSkus(this); this.apiManagementService = new operations.ApiManagementService(this); this.diagnostic = new operations.Diagnostic(this); - this.diagnosticLogger = new operations.DiagnosticLogger(this); this.emailTemplate = new operations.EmailTemplate(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.networkStatus = new operations.NetworkStatus(this); this.notification = new operations.Notification(this); this.notificationRecipientUser = new operations.NotificationRecipientUser(this); this.notificationRecipientEmail = new operations.NotificationRecipientEmail(this); - this.networkStatus = new operations.NetworkStatus(this); this.openIdConnectProvider = new operations.OpenIdConnectProvider(this); + this.policy = new operations.Policy(this); + this.policySnippet = new operations.PolicySnippet(this); this.signInSettings = new operations.SignInSettings(this); this.signUpSettings = new operations.SignUpSettings(this); this.delegationSettings = new operations.DelegationSettings(this); @@ -130,12 +136,10 @@ class ApiManagementClient extends ApiManagementClientContext { this.property = new operations.Property(this); this.quotaByCounterKeys = new operations.QuotaByCounterKeys(this); this.quotaByPeriodKeys = new operations.QuotaByPeriodKeys(this); + this.region = new operations.Region(this); this.reports = new operations.Reports(this); this.subscription = new operations.Subscription(this); this.tagResource = new operations.TagResource(this); - this.tag = new operations.Tag(this); - this.tagDescription = new operations.TagDescription(this); - this.operation = new operations.OperationOperations(this); this.tenantAccess = new operations.TenantAccess(this); this.tenantAccessGit = new operations.TenantAccessGit(this); this.tenantConfiguration = new operations.TenantConfiguration(this); @@ -143,7 +147,7 @@ class ApiManagementClient extends ApiManagementClientContext { this.userGroup = new operations.UserGroup(this); this.userSubscription = new operations.UserSubscription(this); this.userIdentities = new operations.UserIdentities(this); - this.apiVersionSet = new operations.ApiVersionSet(this); + this.userConfirmationPassword = new operations.UserConfirmationPassword(this); this.apiExport = new operations.ApiExport(this); } } diff --git a/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts b/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts index 316679a0aa97..75256df48149 100644 --- a/packages/@azure/arm-apimanagement/lib/apiManagementClientContext.ts +++ b/packages/@azure/arm-apimanagement/lib/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 = "0.1.0"; +const packageVersion = "4.4.0"; export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -45,7 +45,7 @@ export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { super(credentials, options); - this.apiVersion = '2018-01-01'; + this.apiVersion = '2019-01-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiDiagnosticMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiDiagnosticMappers.ts index 5f7802d79e53..eacc7da2f1c9 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiDiagnosticMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiDiagnosticMappers.ts @@ -13,32 +13,40 @@ export { DiagnosticContract, Resource, BaseResource, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, ErrorResponse, ErrorFieldContract, ApiDiagnosticGetEntityTagHeaders, ApiDiagnosticGetHeaders, + ApiDiagnosticCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -47,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -60,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts index e4597a12cd90..926c4dcb53a4 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts @@ -17,28 +17,36 @@ export { ErrorFieldContract, ApiIssueAttachmentGetEntityTagHeaders, ApiIssueAttachmentGetHeaders, + ApiIssueAttachmentCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -47,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -60,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiIssueCommentMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiIssueCommentMappers.ts index fc88c4e88cb5..6735b688f3cb 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiIssueCommentMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiIssueCommentMappers.ts @@ -17,28 +17,36 @@ export { ErrorFieldContract, ApiIssueCommentGetEntityTagHeaders, ApiIssueCommentGetHeaders, + ApiIssueCommentCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -47,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -60,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiIssueMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiIssueMappers.ts index 91cfb111ff00..ecae5c3b0e66 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiIssueMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiIssueMappers.ts @@ -17,29 +17,37 @@ export { ErrorFieldContract, ApiIssueGetEntityTagHeaders, ApiIssueGetHeaders, + ApiIssueCreateOrUpdateHeaders, IssueUpdateContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +56,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +69,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiManagementServiceMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiManagementServiceMappers.ts index 80f8f61a67fb..a2b71d1b40e9 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiManagementServiceMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiManagementServiceMappers.ts @@ -27,32 +27,37 @@ export { ApiManagementServiceCheckNameAvailabilityParameters, ApiManagementServiceNameAvailabilityResult, ApiManagementServiceApplyNetworkConfigurationParameters, - ApiManagementServiceUploadCertificateParameters, - ApiManagementServiceUpdateHostnameParameters, - HostnameConfigurationOld, Resource, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -61,31 +66,28 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, - PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, - PolicyContract + PropertyContract } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiManagementServiceSkusMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiManagementServiceSkusMappers.ts new file mode 100644 index 000000000000..41b68c6abb39 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/apiManagementServiceSkusMappers.ts @@ -0,0 +1,18 @@ +/* + * 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 { + ResourceSkuResults, + ResourceSkuResult, + ResourceSku, + ResourceSkuCapacity, + CloudError +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/apiMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiMappers.ts index 6eabab8c6be4..6ec21f8d3a38 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiMappers.ts @@ -34,25 +34,31 @@ export { OperationTagResourceContractProperties, ProductTagResourceContractProperties, ProductEntityBaseParameters, - CloudError, - PolicyContract, ApiContractProperties, - ApiReleaseContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + ProductContract, OperationContract, ParameterContract, RequestContract, RepresentationContract, ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiReleaseContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -61,7 +67,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -74,27 +80,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiOperationMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiOperationMappers.ts index 0504353c1866..5da6846d0b69 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiOperationMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiOperationMappers.ts @@ -21,25 +21,33 @@ export { ErrorFieldContract, ApiOperationGetEntityTagHeaders, ApiOperationGetHeaders, + ApiOperationCreateOrUpdateHeaders, OperationUpdateContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +56,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +69,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts index 157712c0c76b..be16355253aa 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts @@ -17,28 +17,36 @@ export { ErrorFieldContract, ApiOperationPolicyGetEntityTagHeaders, ApiOperationPolicyGetHeaders, + ApiOperationPolicyCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -47,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -60,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiPolicyMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiPolicyMappers.ts index de7e7c656809..e9632a947090 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiPolicyMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiPolicyMappers.ts @@ -13,33 +13,40 @@ export { PolicyContract, Resource, BaseResource, - ApiPolicyListByApiHeaders, ErrorResponse, ErrorFieldContract, ApiPolicyGetEntityTagHeaders, ApiPolicyGetHeaders, + ApiPolicyCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiProductMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiProductMappers.ts index 4ed6f6fbb1fc..ccec44a86cba 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiProductMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiProductMappers.ts @@ -15,28 +15,35 @@ export { BaseResource, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -45,7 +52,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -58,27 +65,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiReleaseMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiReleaseMappers.ts index e1485495dd66..4281efeb7846 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiReleaseMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiReleaseMappers.ts @@ -16,28 +16,37 @@ export { ErrorResponse, ErrorFieldContract, ApiReleaseGetEntityTagHeaders, + ApiReleaseGetHeaders, + ApiReleaseCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -46,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -59,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiRevisionMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiRevisionMappers.ts new file mode 100644 index 000000000000..4ba5fea5c158 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/apiRevisionMappers.ts @@ -0,0 +1,17 @@ +/* + * 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 { + ApiRevisionCollection, + ApiRevisionContract, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/apiSchemaMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiSchemaMappers.ts index dfa68a4c5cea..9a05facaef86 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiSchemaMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiSchemaMappers.ts @@ -13,33 +13,40 @@ export { SchemaContract, Resource, BaseResource, - ApiSchemaListByApiHeaders, ErrorResponse, ErrorFieldContract, ApiSchemaGetEntityTagHeaders, ApiSchemaGetHeaders, + ApiSchemaCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/apiTagDescriptionMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiTagDescriptionMappers.ts new file mode 100644 index 000000000000..03562168e8bf --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/apiTagDescriptionMappers.ts @@ -0,0 +1,93 @@ +/* + * 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 { + TagDescriptionCollection, + TagDescriptionContract, + Resource, + BaseResource, + ErrorResponse, + ErrorFieldContract, + ApiTagDescriptionGetEntityTagHeaders, + ApiTagDescriptionGetHeaders, + TagDescriptionCreateParameters, + ApiTagDescriptionCreateOrUpdateHeaders, + TagContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, + ApiContract, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + ApiVersionSetContractDetails, + ApiVersionSetContract, + AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, + BackendContract, + BackendProperties, + BackendServiceFabricClusterProperties, + X509CertificateName, + BackendCredentialsContract, + BackendAuthorizationHeaderCredentials, + BackendProxyContract, + BackendTlsProperties, + CacheContract, + CertificateContract, + ApimResource, + ApiManagementServiceUpdateParameters, + HostnameConfiguration, + CertificateInformation, + VirtualNetworkConfiguration, + AdditionalLocation, + ApiManagementServiceSkuProperties, + CertificateConfiguration, + ApiManagementServiceIdentity, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + UserContract, + UserIdentityContract, + GroupContractProperties, + GroupContract, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/apiVersionSetMappers.ts b/packages/@azure/arm-apimanagement/lib/models/apiVersionSetMappers.ts index b47eb2b9750d..04df7c4be7a8 100644 --- a/packages/@azure/arm-apimanagement/lib/models/apiVersionSetMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/apiVersionSetMappers.ts @@ -17,30 +17,37 @@ export { ErrorFieldContract, ApiVersionSetGetEntityTagHeaders, ApiVersionSetGetHeaders, + ApiVersionSetCreateOrUpdateHeaders, ApiVersionSetUpdateParameters, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -49,7 +56,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -62,26 +69,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/authorizationServerMappers.ts b/packages/@azure/arm-apimanagement/lib/models/authorizationServerMappers.ts index 779d8ecc1700..ed7e01299745 100644 --- a/packages/@azure/arm-apimanagement/lib/models/authorizationServerMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/authorizationServerMappers.ts @@ -14,32 +14,39 @@ export { Resource, BaseResource, TokenBodyParameterContract, - CloudError, - AuthorizationServerGetEntityTagHeaders, ErrorResponse, ErrorFieldContract, + AuthorizationServerGetEntityTagHeaders, AuthorizationServerGetHeaders, + AuthorizationServerCreateOrUpdateHeaders, AuthorizationServerUpdateContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, + ApiVersionSetContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/backendMappers.ts b/packages/@azure/arm-apimanagement/lib/models/backendMappers.ts index 917f3e39abbc..2fb437cc95c4 100644 --- a/packages/@azure/arm-apimanagement/lib/models/backendMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/backendMappers.ts @@ -24,31 +24,39 @@ export { ErrorFieldContract, BackendGetEntityTagHeaders, BackendGetHeaders, + BackendCreateOrUpdateHeaders, BackendUpdateParameters, BackendReconnectContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +69,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/cacheMappers.ts b/packages/@azure/arm-apimanagement/lib/models/cacheMappers.ts new file mode 100644 index 000000000000..53ee58c94f2b --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/cacheMappers.ts @@ -0,0 +1,93 @@ +/* + * 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 { + CacheCollection, + CacheContract, + Resource, + BaseResource, + ErrorResponse, + ErrorFieldContract, + CacheGetEntityTagHeaders, + CacheGetHeaders, + CacheCreateOrUpdateHeaders, + CacheUpdateParameters, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, + ApiContract, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + ApiVersionSetContractDetails, + ApiVersionSetContract, + AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, + BackendContract, + BackendProperties, + BackendServiceFabricClusterProperties, + X509CertificateName, + BackendCredentialsContract, + BackendAuthorizationHeaderCredentials, + BackendProxyContract, + BackendTlsProperties, + CertificateContract, + ApimResource, + ApiManagementServiceUpdateParameters, + HostnameConfiguration, + CertificateInformation, + VirtualNetworkConfiguration, + AdditionalLocation, + ApiManagementServiceSkuProperties, + CertificateConfiguration, + ApiManagementServiceIdentity, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + UserContract, + UserIdentityContract, + GroupContractProperties, + GroupContract, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/certificateMappers.ts b/packages/@azure/arm-apimanagement/lib/models/certificateMappers.ts index 2ac881ad615d..01876f9cbd3f 100644 --- a/packages/@azure/arm-apimanagement/lib/models/certificateMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/certificateMappers.ts @@ -18,29 +18,37 @@ export { CertificateGetEntityTagHeaders, CertificateGetHeaders, CertificateCreateOrUpdateParameters, + CertificateCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -49,7 +57,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, ApimResource, ApiManagementServiceUpdateParameters, HostnameConfiguration, @@ -61,27 +69,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/delegationSettingsMappers.ts b/packages/@azure/arm-apimanagement/lib/models/delegationSettingsMappers.ts index dc4c0b5dee23..b7d0bee12d4e 100644 --- a/packages/@azure/arm-apimanagement/lib/models/delegationSettingsMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/delegationSettingsMappers.ts @@ -18,30 +18,36 @@ export { SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, DelegationSettingsGetHeaders, - CloudError, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -50,7 +56,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -63,24 +69,22 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, PortalSignupSettings, TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/diagnosticMappers.ts b/packages/@azure/arm-apimanagement/lib/models/diagnosticMappers.ts index 9030381742a0..f307ca1360a0 100644 --- a/packages/@azure/arm-apimanagement/lib/models/diagnosticMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/diagnosticMappers.ts @@ -13,32 +13,40 @@ export { DiagnosticContract, Resource, BaseResource, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, ErrorResponse, ErrorFieldContract, DiagnosticGetEntityTagHeaders, DiagnosticGetHeaders, + DiagnosticCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -47,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -60,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/emailTemplateMappers.ts b/packages/@azure/arm-apimanagement/lib/models/emailTemplateMappers.ts index fbc8e82b7a56..7a6a461ac5aa 100644 --- a/packages/@azure/arm-apimanagement/lib/models/emailTemplateMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/emailTemplateMappers.ts @@ -14,35 +14,41 @@ export { Resource, BaseResource, EmailTemplateParametersContractProperties, - CloudError, - EmailTemplateGetEntityTagHeaders, ErrorResponse, ErrorFieldContract, + EmailTemplateGetEntityTagHeaders, EmailTemplateGetHeaders, EmailTemplateUpdateParameters, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -51,7 +57,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -62,27 +68,25 @@ export { ApiManagementServiceSkuProperties, CertificateConfiguration, ApiManagementServiceIdentity, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/groupMappers.ts b/packages/@azure/arm-apimanagement/lib/models/groupMappers.ts index 3273e5f7d2ba..c034d6354b75 100644 --- a/packages/@azure/arm-apimanagement/lib/models/groupMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/groupMappers.ts @@ -13,36 +13,43 @@ export { GroupContract, Resource, BaseResource, - CloudError, - GroupGetEntityTagHeaders, ErrorResponse, ErrorFieldContract, + GroupGetEntityTagHeaders, GroupGetHeaders, GroupCreateParameters, + GroupCreateOrUpdateHeaders, GroupUpdateParameters, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -51,7 +58,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -68,22 +75,20 @@ export { UserIdentityContract, GroupContractProperties, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/groupUserMappers.ts b/packages/@azure/arm-apimanagement/lib/models/groupUserMappers.ts index 6ee9698f0771..edcab03e39dc 100644 --- a/packages/@azure/arm-apimanagement/lib/models/groupUserMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/groupUserMappers.ts @@ -17,29 +17,36 @@ export { GroupContractProperties, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -63,22 +70,20 @@ export { EmailTemplateParametersContractProperties, GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/identityProviderMappers.ts b/packages/@azure/arm-apimanagement/lib/models/identityProviderMappers.ts index 1d32acac03a7..3c2fc61a9de7 100644 --- a/packages/@azure/arm-apimanagement/lib/models/identityProviderMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/identityProviderMappers.ts @@ -17,30 +17,38 @@ export { ErrorFieldContract, IdentityProviderGetEntityTagHeaders, IdentityProviderGetHeaders, + IdentityProviderCreateOrUpdateHeaders, IdentityProviderUpdateParameters, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -49,7 +57,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -62,26 +70,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/index.ts b/packages/@azure/arm-apimanagement/lib/models/index.ts index 46ee80cc83c6..881f4214f2a0 100644 --- a/packages/@azure/arm-apimanagement/lib/models/index.ts +++ b/packages/@azure/arm-apimanagement/lib/models/index.ts @@ -82,6 +82,29 @@ export interface ErrorResponse { details?: ErrorFieldContract[]; } +/** + * @interface + * An interface representing RegionContract. + * Region profile. + * + */ +export interface RegionContract { + /** + * @member {string} [name] Region name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {boolean} [isMasterRegion] whether Region is the master region. + */ + isMasterRegion?: boolean; + /** + * @member {boolean} [isDeleted] whether Region is deleted. + */ + isDeleted?: boolean; +} + /** * @interface * An interface representing Resource. @@ -112,123 +135,228 @@ export interface Resource extends BaseResource { /** * @interface - * An interface representing PolicyContract. - * Policy Contract details. + * An interface representing ApiExportResult. + * API Export result Blob Uri. * - * @extends Resource */ -export interface PolicyContract extends Resource { +export interface ApiExportResult { + /** + * @member {string} [link] Link to the Storage Blob containing the result of + * the export operation. The Blob Uri is only valid for 5 minutes. + */ + link?: string; +} + +/** + * @interface + * An interface representing ProductEntityBaseParameters. + * Product Entity Base Parameters + * + */ +export interface ProductEntityBaseParameters { /** - * @member {string} policyContent Json escaped Xml Encoded contents of the - * Policy. + * @member {string} [description] Product description. May include HTML + * formatting tags. */ - policyContent: string; + description?: string; /** - * @member {PolicyContentFormat} [contentFormat] Format of the policyContent. - * Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'. - * Default value: 'xml' . + * @member {string} [terms] Product terms of use. Developers trying to + * subscribe to the product will be presented and required to accept these + * terms before they can complete the subscription process. + */ + terms?: string; + /** + * @member {boolean} [subscriptionRequired] Whether a product subscription is + * required for accessing APIs included in this product. If true, the product + * is referred to as "protected" and a valid subscription key is required for + * a request to an API included in the product to succeed. If false, the + * product is referred to as "open" and requests to an API included in the + * product can be made without a subscription key. If property is omitted + * when creating a new product it's value is assumed to be true. + */ + subscriptionRequired?: boolean; + /** + * @member {boolean} [approvalRequired] whether subscription approval is + * required. If false, new subscriptions will be approved automatically + * enabling developers to call the product’s APIs immediately after + * subscribing. If true, administrators must manually approve the + * subscription before the developer can any of the product’s APIs. Can be + * present only if subscriptionRequired property is present and has a value + * of false. + */ + approvalRequired?: boolean; + /** + * @member {number} [subscriptionsLimit] Whether the number of subscriptions + * a user can have to this product at the same time. Set to null or omit to + * allow unlimited per user subscriptions. Can be present only if + * subscriptionRequired property is present and has a value of false. + */ + subscriptionsLimit?: number; + /** + * @member {ProductState} [state] whether product is published or not. + * Published products are discoverable by users of developer portal. Non + * published products are visible only to administrators. Default state of + * Product is notPublished. Possible values include: 'notPublished', + * 'published' */ - contentFormat?: PolicyContentFormat; + state?: ProductState; } /** * @interface - * An interface representing PolicyCollection. - * The response of the list policy operation. + * An interface representing ProductTagResourceContractProperties. + * Product profile. * + * @extends ProductEntityBaseParameters */ -export interface PolicyCollection { +export interface ProductTagResourceContractProperties extends ProductEntityBaseParameters { /** - * @member {PolicyContract[]} [value] Policy Contract value. + * @member {string} [id] Identifier of the product in the form of + * /products/{productId} */ - value?: PolicyContract[]; + id?: string; /** - * @member {string} [nextLink] Next page link if any. + * @member {string} name Product name. */ - nextLink?: string; + name: string; } /** * @interface - * An interface representing PolicySnippetContract. - * Policy snippet. + * An interface representing OperationTagResourceContractProperties. + * Operation Entity contract Properties. * */ -export interface PolicySnippetContract { +export interface OperationTagResourceContractProperties { /** - * @member {string} [name] Snippet name. + * @member {string} [id] Identifier of the operation in form + * /operations/{operationId}. + */ + id?: string; + /** + * @member {string} [name] Operation name. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ readonly name?: string; /** - * @member {string} [content] Snippet content. + * @member {string} [apiName] Api Name. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly content?: string; + readonly apiName?: string; /** - * @member {string} [toolTip] Snippet toolTip. + * @member {string} [apiRevision] Api Revision. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly toolTip?: string; + readonly apiRevision?: string; /** - * @member {number} [scope] Binary OR value of the Snippet scope. + * @member {string} [apiVersion] Api Version. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly scope?: number; + readonly apiVersion?: string; + /** + * @member {string} [description] Operation Description. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @member {string} [method] A Valid HTTP Operation Method. Typical Http + * Methods like GET, PUT, POST but not limited by only them. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly method?: string; + /** + * @member {string} [urlTemplate] Relative URL template identifying the + * target resource for this operation. May include parameters. Example: + * /customers/{cid}/orders/{oid}/?date={date} + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly urlTemplate?: string; } /** * @interface - * An interface representing PolicySnippetsCollection. - * The response of the list policy snippets operation. + * An interface representing SubscriptionKeyParameterNamesContract. + * Subscription key parameter names details. * */ -export interface PolicySnippetsCollection { +export interface SubscriptionKeyParameterNamesContract { /** - * @member {PolicySnippetContract[]} [value] Policy snippet value. + * @member {string} [header] Subscription key header name. */ - value?: PolicySnippetContract[]; + header?: string; + /** + * @member {string} [query] Subscription key query string parameter name. + */ + query?: string; } /** * @interface - * An interface representing RegionContract. - * Region profile. + * An interface representing OpenIdAuthenticationSettingsContract. + * API OAuth2 Authentication settings details. * */ -export interface RegionContract { +export interface OpenIdAuthenticationSettingsContract { /** - * @member {string} [name] Region name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [openidProviderId] OAuth authorization server identifier. */ - readonly name?: string; + openidProviderId?: string; /** - * @member {boolean} [isMasterRegion] whether Region is the master region. + * @member {BearerTokenSendingMethods[]} [bearerTokenSendingMethods] How to + * send token to the server. */ - isMasterRegion?: boolean; + bearerTokenSendingMethods?: BearerTokenSendingMethods[]; +} + +/** + * @interface + * An interface representing OAuth2AuthenticationSettingsContract. + * API OAuth2 Authentication settings details. + * + */ +export interface OAuth2AuthenticationSettingsContract { /** - * @member {boolean} [isDeleted] whether Region is deleted. + * @member {string} [authorizationServerId] OAuth authorization server + * identifier. */ - isDeleted?: boolean; + authorizationServerId?: string; + /** + * @member {string} [scope] operations scope. + */ + scope?: string; } /** * @interface - * An interface representing ApiExportResult. - * API Export result Blob Uri. + * An interface representing AuthenticationSettingsContract. + * API Authentication Settings. * */ -export interface ApiExportResult { +export interface AuthenticationSettingsContract { /** - * @member {string} [link] Link to the Storage Blob containing the result of - * the export operation. The Blob Uri is only valid for 5 minutes. + * @member {OAuth2AuthenticationSettingsContract} [oAuth2] OAuth2 + * Authentication settings */ - link?: string; + oAuth2?: OAuth2AuthenticationSettingsContract; + /** + * @member {OpenIdAuthenticationSettingsContract} [openid] OpenID Connect + * Authentication Settings + */ + openid?: OpenIdAuthenticationSettingsContract; + /** + * @member {boolean} [subscriptionKeyRequired] 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; } /** @@ -244,6 +372,10 @@ export interface ApiVersionSetContractDetails { * value to create a new Version Set. */ id?: string; + /** + * @member {string} [name] The display Name of the API Version Set. + */ + name?: string; /** * @member {string} [description] Description of API Version Set. */ @@ -266,6 +398,24 @@ export interface ApiVersionSetContractDetails { versionHeaderName?: string; } +/** + * @interface + * An interface representing ApiCreateOrUpdatePropertiesWsdlSelector. + * Criteria to limit import of WSDL to a subset of the document. + * + */ +export interface ApiCreateOrUpdatePropertiesWsdlSelector { + /** + * @member {string} [wsdlServiceName] Name of service to import from WSDL + */ + wsdlServiceName?: string; + /** + * @member {string} [wsdlEndpointName] Name of endpoint(port) to import from + * WSDL + */ + wsdlEndpointName?: string; +} + /** * @interface * An interface representing ApiEntityBaseContract. @@ -307,10 +457,8 @@ export interface ApiEntityBaseContract { /** * @member {boolean} [isCurrent] Indicates if API revision is current api * revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** */ - readonly isCurrent?: boolean; + isCurrent?: boolean; /** * @member {boolean} [isOnline] Indicates if API revision is accessible via * the gateway. @@ -331,6 +479,11 @@ export interface ApiEntityBaseContract { * ApiVersionSet. */ apiVersionSetId?: string; + /** + * @member {boolean} [subscriptionRequired] Specifies whether an API or + * Product subscription is required for accessing the API. + */ + subscriptionRequired?: boolean; } /** @@ -342,12 +495,16 @@ export interface ApiEntityBaseContract { */ export interface ApiContractProperties extends ApiEntityBaseContract { /** - * @member {string} [displayName] API name. + * @member {string} [sourceApiId] API identifier of the source API. + */ + sourceApiId?: string; + /** + * @member {string} [displayName] API name. Must be 1 to 300 characters long. */ displayName?: string; /** * @member {string} [serviceUrl] Absolute URL of the backend service - * implementing this API. + * implementing this API. Cannot be more than 2000 characters long. */ serviceUrl?: string; /** @@ -363,572 +520,521 @@ export interface ApiContractProperties extends ApiEntityBaseContract { */ protocols?: Protocol[]; /** - * @member {ApiVersionSetContractDetails} [apiVersionSet] + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details */ apiVersionSet?: ApiVersionSetContractDetails; } /** * @interface - * An interface representing ApiContract. - * API details. + * An interface representing ApiTagResourceContractProperties. + * API contract properties for the Tag Resources. * - * @extends Resource + * @extends ApiEntityBaseContract */ -export interface ApiContract extends Resource { - /** - * @member {string} [description] Description of the API. May include HTML - * formatting tags. - */ - description?: string; - /** - * @member {AuthenticationSettingsContract} [authenticationSettings] - * Collection of authentication settings included into this API. - */ - authenticationSettings?: AuthenticationSettingsContract; - /** - * @member {SubscriptionKeyParameterNamesContract} - * [subscriptionKeyParameterNames] Protocols over which API is made - * available. - */ - subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; - /** - * @member {ApiType} [apiType] Type of API. Possible values include: 'http', - * 'soap' - */ - apiType?: ApiType; - /** - * @member {string} [apiRevision] Describes the Revision of the Api. If no - * value is provided, default revision 1 is created - */ - apiRevision?: string; - /** - * @member {string} [apiVersion] Indicates the Version identifier of the API - * if the API is versioned - */ - apiVersion?: string; - /** - * @member {boolean} [isCurrent] Indicates if API revision is current api - * revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isCurrent?: boolean; - /** - * @member {boolean} [isOnline] Indicates if API revision is accessible via - * the gateway. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly isOnline?: boolean; - /** - * @member {string} [apiRevisionDescription] Description of the Api Revision. - */ - apiRevisionDescription?: string; - /** - * @member {string} [apiVersionDescription] Description of the Api Version. - */ - apiVersionDescription?: string; +export interface ApiTagResourceContractProperties extends ApiEntityBaseContract { /** - * @member {string} [apiVersionSetId] A resource identifier for the related - * ApiVersionSet. + * @member {string} [id] API identifier in the form /apis/{apiId}. */ - apiVersionSetId?: string; + id?: string; /** - * @member {string} [displayName] API name. + * @member {string} [name] API name. */ - displayName?: string; + name?: string; /** * @member {string} [serviceUrl] Absolute URL of the backend service * implementing this API. */ serviceUrl?: string; /** - * @member {string} path Relative URL uniquely identifying this API and all + * @member {string} [path] Relative URL uniquely identifying this API and all * of its resource paths within the API Management service instance. It is * appended to the API endpoint base URL specified during the service * instance creation to form a public URL for this API. */ - path: string; + path?: string; /** * @member {Protocol[]} [protocols] Describes on which protocols the * operations in this API can be invoked. */ protocols?: Protocol[]; - /** - * @member {ApiVersionSetContractDetails} [apiVersionSet] - */ - apiVersionSet?: ApiVersionSetContractDetails; } /** * @interface - * An interface representing ApiCreateOrUpdatePropertiesWsdlSelector. - * Criteria to limit import of WSDL to a subset of the document. + * An interface representing TagTagResourceContractProperties. + * Contract defining the Tag property in the Tag Resource Contract * */ -export interface ApiCreateOrUpdatePropertiesWsdlSelector { +export interface TagTagResourceContractProperties { /** - * @member {string} [wsdlServiceName] Name of service to import from WSDL + * @member {string} [id] Tag identifier */ - wsdlServiceName?: string; + id?: string; /** - * @member {string} [wsdlEndpointName] Name of endpoint(port) to import from - * WSDL + * @member {string} [name] Tag Name */ - wsdlEndpointName?: string; + name?: string; } /** * @interface - * An interface representing ApiCreateOrUpdateParameter. - * API Create or Update Parameters. + * An interface representing TagResourceContract. + * TagResource contract properties. * */ -export interface ApiCreateOrUpdateParameter { - /** - * @member {string} [description] Description of the API. May include HTML - * formatting tags. - */ - description?: string; - /** - * @member {AuthenticationSettingsContract} [authenticationSettings] - * Collection of authentication settings included into this API. - */ - authenticationSettings?: AuthenticationSettingsContract; - /** - * @member {SubscriptionKeyParameterNamesContract} - * [subscriptionKeyParameterNames] Protocols over which API is made - * available. - */ - subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; +export interface TagResourceContract { /** - * @member {ApiType} [apiType] Type of API. Possible values include: 'http', - * 'soap' + * @member {TagTagResourceContractProperties} tag Tag associated with the + * resource. */ - apiType?: ApiType; + tag: TagTagResourceContractProperties; /** - * @member {string} [apiRevision] Describes the Revision of the Api. If no - * value is provided, default revision 1 is created + * @member {ApiTagResourceContractProperties} [api] Api associated with the + * tag. */ - apiRevision?: string; + api?: ApiTagResourceContractProperties; /** - * @member {string} [apiVersion] Indicates the Version identifier of the API - * if the API is versioned + * @member {OperationTagResourceContractProperties} [operation] Operation + * associated with the tag. */ - apiVersion?: string; + operation?: OperationTagResourceContractProperties; /** - * @member {boolean} [isCurrent] Indicates if API revision is current api - * revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ProductTagResourceContractProperties} [product] Product + * associated with the tag. */ - readonly isCurrent?: boolean; + product?: ProductTagResourceContractProperties; +} + +/** + * @interface + * An interface representing TagContract. + * Tag Contract details. + * + * @extends Resource + */ +export interface TagContract extends Resource { /** - * @member {boolean} [isOnline] Indicates if API revision is accessible via - * the gateway. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} displayName Tag name. */ - readonly isOnline?: boolean; + displayName: string; +} + +/** + * @interface + * An interface representing TagDescriptionContract. + * Contract details. + * + * @extends Resource + */ +export interface TagDescriptionContract extends Resource { /** - * @member {string} [apiRevisionDescription] Description of the Api Revision. + * @member {string} [description] Description of the Tag. */ - apiRevisionDescription?: string; + description?: string; /** - * @member {string} [apiVersionDescription] Description of the Api Version. + * @member {string} [externalDocsUrl] Absolute URL of external resources + * describing the tag. */ - apiVersionDescription?: string; + externalDocsUrl?: string; /** - * @member {string} [apiVersionSetId] A resource identifier for the related - * ApiVersionSet. + * @member {string} [externalDocsDescription] Description of the external + * resources describing the tag. */ - apiVersionSetId?: string; + externalDocsDescription?: string; /** - * @member {string} [displayName] API name. + * @member {string} [displayName] Tag name. */ displayName?: string; +} + +/** + * @interface + * An interface representing TagDescriptionCreateParameters. + * Parameters supplied to the Create TagDescription operation. + * + */ +export interface TagDescriptionCreateParameters { /** - * @member {string} [serviceUrl] Absolute URL of the backend service - * implementing this API. - */ - serviceUrl?: string; - /** - * @member {string} path Relative URL uniquely identifying this API and all - * of its resource paths within the API Management service instance. It is - * appended to the API endpoint base URL specified during the service - * instance creation to form a public URL for this API. - */ - path: string; - /** - * @member {Protocol[]} [protocols] Describes on which protocols the - * operations in this API can be invoked. + * @member {string} [description] Description of the Tag. */ - protocols?: Protocol[]; + description?: string; /** - * @member {ApiVersionSetContractDetails} [apiVersionSet] + * @member {string} [externalDocsUrl] Absolute URL of external resources + * describing the tag. */ - apiVersionSet?: ApiVersionSetContractDetails; + externalDocsUrl?: string; /** - * @member {string} [contentValue] Content value when Importing an API. + * @member {string} [externalDocsDescription] Description of the external + * resources describing the tag. */ - contentValue?: string; + externalDocsDescription?: string; +} + +/** + * @interface + * An interface representing IssueAttachmentContract. + * Issue Attachment Contract details. + * + * @extends Resource + */ +export interface IssueAttachmentContract extends Resource { /** - * @member {ContentFormat} [contentFormat] 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' + * @member {string} title Filename by which the binary data will be saved. */ - contentFormat?: ContentFormat; + title: string; /** - * @member {ApiCreateOrUpdatePropertiesWsdlSelector} [wsdlSelector] Criteria - * to limit import of WSDL to a subset of the document. + * @member {string} contentFormat Either 'link' if content is provided via an + * HTTP link or the MIME type of the Base64-encoded binary data provided in + * the 'content' property. */ - wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; + contentFormat: string; /** - * @member {SoapApiType} [soapApiType] Type of Api to create. - * * `http` creates a SOAP to REST API - * * `soap` creates a SOAP pass-through API. Possible values include: - * 'SoapToRest', 'SoapPassThrough' + * @member {string} content An HTTP link or Base64-encoded binary data. */ - soapApiType?: SoapApiType; + content: string; } /** * @interface - * An interface representing ApiUpdateContract. - * API update contract details. + * An interface representing IssueCommentContract. + * Issue Comment Contract details. * + * @extends Resource */ -export interface ApiUpdateContract { +export interface IssueCommentContract extends Resource { /** - * @member {string} [description] Description of the API. May include HTML - * formatting tags. + * @member {string} text Comment text. */ - description?: string; + text: string; /** - * @member {AuthenticationSettingsContract} [authenticationSettings] - * Collection of authentication settings included into this API. + * @member {Date} [createdDate] Date and time when the comment was created. */ - authenticationSettings?: AuthenticationSettingsContract; + createdDate?: Date; /** - * @member {SubscriptionKeyParameterNamesContract} - * [subscriptionKeyParameterNames] Protocols over which API is made - * available. + * @member {string} userId A resource identifier for the user who left the + * comment. */ - subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; + userId: string; +} + +/** + * @interface + * An interface representing IssueContractBaseProperties. + * Issue contract Base Properties. + * + */ +export interface IssueContractBaseProperties { /** - * @member {ApiType} [apiType] Type of API. Possible values include: 'http', - * 'soap' + * @member {Date} [createdDate] Date and time when the issue was created. */ - apiType?: ApiType; + createdDate?: Date; /** - * @member {string} [apiRevision] Describes the Revision of the Api. If no - * value is provided, default revision 1 is created + * @member {State} [state] Status of the issue. Possible values include: + * 'proposed', 'open', 'removed', 'resolved', 'closed' */ - apiRevision?: string; + state?: State; /** - * @member {string} [apiVersion] Indicates the Version identifier of the API - * if the API is versioned + * @member {string} [apiId] A resource identifier for the API the issue was + * created for. */ - apiVersion?: string; + apiId?: string; +} + +/** + * @interface + * An interface representing IssueUpdateContract. + * Issue update Parameters. + * + */ +export interface IssueUpdateContract { /** - * @member {boolean} [isCurrent] Indicates if API revision is current api - * revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {Date} [createdDate] Date and time when the issue was created. */ - readonly isCurrent?: boolean; + createdDate?: Date; /** - * @member {boolean} [isOnline] Indicates if API revision is accessible via - * the gateway. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {State} [state] Status of the issue. Possible values include: + * 'proposed', 'open', 'removed', 'resolved', 'closed' */ - readonly isOnline?: boolean; + state?: State; /** - * @member {string} [apiRevisionDescription] Description of the Api Revision. + * @member {string} [apiId] A resource identifier for the API the issue was + * created for. */ - apiRevisionDescription?: string; + apiId?: string; /** - * @member {string} [apiVersionDescription] Description of the Api Version. + * @member {string} [title] The issue title. */ - apiVersionDescription?: string; + title?: string; /** - * @member {string} [apiVersionSetId] A resource identifier for the related - * ApiVersionSet. + * @member {string} [description] Text describing the issue. */ - apiVersionSetId?: string; + description?: string; /** - * @member {string} [displayName] API name. + * @member {string} [userId] A resource identifier for the user created the + * issue. */ - displayName?: string; + userId?: string; +} + +/** + * @interface + * An interface representing IssueContract. + * Issue Contract details. + * + * @extends Resource + */ +export interface IssueContract extends Resource { /** - * @member {string} [serviceUrl] Absolute URL of the backend service - * implementing this API. + * @member {Date} [createdDate] Date and time when the issue was created. */ - serviceUrl?: string; + createdDate?: Date; /** - * @member {string} [path] Relative URL uniquely identifying this API and all - * of its resource paths within the API Management service instance. It is - * appended to the API endpoint base URL specified during the service - * instance creation to form a public URL for this API. + * @member {State} [state] Status of the issue. Possible values include: + * 'proposed', 'open', 'removed', 'resolved', 'closed' */ - path?: string; + state?: State; /** - * @member {Protocol[]} [protocols] Describes on which protocols the - * operations in this API can be invoked. + * @member {string} [apiId] A resource identifier for the API the issue was + * created for. */ - protocols?: Protocol[]; + apiId?: string; + /** + * @member {string} title The issue title. + */ + title: string; + /** + * @member {string} description Text describing the issue. + */ + description: string; + /** + * @member {string} userId A resource identifier for the user created the + * issue. + */ + userId: string; } /** * @interface - * An interface representing OAuth2AuthenticationSettingsContract. - * API OAuth2 Authentication settings details. + * An interface representing BodyDiagnosticSettings. + * Body logging settings. * */ -export interface OAuth2AuthenticationSettingsContract { - /** - * @member {string} [authorizationServerId] OAuth authorization server - * identifier. - */ - authorizationServerId?: string; +export interface BodyDiagnosticSettings { /** - * @member {string} [scope] operations scope. + * @member {number} [bytes] Number of request body bytes to log. */ - scope?: string; + bytes?: number; } /** * @interface - * An interface representing OpenIdAuthenticationSettingsContract. - * API OAuth2 Authentication settings details. + * An interface representing HttpMessageDiagnostic. + * Http message diagnostic settings. * */ -export interface OpenIdAuthenticationSettingsContract { +export interface HttpMessageDiagnostic { /** - * @member {string} [openidProviderId] OAuth authorization server identifier. + * @member {string[]} [headers] Array of HTTP Headers to log. */ - openidProviderId?: string; + headers?: string[]; /** - * @member {BearerTokenSendingMethods[]} [bearerTokenSendingMethods] How to - * send token to the server. + * @member {BodyDiagnosticSettings} [body] Body logging settings. */ - bearerTokenSendingMethods?: BearerTokenSendingMethods[]; + body?: BodyDiagnosticSettings; } /** * @interface - * An interface representing AuthenticationSettingsContract. - * API Authentication Settings. + * An interface representing PipelineDiagnosticSettings. + * Diagnostic settings for incoming/outgoing HTTP messages to the Gateway. * */ -export interface AuthenticationSettingsContract { - /** - * @member {OAuth2AuthenticationSettingsContract} [oAuth2] OAuth2 - * Authentication settings - */ - oAuth2?: OAuth2AuthenticationSettingsContract; +export interface PipelineDiagnosticSettings { /** - * @member {OpenIdAuthenticationSettingsContract} [openid] OpenID Connect - * Authentication Settings + * @member {HttpMessageDiagnostic} [request] Diagnostic settings for request. */ - openid?: OpenIdAuthenticationSettingsContract; + request?: HttpMessageDiagnostic; /** - * @member {boolean} [subscriptionKeyRequired] 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. + * @member {HttpMessageDiagnostic} [response] Diagnostic settings for + * response. */ - subscriptionKeyRequired?: boolean; + response?: HttpMessageDiagnostic; } /** * @interface - * An interface representing SubscriptionKeyParameterNamesContract. - * Subscription key parameter names details. + * An interface representing SamplingSettings. + * Sampling settings for Diagnostic. * */ -export interface SubscriptionKeyParameterNamesContract { +export interface SamplingSettings { /** - * @member {string} [header] Subscription key header name. + * @member {SamplingType} [samplingType] Sampling type. Possible values + * include: 'fixed' */ - header?: string; + samplingType?: SamplingType; /** - * @member {string} [query] Subscription key query string parameter name. + * @member {number} [percentage] Rate of sampling for fixed-rate sampling. */ - query?: string; + percentage?: number; } /** * @interface - * An interface representing ApiRevisionContract. - * Summary of revision metadata. + * An interface representing DiagnosticContract. + * Diagnostic details. * + * @extends Resource */ -export interface ApiRevisionContract { - /** - * @member {string} [apiId] Identifier of the API Revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly apiId?: string; - /** - * @member {string} [apiRevision] Revision number of API. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly apiRevision?: string; +export interface DiagnosticContract extends Resource { /** - * @member {Date} [createdDateTime] The time the API Revision was created. - * The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as - * specified by the ISO 8601 standard. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {AlwaysLog} [alwaysLog] Specifies for what type of messages + * sampling settings should not apply. Possible values include: 'allErrors' */ - readonly createdDateTime?: Date; + alwaysLog?: AlwaysLog; /** - * @member {Date} [updatedDateTime] The time the API Revision were updated. - * The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as - * specified by the ISO 8601 standard. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} loggerId Resource Id of a target logger. */ - readonly updatedDateTime?: Date; + loggerId: string; /** - * @member {string} [description] Description of the API Revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {SamplingSettings} [sampling] Sampling settings for Diagnostic. */ - readonly description?: string; + sampling?: SamplingSettings; /** - * @member {string} [privateUrl] Gateway URL for accessing the non-current - * API Revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {PipelineDiagnosticSettings} [frontend] Diagnostic settings for + * incoming/outgoing HTTP messages to the Gateway. */ - readonly privateUrl?: string; + frontend?: PipelineDiagnosticSettings; /** - * @member {boolean} [isOnline] Indicates if API revision is the current api - * revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {PipelineDiagnosticSettings} [backend] Diagnostic settings for + * incoming/outgoing HTTP messages to the Backend */ - readonly isOnline?: boolean; + backend?: PipelineDiagnosticSettings; /** - * @member {boolean} [isCurrent] Indicates if API revision is accessible via - * the gateway. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [enableHttpCorrelationHeaders] Whether to process + * Correlation Headers coming to Api Management Service. Only applicable to + * Application Insights diagnostics. Default is true. */ - readonly isCurrent?: boolean; + enableHttpCorrelationHeaders?: boolean; } /** * @interface - * An interface representing ApiRevisionInfoContract. - * Object used to create an API Revision or Version based on an existing API - * Revision + * An interface representing SchemaContract. + * Schema Contract details. * + * @extends Resource */ -export interface ApiRevisionInfoContract { +export interface SchemaContract extends Resource { /** - * @member {string} [sourceApiId] Resource identifier of API to be used to - * create the revision from. + * @member {string} contentType 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). */ - sourceApiId?: string; + contentType: string; /** - * @member {string} [apiVersionName] Version identifier for the new API - * Version. + * @member {string} [value] Json escaped string defining the document + * representing the Schema. */ - apiVersionName?: string; + value?: string; +} + +/** + * @interface + * An interface representing PolicyContract. + * Policy Contract details. + * + * @extends Resource + */ +export interface PolicyContract extends Resource { /** - * @member {string} [apiRevisionDescription] Description of new API Revision. + * @member {string} value Contents of the Policy as defined by the format. */ - apiRevisionDescription?: string; + value: string; /** - * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details + * @member {PolicyContentFormat} [format] Format of the policyContent. + * Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'. + * Default value: 'xml' . */ - apiVersionSet?: ApiVersionSetContractDetails; + format?: PolicyContentFormat; } /** * @interface - * An interface representing ApiReleaseContract. - * Api Release details. + * An interface representing PolicyCollection. + * The response of the list policy operation. * - * @extends Resource */ -export interface ApiReleaseContract extends Resource { +export interface PolicyCollection { /** - * @member {string} [apiId] Identifier of the API the release belongs to. + * @member {PolicyContract[]} [value] Policy Contract value. */ - apiId?: string; - /** - * @member {Date} [createdDateTime] The time the API was released. The date - * conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the - * ISO 8601 standard. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly createdDateTime?: Date; - /** - * @member {Date} [updatedDateTime] The time the API release was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly updatedDateTime?: Date; + value?: PolicyContract[]; /** - * @member {string} [notes] Release Notes + * @member {string} [nextLink] Next page link if any. */ - notes?: string; + nextLink?: string; } /** * @interface - * An interface representing OperationContract. - * Api Operation details. + * An interface representing ProductContract. + * Product details. * * @extends Resource */ -export interface OperationContract extends Resource { - /** - * @member {ParameterContract[]} [templateParameters] Collection of URL - * template parameters. - */ - templateParameters?: ParameterContract[]; +export interface ProductContract extends Resource { /** - * @member {string} [description] Description of the operation. May include - * HTML formatting tags. + * @member {string} [description] Product description. May include HTML + * formatting tags. */ description?: string; /** - * @member {RequestContract} [request] An entity containing request details. + * @member {string} [terms] Product terms of use. Developers trying to + * subscribe to the product will be presented and required to accept these + * terms before they can complete the subscription process. */ - request?: RequestContract; + terms?: string; /** - * @member {ResponseContract[]} [responses] Array of Operation responses. + * @member {boolean} [subscriptionRequired] Whether a product subscription is + * required for accessing APIs included in this product. If true, the product + * is referred to as "protected" and a valid subscription key is required for + * a request to an API included in the product to succeed. If false, the + * product is referred to as "open" and requests to an API included in the + * product can be made without a subscription key. If property is omitted + * when creating a new product it's value is assumed to be true. */ - responses?: ResponseContract[]; + subscriptionRequired?: boolean; /** - * @member {string} [policies] Operation Policies + * @member {boolean} [approvalRequired] whether subscription approval is + * required. If false, new subscriptions will be approved automatically + * enabling developers to call the product’s APIs immediately after + * subscribing. If true, administrators must manually approve the + * subscription before the developer can any of the product’s APIs. Can be + * present only if subscriptionRequired property is present and has a value + * of false. */ - policies?: string; + approvalRequired?: boolean; /** - * @member {string} displayName Operation Name. + * @member {number} [subscriptionsLimit] Whether the number of subscriptions + * a user can have to this product at the same time. Set to null or omit to + * allow unlimited per user subscriptions. Can be present only if + * subscriptionRequired property is present and has a value of false. */ - displayName: string; + subscriptionsLimit?: number; /** - * @member {string} method A Valid HTTP Operation Method. Typical Http - * Methods like GET, PUT, POST but not limited by only them. + * @member {ProductState} [state] whether product is published or not. + * Published products are discoverable by users of developer portal. Non + * published products are visible only to administrators. Default state of + * Product is notPublished. Possible values include: 'notPublished', + * 'published' */ - method: string; + state?: ProductState; /** - * @member {string} urlTemplate Relative URL template identifying the target - * resource for this operation. May include parameters. Example: - * /customers/{cid}/orders/{oid}/?date={date} + * @member {string} displayName Product name. */ - urlTemplate: string; + displayName: string; } /** @@ -955,7 +1061,8 @@ export interface ParameterContract { */ defaultValue?: string; /** - * @member {boolean} [required] whether parameter is required or not. + * @member {boolean} [required] Specifies whether parameter is required or + * not. */ required?: boolean; /** @@ -1002,57 +1109,57 @@ export interface RepresentationContract { /** * @interface - * An interface representing RequestContract. - * Operation request details. + * An interface representing ResponseContract. + * Operation response details. * */ -export interface RequestContract { +export interface ResponseContract { /** - * @member {string} [description] Operation request description. + * @member {number} statusCode Operation response HTTP status code. + */ + statusCode: number; + /** + * @member {string} [description] Operation response description. */ description?: string; /** - * @member {ParameterContract[]} [queryParameters] Collection of operation - * request query parameters. + * @member {RepresentationContract[]} [representations] Collection of + * operation response representations. */ - queryParameters?: ParameterContract[]; + representations?: RepresentationContract[]; /** - * @member {ParameterContract[]} [headers] Collection of operation request + * @member {ParameterContract[]} [headers] Collection of operation response * headers. */ headers?: ParameterContract[]; - /** - * @member {RepresentationContract[]} [representations] Collection of - * operation request representations. - */ - representations?: RepresentationContract[]; } /** * @interface - * An interface representing ResponseContract. - * Operation response details. + * An interface representing RequestContract. + * Operation request details. * */ -export interface ResponseContract { - /** - * @member {number} statusCode Operation response HTTP status code. - */ - statusCode: number; +export interface RequestContract { /** - * @member {string} [description] Operation response description. + * @member {string} [description] Operation request description. */ description?: string; /** - * @member {RepresentationContract[]} [representations] Collection of - * operation response representations. + * @member {ParameterContract[]} [queryParameters] Collection of operation + * request query parameters. */ - representations?: RepresentationContract[]; + queryParameters?: ParameterContract[]; /** - * @member {ParameterContract[]} [headers] Collection of operation response + * @member {ParameterContract[]} [headers] Collection of operation request * headers. */ headers?: ParameterContract[]; + /** + * @member {RepresentationContract[]} [representations] Collection of + * operation request representations. + */ + representations?: RepresentationContract[]; } /** @@ -1134,362 +1241,219 @@ export interface OperationUpdateContract { /** * @interface - * An interface representing SchemaContract. - * Schema Contract details. + * An interface representing OperationContract. + * Api Operation details. * * @extends Resource */ -export interface SchemaContract extends Resource { +export interface OperationContract extends Resource { /** - * @member {string} contentType 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). + * @member {ParameterContract[]} [templateParameters] Collection of URL + * template parameters. */ - contentType: string; + templateParameters?: ParameterContract[]; /** - * @member {string} [value] Json escaped string defining the document - * representing the Schema. + * @member {string} [description] Description of the operation. May include + * HTML formatting tags. */ - value?: string; -} - -/** - * @interface - * An interface representing IssueContract. - * Issue Contract details. - * - * @extends Resource - */ -export interface IssueContract extends Resource { + description?: string; /** - * @member {Date} [createdDate] Date and time when the issue was created. + * @member {RequestContract} [request] An entity containing request details. */ - createdDate?: Date; + request?: RequestContract; /** - * @member {State} [state] Status of the issue. Possible values include: - * 'proposed', 'open', 'removed', 'resolved', 'closed' + * @member {ResponseContract[]} [responses] Array of Operation responses. */ - state?: State; + responses?: ResponseContract[]; /** - * @member {string} [apiId] A resource identifier for the API the issue was - * created for. + * @member {string} [policies] Operation Policies */ - apiId?: string; + policies?: string; /** - * @member {string} title The issue title. + * @member {string} displayName Operation Name. */ - title: string; + displayName: string; /** - * @member {string} description Text describing the issue. + * @member {string} method A Valid HTTP Operation Method. Typical Http + * Methods like GET, PUT, POST but not limited by only them. */ - description: string; + method: string; /** - * @member {string} userId A resource identifier for the user created the - * issue. + * @member {string} urlTemplate Relative URL template identifying the target + * resource for this operation. May include parameters. Example: + * /customers/{cid}/orders/{oid}/?date={date} */ - userId: string; + urlTemplate: string; } /** * @interface - * An interface representing IssueUpdateContract. - * Issue update Parameters. + * An interface representing ApiReleaseContract. + * ApiRelease details. * + * @extends Resource */ -export interface IssueUpdateContract { - /** - * @member {Date} [createdDate] Date and time when the issue was created. - */ - createdDate?: Date; - /** - * @member {State} [state] Status of the issue. Possible values include: - * 'proposed', 'open', 'removed', 'resolved', 'closed' - */ - state?: State; +export interface ApiReleaseContract extends Resource { /** - * @member {string} [apiId] A resource identifier for the API the issue was - * created for. + * @member {string} [apiId] Identifier of the API the release belongs to. */ apiId?: string; /** - * @member {string} [title] The issue title. + * @member {Date} [createdDateTime] The time the API was released. The date + * conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the + * ISO 8601 standard. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - title?: string; + readonly createdDateTime?: Date; /** - * @member {string} [description] Text describing the issue. + * @member {Date} [updatedDateTime] The time the API release was updated. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - description?: string; + readonly updatedDateTime?: Date; /** - * @member {string} [userId] A resource identifier for the user created the - * issue. + * @member {string} [notes] Release Notes */ - userId?: string; + notes?: string; } /** * @interface - * An interface representing IssueContractBaseProperties. - * Issue contract Base Properties. + * An interface representing ApiRevisionContract. + * Summary of revision metadata. * */ -export interface IssueContractBaseProperties { +export interface ApiRevisionContract { /** - * @member {Date} [createdDate] Date and time when the issue was created. + * @member {string} [apiId] Identifier of the API Revision. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - createdDate?: Date; + readonly apiId?: string; /** - * @member {State} [state] Status of the issue. Possible values include: - * 'proposed', 'open', 'removed', 'resolved', 'closed' + * @member {string} [apiRevision] Revision number of API. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - state?: State; + readonly apiRevision?: string; /** - * @member {string} [apiId] A resource identifier for the API the issue was - * created for. + * @member {Date} [createdDateTime] The time the API Revision was created. + * The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as + * specified by the ISO 8601 standard. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - apiId?: string; -} - -/** - * @interface - * An interface representing IssueCommentContract. - * Issue Comment Contract details. - * - * @extends Resource - */ -export interface IssueCommentContract extends Resource { - /** - * @member {string} text Comment text. - */ - text: string; - /** - * @member {Date} [createdDate] Date and time when the comment was created. - */ - createdDate?: Date; - /** - * @member {string} userId A resource identifier for the user who left the - * comment. - */ - userId: string; -} - -/** - * @interface - * An interface representing IssueAttachmentContract. - * Issue Attachment Contract details. - * - * @extends Resource - */ -export interface IssueAttachmentContract extends Resource { - /** - * @member {string} title Filename by which the binary data will be saved. - */ - title: string; - /** - * @member {string} contentFormat Either 'link' if content is provided via an - * HTTP link or the MIME type of the Base64-encoded binary data provided in - * the 'content' property. - */ - contentFormat: string; - /** - * @member {string} content An HTTP link or Base64-encoded binary data. - */ - content: string; -} - -/** - * @interface - * An interface representing LoggerContract. - * Logger details. - * - * @extends Resource - */ -export interface LoggerContract extends Resource { + readonly createdDateTime?: Date; /** - * @member {LoggerType} loggerType Logger type. Possible values include: - * 'azureEventHub', 'applicationInsights' + * @member {Date} [updatedDateTime] The time the API Revision were updated. + * The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as + * specified by the ISO 8601 standard. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - loggerType: LoggerType; + readonly updatedDateTime?: Date; /** - * @member {string} [description] Logger description. + * @member {string} [description] Description of the API Revision. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - description?: string; + readonly description?: string; /** - * @member {{ [propertyName: string]: string }} credentials The name and - * SendRule connection string of the event hub for azureEventHub logger. - * Instrumentation key for applicationInsights logger. + * @member {string} [privateUrl] Gateway URL for accessing the non-current + * API Revision. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - credentials: { [propertyName: string]: string }; + readonly privateUrl?: string; /** - * @member {boolean} [isBuffered] Whether records are buffered in the logger - * before publishing. Default is assumed to be true. + * @member {boolean} [isOnline] Indicates if API revision is the current api + * revision. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - isBuffered?: boolean; -} - -/** - * @interface - * An interface representing DiagnosticContract. - * Diagnostic details. - * - * @extends Resource - */ -export interface DiagnosticContract extends Resource { + readonly isOnline?: boolean; /** - * @member {boolean} enabled Indicates whether a diagnostic should receive - * data or not. + * @member {boolean} [isCurrent] Indicates if API revision is accessible via + * the gateway. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - enabled: boolean; + readonly isCurrent?: boolean; } /** * @interface - * An interface representing ProductEntityBaseParameters. - * Product Entity Base Parameters + * An interface representing ApiUpdateContract. + * API update contract details. * */ -export interface ProductEntityBaseParameters { +export interface ApiUpdateContract { /** - * @member {string} [description] Product description. May include HTML + * @member {string} [description] Description of the API. May include HTML * formatting tags. */ description?: string; /** - * @member {string} [terms] Product terms of use. Developers trying to - * subscribe to the product will be presented and required to accept these - * terms before they can complete the subscription process. - */ - terms?: string; - /** - * @member {boolean} [subscriptionRequired] Whether a product subscription is - * required for accessing APIs included in this product. If true, the product - * is referred to as "protected" and a valid subscription key is required for - * a request to an API included in the product to succeed. If false, the - * product is referred to as "open" and requests to an API included in the - * product can be made without a subscription key. If property is omitted - * when creating a new product it's value is assumed to be true. - */ - subscriptionRequired?: boolean; - /** - * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically - * enabling developers to call the product’s APIs immediately after - * subscribing. If true, administrators must manually approve the - * subscription before the developer can any of the product’s APIs. Can be - * present only if subscriptionRequired property is present and has a value - * of false. - */ - approvalRequired?: boolean; - /** - * @member {number} [subscriptionsLimit] Whether the number of subscriptions - * a user can have to this product at the same time. Set to null or omit to - * allow unlimited per user subscriptions. Can be present only if - * subscriptionRequired property is present and has a value of false. - */ - subscriptionsLimit?: number; - /** - * @member {ProductState} [state] whether product is published or not. - * Published products are discoverable by users of developer portal. Non - * published products are visible only to administrators. Default state of - * Product is notPublished. Possible values include: 'notPublished', - * 'published' - */ - state?: ProductState; -} - -/** - * @interface - * An interface representing ProductTagResourceContractProperties. - * Product profile. - * - * @extends ProductEntityBaseParameters - */ -export interface ProductTagResourceContractProperties extends ProductEntityBaseParameters { - /** - * @member {string} [id] Identifier of the product in the form of - * /products/{productId} + * @member {AuthenticationSettingsContract} [authenticationSettings] + * Collection of authentication settings included into this API. */ - id?: string; + authenticationSettings?: AuthenticationSettingsContract; /** - * @member {string} name Product name. + * @member {SubscriptionKeyParameterNamesContract} + * [subscriptionKeyParameterNames] Protocols over which API is made + * available. */ - name: string; -} - -/** - * @interface - * An interface representing OperationTagResourceContractProperties. - * Operation Entity contract Properties. - * - */ -export interface OperationTagResourceContractProperties { + subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; /** - * @member {string} [id] Identifier of the operation in form - * /operations/{operationId}. + * @member {ApiType} [apiType] Type of API. Possible values include: 'http', + * 'soap' */ - id?: string; + apiType?: ApiType; /** - * @member {string} [name] Operation name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [apiRevision] Describes the Revision of the Api. If no + * value is provided, default revision 1 is created */ - readonly name?: string; + apiRevision?: string; /** - * @member {string} [apiName] Api Name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [apiVersion] Indicates the Version identifier of the API + * if the API is versioned */ - readonly apiName?: string; + apiVersion?: string; /** - * @member {string} [apiRevision] Api Revision. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [isCurrent] Indicates if API revision is current api + * revision. */ - readonly apiRevision?: string; + isCurrent?: boolean; /** - * @member {string} [apiVersion] Api Version. + * @member {boolean} [isOnline] Indicates if API revision is accessible via + * the gateway. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly apiVersion?: string; + readonly isOnline?: boolean; /** - * @member {string} [description] Operation Description. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [apiRevisionDescription] Description of the Api Revision. */ - readonly description?: string; + apiRevisionDescription?: string; /** - * @member {string} [method] A Valid HTTP Operation Method. Typical Http - * Methods like GET, PUT, POST but not limited by only them. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [apiVersionDescription] Description of the Api Version. */ - readonly method?: string; + apiVersionDescription?: string; /** - * @member {string} [urlTemplate] Relative URL template identifying the - * target resource for this operation. May include parameters. Example: - * /customers/{cid}/orders/{oid}/?date={date} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [apiVersionSetId] A resource identifier for the related + * ApiVersionSet. */ - readonly urlTemplate?: string; -} - -/** - * @interface - * An interface representing ApiTagResourceContractProperties. - * API contract properties for the Tag Resources. - * - * @extends ApiEntityBaseContract - */ -export interface ApiTagResourceContractProperties extends ApiEntityBaseContract { + apiVersionSetId?: string; /** - * @member {string} [id] API identifier in the form /apis/{apiId}. + * @member {boolean} [subscriptionRequired] Specifies whether an API or + * Product subscription is required for accessing the API. */ - id?: string; + subscriptionRequired?: boolean; /** - * @member {string} [name] API name. + * @member {string} [displayName] API name. */ - name?: string; + displayName?: string; /** * @member {string} [serviceUrl] Absolute URL of the backend service * implementing this API. @@ -1511,308 +1475,314 @@ export interface ApiTagResourceContractProperties extends ApiEntityBaseContract /** * @interface - * An interface representing TagTagResourceContractProperties. - * Contract defining the Tag property in the Tag Resource Contract + * An interface representing ApiContract. + * Api details. * + * @extends Resource */ -export interface TagTagResourceContractProperties { +export interface ApiContract extends Resource { /** - * @member {string} [id] Tag identifier - */ - id?: string; + * @member {string} [description] Description of the API. May include HTML + * formatting tags. + */ + description?: string; /** - * @member {string} [name] Tag Name + * @member {AuthenticationSettingsContract} [authenticationSettings] + * Collection of authentication settings included into this API. */ - name?: string; -} - -/** - * @interface - * An interface representing TagResourceContract. - * TagResource contract properties. - * - */ -export interface TagResourceContract { + authenticationSettings?: AuthenticationSettingsContract; /** - * @member {TagTagResourceContractProperties} tag Tag associated with the - * resource. + * @member {SubscriptionKeyParameterNamesContract} + * [subscriptionKeyParameterNames] Protocols over which API is made + * available. */ - tag: TagTagResourceContractProperties; + subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; /** - * @member {ApiTagResourceContractProperties} [api] Api associated with the - * tag. + * @member {ApiType} [apiType] Type of API. Possible values include: 'http', + * 'soap' */ - api?: ApiTagResourceContractProperties; + apiType?: ApiType; /** - * @member {OperationTagResourceContractProperties} [operation] Operation - * associated with the tag. + * @member {string} [apiRevision] Describes the Revision of the Api. If no + * value is provided, default revision 1 is created */ - operation?: OperationTagResourceContractProperties; + apiRevision?: string; /** - * @member {ProductTagResourceContractProperties} [product] Product - * associated with the tag. + * @member {string} [apiVersion] Indicates the Version identifier of the API + * if the API is versioned */ - product?: ProductTagResourceContractProperties; -} - -/** - * @interface - * An interface representing ProductContract. - * Product details. - * - * @extends Resource - */ -export interface ProductContract extends Resource { + apiVersion?: string; /** - * @member {string} [description] Product description. May include HTML - * formatting tags. + * @member {boolean} [isCurrent] Indicates if API revision is current api + * revision. */ - description?: string; + isCurrent?: boolean; /** - * @member {string} [terms] Product terms of use. Developers trying to - * subscribe to the product will be presented and required to accept these - * terms before they can complete the subscription process. + * @member {boolean} [isOnline] Indicates if API revision is accessible via + * the gateway. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - terms?: string; + readonly isOnline?: boolean; /** - * @member {boolean} [subscriptionRequired] Whether a product subscription is - * required for accessing APIs included in this product. If true, the product - * is referred to as "protected" and a valid subscription key is required for - * a request to an API included in the product to succeed. If false, the - * product is referred to as "open" and requests to an API included in the - * product can be made without a subscription key. If property is omitted - * when creating a new product it's value is assumed to be true. + * @member {string} [apiRevisionDescription] Description of the Api Revision. + */ + apiRevisionDescription?: string; + /** + * @member {string} [apiVersionDescription] Description of the Api Version. + */ + apiVersionDescription?: string; + /** + * @member {string} [apiVersionSetId] A resource identifier for the related + * ApiVersionSet. + */ + apiVersionSetId?: string; + /** + * @member {boolean} [subscriptionRequired] Specifies whether an API or + * Product subscription is required for accessing the API. */ subscriptionRequired?: boolean; /** - * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically - * enabling developers to call the product’s APIs immediately after - * subscribing. If true, administrators must manually approve the - * subscription before the developer can any of the product’s APIs. Can be - * present only if subscriptionRequired property is present and has a value - * of false. + * @member {string} [sourceApiId] API identifier of the source API. */ - approvalRequired?: boolean; + sourceApiId?: string; /** - * @member {number} [subscriptionsLimit] Whether the number of subscriptions - * a user can have to this product at the same time. Set to null or omit to - * allow unlimited per user subscriptions. Can be present only if - * subscriptionRequired property is present and has a value of false. + * @member {string} [displayName] API name. Must be 1 to 300 characters long. */ - subscriptionsLimit?: number; + displayName?: string; /** - * @member {ProductState} [state] whether product is published or not. - * Published products are discoverable by users of developer portal. Non - * published products are visible only to administrators. Default state of - * Product is notPublished. Possible values include: 'notPublished', - * 'published' + * @member {string} [serviceUrl] Absolute URL of the backend service + * implementing this API. Cannot be more than 2000 characters long. */ - state?: ProductState; + serviceUrl?: string; /** - * @member {string} displayName Product name. + * @member {string} path Relative URL uniquely identifying this API and all + * of its resource paths within the API Management service instance. It is + * appended to the API endpoint base URL specified during the service + * instance creation to form a public URL for this API. */ - displayName: string; + path: string; + /** + * @member {Protocol[]} [protocols] Describes on which protocols the + * operations in this API can be invoked. + */ + protocols?: Protocol[]; + /** + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details + */ + apiVersionSet?: ApiVersionSetContractDetails; } /** * @interface - * An interface representing AuthorizationServerContract. - * External OAuth authorization server settings. + * An interface representing ApiCreateOrUpdateParameter. + * API Create or Update Parameters. * - * @extends Resource */ -export interface AuthorizationServerContract extends Resource { +export interface ApiCreateOrUpdateParameter { /** - * @member {string} [description] Description of the authorization server. - * Can contain HTML formatting tags. + * @member {string} [description] Description of the API. May include HTML + * formatting tags. */ description?: string; /** - * @member {AuthorizationMethod[]} [authorizationMethods] HTTP verbs - * supported by the authorization endpoint. GET must be always present. POST - * is optional. + * @member {AuthenticationSettingsContract} [authenticationSettings] + * Collection of authentication settings included into this API. */ - authorizationMethods?: AuthorizationMethod[]; + authenticationSettings?: AuthenticationSettingsContract; /** - * @member {ClientAuthenticationMethod[]} [clientAuthenticationMethod] Method - * of authentication supported by the token endpoint of this authorization - * server. Possible values are Basic and/or Body. When Body is specified, - * client credentials and other parameters are passed within the request body - * in the application/x-www-form-urlencoded format. + * @member {SubscriptionKeyParameterNamesContract} + * [subscriptionKeyParameterNames] Protocols over which API is made + * available. */ - clientAuthenticationMethod?: ClientAuthenticationMethod[]; + subscriptionKeyParameterNames?: SubscriptionKeyParameterNamesContract; /** - * @member {TokenBodyParameterContract[]} [tokenBodyParameters] Additional - * parameters required by the token endpoint of this authorization server - * represented as an array of JSON objects with name and value string - * properties, i.e. {"name" : "name value", "value": "a value"}. + * @member {ApiType} [apiType] Type of API. Possible values include: 'http', + * 'soap' */ - tokenBodyParameters?: TokenBodyParameterContract[]; + apiType?: ApiType; /** - * @member {string} [tokenEndpoint] OAuth token endpoint. Contains absolute - * URI to entity being referenced. + * @member {string} [apiRevision] Describes the Revision of the Api. If no + * value is provided, default revision 1 is created */ - tokenEndpoint?: string; + apiRevision?: string; /** - * @member {boolean} [supportState] If true, authorization server will - * include state parameter from the authorization request to its response. - * Client may use state parameter to raise protocol security. + * @member {string} [apiVersion] Indicates the Version identifier of the API + * if the API is versioned */ - supportState?: boolean; + apiVersion?: string; /** - * @member {string} [defaultScope] Access token scope that is going to be - * requested by default. Can be overridden at the API level. Should be - * provided in the form of a string containing space-delimited values. + * @member {boolean} [isCurrent] Indicates if API revision is current api + * revision. */ - defaultScope?: string; + isCurrent?: boolean; /** - * @member {BearerTokenSendingMethod[]} [bearerTokenSendingMethods] Specifies - * the mechanism by which access token is passed to the API. + * @member {boolean} [isOnline] Indicates if API revision is accessible via + * the gateway. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + readonly isOnline?: boolean; /** - * @member {string} [clientSecret] Client or app secret registered with this - * authorization server. + * @member {string} [apiRevisionDescription] Description of the Api Revision. */ - clientSecret?: string; + apiRevisionDescription?: string; /** - * @member {string} [resourceOwnerUsername] Can be optionally specified when - * resource owner password grant type is supported by this authorization - * server. Default resource owner username. + * @member {string} [apiVersionDescription] Description of the Api Version. */ - resourceOwnerUsername?: string; + apiVersionDescription?: string; /** - * @member {string} [resourceOwnerPassword] Can be optionally specified when - * resource owner password grant type is supported by this authorization - * server. Default resource owner password. + * @member {string} [apiVersionSetId] A resource identifier for the related + * ApiVersionSet. */ - resourceOwnerPassword?: string; + apiVersionSetId?: string; /** - * @member {string} displayName User-friendly authorization server name. + * @member {boolean} [subscriptionRequired] Specifies whether an API or + * Product subscription is required for accessing the API. */ - displayName: string; + subscriptionRequired?: boolean; /** - * @member {string} clientRegistrationEndpoint Optional reference to a page - * where client or app registration for this authorization server is - * performed. Contains absolute URL to entity being referenced. + * @member {string} [sourceApiId] API identifier of the source API. */ - clientRegistrationEndpoint: string; + sourceApiId?: string; /** - * @member {string} authorizationEndpoint OAuth authorization endpoint. See - * http://tools.ietf.org/html/rfc6749#section-3.2. + * @member {string} [displayName] API name. Must be 1 to 300 characters long. */ - authorizationEndpoint: string; + displayName?: string; /** - * @member {GrantType[]} grantTypes Form of an authorization grant, which the - * client uses to request the access token. + * @member {string} [serviceUrl] Absolute URL of the backend service + * implementing this API. Cannot be more than 2000 characters long. */ - grantTypes: GrantType[]; + serviceUrl?: string; /** - * @member {string} clientId Client or app id registered with this - * authorization server. + * @member {string} path Relative URL uniquely identifying this API and all + * of its resource paths within the API Management service instance. It is + * appended to the API endpoint base URL specified during the service + * instance creation to form a public URL for this API. */ - clientId: string; -} - -/** - * @interface - * An interface representing AuthorizationServerUpdateContract. - * External OAuth authorization server settings. - * - * @extends Resource - */ -export interface AuthorizationServerUpdateContract extends Resource { + path: string; /** - * @member {string} [description] Description of the authorization server. - * Can contain HTML formatting tags. + * @member {Protocol[]} [protocols] Describes on which protocols the + * operations in this API can be invoked. */ - description?: string; + protocols?: Protocol[]; /** - * @member {AuthorizationMethod[]} [authorizationMethods] HTTP verbs - * supported by the authorization endpoint. GET must be always present. POST - * is optional. + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details */ - authorizationMethods?: AuthorizationMethod[]; + apiVersionSet?: ApiVersionSetContractDetails; /** - * @member {ClientAuthenticationMethod[]} [clientAuthenticationMethod] Method - * of authentication supported by the token endpoint of this authorization - * server. Possible values are Basic and/or Body. When Body is specified, - * client credentials and other parameters are passed within the request body - * in the application/x-www-form-urlencoded format. + * @member {string} [value] Content value when Importing an API. */ - clientAuthenticationMethod?: ClientAuthenticationMethod[]; + value?: string; /** - * @member {TokenBodyParameterContract[]} [tokenBodyParameters] Additional - * parameters required by the token endpoint of this authorization server - * represented as an array of JSON objects with name and value string - * properties, i.e. {"name" : "name value", "value": "a value"}. + * @member {ContentFormat} [format] 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' */ - tokenBodyParameters?: TokenBodyParameterContract[]; + format?: ContentFormat; /** - * @member {string} [tokenEndpoint] OAuth token endpoint. Contains absolute - * URI to entity being referenced. + * @member {ApiCreateOrUpdatePropertiesWsdlSelector} [wsdlSelector] Criteria + * to limit import of WSDL to a subset of the document. */ - tokenEndpoint?: string; + wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; /** - * @member {boolean} [supportState] If true, authorization server will - * include state parameter from the authorization request to its response. - * Client may use state parameter to raise protocol security. + * @member {SoapApiType} [soapApiType] Type of Api to create. + * * `http` creates a SOAP to REST API + * * `soap` creates a SOAP pass-through API. Possible values include: + * 'SoapToRest', 'SoapPassThrough' */ - supportState?: boolean; + soapApiType?: SoapApiType; +} + +/** + * @interface + * An interface representing ApiVersionSetEntityBase. + * Api Version set base parameters + * + */ +export interface ApiVersionSetEntityBase { /** - * @member {string} [defaultScope] Access token scope that is going to be - * requested by default. Can be overridden at the API level. Should be - * provided in the form of a string containing space-delimited values. + * @member {string} [description] Description of API Version Set. */ - defaultScope?: string; + description?: string; /** - * @member {BearerTokenSendingMethod[]} [bearerTokenSendingMethods] Specifies - * the mechanism by which access token is passed to the API. + * @member {string} [versionQueryName] Name of query parameter that indicates + * the API Version if versioningScheme is set to `query`. */ - bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + versionQueryName?: string; /** - * @member {string} [clientSecret] Client or app secret registered with this - * authorization server. + * @member {string} [versionHeaderName] Name of HTTP header parameter that + * indicates the API Version if versioningScheme is set to `header`. */ - clientSecret?: string; + versionHeaderName?: string; +} + +/** + * @interface + * An interface representing ApiVersionSetUpdateParameters. + * Parameters to update or create an Api Version Set Contract. + * + */ +export interface ApiVersionSetUpdateParameters { /** - * @member {string} [resourceOwnerUsername] Can be optionally specified when - * resource owner password grant type is supported by this authorization - * server. Default resource owner username. + * @member {string} [description] Description of API Version Set. */ - resourceOwnerUsername?: string; + description?: string; /** - * @member {string} [resourceOwnerPassword] Can be optionally specified when - * resource owner password grant type is supported by this authorization - * server. Default resource owner password. + * @member {string} [versionQueryName] Name of query parameter that indicates + * the API Version if versioningScheme is set to `query`. */ - resourceOwnerPassword?: string; + versionQueryName?: string; /** - * @member {string} [displayName] User-friendly authorization server name. + * @member {string} [versionHeaderName] Name of HTTP header parameter that + * indicates the API Version if versioningScheme is set to `header`. + */ + versionHeaderName?: string; + /** + * @member {string} [displayName] Name of API Version Set */ displayName?: string; /** - * @member {string} [clientRegistrationEndpoint] Optional reference to a page - * where client or app registration for this authorization server is - * performed. Contains absolute URL to entity being referenced. + * @member {VersioningScheme} [versioningScheme] An value that determines + * where the API Version identifer will be located in a HTTP request. + * Possible values include: 'Segment', 'Query', 'Header' */ - clientRegistrationEndpoint?: string; + versioningScheme?: VersioningScheme; +} + +/** + * @interface + * An interface representing ApiVersionSetContract. + * Api Version Set Contract details. + * + * @extends Resource + */ +export interface ApiVersionSetContract extends Resource { /** - * @member {string} [authorizationEndpoint] OAuth authorization endpoint. See - * http://tools.ietf.org/html/rfc6749#section-3.2. + * @member {string} [description] Description of API Version Set. */ - authorizationEndpoint?: string; + description?: string; /** - * @member {GrantType[]} [grantTypes] Form of an authorization grant, which - * the client uses to request the access token. + * @member {string} [versionQueryName] Name of query parameter that indicates + * the API Version if versioningScheme is set to `query`. */ - grantTypes?: GrantType[]; + versionQueryName?: string; /** - * @member {string} [clientId] Client or app id registered with this - * authorization server. + * @member {string} [versionHeaderName] Name of HTTP header parameter that + * indicates the API Version if versioningScheme is set to `header`. */ - clientId?: string; + versionHeaderName?: string; + /** + * @member {string} displayName Name of API Version Set + */ + displayName: string; + /** + * @member {VersioningScheme} versioningScheme An value that determines where + * the API Version identifer will be located in a HTTP request. Possible + * values include: 'Segment', 'Query', 'Header' + */ + versioningScheme: VersioningScheme; } /** @@ -1908,295 +1878,202 @@ export interface AuthorizationServerContractBaseProperties { /** * @interface - * An interface representing BackendAuthorizationHeaderCredentials. - * Authorization header information. + * An interface representing AuthorizationServerUpdateContract. + * External OAuth authorization server settings. * + * @extends Resource */ -export interface BackendAuthorizationHeaderCredentials { +export interface AuthorizationServerUpdateContract extends Resource { /** - * @member {string} scheme Authentication Scheme name. + * @member {string} [description] Description of the authorization server. + * Can contain HTML formatting tags. */ - scheme: string; + description?: string; /** - * @member {string} parameter Authentication Parameter value. + * @member {AuthorizationMethod[]} [authorizationMethods] HTTP verbs + * supported by the authorization endpoint. GET must be always present. POST + * is optional. */ - parameter: string; -} - -/** - * @interface - * An interface representing X509CertificateName. - * Properties of server X509Names. - * - */ -export interface X509CertificateName { + authorizationMethods?: AuthorizationMethod[]; /** - * @member {string} [name] Common Name of the Certificate. + * @member {ClientAuthenticationMethod[]} [clientAuthenticationMethod] Method + * of authentication supported by the token endpoint of this authorization + * server. Possible values are Basic and/or Body. When Body is specified, + * client credentials and other parameters are passed within the request body + * in the application/x-www-form-urlencoded format. */ - name?: string; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; /** - * @member {string} [issuerCertificateThumbprint] Thumbprint for the Issuer - * of the Certificate. + * @member {TokenBodyParameterContract[]} [tokenBodyParameters] Additional + * parameters required by the token endpoint of this authorization server + * represented as an array of JSON objects with name and value string + * properties, i.e. {"name" : "name value", "value": "a value"}. */ - issuerCertificateThumbprint?: string; -} - -/** - * @interface - * An interface representing BackendServiceFabricClusterProperties. - * Properties of the Service Fabric Type Backend. - * - */ -export interface BackendServiceFabricClusterProperties { + tokenBodyParameters?: TokenBodyParameterContract[]; /** - * @member {string} clientCertificatethumbprint The client certificate - * thumbprint for the management endpoint. + * @member {string} [tokenEndpoint] OAuth token endpoint. Contains absolute + * URI to entity being referenced. */ - clientCertificatethumbprint: string; + tokenEndpoint?: string; /** - * @member {number} [maxPartitionResolutionRetries] Maximum number of retries - * while attempting resolve the parition. + * @member {boolean} [supportState] If true, authorization server will + * include state parameter from the authorization request to its response. + * Client may use state parameter to raise protocol security. */ - maxPartitionResolutionRetries?: number; + supportState?: boolean; /** - * @member {string[]} managementEndpoints The cluster management endpoint. + * @member {string} [defaultScope] Access token scope that is going to be + * requested by default. Can be overridden at the API level. Should be + * provided in the form of a string containing space-delimited values. */ - managementEndpoints: string[]; + defaultScope?: string; /** - * @member {string[]} [serverCertificateThumbprints] Thumbprints of - * certificates cluster management service uses for tls communication + * @member {BearerTokenSendingMethod[]} [bearerTokenSendingMethods] Specifies + * the mechanism by which access token is passed to the API. */ - serverCertificateThumbprints?: string[]; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; /** - * @member {X509CertificateName[]} [serverX509Names] Server X509 Certificate - * Names Collection + * @member {string} [clientSecret] Client or app secret registered with this + * authorization server. */ - serverX509Names?: X509CertificateName[]; -} - -/** - * @interface - * An interface representing BackendProperties. - * Properties specific to the Backend Type. - * - */ -export interface BackendProperties { + clientSecret?: string; /** - * @member {BackendServiceFabricClusterProperties} [serviceFabricCluster] - * Backend Service Fabric Cluster Properties + * @member {string} [resourceOwnerUsername] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner username. */ - serviceFabricCluster?: BackendServiceFabricClusterProperties; -} - -/** - * @interface - * An interface representing BackendCredentialsContract. - * Details of the Credentials used to connect to Backend. - * - */ -export interface BackendCredentialsContract { + resourceOwnerUsername?: string; /** - * @member {string[]} [certificate] List of Client Certificate Thumbprint. + * @member {string} [resourceOwnerPassword] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner password. */ - certificate?: string[]; + resourceOwnerPassword?: string; /** - * @member {{ [propertyName: string]: string[] }} [query] Query Parameter - * description. + * @member {string} [displayName] User-friendly authorization server name. */ - query?: { [propertyName: string]: string[] }; + displayName?: string; /** - * @member {{ [propertyName: string]: string[] }} [header] Header Parameter - * description. + * @member {string} [clientRegistrationEndpoint] Optional reference to a page + * where client or app registration for this authorization server is + * performed. Contains absolute URL to entity being referenced. */ - header?: { [propertyName: string]: string[] }; + clientRegistrationEndpoint?: string; /** - * @member {BackendAuthorizationHeaderCredentials} [authorization] - * Authorization header authentication + * @member {string} [authorizationEndpoint] OAuth authorization endpoint. See + * http://tools.ietf.org/html/rfc6749#section-3.2. */ - authorization?: BackendAuthorizationHeaderCredentials; -} - -/** - * @interface - * An interface representing BackendProxyContract. - * Details of the Backend WebProxy Server to use in the Request to Backend. - * - */ -export interface BackendProxyContract { - /** - * @member {string} url WebProxy Server AbsoluteUri property which includes - * the entire URI stored in the Uri instance, including all fragments and - * query strings. - */ - url: string; - /** - * @member {string} [username] Username to connect to the WebProxy server - */ - username?: string; - /** - * @member {string} [password] Password to connect to the WebProxy Server - */ - password?: string; -} - -/** - * @interface - * An interface representing BackendTlsProperties. - * Properties controlling TLS Certificate Validation. - * - */ -export interface BackendTlsProperties { - /** - * @member {boolean} [validateCertificateChain] Flag indicating whether SSL - * certificate chain validation should be done when using self-signed - * certificates for this backend host. Default value: true . - */ - validateCertificateChain?: boolean; - /** - * @member {boolean} [validateCertificateName] Flag indicating whether SSL - * certificate name validation should be done when using self-signed - * certificates for this backend host. Default value: true . - */ - validateCertificateName?: boolean; -} - -/** - * @interface - * An interface representing BackendBaseParameters. - * Backend entity base Parameter set. - * - */ -export interface BackendBaseParameters { - /** - * @member {string} [title] Backend Title. - */ - title?: string; - /** - * @member {string} [description] Backend Description. - */ - description?: string; - /** - * @member {string} [resourceId] Management Uri of the Resource in External - * System. This url can be the Arm Resource Id of Logic Apps, Function Apps - * or Api Apps. - */ - resourceId?: string; - /** - * @member {BackendProperties} [properties] Backend Properties contract - */ - properties?: BackendProperties; - /** - * @member {BackendCredentialsContract} [credentials] Backend Credentials - * Contract Properties - */ - credentials?: BackendCredentialsContract; + authorizationEndpoint?: string; /** - * @member {BackendProxyContract} [proxy] Backend Proxy Contract Properties + * @member {GrantType[]} [grantTypes] Form of an authorization grant, which + * the client uses to request the access token. */ - proxy?: BackendProxyContract; + grantTypes?: GrantType[]; /** - * @member {BackendTlsProperties} [tls] Backend TLS Properties + * @member {string} [clientId] Client or app id registered with this + * authorization server. */ - tls?: BackendTlsProperties; + clientId?: string; } /** * @interface - * An interface representing BackendContract. - * Backend details. + * An interface representing AuthorizationServerContract. + * External OAuth authorization server settings. * * @extends Resource */ -export interface BackendContract extends Resource { - /** - * @member {string} [title] Backend Title. - */ - title?: string; +export interface AuthorizationServerContract extends Resource { /** - * @member {string} [description] Backend Description. + * @member {string} [description] Description of the authorization server. + * Can contain HTML formatting tags. */ description?: string; /** - * @member {string} [resourceId] Management Uri of the Resource in External - * System. This url can be the Arm Resource Id of Logic Apps, Function Apps - * or Api Apps. - */ - resourceId?: string; - /** - * @member {BackendProperties} [properties] Backend Properties contract + * @member {AuthorizationMethod[]} [authorizationMethods] HTTP verbs + * supported by the authorization endpoint. GET must be always present. POST + * is optional. */ - properties?: BackendProperties; + authorizationMethods?: AuthorizationMethod[]; /** - * @member {BackendCredentialsContract} [credentials] Backend Credentials - * Contract Properties + * @member {ClientAuthenticationMethod[]} [clientAuthenticationMethod] Method + * of authentication supported by the token endpoint of this authorization + * server. Possible values are Basic and/or Body. When Body is specified, + * client credentials and other parameters are passed within the request body + * in the application/x-www-form-urlencoded format. */ - credentials?: BackendCredentialsContract; + clientAuthenticationMethod?: ClientAuthenticationMethod[]; /** - * @member {BackendProxyContract} [proxy] Backend Proxy Contract Properties + * @member {TokenBodyParameterContract[]} [tokenBodyParameters] Additional + * parameters required by the token endpoint of this authorization server + * represented as an array of JSON objects with name and value string + * properties, i.e. {"name" : "name value", "value": "a value"}. */ - proxy?: BackendProxyContract; + tokenBodyParameters?: TokenBodyParameterContract[]; /** - * @member {BackendTlsProperties} [tls] Backend TLS Properties + * @member {string} [tokenEndpoint] OAuth token endpoint. Contains absolute + * URI to entity being referenced. */ - tls?: BackendTlsProperties; + tokenEndpoint?: string; /** - * @member {string} url Runtime Url of the Backend. + * @member {boolean} [supportState] If true, authorization server will + * include state parameter from the authorization request to its response. + * Client may use state parameter to raise protocol security. */ - url: string; + supportState?: boolean; /** - * @member {BackendProtocol} protocol Backend communication protocol. - * Possible values include: 'http', 'soap' + * @member {string} [defaultScope] Access token scope that is going to be + * requested by default. Can be overridden at the API level. Should be + * provided in the form of a string containing space-delimited values. */ - protocol: BackendProtocol; -} - -/** - * @interface - * An interface representing BackendUpdateParameters. - * Backend update parameters. - * - */ -export interface BackendUpdateParameters { + defaultScope?: string; /** - * @member {string} [title] Backend Title. + * @member {BearerTokenSendingMethod[]} [bearerTokenSendingMethods] Specifies + * the mechanism by which access token is passed to the API. */ - title?: string; + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; /** - * @member {string} [description] Backend Description. + * @member {string} [clientSecret] Client or app secret registered with this + * authorization server. */ - description?: string; + clientSecret?: string; /** - * @member {string} [resourceId] Management Uri of the Resource in External - * System. This url can be the Arm Resource Id of Logic Apps, Function Apps - * or Api Apps. + * @member {string} [resourceOwnerUsername] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner username. */ - resourceId?: string; + resourceOwnerUsername?: string; /** - * @member {BackendProperties} [properties] Backend Properties contract + * @member {string} [resourceOwnerPassword] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner password. */ - properties?: BackendProperties; + resourceOwnerPassword?: string; /** - * @member {BackendCredentialsContract} [credentials] Backend Credentials - * Contract Properties + * @member {string} displayName User-friendly authorization server name. */ - credentials?: BackendCredentialsContract; + displayName: string; /** - * @member {BackendProxyContract} [proxy] Backend Proxy Contract Properties + * @member {string} clientRegistrationEndpoint Optional reference to a page + * where client or app registration for this authorization server is + * performed. Contains absolute URL to entity being referenced. */ - proxy?: BackendProxyContract; + clientRegistrationEndpoint: string; /** - * @member {BackendTlsProperties} [tls] Backend TLS Properties + * @member {string} authorizationEndpoint OAuth authorization endpoint. See + * http://tools.ietf.org/html/rfc6749#section-3.2. */ - tls?: BackendTlsProperties; + authorizationEndpoint: string; /** - * @member {string} [url] Runtime Url of the Backend. + * @member {GrantType[]} grantTypes Form of an authorization grant, which the + * client uses to request the access token. */ - url?: string; + grantTypes: GrantType[]; /** - * @member {BackendProtocol} [protocol] Backend communication protocol. - * Possible values include: 'http', 'soap' + * @member {string} clientId Client or app id registered with this + * authorization server. */ - protocol?: BackendProtocol; + clientId: string; } /** @@ -2209,639 +2086,706 @@ export interface BackendUpdateParameters { export interface BackendReconnectContract extends Resource { /** * @member {string} [after] Duration in ISO8601 format after which reconnect - * will be initiated. Minimum duration of the Reconect is PT2M. + * will be initiated. Minimum duration of the Reconnect is PT2M. */ after?: string; } /** * @interface - * An interface representing CertificateContract. - * Certificate details. + * An interface representing BackendTlsProperties. + * Properties controlling TLS Certificate Validation. * - * @extends Resource */ -export interface CertificateContract extends Resource { - /** - * @member {string} subject Subject attribute of the certificate. - */ - subject: string; +export interface BackendTlsProperties { /** - * @member {string} thumbprint Thumbprint of the certificate. + * @member {boolean} [validateCertificateChain] Flag indicating whether SSL + * certificate chain validation should be done when using self-signed + * certificates for this backend host. Default value: true . */ - thumbprint: string; + validateCertificateChain?: boolean; /** - * @member {Date} expirationDate Expiration date of the certificate. The date - * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by - * the ISO 8601 standard. + * @member {boolean} [validateCertificateName] Flag indicating whether SSL + * certificate name validation should be done when using self-signed + * certificates for this backend host. Default value: true . */ - expirationDate: Date; + validateCertificateName?: boolean; } /** * @interface - * An interface representing CertificateCreateOrUpdateParameters. - * Certificate create or update details. + * An interface representing BackendProxyContract. + * Details of the Backend WebProxy Server to use in the Request to Backend. * */ -export interface CertificateCreateOrUpdateParameters { +export interface BackendProxyContract { /** - * @member {string} data Base 64 encoded certificate using the - * application/x-pkcs12 representation. + * @member {string} url WebProxy Server AbsoluteUri property which includes + * the entire URI stored in the Uri instance, including all fragments and + * query strings. */ - data: string; + url: string; /** - * @member {string} password Password for the Certificate + * @member {string} [username] Username to connect to the WebProxy server */ - password: string; + username?: string; + /** + * @member {string} [password] Password to connect to the WebProxy Server + */ + password?: string; } /** * @interface - * An interface representing CertificateInformation. - * SSL certificate information. + * An interface representing BackendAuthorizationHeaderCredentials. + * Authorization header information. * */ -export interface CertificateInformation { +export interface BackendAuthorizationHeaderCredentials { /** - * @member {Date} expiry Expiration date of the certificate. The date - * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by - * the ISO 8601 standard. - */ - expiry: Date; - /** - * @member {string} thumbprint Thumbprint of the certificate. + * @member {string} scheme Authentication Scheme name. */ - thumbprint: string; + scheme: string; /** - * @member {string} subject Subject of the certificate. + * @member {string} parameter Authentication Parameter value. */ - subject: string; + parameter: string; } /** * @interface - * An interface representing CertificateConfiguration. - * Certificate configuration which consist of non-trusted intermediates and - * root certificates. + * An interface representing BackendCredentialsContract. + * Details of the Credentials used to connect to Backend. * */ -export interface CertificateConfiguration { +export interface BackendCredentialsContract { /** - * @member {string} [encodedCertificate] Base64 Encoded certificate. + * @member {string[]} [certificate] List of Client Certificate Thumbprint. */ - encodedCertificate?: string; + certificate?: string[]; /** - * @member {string} [certificatePassword] Certificate Password. + * @member {{ [propertyName: string]: string[] }} [query] Query Parameter + * description. */ - certificatePassword?: string; + query?: { [propertyName: string]: string[] }; /** - * @member {StoreName} storeName The - * System.Security.Cryptography.x509certificates.Storename certificate store - * location. Only Root and CertificateAuthority are valid locations. Possible - * values include: 'CertificateAuthority', 'Root' + * @member {{ [propertyName: string]: string[] }} [header] Header Parameter + * description. */ - storeName: StoreName; + header?: { [propertyName: string]: string[] }; /** - * @member {CertificateInformation} [certificate] Certificate information. + * @member {BackendAuthorizationHeaderCredentials} [authorization] + * Authorization header authentication */ - certificate?: CertificateInformation; + authorization?: BackendAuthorizationHeaderCredentials; } /** * @interface - * An interface representing HostnameConfiguration. - * Custom hostname configuration. + * An interface representing X509CertificateName. + * Properties of server X509Names. * */ -export interface HostnameConfiguration { - /** - * @member {HostnameType} type Hostname type. Possible values include: - * 'Proxy', 'Portal', 'Management', 'Scm' - */ - type: HostnameType; - /** - * @member {string} hostName Hostname to configure on the Api Management - * service. - */ - hostName: string; - /** - * @member {string} [keyVaultId] Url to the KeyVault Secret containing the - * Ssl Certificate. If absolute Url containing version is provided, - * auto-update of ssl certificate will not work. This requires Api Management - * service to be configured with MSI. The secret should be of type - * *application/x-pkcs12* - */ - keyVaultId?: string; - /** - * @member {string} [encodedCertificate] Base64 Encoded certificate. - */ - encodedCertificate?: string; - /** - * @member {string} [certificatePassword] Certificate Password. - */ - certificatePassword?: string; - /** - * @member {boolean} [defaultSslBinding] Specify true to setup the - * certificate associated with this Hostname as the Default SSL Certificate. - * If a client does not send the SNI header, then this will be the - * certificate that will be challenged. The property is useful if a service - * has multiple custom hostname enabled and it needs to decide on the default - * ssl certificate. The setting only applied to Proxy Hostname Type. Default - * value: false . - */ - defaultSslBinding?: boolean; +export interface X509CertificateName { /** - * @member {boolean} [negotiateClientCertificate] Specify true to always - * negotiate client certificate on the hostname. Default Value is false. - * Default value: false . + * @member {string} [name] Common Name of the Certificate. */ - negotiateClientCertificate?: boolean; + name?: string; /** - * @member {CertificateInformation} [certificate] Certificate information. + * @member {string} [issuerCertificateThumbprint] Thumbprint for the Issuer + * of the Certificate. */ - certificate?: CertificateInformation; + issuerCertificateThumbprint?: string; } /** * @interface - * An interface representing VirtualNetworkConfiguration. - * Configuration of a virtual network to which API Management service is - * deployed. + * An interface representing BackendServiceFabricClusterProperties. + * Properties of the Service Fabric Type Backend. * */ -export interface VirtualNetworkConfiguration { +export interface BackendServiceFabricClusterProperties { /** - * @member {string} [vnetid] The virtual network ID. This is typically a - * GUID. Expect a null GUID by default. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} clientCertificatethumbprint The client certificate + * thumbprint for the management endpoint. */ - readonly vnetid?: string; + clientCertificatethumbprint: string; /** - * @member {string} [subnetname] The name of the subnet. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [maxPartitionResolutionRetries] Maximum number of retries + * while attempting resolve the partition. */ - readonly subnetname?: string; + maxPartitionResolutionRetries?: number; /** - * @member {string} [subnetResourceId] The full resource ID of a subnet in a - * virtual network to deploy the API Management service in. + * @member {string[]} managementEndpoints The cluster management endpoint. */ - subnetResourceId?: string; + managementEndpoints: string[]; + /** + * @member {string[]} [serverCertificateThumbprints] Thumbprints of + * certificates cluster management service uses for tls communication + */ + serverCertificateThumbprints?: string[]; + /** + * @member {X509CertificateName[]} [serverX509Names] Server X509 Certificate + * Names Collection + */ + serverX509Names?: X509CertificateName[]; } /** * @interface - * An interface representing ApiManagementServiceSkuProperties. - * API Management service resource SKU properties. + * An interface representing BackendProperties. + * Properties specific to the Backend Type. * */ -export interface ApiManagementServiceSkuProperties { - /** - * @member {SkuType} name Name of the Sku. Possible values include: - * 'Developer', 'Standard', 'Premium', 'Basic' - */ - name: SkuType; +export interface BackendProperties { /** - * @member {number} [capacity] Capacity of the SKU (number of deployed units - * of the SKU). The default value is 1. Default value: 1 . + * @member {BackendServiceFabricClusterProperties} [serviceFabricCluster] + * Backend Service Fabric Cluster Properties */ - capacity?: number; + serviceFabricCluster?: BackendServiceFabricClusterProperties; } /** * @interface - * An interface representing AdditionalLocation. - * Description of an additional API Management resource location. + * An interface representing BackendBaseParameters. + * Backend entity base Parameter set. * */ -export interface AdditionalLocation { +export interface BackendBaseParameters { /** - * @member {string} location The location name of the additional region among - * Azure Data center regions. + * @member {string} [title] Backend Title. */ - location: string; + title?: string; /** - * @member {ApiManagementServiceSkuProperties} sku SKU properties of the API - * Management service. + * @member {string} [description] Backend Description. */ - sku: ApiManagementServiceSkuProperties; + description?: string; /** - * @member {string[]} [publicIPAddresses] Public Static Load Balanced IP - * addresses of the API Management service in the additional location. - * Available only for Basic, Standard and Premium SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [resourceId] Management Uri of the Resource in External + * System. This url can be the Arm Resource Id of Logic Apps, Function Apps + * or Api Apps. */ - readonly publicIPAddresses?: string[]; + resourceId?: string; /** - * @member {string[]} [privateIPAddresses] Private Static Load Balanced IP - * addresses of the API Management service which is deployed in an Internal - * Virtual Network in a particular additional location. Available only for - * Basic, Standard and Premium SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {BackendProperties} [properties] Backend Properties contract */ - readonly privateIPAddresses?: string[]; + properties?: BackendProperties; /** - * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] - * Virtual network configuration for the location. + * @member {BackendCredentialsContract} [credentials] Backend Credentials + * Contract Properties */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; + credentials?: BackendCredentialsContract; /** - * @member {string} [gatewayRegionalUrl] Gateway URL of the API Management - * service in the Region. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {BackendProxyContract} [proxy] Backend Proxy Contract Properties */ - readonly gatewayRegionalUrl?: string; + proxy?: BackendProxyContract; + /** + * @member {BackendTlsProperties} [tls] Backend TLS Properties + */ + tls?: BackendTlsProperties; } /** * @interface - * An interface representing ApiManagementServiceBackupRestoreParameters. - * Parameters supplied to the Backup/Restore of an API Management service - * operation. + * An interface representing BackendUpdateParameters. + * Backend update parameters. * */ -export interface ApiManagementServiceBackupRestoreParameters { +export interface BackendUpdateParameters { /** - * @member {string} storageAccount Azure Cloud Storage account (used to - * place/retrieve the backup) name. + * @member {string} [title] Backend Title. */ - storageAccount: string; + title?: string; /** - * @member {string} accessKey Azure Cloud Storage account (used to - * place/retrieve the backup) access key. + * @member {string} [description] Backend Description. */ - accessKey: string; + description?: string; /** - * @member {string} containerName Azure Cloud Storage blob container name - * used to place/retrieve the backup. + * @member {string} [resourceId] Management Uri of the Resource in External + * System. This url can be the Arm Resource Id of Logic Apps, Function Apps + * or Api Apps. */ - containerName: string; + resourceId?: string; /** - * @member {string} backupName The name of the backup file to create. + * @member {BackendProperties} [properties] Backend Properties contract */ - backupName: string; + properties?: BackendProperties; + /** + * @member {BackendCredentialsContract} [credentials] Backend Credentials + * Contract Properties + */ + credentials?: BackendCredentialsContract; + /** + * @member {BackendProxyContract} [proxy] Backend Proxy Contract Properties + */ + proxy?: BackendProxyContract; + /** + * @member {BackendTlsProperties} [tls] Backend TLS Properties + */ + tls?: BackendTlsProperties; + /** + * @member {string} [url] Runtime Url of the Backend. + */ + url?: string; + /** + * @member {BackendProtocol} [protocol] Backend communication protocol. + * Possible values include: 'http', 'soap' + */ + protocol?: BackendProtocol; } /** * @interface - * An interface representing ApiManagementServiceBaseProperties. - * Base Properties of an API Management service resource description. + * An interface representing BackendContract. + * Backend details. * + * @extends Resource */ -export interface ApiManagementServiceBaseProperties { +export interface BackendContract extends Resource { /** - * @member {string} [notificationSenderEmail] Email address from which the - * notification will be sent. - */ - notificationSenderEmail?: string; - /** - * @member {string} [provisioningState] The current provisioning state of the - * API Management service which can be one of the following: - * Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {string} [targetProvisioningState] The provisioning state of the - * API Management service, which is targeted by the long running operation - * started on the service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [title] Backend Title. */ - readonly targetProvisioningState?: string; + title?: string; /** - * @member {Date} [createdAtUtc] Creation UTC date of the API Management - * service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` - * as specified by the ISO 8601 standard. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [description] Backend Description. */ - readonly createdAtUtc?: Date; + description?: string; /** - * @member {string} [gatewayUrl] Gateway URL of the API Management service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [resourceId] Management Uri of the Resource in External + * System. This url can be the Arm Resource Id of Logic Apps, Function Apps + * or Api Apps. */ - readonly gatewayUrl?: string; + resourceId?: string; /** - * @member {string} [gatewayRegionalUrl] Gateway URL of the API Management - * service in the Default Region. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {BackendProperties} [properties] Backend Properties contract */ - readonly gatewayRegionalUrl?: string; + properties?: BackendProperties; /** - * @member {string} [portalUrl] Publisher portal endpoint Url of the API - * Management service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {BackendCredentialsContract} [credentials] Backend Credentials + * Contract Properties */ - readonly portalUrl?: string; + credentials?: BackendCredentialsContract; /** - * @member {string} [managementApiUrl] Management API endpoint URL of the API - * Management service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {BackendProxyContract} [proxy] Backend Proxy Contract Properties */ - readonly managementApiUrl?: string; + proxy?: BackendProxyContract; /** - * @member {string} [scmUrl] SCM endpoint URL of the API Management service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {BackendTlsProperties} [tls] Backend TLS Properties */ - readonly scmUrl?: string; + tls?: BackendTlsProperties; /** - * @member {HostnameConfiguration[]} [hostnameConfigurations] Custom hostname - * configuration of the API Management service. + * @member {string} url Runtime Url of the Backend. */ - hostnameConfigurations?: HostnameConfiguration[]; + url: string; /** - * @member {string[]} [publicIPAddresses] Public Static Load Balanced IP - * addresses of the API Management service in Primary region. Available only - * for Basic, Standard and Premium SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {BackendProtocol} protocol Backend communication protocol. + * Possible values include: 'http', 'soap' */ - readonly publicIPAddresses?: string[]; + protocol: BackendProtocol; +} + +/** + * @interface + * An interface representing CacheUpdateParameters. + * Cache update details. + * + */ +export interface CacheUpdateParameters { /** - * @member {string[]} [privateIPAddresses] Private Static Load Balanced IP - * addresses of the API Management service in Primary region which is - * deployed in an Internal Virtual Network. Available only for Basic, - * Standard and Premium SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [description] Cache description */ - readonly privateIPAddresses?: string[]; + description?: string; /** - * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] - * Virtual network configuration of the API Management service. + * @member {string} [connectionString] Runtime connection string to cache */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; + connectionString?: string; /** - * @member {AdditionalLocation[]} [additionalLocations] Additional datacenter - * locations of the API Management service. + * @member {string} [resourceId] Original uri of entity in external system + * cache points to */ - additionalLocations?: AdditionalLocation[]; + resourceId?: string; +} + +/** + * @interface + * An interface representing CacheContract. + * Cache details. + * + * @extends Resource + */ +export interface CacheContract extends Resource { /** - * @member {{ [propertyName: string]: string }} [customProperties] Custom - * properties of the API Management service. Setting - * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` - * will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 - * and 1.2). Setting - * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` - * can be used to disable just TLS 1.1 and setting - * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` - * can be used to disable TLS 1.0 on an API Management service. + * @member {string} [description] Cache description */ - customProperties?: { [propertyName: string]: string }; + description?: string; /** - * @member {CertificateConfiguration[]} [certificates] List of Certificates - * that need to be installed in the API Management service. Max supported - * certificates that can be installed is 10. + * @member {string} connectionString Runtime connection string to cache */ - certificates?: CertificateConfiguration[]; + connectionString: string; /** - * @member {VirtualNetworkType} [virtualNetworkType] The type of VPN in which - * API Managemet service needs to be configured in. None (Default Value) - * means the API Management service is not part of any Virtual Network, - * External means the API Management deployment is set up inside a Virtual - * Network having an Internet Facing Endpoint, and Internal means that API - * Management deployment is setup inside a Virtual Network having an Intranet - * Facing Endpoint only. Possible values include: 'None', 'External', - * 'Internal'. Default value: 'None' . + * @member {string} [resourceId] Original uri of entity in external system + * cache points to */ - virtualNetworkType?: VirtualNetworkType; + resourceId?: string; } /** * @interface - * An interface representing ApiManagementServiceIdentity. - * Identity properties of the Api Management service resource. + * An interface representing CertificateContract. + * Certificate details. * + * @extends Resource */ -export interface ApiManagementServiceIdentity { +export interface CertificateContract extends Resource { /** - * @member {string} [principalId] The principal id of the identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} subject Subject attribute of the certificate. */ - readonly principalId?: string; + subject: string; /** - * @member {string} [tenantId] The client tenant id of the identity. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} thumbprint Thumbprint of the certificate. */ - readonly tenantId?: string; + thumbprint: string; + /** + * @member {Date} expirationDate Expiration date of the certificate. The date + * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. + */ + expirationDate: Date; } /** * @interface - * An interface representing ApimResource. - * The Resource definition. + * An interface representing CertificateCreateOrUpdateParameters. + * Certificate create or update details. * - * @extends BaseResource */ -export interface ApimResource extends BaseResource { - /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; - /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; +export interface CertificateCreateOrUpdateParameters { /** - * @member {string} [type] Resource type for API Management resource is set - * to Microsoft.ApiManagement. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} data Base 64 encoded certificate using the + * application/x-pkcs12 representation. */ - readonly type?: string; + data: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags. + * @member {string} password Password for the Certificate */ - tags?: { [propertyName: string]: string }; + password: string; } /** * @interface - * An interface representing ApiManagementServiceResource. - * A single API Management service resource in List or Get response. + * An interface representing ResourceSku. + * Describes an available API Management SKU. * - * @extends ApimResource */ -export interface ApiManagementServiceResource extends ApimResource { +export interface ResourceSku { /** - * @member {string} [notificationSenderEmail] Email address from which the - * notification will be sent. + * @member {SkuType} [name] Name of the Sku. Possible values include: + * 'Developer', 'Standard', 'Premium', 'Basic', 'Consumption' */ - notificationSenderEmail?: string; + name?: SkuType; +} + +/** + * @interface + * An interface representing ResourceSkuCapacity. + * Describes scaling information of a SKU. + * + */ +export interface ResourceSkuCapacity { /** - * @member {string} [provisioningState] The current provisioning state of the - * API Management service which can be one of the following: - * Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * @member {number} [minimum] The minimum capacity. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly provisioningState?: string; + readonly minimum?: number; /** - * @member {string} [targetProvisioningState] The provisioning state of the - * API Management service, which is targeted by the long running operation - * started on the service. + * @member {number} [maximum] The maximum capacity that can be set. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly targetProvisioningState?: string; + readonly maximum?: number; /** - * @member {Date} [createdAtUtc] Creation UTC date of the API Management - * service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` - * as specified by the ISO 8601 standard. + * @member {number} [default] The default capacity. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly createdAtUtc?: Date; + readonly default?: number; /** - * @member {string} [gatewayUrl] Gateway URL of the API Management service. + * @member {ResourceSkuCapacityScaleType} [scaleType] The scale type + * applicable to the sku. Possible values include: 'automatic', 'manual', + * 'none' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly gatewayUrl?: string; + readonly scaleType?: ResourceSkuCapacityScaleType; +} + +/** + * @interface + * An interface representing ResourceSkuResult. + * Describes an available API Management service SKU. + * + */ +export interface ResourceSkuResult { /** - * @member {string} [gatewayRegionalUrl] Gateway URL of the API Management - * service in the Default Region. + * @member {string} [resourceType] The type of resource the SKU applies to. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly gatewayRegionalUrl?: string; + readonly resourceType?: string; /** - * @member {string} [portalUrl] Publisher portal endpoint Url of the API - * Management service. + * @member {ResourceSku} [sku] Specifies API Management SKU. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly portalUrl?: string; + readonly sku?: ResourceSku; /** - * @member {string} [managementApiUrl] Management API endpoint URL of the API - * Management service. + * @member {ResourceSkuCapacity} [capacity] Specifies the number of API + * Management units. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly managementApiUrl?: string; + readonly capacity?: ResourceSkuCapacity; +} + +/** + * @interface + * An interface representing CertificateInformation. + * SSL certificate information. + * + */ +export interface CertificateInformation { /** - * @member {string} [scmUrl] SCM endpoint URL of the API Management service. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {Date} expiry Expiration date of the certificate. The date + * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. */ - readonly scmUrl?: string; + expiry: Date; /** - * @member {HostnameConfiguration[]} [hostnameConfigurations] Custom hostname - * configuration of the API Management service. + * @member {string} thumbprint Thumbprint of the certificate. */ - hostnameConfigurations?: HostnameConfiguration[]; + thumbprint: string; /** - * @member {string[]} [publicIPAddresses] Public Static Load Balanced IP - * addresses of the API Management service in Primary region. Available only - * for Basic, Standard and Premium SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} subject Subject of the certificate. */ - readonly publicIPAddresses?: string[]; + subject: string; +} + +/** + * @interface + * An interface representing CertificateConfiguration. + * Certificate configuration which consist of non-trusted intermediates and + * root certificates. + * + */ +export interface CertificateConfiguration { /** - * @member {string[]} [privateIPAddresses] Private Static Load Balanced IP - * addresses of the API Management service in Primary region which is - * deployed in an Internal Virtual Network. Available only for Basic, - * Standard and Premium SKU. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [encodedCertificate] Base64 Encoded certificate. */ - readonly privateIPAddresses?: string[]; + encodedCertificate?: string; /** - * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] - * Virtual network configuration of the API Management service. + * @member {string} [certificatePassword] Certificate Password. */ - virtualNetworkConfiguration?: VirtualNetworkConfiguration; + certificatePassword?: string; /** - * @member {AdditionalLocation[]} [additionalLocations] Additional datacenter - * locations of the API Management service. + * @member {StoreName} storeName The + * System.Security.Cryptography.x509certificates.StoreName certificate store + * location. Only Root and CertificateAuthority are valid locations. Possible + * values include: 'CertificateAuthority', 'Root' */ - additionalLocations?: AdditionalLocation[]; + storeName: StoreName; /** - * @member {{ [propertyName: string]: string }} [customProperties] Custom - * properties of the API Management service. Setting - * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` - * will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 - * and 1.2). Setting - * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` - * can be used to disable just TLS 1.1 and setting - * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` - * can be used to disable TLS 1.0 on an API Management service. + * @member {CertificateInformation} [certificate] Certificate information. */ - customProperties?: { [propertyName: string]: string }; + certificate?: CertificateInformation; +} + +/** + * @interface + * An interface representing HostnameConfiguration. + * Custom hostname configuration. + * + */ +export interface HostnameConfiguration { /** - * @member {CertificateConfiguration[]} [certificates] List of Certificates - * that need to be installed in the API Management service. Max supported - * certificates that can be installed is 10. + * @member {HostnameType} type Hostname type. Possible values include: + * 'Proxy', 'Portal', 'Management', 'Scm', 'DeveloperPortal' */ - certificates?: CertificateConfiguration[]; + type: HostnameType; /** - * @member {VirtualNetworkType} [virtualNetworkType] The type of VPN in which - * API Managemet service needs to be configured in. None (Default Value) - * means the API Management service is not part of any Virtual Network, - * External means the API Management deployment is set up inside a Virtual - * Network having an Internet Facing Endpoint, and Internal means that API - * Management deployment is setup inside a Virtual Network having an Intranet - * Facing Endpoint only. Possible values include: 'None', 'External', - * 'Internal'. Default value: 'None' . + * @member {string} hostName Hostname to configure on the Api Management + * service. */ - virtualNetworkType?: VirtualNetworkType; + hostName: string; /** - * @member {string} publisherEmail Publisher email. + * @member {string} [keyVaultId] Url to the KeyVault Secret containing the + * Ssl Certificate. If absolute Url containing version is provided, + * auto-update of ssl certificate will not work. This requires Api Management + * service to be configured with MSI. The secret should be of type + * *application/x-pkcs12* */ - publisherEmail: string; + keyVaultId?: string; /** - * @member {string} publisherName Publisher name. + * @member {string} [encodedCertificate] Base64 Encoded certificate. */ - publisherName: string; + encodedCertificate?: string; + /** + * @member {string} [certificatePassword] Certificate Password. + */ + certificatePassword?: string; + /** + * @member {boolean} [defaultSslBinding] Specify true to setup the + * certificate associated with this Hostname as the Default SSL Certificate. + * If a client does not send the SNI header, then this will be the + * certificate that will be challenged. The property is useful if a service + * has multiple custom hostname enabled and it needs to decide on the default + * ssl certificate. The setting only applied to Proxy Hostname Type. Default + * value: false . + */ + defaultSslBinding?: boolean; + /** + * @member {boolean} [negotiateClientCertificate] Specify true to always + * negotiate client certificate on the hostname. Default Value is false. + * Default value: false . + */ + negotiateClientCertificate?: boolean; + /** + * @member {CertificateInformation} [certificate] Certificate information. + */ + certificate?: CertificateInformation; +} + +/** + * @interface + * An interface representing VirtualNetworkConfiguration. + * Configuration of a virtual network to which API Management service is + * deployed. + * + */ +export interface VirtualNetworkConfiguration { + /** + * @member {string} [vnetid] The virtual network ID. This is typically a + * GUID. Expect a null GUID by default. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly vnetid?: string; + /** + * @member {string} [subnetname] The name of the subnet. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly subnetname?: string; + /** + * @member {string} [subnetResourceId] The full resource ID of a subnet in a + * virtual network to deploy the API Management service in. + */ + subnetResourceId?: string; +} + +/** + * @interface + * An interface representing ApiManagementServiceSkuProperties. + * API Management service resource SKU properties. + * + */ +export interface ApiManagementServiceSkuProperties { + /** + * @member {SkuType} name Name of the Sku. Possible values include: + * 'Developer', 'Standard', 'Premium', 'Basic', 'Consumption' + */ + name: SkuType; + /** + * @member {number} [capacity] Capacity of the SKU (number of deployed units + * of the SKU). The default value is 1. Default value: 1 . + */ + capacity?: number; +} + +/** + * @interface + * An interface representing AdditionalLocation. + * Description of an additional API Management resource location. + * + */ +export interface AdditionalLocation { + /** + * @member {string} location The location name of the additional region among + * Azure Data center regions. + */ + location: string; /** * @member {ApiManagementServiceSkuProperties} sku SKU properties of the API * Management service. */ sku: ApiManagementServiceSkuProperties; /** - * @member {ApiManagementServiceIdentity} [identity] Managed service identity - * of the Api Management service. + * @member {string[]} [publicIPAddresses] Public Static Load Balanced IP + * addresses of the API Management service in the additional location. + * Available only for Basic, Standard and Premium SKU. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - identity?: ApiManagementServiceIdentity; + readonly publicIPAddresses?: string[]; /** - * @member {string} location Resource location. + * @member {string[]} [privateIPAddresses] Private Static Load Balanced IP + * addresses of the API Management service which is deployed in an Internal + * Virtual Network in a particular additional location. Available only for + * Basic, Standard and Premium SKU. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - location: string; + readonly privateIPAddresses?: string[]; /** - * @member {string} [etag] ETag of the resource. + * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] + * Virtual network configuration for the location. + */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** + * @member {string} [gatewayRegionalUrl] Gateway URL of the API Management + * service in the Region. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly etag?: string; + readonly gatewayRegionalUrl?: string; } /** * @interface - * An interface representing ApiManagementServiceUpdateParameters. - * Parameter supplied to Update Api Management Service. + * An interface representing ApiManagementServiceBackupRestoreParameters. + * Parameters supplied to the Backup/Restore of an API Management service + * operation. * - * @extends ApimResource */ -export interface ApiManagementServiceUpdateParameters extends ApimResource { +export interface ApiManagementServiceBackupRestoreParameters { + /** + * @member {string} storageAccount Azure Cloud Storage account (used to + * place/retrieve the backup) name. + */ + storageAccount: string; + /** + * @member {string} accessKey Azure Cloud Storage account (used to + * place/retrieve the backup) access key. + */ + accessKey: string; + /** + * @member {string} containerName Azure Cloud Storage blob container name + * used to place/retrieve the backup. + */ + containerName: string; + /** + * @member {string} backupName The name of the backup file to create. + */ + backupName: string; +} + +/** + * @interface + * An interface representing ApiManagementServiceBaseProperties. + * Base Properties of an API Management service resource description. + * + */ +export interface ApiManagementServiceBaseProperties { /** * @member {string} [notificationSenderEmail] Email address from which the * notification will be sent. @@ -2954,9 +2898,16 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * certificates that can be installed is 10. */ certificates?: CertificateConfiguration[]; + /** + * @member {boolean} [enableClientCertificate] Property only meant to be used + * for Consumption SKU Service. This enforces a client certificate to be + * presented on each request to the gateway and enabled ability to + * authenticate the certificate in the policy. Default value: false . + */ + enableClientCertificate?: boolean; /** * @member {VirtualNetworkType} [virtualNetworkType] The type of VPN in which - * API Managemet service needs to be configured in. None (Default Value) + * 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 API Management deployment is set up inside a Virtual * Network having an Internet Facing Endpoint, and Internal means that API @@ -2965,457 +2916,621 @@ export interface ApiManagementServiceUpdateParameters extends ApimResource { * 'Internal'. Default value: 'None' . */ virtualNetworkType?: VirtualNetworkType; +} + +/** + * @interface + * An interface representing ApiManagementServiceIdentity. + * Identity properties of the Api Management service resource. + * + */ +export interface ApiManagementServiceIdentity { /** - * @member {string} [publisherEmail] Publisher email. + * @member {string} [principalId] The principal id of the identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - publisherEmail?: string; + readonly principalId?: string; /** - * @member {string} [publisherName] Publisher name. + * @member {string} [tenantId] The client tenant id of the identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - publisherName?: string; - /** - * @member {ApiManagementServiceSkuProperties} [sku] SKU properties of the - * API Management service. + readonly tenantId?: string; +} + +/** + * @interface + * An interface representing ApimResource. + * The Resource definition. + * + * @extends BaseResource + */ +export interface ApimResource extends BaseResource { + /** + * @member {string} [id] Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - sku?: ApiManagementServiceSkuProperties; + readonly id?: string; /** - * @member {ApiManagementServiceIdentity} [identity] Managed service identity - * of the Api Management service. + * @member {string} [name] Resource name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - identity?: ApiManagementServiceIdentity; + readonly name?: string; /** - * @member {string} [etag] ETag of the resource. + * @member {string} [type] Resource type for API Management resource is set + * to Microsoft.ApiManagement. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly etag?: string; -} - -/** - * @interface - * An interface representing ApiManagementServiceGetSsoTokenResult. - * The response of the GetSsoToken operation. - * - */ -export interface ApiManagementServiceGetSsoTokenResult { + readonly type?: string; /** - * @member {string} [redirectUri] Redirect URL to the Publisher Portal - * containing the SSO token. + * @member {{ [propertyName: string]: string }} [tags] Resource tags. */ - redirectUri?: string; + tags?: { [propertyName: string]: string }; } /** * @interface - * An interface representing ApiManagementServiceCheckNameAvailabilityParameters. - * Parameters supplied to the CheckNameAvailability operation. + * An interface representing ApiManagementServiceResource. + * A single API Management service resource in List or Get response. * + * @extends ApimResource */ -export interface ApiManagementServiceCheckNameAvailabilityParameters { +export interface ApiManagementServiceResource extends ApimResource { /** - * @member {string} name The name to check for availability. + * @member {string} [notificationSenderEmail] Email address from which the + * notification will be sent. */ - name: string; -} - -/** - * @interface - * An interface representing ApiManagementServiceNameAvailabilityResult. - * Response of the CheckNameAvailability operation. - * - */ -export interface ApiManagementServiceNameAvailabilityResult { + notificationSenderEmail?: string; /** - * @member {boolean} [nameAvailable] True if the name is available and can be - * used to create a new API Management service; otherwise false. + * @member {string} [provisioningState] The current provisioning state of the + * API Management service which can be one of the following: + * Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly nameAvailable?: boolean; + readonly provisioningState?: string; /** - * @member {string} [message] If reason == invalid, provide the user with the - * reason why the given name is invalid, and provide the resource naming - * requirements so that the user can select a valid name. If reason == - * AlreadyExists, explain that is already in use, and direct - * them to select a different name. + * @member {string} [targetProvisioningState] The provisioning state of the + * API Management service, which is targeted by the long running operation + * started on the service. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly message?: string; + readonly targetProvisioningState?: string; /** - * @member {NameAvailabilityReason} [reason] Invalid indicates the name - * provided does not match the resource provider’s naming requirements - * (incorrect length, unsupported characters, etc.) AlreadyExists indicates - * that the name is already in use and is therefore unavailable. Possible - * values include: 'Valid', 'Invalid', 'AlreadyExists' + * @member {Date} [createdAtUtc] Creation UTC date of the API Management + * service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` + * as specified by the ISO 8601 standard. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - reason?: NameAvailabilityReason; -} - -/** - * @interface - * An interface representing ApiManagementServiceApplyNetworkConfigurationParameters. - * Parameter supplied to the Apply Network configuration operation. - * - */ -export interface ApiManagementServiceApplyNetworkConfigurationParameters { + readonly createdAtUtc?: Date; /** - * @member {string} [location] Location of the Api Management service to - * update for a multi-region service. For a service deployed in a single - * region, this parameter is not required. + * @member {string} [gatewayUrl] Gateway URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - location?: string; -} - -/** - * @interface - * An interface representing ApiManagementServiceUploadCertificateParameters. - * Parameters supplied to the Upload SSL certificate for an API Management - * service operation. - * - */ -export interface ApiManagementServiceUploadCertificateParameters { + readonly gatewayUrl?: string; /** - * @member {HostnameType} type Hostname type. Possible values include: - * 'Proxy', 'Portal', 'Management', 'Scm' + * @member {string} [gatewayRegionalUrl] Gateway URL of the API Management + * service in the Default Region. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - type: HostnameType; + readonly gatewayRegionalUrl?: string; /** - * @member {string} certificate Base64 Encoded certificate. + * @member {string} [portalUrl] Publisher portal endpoint Url of the API + * Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - certificate: string; + readonly portalUrl?: string; /** - * @member {string} certificatePassword Certificate password. + * @member {string} [managementApiUrl] Management API endpoint URL of the API + * Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - certificatePassword: string; -} - -/** - * @interface - * An interface representing HostnameConfigurationOld. - * Custom hostname configuration. - * - */ -export interface HostnameConfigurationOld { + readonly managementApiUrl?: string; /** - * @member {HostnameType} type Hostname type. Possible values include: - * 'Proxy', 'Portal', 'Management', 'Scm' + * @member {string} [scmUrl] SCM endpoint URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - type: HostnameType; + readonly scmUrl?: string; /** - * @member {string} hostname Hostname to configure. + * @member {HostnameConfiguration[]} [hostnameConfigurations] Custom hostname + * configuration of the API Management service. */ - hostname: string; + hostnameConfigurations?: HostnameConfiguration[]; /** - * @member {CertificateInformation} certificate Certificate information. + * @member {string[]} [publicIPAddresses] Public Static Load Balanced IP + * addresses of the API Management service in Primary region. Available only + * for Basic, Standard and Premium SKU. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - certificate: CertificateInformation; -} - -/** - * @interface - * An interface representing ApiManagementServiceUpdateHostnameParameters. - * Parameters supplied to the UpdateHostname operation. - * - */ -export interface ApiManagementServiceUpdateHostnameParameters { + readonly publicIPAddresses?: string[]; /** - * @member {HostnameConfigurationOld[]} [update] Hostnames to create or - * update. + * @member {string[]} [privateIPAddresses] Private Static Load Balanced IP + * addresses of the API Management service in Primary region which is + * deployed in an Internal Virtual Network. Available only for Basic, + * Standard and Premium SKU. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - update?: HostnameConfigurationOld[]; + readonly privateIPAddresses?: string[]; /** - * @member {HostnameType[]} [deleteProperty] Hostnames types to delete. + * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] + * Virtual network configuration of the API Management service. */ - deleteProperty?: HostnameType[]; -} - -/** - * @interface - * An interface representing OperationDisplay. - * The object that describes the operation. - * - */ -export interface OperationDisplay { + virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** - * @member {string} [provider] Friendly name of the resource provider + * @member {AdditionalLocation[]} [additionalLocations] Additional datacenter + * locations of the API Management service. */ - provider?: string; + additionalLocations?: AdditionalLocation[]; /** - * @member {string} [operation] Operation type: read, write, delete, - * listKeys/action, etc. + * @member {{ [propertyName: string]: string }} [customProperties] Custom + * properties of the API Management service. Setting + * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` + * will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 + * and 1.2). Setting + * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` + * can be used to disable just TLS 1.1 and setting + * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` + * can be used to disable TLS 1.0 on an API Management service. */ - operation?: string; + customProperties?: { [propertyName: string]: string }; /** - * @member {string} [resource] Resource type on which the operation is - * performed. + * @member {CertificateConfiguration[]} [certificates] List of Certificates + * that need to be installed in the API Management service. Max supported + * certificates that can be installed is 10. */ - resource?: string; + certificates?: CertificateConfiguration[]; /** - * @member {string} [description] Friendly name of the operation + * @member {boolean} [enableClientCertificate] Property only meant to be used + * for Consumption SKU Service. This enforces a client certificate to be + * presented on each request to the gateway and enabled ability to + * authenticate the certificate in the policy. Default value: false . */ - description?: string; -} - -/** - * @interface - * An interface representing Operation. - * REST API operation - * - */ -export interface Operation { + enableClientCertificate?: boolean; /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * @member {VirtualNetworkType} [virtualNetworkType] 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 API Management deployment is set up inside a Virtual + * Network having an Internet Facing Endpoint, and Internal means that API + * Management deployment is setup inside a Virtual Network having an Intranet + * Facing Endpoint only. Possible values include: 'None', 'External', + * 'Internal'. Default value: 'None' . */ - name?: string; + virtualNetworkType?: VirtualNetworkType; /** - * @member {OperationDisplay} [display] The object that describes the - * operation. + * @member {string} publisherEmail Publisher email. */ - display?: OperationDisplay; + publisherEmail: string; /** - * @member {string} [origin] The operation origin. + * @member {string} publisherName Publisher name. */ - origin?: string; + publisherName: string; /** - * @member {any} [properties] The operation properties. + * @member {ApiManagementServiceSkuProperties} sku SKU properties of the API + * Management service. */ - properties?: any; -} - -/** - * @interface - * An interface representing EmailTemplateParametersContractProperties. - * Email Template Parameter contract. - * - */ -export interface EmailTemplateParametersContractProperties { + sku: ApiManagementServiceSkuProperties; /** - * @member {string} [name] Template parameter name. + * @member {ApiManagementServiceIdentity} [identity] Managed service identity + * of the Api Management service. */ - name?: string; + identity?: ApiManagementServiceIdentity; /** - * @member {string} [title] Template parameter title. + * @member {string} location Resource location. */ - title?: string; + location: string; /** - * @member {string} [description] Template parameter description. + * @member {string} [etag] ETag of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - description?: string; + readonly etag?: string; } /** * @interface - * An interface representing EmailTemplateContract. - * Email Template details. + * An interface representing ApiManagementServiceUpdateParameters. + * Parameter supplied to Update Api Management Service. * - * @extends Resource + * @extends ApimResource */ -export interface EmailTemplateContract extends Resource { - /** - * @member {string} subject Subject of the Template. - */ - subject: string; - /** - * @member {string} body Email Template Body. This should be a valid - * XDocument - */ - body: string; +export interface ApiManagementServiceUpdateParameters extends ApimResource { /** - * @member {string} [title] Title of the Template. + * @member {string} [notificationSenderEmail] Email address from which the + * notification will be sent. */ - title?: string; + notificationSenderEmail?: string; /** - * @member {string} [description] Description of the Email Template. + * @member {string} [provisioningState] The current provisioning state of the + * API Management service which can be one of the following: + * Created/Activating/Succeeded/Updating/Failed/Stopped/Terminating/TerminationFailed/Deleted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - description?: string; + readonly provisioningState?: string; /** - * @member {boolean} [isDefault] Whether the template is the default template - * provided by Api Management or has been edited. + * @member {string} [targetProvisioningState] The provisioning state of the + * API Management service, which is targeted by the long running operation + * started on the service. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly isDefault?: boolean; + readonly targetProvisioningState?: string; /** - * @member {EmailTemplateParametersContractProperties[]} [parameters] Email - * Template Parameter values. + * @member {Date} [createdAtUtc] Creation UTC date of the API Management + * service.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` + * as specified by the ISO 8601 standard. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - parameters?: EmailTemplateParametersContractProperties[]; -} - -/** - * @interface - * An interface representing EmailTemplateUpdateParameters. - * Email Template update Parameters. - * - */ -export interface EmailTemplateUpdateParameters { + readonly createdAtUtc?: Date; /** - * @member {string} [subject] Subject of the Template. + * @member {string} [gatewayUrl] Gateway URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - subject?: string; + readonly gatewayUrl?: string; /** - * @member {string} [title] Title of the Template. + * @member {string} [gatewayRegionalUrl] Gateway URL of the API Management + * service in the Default Region. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - title?: string; + readonly gatewayRegionalUrl?: string; /** - * @member {string} [description] Description of the Email Template. + * @member {string} [portalUrl] Publisher portal endpoint Url of the API + * Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - description?: string; + readonly portalUrl?: string; /** - * @member {string} [body] Email Template Body. This should be a valid - * XDocument + * @member {string} [managementApiUrl] Management API endpoint URL of the API + * Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - body?: string; + readonly managementApiUrl?: string; /** - * @member {EmailTemplateParametersContractProperties[]} [parameters] Email - * Template Parameter values. + * @member {string} [scmUrl] SCM endpoint URL of the API Management service. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - parameters?: EmailTemplateParametersContractProperties[]; -} - -/** - * @interface - * An interface representing GroupContractProperties. - * Group contract Properties. - * - */ -export interface GroupContractProperties { + readonly scmUrl?: string; /** - * @member {string} displayName Group name. + * @member {HostnameConfiguration[]} [hostnameConfigurations] Custom hostname + * configuration of the API Management service. */ - displayName: string; + hostnameConfigurations?: HostnameConfiguration[]; /** - * @member {string} [description] Group description. Can contain HTML - * formatting tags. + * @member {string[]} [publicIPAddresses] Public Static Load Balanced IP + * addresses of the API Management service in Primary region. Available only + * for Basic, Standard and Premium SKU. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - description?: string; + readonly publicIPAddresses?: string[]; /** - * @member {boolean} [builtIn] true if the group is one of the three system - * groups (Administrators, Developers, or Guests); otherwise false. + * @member {string[]} [privateIPAddresses] Private Static Load Balanced IP + * addresses of the API Management service in Primary region which is + * deployed in an Internal Virtual Network. Available only for Basic, + * Standard and Premium SKU. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly builtIn?: boolean; + readonly privateIPAddresses?: string[]; /** - * @member {GroupType} [type] Group type. Possible values include: 'custom', - * 'system', 'external' + * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] + * Virtual network configuration of the API Management service. */ - type?: GroupType; + virtualNetworkConfiguration?: VirtualNetworkConfiguration; /** - * @member {string} [externalId] For external groups, this property contains - * the id of the group from the external identity provider, e.g. for Azure - * Active Directory aad://.onmicrosoft.com/groups/; - * otherwise the value is null. + * @member {AdditionalLocation[]} [additionalLocations] Additional datacenter + * locations of the API Management service. */ - externalId?: string; -} - -/** - * @interface - * An interface representing GroupContract. - * Contract details. - * - * @extends Resource - */ -export interface GroupContract extends Resource { + additionalLocations?: AdditionalLocation[]; /** - * @member {string} displayName Group name. + * @member {{ [propertyName: string]: string }} [customProperties] Custom + * properties of the API Management service. Setting + * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` + * will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 + * and 1.2). Setting + * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` + * can be used to disable just TLS 1.1 and setting + * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` + * can be used to disable TLS 1.0 on an API Management service. */ - displayName: string; + customProperties?: { [propertyName: string]: string }; /** - * @member {string} [description] Group description. Can contain HTML - * formatting tags. + * @member {CertificateConfiguration[]} [certificates] List of Certificates + * that need to be installed in the API Management service. Max supported + * certificates that can be installed is 10. */ - description?: string; + certificates?: CertificateConfiguration[]; /** - * @member {boolean} [builtIn] true if the group is one of the three system - * groups (Administrators, Developers, or Guests); otherwise false. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [enableClientCertificate] Property only meant to be used + * for Consumption SKU Service. This enforces a client certificate to be + * presented on each request to the gateway and enabled ability to + * authenticate the certificate in the policy. Default value: false . */ - readonly builtIn?: boolean; + enableClientCertificate?: boolean; /** - * @member {GroupType} [groupContractType] Group type. Possible values - * include: 'custom', 'system', 'external' + * @member {VirtualNetworkType} [virtualNetworkType] 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 API Management deployment is set up inside a Virtual + * Network having an Internet Facing Endpoint, and Internal means that API + * Management deployment is setup inside a Virtual Network having an Intranet + * Facing Endpoint only. Possible values include: 'None', 'External', + * 'Internal'. Default value: 'None' . */ - groupContractType?: GroupType; + virtualNetworkType?: VirtualNetworkType; /** - * @member {string} [externalId] For external groups, this property contains - * the id of the group from the external identity provider, e.g. for Azure - * Active Directory aad://.onmicrosoft.com/groups/; - * otherwise the value is null. + * @member {string} [publisherEmail] Publisher email. */ - externalId?: string; -} - -/** - * @interface - * An interface representing GroupCreateParameters. - * Parameters supplied to the Create Group operation. - * - */ -export interface GroupCreateParameters { + publisherEmail?: string; /** - * @member {string} displayName Group name. + * @member {string} [publisherName] Publisher name. */ - displayName: string; + publisherName?: string; /** - * @member {string} [description] Group description. + * @member {ApiManagementServiceSkuProperties} [sku] SKU properties of the + * API Management service. */ - description?: string; + sku?: ApiManagementServiceSkuProperties; /** - * @member {GroupType} [type] Group type. Possible values include: 'custom', - * 'system', 'external' + * @member {ApiManagementServiceIdentity} [identity] Managed service identity + * of the Api Management service. */ - type?: GroupType; + identity?: ApiManagementServiceIdentity; /** - * @member {string} [externalId] Identifier of the external groups, this - * property contains the id of the group from the external identity provider, - * e.g. for Azure Active Directory - * aad://.onmicrosoft.com/groups/; otherwise the - * value is null. + * @member {string} [etag] ETag of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - externalId?: string; + readonly etag?: string; } /** * @interface - * An interface representing GroupUpdateParameters. - * Parameters supplied to the Update Group operation. + * An interface representing ApiManagementServiceGetSsoTokenResult. + * The response of the GetSsoToken operation. * */ -export interface GroupUpdateParameters { - /** - * @member {string} [displayName] Group name. - */ - displayName?: string; - /** - * @member {string} [description] Group description. - */ - description?: string; - /** - * @member {GroupType} [type] Group type. Possible values include: 'custom', - * 'system', 'external' - */ - type?: GroupType; +export interface ApiManagementServiceGetSsoTokenResult { /** - * @member {string} [externalId] Identifier of the external groups, this - * property contains the id of the group from the external identity provider, - * e.g. for Azure Active Directory - * aad://.onmicrosoft.com/groups/; otherwise the - * value is null. + * @member {string} [redirectUri] Redirect URL to the Publisher Portal + * containing the SSO token. */ - externalId?: string; + redirectUri?: string; } /** * @interface - * An interface representing UserIdentityContract. - * User identity details. + * An interface representing ApiManagementServiceCheckNameAvailabilityParameters. + * Parameters supplied to the CheckNameAvailability operation. * */ -export interface UserIdentityContract { +export interface ApiManagementServiceCheckNameAvailabilityParameters { + /** + * @member {string} name The name to check for availability. + */ + name: string; +} + +/** + * @interface + * An interface representing ApiManagementServiceNameAvailabilityResult. + * Response of the CheckNameAvailability operation. + * + */ +export interface ApiManagementServiceNameAvailabilityResult { + /** + * @member {boolean} [nameAvailable] True if the name is available and can be + * used to create a new API Management service; otherwise false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nameAvailable?: boolean; + /** + * @member {string} [message] If reason == invalid, provide the user with the + * reason why the given name is invalid, and provide the resource naming + * requirements so that the user can select a valid name. If reason == + * AlreadyExists, explain that is already in use, and direct + * them to select a different name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly message?: string; + /** + * @member {NameAvailabilityReason} [reason] Invalid indicates the name + * provided does not match the resource provider’s naming requirements + * (incorrect length, unsupported characters, etc.) AlreadyExists indicates + * that the name is already in use and is therefore unavailable. Possible + * values include: 'Valid', 'Invalid', 'AlreadyExists' + */ + reason?: NameAvailabilityReason; +} + +/** + * @interface + * An interface representing ApiManagementServiceApplyNetworkConfigurationParameters. + * Parameter supplied to the Apply Network configuration operation. + * + */ +export interface ApiManagementServiceApplyNetworkConfigurationParameters { + /** + * @member {string} [location] Location of the Api Management service to + * update for a multi-region service. For a service deployed in a single + * region, this parameter is not required. + */ + location?: string; +} + +/** + * @interface + * An interface representing OperationDisplay. + * The object that describes the operation. + * + */ +export interface OperationDisplay { + /** + * @member {string} [provider] Friendly name of the resource provider + */ + provider?: string; + /** + * @member {string} [operation] Operation type: read, write, delete, + * listKeys/action, etc. + */ + operation?: string; + /** + * @member {string} [resource] Resource type on which the operation is + * performed. + */ + resource?: string; + /** + * @member {string} [description] Friendly name of the operation + */ + description?: string; +} + +/** + * @interface + * An interface representing Operation. + * REST API operation + * + */ +export interface Operation { + /** + * @member {string} [name] Operation name: {provider}/{resource}/{operation} + */ + name?: string; + /** + * @member {OperationDisplay} [display] The object that describes the + * operation. + */ + display?: OperationDisplay; + /** + * @member {string} [origin] The operation origin. + */ + origin?: string; + /** + * @member {any} [properties] The operation properties. + */ + properties?: any; +} + +/** + * @interface + * An interface representing EmailTemplateParametersContractProperties. + * Email Template Parameter contract. + * + */ +export interface EmailTemplateParametersContractProperties { + /** + * @member {string} [name] Template parameter name. + */ + name?: string; + /** + * @member {string} [title] Template parameter title. + */ + title?: string; + /** + * @member {string} [description] Template parameter description. + */ + description?: string; +} + +/** + * @interface + * An interface representing EmailTemplateUpdateParameters. + * Email Template update Parameters. + * + */ +export interface EmailTemplateUpdateParameters { + /** + * @member {string} [subject] Subject of the Template. + */ + subject?: string; + /** + * @member {string} [title] Title of the Template. + */ + title?: string; + /** + * @member {string} [description] Description of the Email Template. + */ + description?: string; + /** + * @member {string} [body] Email Template Body. This should be a valid + * XDocument + */ + body?: string; + /** + * @member {EmailTemplateParametersContractProperties[]} [parameters] Email + * Template Parameter values. + */ + parameters?: EmailTemplateParametersContractProperties[]; +} + +/** + * @interface + * An interface representing EmailTemplateContract. + * Email Template details. + * + * @extends Resource + */ +export interface EmailTemplateContract extends Resource { + /** + * @member {string} subject Subject of the Template. + */ + subject: string; + /** + * @member {string} body Email Template Body. This should be a valid + * XDocument + */ + body: string; + /** + * @member {string} [title] Title of the Template. + */ + title?: string; + /** + * @member {string} [description] Description of the Email Template. + */ + description?: string; + /** + * @member {boolean} [isDefault] Whether the template is the default template + * provided by Api Management or has been edited. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isDefault?: boolean; + /** + * @member {EmailTemplateParametersContractProperties[]} [parameters] Email + * Template Parameter values. + */ + parameters?: EmailTemplateParametersContractProperties[]; +} + +/** + * @interface + * An interface representing UserIdentityContract. + * User identity details. + * + */ +export interface UserIdentityContract { /** * @member {string} [provider] Identity provider name. */ @@ -3453,6 +3568,43 @@ export interface UserEntityBaseParameters { identities?: UserIdentityContract[]; } +/** + * @interface + * An interface representing GroupContractProperties. + * Group contract Properties. + * + */ +export interface GroupContractProperties { + /** + * @member {string} displayName Group name. + */ + displayName: string; + /** + * @member {string} [description] Group description. Can contain HTML + * formatting tags. + */ + description?: string; + /** + * @member {boolean} [builtIn] true if the group is one of the three system + * groups (Administrators, Developers, or Guests); otherwise false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly builtIn?: boolean; + /** + * @member {GroupType} [type] Group type. Possible values include: 'custom', + * 'system', 'external' + */ + type?: GroupType; + /** + * @member {string} [externalId] For external groups, this property contains + * the id of the group from the external identity provider, e.g. for Azure + * Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. + */ + externalId?: string; +} + /** * @interface * An interface representing UserContract. @@ -3508,23 +3660,125 @@ export interface UserContract extends Resource { /** * @interface - * An interface representing IdentityProviderContract. - * Identity Provider details. + * An interface representing GroupUpdateParameters. + * Parameters supplied to the Update Group operation. * - * @extends Resource */ -export interface IdentityProviderContract extends Resource { +export interface GroupUpdateParameters { /** - * @member {IdentityProviderType} [identityProviderContractType] Identity - * Provider Type identifier. Possible values include: 'facebook', 'google', - * 'microsoft', 'twitter', 'aad', 'aadB2C' + * @member {string} [displayName] Group name. */ - identityProviderContractType?: IdentityProviderType; + displayName?: string; /** - * @member {string[]} [allowedTenants] List of Allowed Tenants when + * @member {string} [description] Group description. + */ + description?: string; + /** + * @member {GroupType} [type] Group type. Possible values include: 'custom', + * 'system', 'external' + */ + type?: GroupType; + /** + * @member {string} [externalId] Identifier of the external groups, this + * property contains the id of the group from the external identity provider, + * e.g. for Azure Active Directory + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. + */ + externalId?: string; +} + +/** + * @interface + * An interface representing GroupContract. + * Contract details. + * + * @extends Resource + */ +export interface GroupContract extends Resource { + /** + * @member {string} displayName Group name. + */ + displayName: string; + /** + * @member {string} [description] Group description. Can contain HTML + * formatting tags. + */ + description?: string; + /** + * @member {boolean} [builtIn] true if the group is one of the three system + * groups (Administrators, Developers, or Guests); otherwise false. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly builtIn?: boolean; + /** + * @member {GroupType} [groupContractType] Group type. Possible values + * include: 'custom', 'system', 'external' + */ + groupContractType?: GroupType; + /** + * @member {string} [externalId] For external groups, this property contains + * the id of the group from the external identity provider, e.g. for Azure + * Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. + */ + externalId?: string; +} + +/** + * @interface + * An interface representing GroupCreateParameters. + * Parameters supplied to the Create Group operation. + * + */ +export interface GroupCreateParameters { + /** + * @member {string} displayName Group name. + */ + displayName: string; + /** + * @member {string} [description] Group description. + */ + description?: string; + /** + * @member {GroupType} [type] Group type. Possible values include: 'custom', + * 'system', 'external' + */ + type?: GroupType; + /** + * @member {string} [externalId] Identifier of the external groups, this + * property contains the id of the group from the external identity provider, + * e.g. for Azure Active Directory + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. + */ + externalId?: string; +} + +/** + * @interface + * An interface representing IdentityProviderBaseParameters. + * Identity Provider Base Parameter Properties. + * + */ +export interface IdentityProviderBaseParameters { + /** + * @member {IdentityProviderType} [type] Identity Provider Type identifier. + * Possible values include: 'facebook', 'google', 'microsoft', 'twitter', + * 'aad', 'aadB2C' + */ + type?: IdentityProviderType; + /** + * @member {string[]} [allowedTenants] List of Allowed Tenants when * configuring Azure Active Directory login. */ allowedTenants?: string[]; + /** + * @member {string} [authority] OpenID Connect discovery endpoint hostname + * for AAD or AAD B2C. + */ + authority?: string; /** * @member {string} [signupPolicyName] Signup Policy Name. Only applies to * AAD B2C Identity Provider. @@ -3545,19 +3799,6 @@ export interface IdentityProviderContract extends Resource { * Only applies to AAD B2C Identity Provider. */ passwordResetPolicyName?: string; - /** - * @member {string} clientId 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; - /** - * @member {string} clientSecret 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. - */ - clientSecret: string; } /** @@ -3578,6 +3819,11 @@ export interface IdentityProviderUpdateParameters { * configuring Azure Active Directory login. */ allowedTenants?: string[]; + /** + * @member {string} [authority] OpenID Connect discovery endpoint hostname + * for AAD or AAD B2C. + */ + authority?: string; /** * @member {string} [signupPolicyName] Signup Policy Name. Only applies to * AAD B2C Identity Provider. @@ -3615,22 +3861,28 @@ export interface IdentityProviderUpdateParameters { /** * @interface - * An interface representing IdentityProviderBaseParameters. - * Identity Provider Base Parameter Properties. + * An interface representing IdentityProviderContract. + * Identity Provider details. * + * @extends Resource */ -export interface IdentityProviderBaseParameters { +export interface IdentityProviderContract extends Resource { /** - * @member {IdentityProviderType} [type] Identity Provider Type identifier. - * Possible values include: 'facebook', 'google', 'microsoft', 'twitter', - * 'aad', 'aadB2C' + * @member {IdentityProviderType} [identityProviderContractType] Identity + * Provider Type identifier. Possible values include: 'facebook', 'google', + * 'microsoft', 'twitter', 'aad', 'aadB2C' */ - type?: IdentityProviderType; + identityProviderContractType?: IdentityProviderType; /** * @member {string[]} [allowedTenants] List of Allowed Tenants when * configuring Azure Active Directory login. */ allowedTenants?: string[]; + /** + * @member {string} [authority] OpenID Connect discovery endpoint hostname + * for AAD or AAD B2C. + */ + authority?: string; /** * @member {string} [signupPolicyName] Signup Policy Name. Only applies to * AAD B2C Identity Provider. @@ -3651,6 +3903,19 @@ export interface IdentityProviderBaseParameters { * Only applies to AAD B2C Identity Provider. */ passwordResetPolicyName?: string; + /** + * @member {string} clientId 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; + /** + * @member {string} clientSecret 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. + */ + clientSecret: string; } /** @@ -3683,106 +3948,37 @@ export interface LoggerUpdateContract { /** * @interface - * An interface representing RecipientsContractProperties. - * Notification Parameter contract. - * - */ -export interface RecipientsContractProperties { - /** - * @member {string[]} [emails] List of Emails subscribed for the - * notification. - */ - emails?: string[]; - /** - * @member {string[]} [users] List of Users subscribed for the notification. - */ - users?: string[]; -} - -/** - * @interface - * An interface representing NotificationContract. - * Notification details. + * An interface representing LoggerContract. + * Logger details. * * @extends Resource */ -export interface NotificationContract extends Resource { +export interface LoggerContract extends Resource { /** - * @member {string} title Title of the Notification. + * @member {LoggerType} loggerType Logger type. Possible values include: + * 'azureEventHub', 'applicationInsights' */ - title: string; + loggerType: LoggerType; /** - * @member {string} [description] Description of the Notification. + * @member {string} [description] Logger description. */ description?: string; /** - * @member {RecipientsContractProperties} [recipients] Recipient Parameter - * values. - */ - recipients?: RecipientsContractProperties; -} - -/** - * @interface - * An interface representing RecipientUserContract. - * Recipient User details. - * - * @extends Resource - */ -export interface RecipientUserContract extends Resource { - /** - * @member {string} [userId] API Management UserId subscribed to - * notification. - */ - userId?: string; -} - -/** - * @interface - * An interface representing RecipientUserCollection. - * Paged Recipient User list representation. - * - */ -export interface RecipientUserCollection { - /** - * @member {RecipientUserContract[]} [value] Page values. - */ - value?: RecipientUserContract[]; - /** - * @member {string} [nextLink] Next page link if any. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing RecipientEmailContract. - * Recipient Email details. - * - * @extends Resource - */ -export interface RecipientEmailContract extends Resource { - /** - * @member {string} [email] User Email subscribed to notification. + * @member {{ [propertyName: string]: string }} credentials The name and + * SendRule connection string of the event hub for azureEventHub logger. + * Instrumentation key for applicationInsights logger. */ - email?: string; -} - -/** - * @interface - * An interface representing RecipientEmailCollection. - * Paged Recipient User list representation. - * - */ -export interface RecipientEmailCollection { + credentials: { [propertyName: string]: string }; /** - * @member {RecipientEmailContract[]} [value] Page values. + * @member {boolean} [isBuffered] Whether records are buffered in the logger + * before publishing. Default is assumed to be true. */ - value?: RecipientEmailContract[]; + isBuffered?: boolean; /** - * @member {string} [nextLink] Next page link if any. + * @member {string} [resourceId] Azure Resource Id of a log target (either + * Azure Event Hub resource or Azure Application Insights resource). */ - nextLink?: string; + resourceId?: string; } /** @@ -3863,35 +4059,106 @@ export interface NetworkStatusContractByLocation { /** * @interface - * An interface representing OpenidConnectProviderContract. - * OpenId Connect Provider details. + * An interface representing RecipientEmailContract. + * Recipient Email details. * * @extends Resource */ -export interface OpenidConnectProviderContract extends Resource { +export interface RecipientEmailContract extends Resource { /** - * @member {string} displayName User-friendly OpenID Connect Provider name. + * @member {string} [email] User Email subscribed to notification. */ - displayName: string; - /** - * @member {string} [description] User-friendly description of OpenID Connect - * Provider. + email?: string; +} + +/** + * @interface + * An interface representing RecipientEmailCollection. + * Paged Recipient User list representation. + * + */ +export interface RecipientEmailCollection { + /** + * @member {RecipientEmailContract[]} [value] Page values. */ - description?: string; + value?: RecipientEmailContract[]; /** - * @member {string} metadataEndpoint Metadata endpoint URI. + * @member {string} [nextLink] Next page link if any. */ - metadataEndpoint: string; + nextLink?: string; +} + +/** + * @interface + * An interface representing RecipientUserContract. + * Recipient User details. + * + * @extends Resource + */ +export interface RecipientUserContract extends Resource { /** - * @member {string} clientId Client ID of developer console which is the - * client application. + * @member {string} [userId] API Management UserId subscribed to + * notification. */ - clientId: string; + userId?: string; +} + +/** + * @interface + * An interface representing RecipientUserCollection. + * Paged Recipient User list representation. + * + */ +export interface RecipientUserCollection { /** - * @member {string} [clientSecret] Client Secret of developer console which - * is the client application. + * @member {RecipientUserContract[]} [value] Page values. */ - clientSecret?: string; + value?: RecipientUserContract[]; + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing RecipientsContractProperties. + * Notification Parameter contract. + * + */ +export interface RecipientsContractProperties { + /** + * @member {string[]} [emails] List of Emails subscribed for the + * notification. + */ + emails?: string[]; + /** + * @member {string[]} [users] List of Users subscribed for the notification. + */ + users?: string[]; +} + +/** + * @interface + * An interface representing NotificationContract. + * Notification details. + * + * @extends Resource + */ +export interface NotificationContract extends Resource { + /** + * @member {string} title Title of the Notification. + */ + title: string; + /** + * @member {string} [description] Description of the Notification. + */ + description?: string; + /** + * @member {RecipientsContractProperties} [recipients] Recipient Parameter + * values. + */ + recipients?: RecipientsContractProperties; } /** @@ -3928,18 +4195,140 @@ export interface OpenidConnectProviderUpdateContract { /** * @interface - * An interface representing PortalSigninSettings. - * Sign-In settings for the Developer Portal. + * An interface representing OpenidConnectProviderContract. + * OpenId Connect Provider details. * * @extends Resource */ -export interface PortalSigninSettings extends Resource { +export interface OpenidConnectProviderContract extends Resource { /** - * @member {boolean} [enabled] Redirect Anonymous users to the Sign-In page. + * @member {string} displayName User-friendly OpenID Connect Provider name. + */ + displayName: string; + /** + * @member {string} [description] User-friendly description of OpenID Connect + * Provider. + */ + description?: string; + /** + * @member {string} metadataEndpoint Metadata endpoint URI. + */ + metadataEndpoint: string; + /** + * @member {string} clientId Client ID of developer console which is the + * client application. + */ + clientId: string; + /** + * @member {string} [clientSecret] Client Secret of developer console which + * is the client application. + */ + clientSecret?: string; +} + +/** + * @interface + * An interface representing PolicySnippetContract. + * Policy snippet. + * + */ +export interface PolicySnippetContract { + /** + * @member {string} [name] Snippet name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {string} [content] Snippet content. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly content?: string; + /** + * @member {string} [toolTip] Snippet toolTip. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly toolTip?: string; + /** + * @member {number} [scope] Binary OR value of the Snippet scope. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly scope?: number; +} + +/** + * @interface + * An interface representing PolicySnippetsCollection. + * The response of the list policy snippets operation. + * + */ +export interface PolicySnippetsCollection { + /** + * @member {PolicySnippetContract[]} [value] Policy snippet value. + */ + value?: PolicySnippetContract[]; +} + +/** + * @interface + * An interface representing RegistrationDelegationSettingsProperties. + * User registration delegation settings properties. + * + */ +export interface RegistrationDelegationSettingsProperties { + /** + * @member {boolean} [enabled] Enable or disable delegation for user + * registration. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing SubscriptionsDelegationSettingsProperties. + * Subscriptions delegation settings properties. + * + */ +export interface SubscriptionsDelegationSettingsProperties { + /** + * @member {boolean} [enabled] Enable or disable delegation for + * subscriptions. */ enabled?: boolean; } +/** + * @interface + * An interface representing PortalDelegationSettings. + * Delegation settings for a developer portal. + * + * @extends Resource + */ +export interface PortalDelegationSettings extends Resource { + /** + * @member {string} [url] A delegation Url. + */ + url?: string; + /** + * @member {string} [validationKey] A base64-encoded validation key to + * validate, that a request is coming from Azure API Management. + */ + validationKey?: string; + /** + * @member {SubscriptionsDelegationSettingsProperties} [subscriptions] + * Subscriptions delegation settings. + */ + subscriptions?: SubscriptionsDelegationSettingsProperties; + /** + * @member {RegistrationDelegationSettingsProperties} [userRegistration] User + * registration delegation settings. + */ + userRegistration?: RegistrationDelegationSettingsProperties; +} + /** * @interface * An interface representing TermsOfServiceProperties. @@ -3955,1315 +4344,1937 @@ export interface TermsOfServiceProperties { * @member {boolean} [enabled] Display terms of service during a sign-up * process. */ - enabled?: boolean; + enabled?: boolean; + /** + * @member {boolean} [consentRequired] Ask user for consent to the terms of + * service. + */ + consentRequired?: boolean; +} + +/** + * @interface + * An interface representing PortalSignupSettings. + * Sign-Up settings for a developer portal. + * + * @extends Resource + */ +export interface PortalSignupSettings extends Resource { + /** + * @member {boolean} [enabled] Allow users to sign up on a developer portal. + */ + enabled?: boolean; + /** + * @member {TermsOfServiceProperties} [termsOfService] Terms of service + * contract properties. + */ + termsOfService?: TermsOfServiceProperties; +} + +/** + * @interface + * An interface representing PortalSigninSettings. + * Sign-In settings for the Developer Portal. + * + * @extends Resource + */ +export interface PortalSigninSettings extends Resource { + /** + * @member {boolean} [enabled] Redirect Anonymous users to the Sign-In page. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing SubscriptionContract. + * Subscription details. + * + * @extends Resource + */ +export interface SubscriptionContract extends Resource { + /** + * @member {string} [ownerId] The user resource identifier of the + * subscription owner. The value is a valid relative URL in the format of + * /users/{userId} where {userId} is a user identifier. + */ + ownerId?: string; + /** + * @member {string} scope Scope like /products/{productId} or /apis or + * /apis/{apiId}. + */ + scope: string; + /** + * @member {string} [displayName] The name of the subscription, or null if + * the subscription has no name. + */ + displayName?: string; + /** + * @member {SubscriptionState} state Subscription state. Possible states are + * * active – the subscription is active, * suspended – the subscription is + * blocked, and the subscriber cannot call any APIs of the product, * + * submitted – the subscription request has been made by the developer, but + * has not yet been approved or rejected, * rejected – the subscription + * request has been denied by an administrator, * cancelled – the + * subscription has been cancelled by the developer or administrator, * + * expired – the subscription reached its expiration date and was + * deactivated. Possible values include: 'suspended', 'active', 'expired', + * 'submitted', 'rejected', 'cancelled' + */ + state: SubscriptionState; + /** + * @member {Date} [createdDate] Subscription creation date. The date conforms + * to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO + * 8601 standard. + * + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly createdDate?: Date; + /** + * @member {Date} [startDate] Subscription activation date. The setting is + * for audit purposes only and the subscription is not automatically + * activated. The subscription lifecycle can be managed by using the `state` + * property. The date conforms to the following format: + * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + */ + startDate?: Date; + /** + * @member {Date} [expirationDate] Subscription expiration date. The setting + * is for audit purposes only and the subscription is not automatically + * expired. The subscription lifecycle can be managed by using the `state` + * property. The date conforms to the following format: + * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + */ + expirationDate?: Date; + /** + * @member {Date} [endDate] Date when subscription was cancelled or expired. + * The setting is for audit purposes only and the subscription is not + * automatically cancelled. The subscription lifecycle can be managed by + * using the `state` property. The date conforms to the following format: + * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + */ + endDate?: Date; + /** + * @member {Date} [notificationDate] Upcoming subscription expiration + * notification date. The date conforms to the following format: + * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + */ + notificationDate?: Date; + /** + * @member {string} primaryKey Subscription primary key. + */ + primaryKey: string; + /** + * @member {string} secondaryKey Subscription secondary key. + */ + secondaryKey: string; + /** + * @member {string} [stateComment] Optional subscription comment added by an + * administrator. + */ + stateComment?: string; + /** + * @member {boolean} [allowTracing] Determines whether tracing is enabled + */ + allowTracing?: boolean; +} + +/** + * @interface + * An interface representing ProductUpdateParameters. + * Product Update parameters. + * + */ +export interface ProductUpdateParameters { + /** + * @member {string} [description] Product description. May include HTML + * formatting tags. + */ + description?: string; + /** + * @member {string} [terms] Product terms of use. Developers trying to + * subscribe to the product will be presented and required to accept these + * terms before they can complete the subscription process. + */ + terms?: string; + /** + * @member {boolean} [subscriptionRequired] Whether a product subscription is + * required for accessing APIs included in this product. If true, the product + * is referred to as "protected" and a valid subscription key is required for + * a request to an API included in the product to succeed. If false, the + * product is referred to as "open" and requests to an API included in the + * product can be made without a subscription key. If property is omitted + * when creating a new product it's value is assumed to be true. + */ + subscriptionRequired?: boolean; + /** + * @member {boolean} [approvalRequired] whether subscription approval is + * required. If false, new subscriptions will be approved automatically + * enabling developers to call the product’s APIs immediately after + * subscribing. If true, administrators must manually approve the + * subscription before the developer can any of the product’s APIs. Can be + * present only if subscriptionRequired property is present and has a value + * of false. + */ + approvalRequired?: boolean; + /** + * @member {number} [subscriptionsLimit] Whether the number of subscriptions + * a user can have to this product at the same time. Set to null or omit to + * allow unlimited per user subscriptions. Can be present only if + * subscriptionRequired property is present and has a value of false. + */ + subscriptionsLimit?: number; + /** + * @member {ProductState} [state] whether product is published or not. + * Published products are discoverable by users of developer portal. Non + * published products are visible only to administrators. Default state of + * Product is notPublished. Possible values include: 'notPublished', + * 'published' + */ + state?: ProductState; + /** + * @member {string} [displayName] Product name. + */ + displayName?: string; +} + +/** + * @interface + * An interface representing PropertyEntityBaseParameters. + * Property Entity Base Parameters set. + * + */ +export interface PropertyEntityBaseParameters { + /** + * @member {string[]} [tags] Optional tags that when provided can be used to + * filter the property list. + */ + tags?: string[]; + /** + * @member {boolean} [secret] Determines whether the value is a secret and + * should be encrypted or not. Default value is false. + */ + secret?: boolean; +} + +/** + * @interface + * An interface representing PropertyUpdateParameters. + * Property update Parameters. + * + */ +export interface PropertyUpdateParameters { + /** + * @member {string[]} [tags] Optional tags that when provided can be used to + * filter the property list. + */ + tags?: string[]; + /** + * @member {boolean} [secret] Determines whether the value is a secret and + * should be encrypted or not. Default value is false. + */ + secret?: boolean; + /** + * @member {string} [displayName] Unique name of Property. It may contain + * only letters, digits, period, dash, and underscore characters. + */ + displayName?: string; + /** + * @member {string} [value] Value of the property. Can contain policy + * expressions. It may not be empty or consist only of whitespace. + */ + value?: string; +} + +/** + * @interface + * An interface representing PropertyContract. + * Property details. + * + * @extends Resource + */ +export interface PropertyContract extends Resource { + /** + * @member {string[]} [tags] Optional tags that when provided can be used to + * filter the property list. + */ + tags?: string[]; + /** + * @member {boolean} [secret] Determines whether the value is a secret and + * should be encrypted or not. Default value is false. + */ + secret?: boolean; + /** + * @member {string} displayName Unique name of Property. It may contain only + * letters, digits, period, dash, and underscore characters. + */ + displayName: string; + /** + * @member {string} value Value of the property. Can contain policy + * expressions. It may not be empty or consist only of whitespace. + */ + value: string; +} + +/** + * @interface + * An interface representing QuotaCounterValueContractProperties. + * Quota counter value details. + * + */ +export interface QuotaCounterValueContractProperties { + /** + * @member {number} [callsCount] Number of times Counter was called. + */ + callsCount?: number; + /** + * @member {number} [kbTransferred] Data Transferred in KiloBytes. + */ + kbTransferred?: number; +} + +/** + * @interface + * An interface representing QuotaCounterContract. + * Quota counter details. + * + */ +export interface QuotaCounterContract { + /** + * @member {string} counterKey The Key value of the Counter. Must not be + * empty. + */ + counterKey: string; + /** + * @member {string} periodKey Identifier of the Period for which the counter + * was collected. Must not be empty. + */ + periodKey: string; + /** + * @member {Date} periodStartTime The date of the start of Counter Period. + * The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as + * specified by the ISO 8601 standard. + */ + periodStartTime: Date; + /** + * @member {Date} periodEndTime The date of the end of Counter Period. The + * date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + * by the ISO 8601 standard. + */ + periodEndTime: Date; + /** + * @member {QuotaCounterValueContractProperties} [value] Quota Value + * Properties + */ + value?: QuotaCounterValueContractProperties; +} + +/** + * @interface + * An interface representing QuotaCounterCollection. + * Paged Quota Counter list representation. + * + */ +export interface QuotaCounterCollection { + /** + * @member {QuotaCounterContract[]} [value] Quota counter values. + */ + value?: QuotaCounterContract[]; + /** + * @member {number} [count] Total record count number across all pages. + */ + count?: number; + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing RequestReportRecordContract. + * Request Report data. + * + */ +export interface RequestReportRecordContract { + /** + * @member {string} [apiId] API identifier path. /apis/{apiId} + */ + apiId?: string; + /** + * @member {string} [operationId] Operation identifier path. + * /apis/{apiId}/operations/{operationId} + */ + operationId?: string; + /** + * @member {string} [productId] Product identifier path. + * /products/{productId} + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly productId?: string; + /** + * @member {string} [userId] User identifier path. /users/{userId} + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly userId?: string; + /** + * @member {string} [method] The HTTP method associated with this request.. + */ + method?: string; + /** + * @member {string} [url] The full URL associated with this request. + */ + url?: string; + /** + * @member {string} [ipAddress] The client IP address associated with this + * request. + */ + ipAddress?: string; + /** + * @member {string} [backendResponseCode] The HTTP status code received by + * the gateway as a result of forwarding this request to the backend. + */ + backendResponseCode?: string; + /** + * @member {number} [responseCode] The HTTP status code returned by the + * gateway. + */ + responseCode?: number; + /** + * @member {number} [responseSize] The size of the response returned by the + * gateway. + */ + responseSize?: number; + /** + * @member {Date} [timestamp] The date and time when this request was + * received by the gateway in ISO 8601 format. + */ + timestamp?: Date; + /** + * @member {string} [cache] Specifies if response cache was involved in + * generating the response. If the value is none, the cache was not used. If + * the value is hit, cached response was returned. If the value is miss, the + * cache was used but lookup resulted in a miss and request was fulfilled by + * the backend. + */ + cache?: string; + /** + * @member {number} [apiTime] The total time it took to process this request. + */ + apiTime?: number; + /** + * @member {number} [serviceTime] he time it took to forward this request to + * the backend and get the response back. + */ + serviceTime?: number; + /** + * @member {string} [apiRegion] Azure region where the gateway that processed + * this request is located. + */ + apiRegion?: string; + /** + * @member {string} [subscriptionId] Subscription identifier path. + * /subscriptions/{subscriptionId} + */ + subscriptionId?: string; + /** + * @member {string} [requestId] Request Identifier. + */ + requestId?: string; + /** + * @member {number} [requestSize] The size of this request.. + */ + requestSize?: number; +} + +/** + * @interface + * An interface representing ReportRecordContract. + * Report data. + * + */ +export interface ReportRecordContract { + /** + * @member {string} [name] Name depending on report endpoint specifies + * product, API, operation or developer name. + */ + name?: string; + /** + * @member {Date} [timestamp] Start of aggregation period. The date conforms + * to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO + * 8601 standard. + */ + timestamp?: Date; + /** + * @member {string} [interval] Length of aggregation period. Interval must + * be multiple of 15 minutes and may not be zero. The value should be in ISO + * 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). + */ + interval?: string; + /** + * @member {string} [country] Country to which this record data is related. + */ + country?: string; + /** + * @member {string} [region] Country region to which this record data is + * related. + */ + region?: string; + /** + * @member {string} [zip] Zip code to which this record data is related. + */ + zip?: string; + /** + * @member {string} [userId] User identifier path. /users/{userId} + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly userId?: string; + /** + * @member {string} [productId] Product identifier path. + * /products/{productId} + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly productId?: string; + /** + * @member {string} [apiId] API identifier path. /apis/{apiId} + */ + apiId?: string; + /** + * @member {string} [operationId] Operation identifier path. + * /apis/{apiId}/operations/{operationId} + */ + operationId?: string; + /** + * @member {string} [apiRegion] API region identifier. + */ + apiRegion?: string; + /** + * @member {string} [subscriptionId] Subscription identifier path. + * /subscriptions/{subscriptionId} + */ + subscriptionId?: string; + /** + * @member {number} [callCountSuccess] Number of successful calls. This + * includes calls returning HttpStatusCode <= 301 and + * HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect + */ + callCountSuccess?: number; + /** + * @member {number} [callCountBlocked] Number of calls blocked due to invalid + * credentials. This includes calls returning HttpStatusCode.Unauthorized and + * HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests + */ + callCountBlocked?: number; + /** + * @member {number} [callCountFailed] Number of calls failed due to proxy or + * backend errors. This includes calls returning + * HttpStatusCode.BadRequest(400) and any Code between + * HttpStatusCode.InternalServerError (500) and 600 + */ + callCountFailed?: number; + /** + * @member {number} [callCountOther] Number of other calls. + */ + callCountOther?: number; + /** + * @member {number} [callCountTotal] Total number of calls. + */ + callCountTotal?: number; + /** + * @member {number} [bandwidth] Bandwidth consumed. + */ + bandwidth?: number; + /** + * @member {number} [cacheHitCount] Number of times when content was served + * from cache policy. + */ + cacheHitCount?: number; + /** + * @member {number} [cacheMissCount] Number of times content was fetched from + * backend. + */ + cacheMissCount?: number; + /** + * @member {number} [apiTimeAvg] Average time it took to process request. + */ + apiTimeAvg?: number; + /** + * @member {number} [apiTimeMin] Minimum time it took to process request. + */ + apiTimeMin?: number; + /** + * @member {number} [apiTimeMax] Maximum time it took to process request. + */ + apiTimeMax?: number; + /** + * @member {number} [serviceTimeAvg] Average time it took to process request + * on backend. + */ + serviceTimeAvg?: number; + /** + * @member {number} [serviceTimeMin] Minimum time it took to process request + * on backend. + */ + serviceTimeMin?: number; /** - * @member {boolean} [consentRequired] Ask user for consent to the terms of - * service. + * @member {number} [serviceTimeMax] Maximum time it took to process request + * on backend. */ - consentRequired?: boolean; + serviceTimeMax?: number; } /** * @interface - * An interface representing PortalSignupSettings. - * Sign-Up settings for a developer portal. + * An interface representing SubscriptionUpdateParameters. + * Subscription update details. * - * @extends Resource */ -export interface PortalSignupSettings extends Resource { +export interface SubscriptionUpdateParameters { /** - * @member {boolean} [enabled] Allow users to sign up on a developer portal. + * @member {string} [ownerId] User identifier path: /users/{userId} */ - enabled?: boolean; + ownerId?: string; /** - * @member {TermsOfServiceProperties} [termsOfService] Terms of service - * contract properties. + * @member {string} [scope] Scope like /products/{productId} or /apis or + * /apis/{apiId} */ - termsOfService?: TermsOfServiceProperties; -} - -/** - * @interface - * An interface representing SubscriptionsDelegationSettingsProperties. - * Subscriptions delegation settings properties. - * - */ -export interface SubscriptionsDelegationSettingsProperties { + scope?: string; /** - * @member {boolean} [enabled] Enable or disable delegation for - * subscriptions. + * @member {Date} [expirationDate] Subscription expiration date. The setting + * is for audit purposes only and the subscription is not automatically + * expired. The subscription lifecycle can be managed by using the `state` + * property. The date conforms to the following format: + * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. */ - enabled?: boolean; -} - -/** - * @interface - * An interface representing RegistrationDelegationSettingsProperties. - * User registration delegation settings properties. - * - */ -export interface RegistrationDelegationSettingsProperties { + expirationDate?: Date; /** - * @member {boolean} [enabled] Enable or disable delegation for user - * registration. + * @member {string} [displayName] Subscription name. */ - enabled?: boolean; -} - -/** - * @interface - * An interface representing PortalDelegationSettings. - * Delegation settings for a developer portal. - * - * @extends Resource - */ -export interface PortalDelegationSettings extends Resource { + displayName?: string; /** - * @member {string} [url] A delegation Url. + * @member {string} [primaryKey] Primary subscription key. */ - url?: string; + primaryKey?: string; /** - * @member {string} [validationKey] A base64-encoded validation key to - * validate, that a request is coming from Azure API Management. + * @member {string} [secondaryKey] Secondary subscription key. */ - validationKey?: string; + secondaryKey?: string; /** - * @member {SubscriptionsDelegationSettingsProperties} [subscriptions] - * Subscriptions delegation settings. + * @member {SubscriptionState} [state] Subscription state. Possible states + * are * active – the subscription is active, * suspended – the subscription + * is blocked, and the subscriber cannot call any APIs of the product, * + * submitted – the subscription request has been made by the developer, but + * has not yet been approved or rejected, * rejected – the subscription + * request has been denied by an administrator, * cancelled – the + * subscription has been cancelled by the developer or administrator, * + * expired – the subscription reached its expiration date and was + * deactivated. Possible values include: 'suspended', 'active', 'expired', + * 'submitted', 'rejected', 'cancelled' */ - subscriptions?: SubscriptionsDelegationSettingsProperties; + state?: SubscriptionState; /** - * @member {RegistrationDelegationSettingsProperties} [userRegistration] User - * registration delegation settings. + * @member {string} [stateComment] Comments describing subscription state + * change by the administrator. */ - userRegistration?: RegistrationDelegationSettingsProperties; + stateComment?: string; + /** + * @member {boolean} [allowTracing] Determines whether tracing can be enabled + */ + allowTracing?: boolean; } /** * @interface - * An interface representing ProductUpdateParameters. - * Product Update parameters. + * An interface representing SubscriptionCreateParameters. + * Subscription create details. * */ -export interface ProductUpdateParameters { +export interface SubscriptionCreateParameters { /** - * @member {string} [description] Product description. May include HTML - * formatting tags. + * @member {string} [ownerId] User (user id path) for whom subscription is + * being created in form /users/{userId} */ - description?: string; + ownerId?: string; /** - * @member {string} [terms] Product terms of use. Developers trying to - * subscribe to the product will be presented and required to accept these - * terms before they can complete the subscription process. + * @member {string} scope Scope like /products/{productId} or /apis or + * /apis/{apiId}. */ - terms?: string; + scope: string; /** - * @member {boolean} [subscriptionRequired] Whether a product subscription is - * required for accessing APIs included in this product. If true, the product - * is referred to as "protected" and a valid subscription key is required for - * a request to an API included in the product to succeed. If false, the - * product is referred to as "open" and requests to an API included in the - * product can be made without a subscription key. If property is omitted - * when creating a new product it's value is assumed to be true. + * @member {string} displayName Subscription name. */ - subscriptionRequired?: boolean; + displayName: string; /** - * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically - * enabling developers to call the product’s APIs immediately after - * subscribing. If true, administrators must manually approve the - * subscription before the developer can any of the product’s APIs. Can be - * present only if subscriptionRequired property is present and has a value - * of false. + * @member {string} [primaryKey] Primary subscription key. If not specified + * during request key will be generated automatically. */ - approvalRequired?: boolean; + primaryKey?: string; /** - * @member {number} [subscriptionsLimit] Whether the number of subscriptions - * a user can have to this product at the same time. Set to null or omit to - * allow unlimited per user subscriptions. Can be present only if - * subscriptionRequired property is present and has a value of false. + * @member {string} [secondaryKey] Secondary subscription key. If not + * specified during request key will be generated automatically. */ - subscriptionsLimit?: number; + secondaryKey?: string; /** - * @member {ProductState} [state] whether product is published or not. - * Published products are discoverable by users of developer portal. Non - * published products are visible only to administrators. Default state of - * Product is notPublished. Possible values include: 'notPublished', - * 'published' + * @member {SubscriptionState} [state] Initial subscription state. If no + * value is specified, subscription is created with Submitted state. Possible + * states are * active – the subscription is active, * suspended – the + * subscription is blocked, and the subscriber cannot call any APIs of the + * product, * submitted – the subscription request has been made by the + * developer, but has not yet been approved or rejected, * rejected – the + * subscription request has been denied by an administrator, * cancelled – + * the subscription has been cancelled by the developer or administrator, * + * expired – the subscription reached its expiration date and was + * deactivated. Possible values include: 'suspended', 'active', 'expired', + * 'submitted', 'rejected', 'cancelled' */ - state?: ProductState; + state?: SubscriptionState; /** - * @member {string} [displayName] Product name. + * @member {boolean} [allowTracing] Determines whether tracing can be enabled */ - displayName?: string; + allowTracing?: boolean; } /** * @interface - * An interface representing SubscriptionContract. - * Subscription details. + * An interface representing TagCreateUpdateParameters. + * Parameters supplied to Create/Update Tag operations. * - * @extends Resource */ -export interface SubscriptionContract extends Resource { - /** - * @member {string} userId The user resource identifier of the subscription - * owner. The value is a valid relative URL in the format of /users/{uid} - * where {uid} is a user identifier. - */ - userId: string; +export interface TagCreateUpdateParameters { /** - * @member {string} productId The product resource identifier of the - * subscribed product. The value is a valid relative URL in the format of - * /products/{productId} where {productId} is a product identifier. + * @member {string} displayName Tag name. */ - productId: string; + displayName: string; +} + +/** + * @interface + * An interface representing TenantConfigurationSyncStateContract. + * Tenant Configuration Synchronization State. + * + */ +export interface TenantConfigurationSyncStateContract { /** - * @member {string} [displayName] The name of the subscription, or null if - * the subscription has no name. + * @member {string} [branch] The name of Git branch. */ - displayName?: string; + branch?: string; /** - * @member {SubscriptionState} state Subscription state. Possible states are - * * active – the subscription is active, * suspended – the subscription is - * blocked, and the subscriber cannot call any APIs of the product, * - * submitted – the subscription request has been made by the developer, but - * has not yet been approved or rejected, * rejected – the subscription - * request has been denied by an administrator, * cancelled – the - * subscription has been cancelled by the developer or administrator, * - * expired – the subscription reached its expiration date and was - * deactivated. Possible values include: 'suspended', 'active', 'expired', - * 'submitted', 'rejected', 'cancelled' + * @member {string} [commitId] The latest commit Id. */ - state: SubscriptionState; + commitId?: string; /** - * @member {Date} [createdDate] Subscription creation date. The date conforms - * to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO - * 8601 standard. - * - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [isExport] value indicating if last sync was save (true) + * or deploy (false) operation. */ - readonly createdDate?: Date; + isExport?: boolean; /** - * @member {Date} [startDate] Subscription activation date. The setting is - * for audit purposes only and the subscription is not automatically - * activated. The subscription lifecycle can be managed by using the `state` - * property. The date conforms to the following format: - * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * @member {boolean} [isSynced] value indicating if last synchronization was + * later than the configuration change. */ - startDate?: Date; + isSynced?: boolean; /** - * @member {Date} [expirationDate] Subscription expiration date. The setting - * is for audit purposes only and the subscription is not automatically - * expired. The subscription lifecycle can be managed by using the `state` - * property. The date conforms to the following format: - * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * @member {boolean} [isGitEnabled] value indicating whether Git + * configuration access is enabled. */ - expirationDate?: Date; + isGitEnabled?: boolean; /** - * @member {Date} [endDate] Date when subscription was cancelled or expired. - * The setting is for audit purposes only and the subscription is not - * automatically cancelled. The subscription lifecycle can be managed by - * using the `state` property. The date conforms to the following format: - * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * @member {Date} [syncDate] The date of the latest synchronization. The date + * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. */ - endDate?: Date; + syncDate?: Date; /** - * @member {Date} [notificationDate] Upcoming subscription expiration - * notification date. The date conforms to the following format: + * @member {Date} [configurationChangeDate] The date of the latest + * configuration change. The date conforms to the following format: * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. */ - notificationDate?: Date; - /** - * @member {string} primaryKey Subscription primary key. - */ - primaryKey: string; - /** - * @member {string} secondaryKey Subscription secondary key. - */ - secondaryKey: string; - /** - * @member {string} [stateComment] Optional subscription comment added by an - * administrator. - */ - stateComment?: string; + configurationChangeDate?: Date; } /** * @interface - * An interface representing PropertyContract. - * Property details. + * An interface representing OperationResultLogItemContract. + * Log of the entity being created, updated or deleted. * - * @extends Resource */ -export interface PropertyContract extends Resource { - /** - * @member {string[]} [tags] Optional tags that when provided can be used to - * filter the property list. - */ - tags?: string[]; +export interface OperationResultLogItemContract { /** - * @member {boolean} [secret] Determines whether the value is a secret and - * should be encrypted or not. Default value is false. + * @member {string} [objectType] The type of entity contract. */ - secret?: boolean; + objectType?: string; /** - * @member {string} displayName Unique name of Property. It may contain only - * letters, digits, period, dash, and underscore characters. + * @member {string} [action] Action like create/update/delete. */ - displayName: string; + action?: string; /** - * @member {string} value Value of the property. Can contain policy - * expressions. It may not be empty or consist only of whitespace. + * @member {string} [objectKey] Identifier of the entity being + * created/updated/deleted. */ - value: string; + objectKey?: string; } /** * @interface - * An interface representing PropertyUpdateParameters. - * Property update Parameters. + * An interface representing OperationResultContract. + * Operation Result. * */ -export interface PropertyUpdateParameters { +export interface OperationResultContract { /** - * @member {string[]} [tags] Optional tags that when provided can be used to - * filter the property list. + * @member {string} [id] Operation result identifier. */ - tags?: string[]; + id?: string; /** - * @member {boolean} [secret] Determines whether the value is a secret and - * should be encrypted or not. Default value is false. + * @member {AsyncOperationStatus} [status] Status of an async operation. + * Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed' */ - secret?: boolean; + status?: AsyncOperationStatus; /** - * @member {string} [displayName] Unique name of Property. It may contain - * only letters, digits, period, dash, and underscore characters. + * @member {Date} [started] Start time of an async operation. The date + * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. */ - displayName?: string; + started?: Date; /** - * @member {string} [value] Value of the property. Can contain policy - * expressions. It may not be empty or consist only of whitespace. + * @member {Date} [updated] Last update time of an async operation. The date + * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. */ - value?: string; + updated?: Date; + /** + * @member {string} [resultInfo] Optional result info. + */ + resultInfo?: string; + /** + * @member {ErrorResponseBody} [error] Error Body Contract + */ + error?: ErrorResponseBody; + /** + * @member {OperationResultLogItemContract[]} [actionLog] This property if + * only provided as part of the TenantConfiguration_Validate operation. It + * contains the log the entities which will be updated/created/deleted as + * part of the TenantConfiguration_Deploy operation. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly actionLog?: OperationResultLogItemContract[]; } /** * @interface - * An interface representing PropertyEntityBaseParameters. - * Property Entity Base Parameters set. + * An interface representing DeployConfigurationParameters. + * Parameters supplied to the Deploy Configuration operation. * */ -export interface PropertyEntityBaseParameters { +export interface DeployConfigurationParameters { /** - * @member {string[]} [tags] Optional tags that when provided can be used to - * filter the property list. + * @member {string} branch The name of the Git branch from which the + * configuration is to be deployed to the configuration database. */ - tags?: string[]; + branch: string; /** - * @member {boolean} [secret] Determines whether the value is a secret and - * should be encrypted or not. Default value is false. + * @member {boolean} [force] The value enforcing deleting subscriptions to + * products that are deleted in this update. */ - secret?: boolean; + force?: boolean; } /** * @interface - * An interface representing QuotaCounterValueContractProperties. - * Quota counter value details. + * An interface representing SaveConfigurationParameter. + * Parameters supplied to the Save Tenant Configuration operation. * */ -export interface QuotaCounterValueContractProperties { +export interface SaveConfigurationParameter { /** - * @member {number} [callsCount] Number of times Counter was called. + * @member {string} branch The name of the Git branch in which to commit the + * current configuration snapshot. */ - callsCount?: number; + branch: string; /** - * @member {number} [kbTransferred] Data Transferred in KiloBytes. + * @member {boolean} [force] The value if true, the current configuration + * database is committed to the Git repository, even if the Git repository + * has newer changes that would be overwritten. */ - kbTransferred?: number; + force?: boolean; } /** * @interface - * An interface representing QuotaCounterContract. - * Quota counter details. + * An interface representing AccessInformationContract. + * Tenant access information contract of the API Management service. * */ -export interface QuotaCounterContract { - /** - * @member {string} counterKey The Key value of the Counter. Must not be - * empty. - */ - counterKey: string; +export interface AccessInformationContract { /** - * @member {string} periodKey Identifier of the Period for which the counter - * was collected. Must not be empty. + * @member {string} [id] Identifier. */ - periodKey: string; + id?: string; /** - * @member {Date} periodStartTime The date of the start of Counter Period. - * The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as - * specified by the ISO 8601 standard. + * @member {string} [primaryKey] Primary access key. */ - periodStartTime: Date; + primaryKey?: string; /** - * @member {Date} periodEndTime The date of the end of Counter Period. The - * date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified - * by the ISO 8601 standard. + * @member {string} [secondaryKey] Secondary access key. */ - periodEndTime: Date; + secondaryKey?: string; /** - * @member {QuotaCounterValueContractProperties} [value] Quota Value - * Properties + * @member {boolean} [enabled] Determines whether direct access is enabled. */ - value?: QuotaCounterValueContractProperties; + enabled?: boolean; } /** * @interface - * An interface representing QuotaCounterCollection. - * Paged Quota Counter list representation. + * An interface representing AccessInformationUpdateParameters. + * Tenant access information update parameters of the API Management service * */ -export interface QuotaCounterCollection { - /** - * @member {QuotaCounterContract[]} [value] Quota counter values. - */ - value?: QuotaCounterContract[]; - /** - * @member {number} [count] Total record count number across all pages. - */ - count?: number; +export interface AccessInformationUpdateParameters { /** - * @member {string} [nextLink] Next page link if any. + * @member {boolean} [enabled] Determines whether direct access is enabled. */ - nextLink?: string; + enabled?: boolean; } /** * @interface - * An interface representing QuotaCounterValueContract. - * Quota counter value details. + * An interface representing UserTokenResult. + * Get User Token response details. * */ -export interface QuotaCounterValueContract { - /** - * @member {number} [callsCount] Number of times Counter was called. - */ - callsCount?: number; +export interface UserTokenResult { /** - * @member {number} [kbTransferred] Data Transferred in KiloBytes. + * @member {string} [value] Shared Access Authorization token for the User. */ - kbTransferred?: number; + value?: string; } /** * @interface - * An interface representing ReportRecordContract. - * Report data. + * An interface representing UserTokenParameters. + * Parameters supplied to the Get User Token operation. * */ -export interface ReportRecordContract { - /** - * @member {string} [name] Name depending on report endpoint specifies - * product, API, operation or developer name. - */ - name?: string; - /** - * @member {Date} [timestamp] Start of aggregation period. The date conforms - * to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO - * 8601 standard. - */ - timestamp?: Date; - /** - * @member {string} [interval] Length of agregation period. Interval must be - * multiple of 15 minutes and may not be zero. The value should be in ISO - * 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). - */ - interval?: string; - /** - * @member {string} [country] Country to which this record data is related. - */ - country?: string; - /** - * @member {string} [region] Country region to which this record data is - * related. - */ - region?: string; - /** - * @member {string} [zip] Zip code to which this record data is related. - */ - zip?: string; - /** - * @member {string} [userId] User identifier path. /users/{userId} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly userId?: string; - /** - * @member {string} [productId] Product identifier path. - * /products/{productId} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly productId?: string; +export interface UserTokenParameters { /** - * @member {string} [apiId] API identifier path. /apis/{apiId} + * @member {KeyType} keyType The Key to be used to generate token for user. + * Possible values include: 'primary', 'secondary'. Default value: 'primary' + * . */ - apiId?: string; + keyType: KeyType; /** - * @member {string} [operationId] Operation identifier path. - * /apis/{apiId}/operations/{operationId} + * @member {Date} expiry 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. */ - operationId?: string; + expiry: Date; +} + +/** + * @interface + * An interface representing GenerateSsoUrlResult. + * Generate SSO Url operations response details. + * + */ +export interface GenerateSsoUrlResult { /** - * @member {string} [apiRegion] API region identifier. + * @member {string} [value] Redirect Url containing the SSO URL value. */ - apiRegion?: string; + value?: string; +} + +/** + * @interface + * An interface representing UserUpdateParameters. + * User update parameters. + * + */ +export interface UserUpdateParameters { /** - * @member {string} [subscriptionId] Subscription identifier path. - * /subscriptions/{subscriptionId} + * @member {UserState} [state] Account state. Specifies whether the user is + * active or not. Blocked users are unable to sign into the developer portal + * or call any APIs of subscribed products. Default state is Active. Possible + * values include: 'active', 'blocked', 'pending', 'deleted'. Default value: + * 'active' . */ - subscriptionId?: string; + state?: UserState; /** - * @member {number} [callCountSuccess] Number of succesful calls. This - * includes calls returning HttpStatusCode <= 301 and - * HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect + * @member {string} [note] Optional note about a user set by the + * administrator. */ - callCountSuccess?: number; + note?: string; /** - * @member {number} [callCountBlocked] Number of calls blocked due to invalid - * credentials. This includes calls returning HttpStatusCode.Unauthorize and - * HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests + * @member {UserIdentityContract[]} [identities] Collection of user + * identities. */ - callCountBlocked?: number; + identities?: UserIdentityContract[]; /** - * @member {number} [callCountFailed] Number of calls failed due to proxy or - * backend errors. This includes calls returning - * HttpStatusCode.BadRequest(400) and any Code between - * HttpStatusCode.InternalServerError (500) and 600 + * @member {string} [email] Email address. Must not be empty and must be + * unique within the service instance. */ - callCountFailed?: number; + email?: string; /** - * @member {number} [callCountOther] Number of other calls. + * @member {string} [password] User Password. */ - callCountOther?: number; + password?: string; /** - * @member {number} [callCountTotal] Total number of calls. + * @member {string} [firstName] First name. */ - callCountTotal?: number; + firstName?: string; /** - * @member {number} [bandwidth] Bandwidth consumed. + * @member {string} [lastName] Last name. */ - bandwidth?: number; + lastName?: string; +} + +/** + * @interface + * An interface representing UserCreateParameters. + * User create details. + * + */ +export interface UserCreateParameters { /** - * @member {number} [cacheHitCount] Number of times when content was served - * from cache policy. + * @member {UserState} [state] Account state. Specifies whether the user is + * active or not. Blocked users are unable to sign into the developer portal + * or call any APIs of subscribed products. Default state is Active. Possible + * values include: 'active', 'blocked', 'pending', 'deleted'. Default value: + * 'active' . */ - cacheHitCount?: number; + state?: UserState; /** - * @member {number} [cacheMissCount] Number of times content was fetched from - * backend. + * @member {string} [note] Optional note about a user set by the + * administrator. */ - cacheMissCount?: number; + note?: string; /** - * @member {number} [apiTimeAvg] Average time it took to process request. + * @member {UserIdentityContract[]} [identities] Collection of user + * identities. */ - apiTimeAvg?: number; + identities?: UserIdentityContract[]; /** - * @member {number} [apiTimeMin] Minimum time it took to process request. + * @member {string} email Email address. Must not be empty and must be unique + * within the service instance. */ - apiTimeMin?: number; + email: string; /** - * @member {number} [apiTimeMax] Maximum time it took to process request. + * @member {string} firstName First name. */ - apiTimeMax?: number; + firstName: string; /** - * @member {number} [serviceTimeAvg] Average time it took to process request - * on backend. + * @member {string} lastName Last name. */ - serviceTimeAvg?: number; + lastName: string; /** - * @member {number} [serviceTimeMin] Minimum time it took to process request - * on backend. + * @member {string} [password] User Password. If no value is provided, a + * default password is generated. */ - serviceTimeMin?: number; + password?: string; /** - * @member {number} [serviceTimeMax] Maximum time it took to process request - * on backend. + * @member {Confirmation} [confirmation] Determines the type of confirmation + * e-mail that will be sent to the newly created user. Possible values + * include: 'signup', 'invite' */ - serviceTimeMax?: number; + confirmation?: Confirmation; } /** * @interface - * An interface representing RequestReportRecordContract. - * Request Report data. + * An interface representing ApiRevisionInfoContract. + * Object used to create an API Revision or Version based on an existing API + * Revision * */ -export interface RequestReportRecordContract { +export interface ApiRevisionInfoContract { /** - * @member {string} [apiId] API identifier path. /apis/{apiId} + * @member {string} [sourceApiId] Resource identifier of API to be used to + * create the revision from. */ - apiId?: string; + sourceApiId?: string; /** - * @member {string} [operationId] Operation identifier path. - * /apis/{apiId}/operations/{operationId} + * @member {string} [apiVersionName] Version identifier for the new API + * Version. */ - operationId?: string; + apiVersionName?: string; /** - * @member {string} [productId] Product identifier path. - * /products/{productId} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [apiRevisionDescription] Description of new API Revision. */ - readonly productId?: string; + apiRevisionDescription?: string; /** - * @member {string} [userId] User identifier path. /users/{userId} - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details */ - readonly userId?: string; + apiVersionSet?: ApiVersionSetContractDetails; +} + +/** + * @interface + * An interface representing QuotaCounterValueContract. + * Quota counter value details. + * + */ +export interface QuotaCounterValueContract { /** - * @member {string} [method] The HTTP method associated with this request.. + * @member {number} [callsCount] Number of times Counter was called. */ - method?: string; + callsCount?: number; /** - * @member {string} [url] The full URL associated with this request. + * @member {number} [kbTransferred] Data Transferred in KiloBytes. */ - url?: string; + kbTransferred?: number; +} + +/** + * @interface + * An interface representing ApiListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ipAddress] The client IP address associated with this - * request. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| description | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| path | filter | ge, le, eq, ne, + * gt, lt | substringof, contains, startswith, endswith |
*/ - ipAddress?: string; + filter?: string; /** - * @member {string} [backendResponseCode] The HTTP status code received by - * the gateway as a result of forwarding this request to the backend. + * @member {number} [top] Number of records to return. */ - backendResponseCode?: string; + top?: number; /** - * @member {number} [responseCode] The HTTP status code returned by the - * gateway. + * @member {number} [skip] Number of records to skip. */ - responseCode?: number; + skip?: number; /** - * @member {number} [responseSize] The size of the response returned by the - * gateway. + * @member {string} [tags] Include tags in the response. */ - responseSize?: number; + tags?: string; /** - * @member {Date} [timestamp] The date and time when this request was - * received by the gateway in ISO 8601 format. + * @member {boolean} [expandApiVersionSet] Include full ApiVersionSet + * resource in response */ - timestamp?: Date; + expandApiVersionSet?: boolean; +} + +/** + * @interface + * An interface representing ApiCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [cache] Specifies if response cache was involved in - * generating the response. If the value is none, the cache was not used. If - * the value is hit, cached response was returned. If the value is miss, the - * cache was used but lookup resulted in a miss and request was fullfilled by - * the backend. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - cache?: string; + ifMatch?: string; +} + +/** + * @interface + * An interface representing ApiDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [apiTime] The total time it took to process this request. + * @member {boolean} [deleteRevisions] Delete all revisions of the Api. */ - apiTime?: number; + deleteRevisions?: boolean; +} + +/** + * @interface + * An interface representing ApiListByTagsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiListByTagsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [serviceTime] he time it took to forward this request to - * the backend and get the response back. + * @member {string} [filter] | Field | Supported operators | + * Supported functions | + * |-------------|------------------------|-----------------------------------| + * + * |name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith| + * |displayName | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith| + * |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith| + * |path | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith| + * |description | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith| + * |serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith| + * |isCurrent | eq | | */ - serviceTime?: number; + filter?: string; /** - * @member {string} [apiRegion] Azure region where the gateway that processed - * this request is located. + * @member {number} [top] Number of records to return. */ - apiRegion?: string; + top?: number; /** - * @member {string} [subscriptionId] Subscription identifier path. - * /subscriptions/{subscriptionId} + * @member {number} [skip] Number of records to skip. */ - subscriptionId?: string; + skip?: number; /** - * @member {string} [requestId] Request Identifier. + * @member {boolean} [includeNotTaggedApis] Include not tagged APIs. */ - requestId?: string; + includeNotTaggedApis?: boolean; +} + +/** + * @interface + * An interface representing ApiBeginCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiBeginCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [requestSize] The size of this request.. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - requestSize?: number; + ifMatch?: string; } /** * @interface - * An interface representing SubscriptionCreateParameters. - * Subscription create details. + * An interface representing ApiRevisionListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SubscriptionCreateParameters { - /** - * @member {string} userId User (user id path) for whom subscription is being - * created in form /users/{uid} - */ - userId: string; - /** - * @member {string} productId Product (product id path) for which - * subscription is being created in form /products/{productid} - */ - productId: string; +export interface ApiRevisionListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} displayName Subscription name. - */ - displayName: string; - /** - * @member {string} [primaryKey] Primary subscription key. If not specified - * during request key will be generated automatically. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * apiRevision | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
*/ - primaryKey?: string; + filter?: string; /** - * @member {string} [secondaryKey] Secondary subscription key. If not - * specified during request key will be generated automatically. + * @member {number} [top] Number of records to return. */ - secondaryKey?: string; + top?: number; /** - * @member {SubscriptionState} [state] Initial subscription state. If no - * value is specified, subscription is created with Submitted state. Possible - * states are * active – the subscription is active, * suspended – the - * subscription is blocked, and the subscriber cannot call any APIs of the - * product, * submitted – the subscription request has been made by the - * developer, but has not yet been approved or rejected, * rejected – the - * subscription request has been denied by an administrator, * cancelled – - * the subscription has been cancelled by the developer or administrator, * - * expired – the subscription reached its expiration date and was - * deactivated. Possible values include: 'suspended', 'active', 'expired', - * 'submitted', 'rejected', 'cancelled' + * @member {number} [skip] Number of records to skip. */ - state?: SubscriptionState; + skip?: number; } /** * @interface - * An interface representing SubscriptionUpdateParameters. - * Subscription update details. + * An interface representing ApiReleaseListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SubscriptionUpdateParameters { +export interface ApiReleaseListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [userId] User identifier path: /users/{uid} + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * notes | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
*/ - userId?: string; + filter?: string; /** - * @member {string} [productId] Product identifier path: - * /products/{productId} + * @member {number} [top] Number of records to return. */ - productId?: string; + top?: number; /** - * @member {Date} [expirationDate] Subscription expiration date. The setting - * is for audit purposes only and the subscription is not automatically - * expired. The subscription lifecycle can be managed by using the `state` - * property. The date conforms to the following format: - * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * @member {number} [skip] Number of records to skip. */ - expirationDate?: Date; + skip?: number; +} + +/** + * @interface + * An interface representing ApiReleaseCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiReleaseCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [displayName] Subscription name. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - displayName?: string; + ifMatch?: string; +} + +/** + * @interface + * An interface representing ApiOperationListByApiOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiOperationListByApiOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [primaryKey] Primary subscription key. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| method | filter | ge, + * le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| + * description | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| urlTemplate | filter | ge, le, eq, ne, gt, + * lt | substringof, contains, startswith, endswith |
*/ - primaryKey?: string; + filter?: string; /** - * @member {string} [secondaryKey] Secondary subscription key. + * @member {number} [top] Number of records to return. */ - secondaryKey?: string; + top?: number; /** - * @member {SubscriptionState} [state] Subscription state. Possible states - * are * active – the subscription is active, * suspended – the subscription - * is blocked, and the subscriber cannot call any APIs of the product, * - * submitted – the subscription request has been made by the developer, but - * has not yet been approved or rejected, * rejected – the subscription - * request has been denied by an administrator, * cancelled – the - * subscription has been cancelled by the developer or administrator, * - * expired – the subscription reached its expiration date and was - * deactivated. Possible values include: 'suspended', 'active', 'expired', - * 'submitted', 'rejected', 'cancelled' + * @member {number} [skip] Number of records to skip. */ - state?: SubscriptionState; + skip?: number; /** - * @member {string} [stateComment] Comments describing subscription state - * change by the administrator. + * @member {string} [tags] Include tags in the response. */ - stateComment?: string; + tags?: string; } /** * @interface - * An interface representing TagContract. - * Tag Contract details. + * An interface representing ApiOperationCreateOrUpdateOptionalParams. + * Optional Parameters. * - * @extends Resource + * @extends RequestOptionsBase */ -export interface TagContract extends Resource { +export interface ApiOperationCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} displayName Tag name. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - displayName: string; + ifMatch?: string; } /** * @interface - * An interface representing TagCreateUpdateParameters. - * Parameters supplied to Create/Update Tag operations. + * An interface representing ApiOperationPolicyCreateOrUpdateOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface TagCreateUpdateParameters { +export interface ApiOperationPolicyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} displayName Tag name. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - displayName: string; + ifMatch?: string; } /** * @interface - * An interface representing TagDescriptionContract. - * Contract details. + * An interface representing TagListByOperationOptionalParams. + * Optional Parameters. * - * @extends Resource + * @extends RequestOptionsBase */ -export interface TagDescriptionContract extends Resource { +export interface TagListByOperationOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [description] Description of the Tag. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ - description?: string; + filter?: string; /** - * @member {string} [externalDocsUrl] Absolute URL of external resources - * describing the tag. + * @member {number} [top] Number of records to return. */ - externalDocsUrl?: string; + top?: number; /** - * @member {string} [externalDocsDescription] Description of the external - * resources describing the tag. + * @member {number} [skip] Number of records to skip. */ - externalDocsDescription?: string; + skip?: number; +} + +/** + * @interface + * An interface representing TagListByApiOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TagListByApiOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [displayName] Tag name. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ - displayName?: string; + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; } /** * @interface - * An interface representing TagDescriptionCreateParameters. - * Parameters supplied to the Create TagDescription operation. + * An interface representing TagListByProductOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface TagDescriptionCreateParameters { +export interface TagListByProductOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [description] Description of the Tag. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ - description?: string; + filter?: string; /** - * @member {string} [externalDocsUrl] Absolute URL of external resources - * describing the tag. + * @member {number} [top] Number of records to return. */ - externalDocsUrl?: string; + top?: number; /** - * @member {string} [externalDocsDescription] Description of the external - * resources describing the tag. + * @member {number} [skip] Number of records to skip. */ - externalDocsDescription?: string; + skip?: number; } /** * @interface - * An interface representing AccessInformationContract. - * Tenant access information contract of the API Management service. + * An interface representing TagListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface AccessInformationContract { +export interface TagListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [id] Identifier. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ - id?: string; + filter?: string; /** - * @member {string} [primaryKey] Primary access key. + * @member {number} [top] Number of records to return. */ - primaryKey?: string; + top?: number; /** - * @member {string} [secondaryKey] Secondary access key. + * @member {number} [skip] Number of records to skip. */ - secondaryKey?: string; + skip?: number; /** - * @member {boolean} [enabled] Tenant access information of the API - * Management service. + * @member {string} [scope] Scope like 'apis', 'products' or 'apis/{apiId} */ - enabled?: boolean; + scope?: string; } /** * @interface - * An interface representing AccessInformationUpdateParameters. - * Tenant access information update parameters of the API Management service. + * An interface representing TagCreateOrUpdateOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface AccessInformationUpdateParameters { +export interface TagCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [enabled] Tenant access information of the API - * Management service. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - enabled?: boolean; + ifMatch?: string; } /** * @interface - * An interface representing DeployConfigurationParameters. - * Parameters supplied to the Deploy Configuration operation. + * An interface representing ApiProductListByApisOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface DeployConfigurationParameters { +export interface ApiProductListByApisOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} branch The name of the Git branch from which the - * configuration is to be deployed to the configuration database. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
*/ - branch: string; + filter?: string; /** - * @member {boolean} [force] The value enforcing deleting subscriptions to - * products that are deleted in this update. + * @member {number} [top] Number of records to return. */ - force?: boolean; + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; } /** * @interface - * An interface representing OperationResultLogItemContract. - * Log of the entity being created, updated or deleted. + * An interface representing ApiPolicyCreateOrUpdateOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface OperationResultLogItemContract { - /** - * @member {string} [objectType] The type of entity contract. - */ - objectType?: string; - /** - * @member {string} [action] Action like create/update/delete. - */ - action?: string; +export interface ApiPolicyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [objectKey] Identifier of the entity being - * created/updated/deleted. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - objectKey?: string; + ifMatch?: string; } /** * @interface - * An interface representing OperationResultContract. - * Operation Result. + * An interface representing ApiSchemaListByApiOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface OperationResultContract { - /** - * @member {string} [id] Operation result identifier. - */ - id?: string; - /** - * @member {AsyncOperationStatus} [status] Status of an async operation. - * Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed' - */ - status?: AsyncOperationStatus; - /** - * @member {Date} [started] Start time of an async operation. The date - * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by - * the ISO 8601 standard. - */ - started?: Date; - /** - * @member {Date} [updated] Last update time of an async operation. The date - * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by - * the ISO 8601 standard. - */ - updated?: Date; +export interface ApiSchemaListByApiOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [resultInfo] Optional result info. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * contentType | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
*/ - resultInfo?: string; + filter?: string; /** - * @member {ErrorResponseBody} [error] Error Body Contract + * @member {number} [top] Number of records to return. */ - error?: ErrorResponseBody; + top?: number; /** - * @member {OperationResultLogItemContract[]} [actionLog] This property if - * only provided as part of the TenantConfiguration_Validate operation. It - * contains the log the entities which will be updated/created/deleted as - * part of the TenantConfiguration_Deploy operation. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [skip] Number of records to skip. */ - readonly actionLog?: OperationResultLogItemContract[]; + skip?: number; } /** * @interface - * An interface representing SaveConfigurationParameter. - * Parameters supplied to the Save Tenant Configuration operation. + * An interface representing ApiSchemaCreateOrUpdateOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface SaveConfigurationParameter { +export interface ApiSchemaCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} branch The name of the Git branch in which to commit the - * current configuration snapshot. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - branch: string; + ifMatch?: string; +} + +/** + * @interface + * An interface representing ApiSchemaDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiSchemaDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [force] The value if true, the current configuration - * database is committed to the Git repository, even if the Git repository - * has newer changes that would be overwritten. + * @member {boolean} [force] If true removes all references to the schema + * before deleting it. */ force?: boolean; } /** * @interface - * An interface representing TenantConfigurationSyncStateContract. - * Tenant Configuration Synchronization State. + * An interface representing ApiDiagnosticListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface TenantConfigurationSyncStateContract { - /** - * @member {string} [branch] The name of Git branch. - */ - branch?: string; - /** - * @member {string} [commitId] The latest commit Id. - */ - commitId?: string; - /** - * @member {boolean} [isExport] value indicating if last sync was save (true) - * or deploy (false) operation. - */ - isExport?: boolean; - /** - * @member {boolean} [isSynced] value indicating if last synchronization was - * later than the configuration change. - */ - isSynced?: boolean; +export interface ApiDiagnosticListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [isGitEnabled] value indicating whether Git - * configuration access is enabled. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
*/ - isGitEnabled?: boolean; + filter?: string; /** - * @member {Date} [syncDate] The date of the latest synchronization. The date - * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by - * the ISO 8601 standard. + * @member {number} [top] Number of records to return. */ - syncDate?: Date; + top?: number; /** - * @member {Date} [configurationChangeDate] The date of the latest - * configuration change. The date conforms to the following format: - * `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. + * @member {number} [skip] Number of records to skip. */ - configurationChangeDate?: Date; + skip?: number; } /** * @interface - * An interface representing GenerateSsoUrlResult. - * Generate SSO Url operations response details. + * An interface representing ApiDiagnosticCreateOrUpdateOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface GenerateSsoUrlResult { +export interface ApiDiagnosticCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [value] Redirect Url containing the SSO URL value. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - value?: string; + ifMatch?: string; } /** * @interface - * An interface representing UserCreateParameters. - * User create details. + * An interface representing ApiIssueListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserCreateParameters { - /** - * @member {UserState} [state] Account state. Specifies whether the user is - * active or not. Blocked users are unable to sign into the developer portal - * or call any APIs of subscribed products. Default state is Active. Possible - * values include: 'active', 'blocked', 'pending', 'deleted'. Default value: - * 'active' . - */ - state?: UserState; - /** - * @member {string} [note] Optional note about a user set by the - * administrator. - */ - note?: string; +export interface ApiIssueListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {UserIdentityContract[]} [identities] Collection of user - * identities. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| state | filter | eq | |
*/ - identities?: UserIdentityContract[]; + filter?: string; /** - * @member {string} email Email address. Must not be empty and must be unique - * within the service instance. + * @member {boolean} [expandCommentsAttachments] Expand the comment + * attachments. */ - email: string; + expandCommentsAttachments?: boolean; /** - * @member {string} firstName First name. + * @member {number} [top] Number of records to return. */ - firstName: string; + top?: number; /** - * @member {string} lastName Last name. + * @member {number} [skip] Number of records to skip. */ - lastName: string; + skip?: number; +} + +/** + * @interface + * An interface representing ApiIssueGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueGetOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [password] User Password. If no value is provided, a - * default password is generated. + * @member {boolean} [expandCommentsAttachments] Expand the comment + * attachments. */ - password?: string; + expandCommentsAttachments?: boolean; +} + +/** + * @interface + * An interface representing ApiIssueCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {Confirmation} [confirmation] Determines the type of confirmation - * e-mail that will be sent to the newly created user. Possible values - * include: 'signup', 'invite' + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - confirmation?: Confirmation; + ifMatch?: string; } /** * @interface - * An interface representing UserTokenParameters. - * Parameters supplied to the Get User Token operation. + * An interface representing ApiIssueCommentListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserTokenParameters { +export interface ApiIssueCommentListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {KeyType} keyType The Key to be used to generate token for user. - * Possible values include: 'primary', 'secondary'. Default value: 'primary' - * . + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
*/ - keyType: KeyType; + filter?: string; /** - * @member {Date} expiry 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. + * @member {number} [top] Number of records to return. */ - expiry: Date; + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; } /** * @interface - * An interface representing UserTokenResult. - * Get User Token response details. + * An interface representing ApiIssueCommentCreateOrUpdateOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserTokenResult { +export interface ApiIssueCommentCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [value] Shared Access Authorization token for the User. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - value?: string; + ifMatch?: string; } /** * @interface - * An interface representing UserUpdateParameters. - * User update parameters. + * An interface representing ApiIssueAttachmentListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface UserUpdateParameters { +export interface ApiIssueAttachmentListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {UserState} [state] Account state. Specifies whether the user is - * active or not. Blocked users are unable to sign into the developer portal - * or call any APIs of subscribed products. Default state is Active. Possible - * values include: 'active', 'blocked', 'pending', 'deleted'. Default value: - * 'active' . + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| userId | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
*/ - state?: UserState; + filter?: string; /** - * @member {string} [note] Optional note about a user set by the - * administrator. + * @member {number} [top] Number of records to return. */ - note?: string; + top?: number; /** - * @member {UserIdentityContract[]} [identities] Collection of user - * identities. + * @member {number} [skip] Number of records to skip. */ - identities?: UserIdentityContract[]; + skip?: number; +} + +/** + * @interface + * An interface representing ApiIssueAttachmentCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueAttachmentCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [email] Email address. Must not be empty and must be - * unique within the service instance. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - email?: string; + ifMatch?: string; +} + +/** + * @interface + * An interface representing ApiTagDescriptionListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiTagDescriptionListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [password] User Password. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| name | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ - password?: string; + filter?: string; /** - * @member {string} [firstName] First name. + * @member {number} [top] Number of records to return. */ - firstName?: string; + top?: number; /** - * @member {string} [lastName] Last name. + * @member {number} [skip] Number of records to skip. */ - lastName?: string; + skip?: number; } /** * @interface - * An interface representing CurrentUserIdentity. + * An interface representing ApiTagDescriptionCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface CurrentUserIdentity { +export interface ApiTagDescriptionCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [id] API Management service user id. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - id?: string; + ifMatch?: string; } /** * @interface - * An interface representing ApiVersionSetContract. - * Api Version Set Contract details. + * An interface representing OperationListByTagsOptionalParams. + * Optional Parameters. * - * @extends Resource + * @extends RequestOptionsBase */ -export interface ApiVersionSetContract extends Resource { - /** - * @member {string} [description] Description of API Version Set. - */ - description?: string; +export interface OperationListByTagsOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [versionQueryName] Name of query parameter that indicates - * the API Version if versioningScheme is set to `query`. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| apiName | filter | + * ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| description | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| method | filter | ge, le, eq, ne, + * gt, lt | substringof, contains, startswith, endswith |
| urlTemplate + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
*/ - versionQueryName?: string; + filter?: string; /** - * @member {string} [versionHeaderName] Name of HTTP header parameter that - * indicates the API Version if versioningScheme is set to `header`. + * @member {number} [top] Number of records to return. */ - versionHeaderName?: string; + top?: number; /** - * @member {string} displayName Name of API Version Set + * @member {number} [skip] Number of records to skip. */ - displayName: string; + skip?: number; /** - * @member {VersioningScheme} versioningScheme An value that determines where - * the API Version identifer will be located in a HTTP request. Possible - * values include: 'Segment', 'Query', 'Header' + * @member {boolean} [includeNotTaggedOperations] Include not tagged + * Operations. */ - versioningScheme: VersioningScheme; + includeNotTaggedOperations?: boolean; } /** * @interface - * An interface representing ApiVersionSetEntityBase. - * Api Version set base parameters + * An interface representing ApiVersionSetListByServiceOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface ApiVersionSetEntityBase { +export interface ApiVersionSetListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [description] Description of API Version Set. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
*/ - description?: string; + filter?: string; /** - * @member {string} [versionQueryName] Name of query parameter that indicates - * the API Version if versioningScheme is set to `query`. + * @member {number} [top] Number of records to return. */ - versionQueryName?: string; + top?: number; /** - * @member {string} [versionHeaderName] Name of HTTP header parameter that - * indicates the API Version if versioningScheme is set to `header`. + * @member {number} [skip] Number of records to skip. */ - versionHeaderName?: string; + skip?: number; } /** * @interface - * An interface representing ApiVersionSetUpdateParameters. - * Parameters to update or create an Api Version Set Contract. + * An interface representing ApiVersionSetCreateOrUpdateOptionalParams. + * Optional Parameters. * + * @extends RequestOptionsBase */ -export interface ApiVersionSetUpdateParameters { - /** - * @member {string} [description] Description of API Version Set. - */ - description?: string; - /** - * @member {string} [versionQueryName] Name of query parameter that indicates - * the API Version if versioningScheme is set to `query`. - */ - versionQueryName?: string; - /** - * @member {string} [versionHeaderName] Name of HTTP header parameter that - * indicates the API Version if versioningScheme is set to `header`. - */ - versionHeaderName?: string; - /** - * @member {string} [displayName] Name of API Version Set - */ - displayName?: string; +export interface ApiVersionSetCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {VersioningScheme} [versioningScheme] An value that determines - * where the API Version identifer will be located in a HTTP request. - * Possible values include: 'Segment', 'Query', 'Header' + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - versioningScheme?: VersioningScheme; + ifMatch?: string; } /** * @interface - * An interface representing PolicyListByServiceOptionalParams. + * An interface representing AuthorizationServerListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface PolicyListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface AuthorizationServerListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {PolicyScopeContract} [scope] Policy scope. Possible values - * include: 'Tenant', 'Product', 'Api', 'Operation', 'All' + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ - scope?: PolicyScopeContract; + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; } /** * @interface - * An interface representing PolicySnippetsListByServiceOptionalParams. + * An interface representing AuthorizationServerCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface PolicySnippetsListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface AuthorizationServerCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {PolicyScopeContract} [scope] Policy scope. Possible values - * include: 'Tenant', 'Product', 'Api', 'Operation', 'All' + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - scope?: PolicyScopeContract; + ifMatch?: string; } /** * @interface - * An interface representing ApiListByServiceOptionalParams. + * An interface representing BackendListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface BackendListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | serviceUrl | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | path | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| title | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| url | filter | ge, le, eq, ne, gt, + * lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** @@ -5274,21 +6285,16 @@ export interface ApiListByServiceOptionalParams extends msRest.RequestOptionsBas * @member {number} [skip] Number of records to skip. */ skip?: number; - /** - * @member {boolean} [expandApiVersionSet] Include full ApiVersionSet - * resource in response. Default value: false . - */ - expandApiVersionSet?: boolean; } /** * @interface - * An interface representing ApiCreateOrUpdateOptionalParams. + * An interface representing BackendCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface BackendCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -5298,48 +6304,27 @@ export interface ApiCreateOrUpdateOptionalParams extends msRest.RequestOptionsBa /** * @interface - * An interface representing ApiDeleteMethodOptionalParams. + * An interface representing BackendReconnectOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiDeleteMethodOptionalParams extends msRest.RequestOptionsBase { +export interface BackendReconnectOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [deleteRevisions] Delete all revisions of the Api. + * @member {BackendReconnectContract} [parameters] Reconnect request + * parameters. */ - deleteRevisions?: boolean; + parameters?: BackendReconnectContract; } /** * @interface - * An interface representing ApiListByTagsOptionalParams. + * An interface representing CacheListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiListByTagsOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | aid | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | path | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | isCurrent | eq | substringof, contains, - * startswith, endswith | - */ - filter?: string; +export interface CacheListByServiceOptionalParams extends msRest.RequestOptionsBase { /** * @member {number} [top] Number of records to return. */ @@ -5352,46 +6337,36 @@ export interface ApiListByTagsOptionalParams extends msRest.RequestOptionsBase { /** * @interface - * An interface representing ApiRevisionsListOptionalParams. + * An interface representing CacheCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiRevisionsListOptionalParams extends msRest.RequestOptionsBase { +export interface CacheCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * - * |apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith| - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; - /** - * @member {number} [skip] Number of records to skip. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - skip?: number; + ifMatch?: string; } /** * @interface - * An interface representing ApiReleaseListOptionalParams. + * An interface representing CertificateListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiReleaseListOptionalParams extends msRest.RequestOptionsBase { +export interface CertificateListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | Supported - * functions | - * |-------|------------------------|---------------------------------------------| - * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * |notes|ge le eq ne gt lt|substringof contains startswith endswith| + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| subject | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| thumbprint | filter | ge, le, eq, + * ne, gt, lt | substringof, contains, startswith, endswith |
| + * expirationDate | filter | ge, le, eq, ne, gt, lt | |
*/ filter?: string; /** @@ -5406,80 +6381,69 @@ export interface ApiReleaseListOptionalParams extends msRest.RequestOptionsBase /** * @interface - * An interface representing ApiOperationListByApiOptionalParams. + * An interface representing CertificateCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiOperationListByApiOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | name | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | method | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | description | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | urlTemplate | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface CertificateCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - skip?: number; + ifMatch?: string; } /** * @interface - * An interface representing ApiOperationCreateOrUpdateOptionalParams. + * An interface representing ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiOperationCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {ApiManagementServiceApplyNetworkConfigurationParameters} + * [parameters] Parameters supplied to the Apply Network Configuration + * operation. If the parameters are empty, all the regions in which the Api + * Management service is deployed will be updated sequentially without + * incurring downtime in the region. */ - ifMatch?: string; + parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; } /** * @interface - * An interface representing ApiOperationPolicyCreateOrUpdateOptionalParams. + * An interface representing ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiOperationPolicyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {ApiManagementServiceApplyNetworkConfigurationParameters} + * [parameters] Parameters supplied to the Apply Network Configuration + * operation. If the parameters are empty, all the regions in which the Api + * Management service is deployed will be updated sequentially without + * incurring downtime in the region. */ - ifMatch?: string; + parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; } /** * @interface - * An interface representing ApiProductListByApisOptionalParams. + * An interface representing DiagnosticListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiProductListByApisOptionalParams extends msRest.RequestOptionsBase { +export interface DiagnosticListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | Supported - * functions | - * |-------|------------------------|---------------------------------------------| - * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
*/ filter?: string; /** @@ -5494,27 +6458,12 @@ export interface ApiProductListByApisOptionalParams extends msRest.RequestOption /** * @interface - * An interface representing ApiPolicyCreateOrUpdateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ApiPolicyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. - */ - ifMatch?: string; -} - -/** - * @interface - * An interface representing ApiSchemaCreateOrUpdateOptionalParams. + * An interface representing DiagnosticCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiSchemaCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface DiagnosticCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -5524,18 +6473,18 @@ export interface ApiSchemaCreateOrUpdateOptionalParams extends msRest.RequestOpt /** * @interface - * An interface representing ApiDiagnosticListByServiceOptionalParams. + * An interface representing EmailTemplateListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiDiagnosticListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface EmailTemplateListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
*/ filter?: string; /** @@ -5550,12 +6499,12 @@ export interface ApiDiagnosticListByServiceOptionalParams extends msRest.Request /** * @interface - * An interface representing ApiDiagnosticCreateOrUpdateOptionalParams. + * An interface representing EmailTemplateCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiDiagnosticCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface EmailTemplateCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -5565,20 +6514,21 @@ export interface ApiDiagnosticCreateOrUpdateOptionalParams extends msRest.Reques /** * @interface - * An interface representing ApiDiagnosticLoggerListByServiceOptionalParams. + * An interface representing GroupListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiDiagnosticLoggerListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface GroupListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | type | eq | - * | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| description | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| aadObjectId | filter | eq | |
*/ filter?: string; /** @@ -5593,82 +6543,86 @@ export interface ApiDiagnosticLoggerListByServiceOptionalParams extends msRest.R /** * @interface - * An interface representing ApiIssueListByServiceOptionalParams. + * An interface representing GroupCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiIssueListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | state | eq | - * | - * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, - * endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface GroupCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - skip?: number; + ifMatch?: string; } /** * @interface - * An interface representing ApiIssueCreateOrUpdateOptionalParams. + * An interface representing GroupUserListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiIssueCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface GroupUserListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Issue Entity. ETag should match the - * current entity state from the header response of the GET request or it - * should be * for unconditional update. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| lastName | filter | + * ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| registrationDate | filter | ge, le, eq, ne, + * gt, lt | |
| note | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ - ifMatch?: string; + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; } /** * @interface - * An interface representing ApiIssueUpdateOptionalParams. + * An interface representing IdentityProviderCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiIssueUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface IdentityProviderCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Issue Entity. ETag should match the - * current entity state from the header response of the GET request or it - * should be * for unconditional update. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ ifMatch?: string; } /** * @interface - * An interface representing ApiIssueCommentListByServiceOptionalParams. + * An interface representing IssueListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiIssueCommentListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface IssueListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, - * endswith | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| apiId | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| title | filter | ge, le, eq, ne, + * gt, lt | substringof, contains, startswith, endswith |
| description + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| authorName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| state | filter | eq | + * |
*/ filter?: string; /** @@ -5683,36 +6637,21 @@ export interface ApiIssueCommentListByServiceOptionalParams extends msRest.Reque /** * @interface - * An interface representing ApiIssueCommentCreateOrUpdateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ApiIssueCommentCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [ifMatch] ETag of the Issue Entity. ETag should match the - * current entity state from the header response of the GET request or it - * should be * for unconditional update. - */ - ifMatch?: string; -} - -/** - * @interface - * An interface representing ApiIssueAttachmentListByServiceOptionalParams. + * An interface representing LoggerListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiIssueAttachmentListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface LoggerListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, - * endswith | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| description | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| loggerType | filter | + * eq | |
| resourceId | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ filter?: string; /** @@ -5727,38 +6666,41 @@ export interface ApiIssueAttachmentListByServiceOptionalParams extends msRest.Re /** * @interface - * An interface representing ApiIssueAttachmentCreateOrUpdateOptionalParams. + * An interface representing LoggerCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiIssueAttachmentCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface LoggerCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Issue Entity. ETag should match the - * current entity state from the header response of the GET request or it - * should be * for unconditional update. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ ifMatch?: string; } /** * @interface - * An interface representing AuthorizationServerListByServiceOptionalParams. + * An interface representing LoggerDeleteMethodOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface AuthorizationServerListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface LoggerDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | Supported - * functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | + * @member {boolean} [force] Force deletion even if diagnostic is attached. */ - filter?: string; + force?: boolean; +} + +/** + * @interface + * An interface representing NotificationListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface NotificationListByServiceOptionalParams extends msRest.RequestOptionsBase { /** * @member {number} [top] Number of records to return. */ @@ -5771,12 +6713,12 @@ export interface AuthorizationServerListByServiceOptionalParams extends msRest.R /** * @interface - * An interface representing AuthorizationServerCreateOrUpdateOptionalParams. + * An interface representing NotificationCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface AuthorizationServerCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface NotificationCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -5786,20 +6728,19 @@ export interface AuthorizationServerCreateOrUpdateOptionalParams extends msRest. /** * @interface - * An interface representing BackendListByServiceOptionalParams. + * An interface representing OpenIdConnectProviderListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface BackendListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface OpenIdConnectProviderListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | Supported - * functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
*/ filter?: string; /** @@ -5814,12 +6755,12 @@ export interface BackendListByServiceOptionalParams extends msRest.RequestOption /** * @interface - * An interface representing BackendCreateOrUpdateOptionalParams. + * An interface representing OpenIdConnectProviderCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface BackendCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface OpenIdConnectProviderCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -5829,59 +6770,42 @@ export interface BackendCreateOrUpdateOptionalParams extends msRest.RequestOptio /** * @interface - * An interface representing BackendReconnectOptionalParams. + * An interface representing PolicyCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface BackendReconnectOptionalParams extends msRest.RequestOptionsBase { +export interface PolicyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {BackendReconnectContract} [parameters] Reconnect request - * parameters. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - parameters?: BackendReconnectContract; + ifMatch?: string; } /** * @interface - * An interface representing CertificateListByServiceOptionalParams. + * An interface representing PolicySnippetListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface CertificateListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface PolicySnippetListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |----------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | subject | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | thumbprint | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | expirationDate | ge, le, eq, ne, gt, lt | N/A - * | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; - /** - * @member {number} [skip] Number of records to skip. + * @member {PolicyScopeContract} [scope] Policy scope. Possible values + * include: 'Tenant', 'Product', 'Api', 'Operation', 'All' */ - skip?: number; + scope?: PolicyScopeContract; } /** * @interface - * An interface representing CertificateCreateOrUpdateOptionalParams. + * An interface representing SignInSettingsCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface CertificateCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface SignInSettingsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -5891,54 +6815,53 @@ export interface CertificateCreateOrUpdateOptionalParams extends msRest.RequestO /** * @interface - * An interface representing ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams. + * An interface representing SignUpSettingsCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams extends msRest.RequestOptionsBase { +export interface SignUpSettingsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {ApiManagementServiceApplyNetworkConfigurationParameters} - * [parameters] Parameters supplied to the Apply Network Configuration - * operation. If the parameters are empty, all the regions in which the Api - * Management service is deployed will be updated sequentially without - * incurring downtime in the region. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; + ifMatch?: string; } /** * @interface - * An interface representing ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams. + * An interface representing DelegationSettingsCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams extends msRest.RequestOptionsBase { +export interface DelegationSettingsCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {ApiManagementServiceApplyNetworkConfigurationParameters} - * [parameters] Parameters supplied to the Apply Network Configuration - * operation. If the parameters are empty, all the regions in which the Api - * Management service is deployed will be updated sequentially without - * incurring downtime in the region. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; + ifMatch?: string; } /** * @interface - * An interface representing DiagnosticListByServiceOptionalParams. + * An interface representing ProductListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface DiagnosticListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface ProductListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| description | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| state | filter | eq | |
| groups | + * expand | | |
*/ filter?: string; /** @@ -5949,16 +6872,26 @@ export interface DiagnosticListByServiceOptionalParams extends msRest.RequestOpt * @member {number} [skip] Number of records to skip. */ skip?: number; + /** + * @member {boolean} [expandGroups] When set to true, the response contains + * an array of groups that have visibility to the product. The default is + * false. + */ + expandGroups?: boolean; + /** + * @member {string} [tags] Products which are part of a specific tag. + */ + tags?: string; } /** * @interface - * An interface representing DiagnosticCreateOrUpdateOptionalParams. + * An interface representing ProductCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface DiagnosticCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ProductCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -5968,40 +6901,40 @@ export interface DiagnosticCreateOrUpdateOptionalParams extends msRest.RequestOp /** * @interface - * An interface representing DiagnosticLoggerListByServiceOptionalParams. + * An interface representing ProductDeleteMethodOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface DiagnosticLoggerListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith - * | - * | type | eq | - * | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ProductDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Number of records to skip. + * @member {boolean} [deleteSubscriptions] Delete existing subscriptions + * associated with the product or not. */ - skip?: number; + deleteSubscriptions?: boolean; } /** * @interface - * An interface representing EmailTemplateListByServiceOptionalParams. + * An interface representing ProductListByTagsOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface EmailTemplateListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface ProductListByTagsOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| description | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| terms | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| state | filter | eq | substringof, contains, + * startswith, endswith |
+ */ + filter?: string; /** * @member {number} [top] Number of records to return. */ @@ -6010,43 +6943,31 @@ export interface EmailTemplateListByServiceOptionalParams extends msRest.Request * @member {number} [skip] Number of records to skip. */ skip?: number; -} - -/** - * @interface - * An interface representing EmailTemplateCreateOrUpdateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface EmailTemplateCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {boolean} [includeNotTaggedProducts] Include not tagged Products. */ - ifMatch?: string; + includeNotTaggedProducts?: boolean; } /** * @interface - * An interface representing GroupListByServiceOptionalParams. + * An interface representing ProductApiListByProductOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface GroupListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface ProductApiListByProductOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | type | eq, ne | N/A - * | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| description | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| serviceUrl | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| path | filter | ge, le, eq, ne, + * gt, lt | substringof, contains, startswith, endswith |
*/ filter?: string; /** @@ -6061,45 +6982,53 @@ export interface GroupListByServiceOptionalParams extends msRest.RequestOptionsB /** * @interface - * An interface representing GroupCreateOrUpdateOptionalParams. + * An interface representing ProductGroupListByProductOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface GroupCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ProductGroupListByProductOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | |
| displayName | filter | + * eq, ne | |
| description | filter | eq, ne | |
*/ - ifMatch?: string; + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; } /** * @interface - * An interface representing GroupUserListOptionalParams. + * An interface representing ProductSubscriptionsListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface GroupUserListOptionalParams extends msRest.RequestOptionsBase { +export interface ProductSubscriptionsListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |------------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | firstName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | lastName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | email | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | eq | N/A - * | - * | registrationDate | ge, le, eq, ne, gt, lt | N/A - * | - * | note | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| stateComment | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| userId | filter | ge, + * le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| + * productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| state | filter | eq | |
| user | + * expand | | |
*/ filter?: string; /** @@ -6114,12 +7043,12 @@ export interface GroupUserListOptionalParams extends msRest.RequestOptionsBase { /** * @interface - * An interface representing IdentityProviderCreateOrUpdateOptionalParams. + * An interface representing ProductPolicyCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface IdentityProviderCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ProductPolicyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -6129,20 +7058,19 @@ export interface IdentityProviderCreateOrUpdateOptionalParams extends msRest.Req /** * @interface - * An interface representing LoggerListByServiceOptionalParams. + * An interface representing PropertyListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface LoggerListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface PropertyListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | Supported - * functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | type | eq | - * | + * @member {string} [filter] | 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; /** @@ -6157,12 +7085,12 @@ export interface LoggerListByServiceOptionalParams extends msRest.RequestOptions /** * @interface - * An interface representing LoggerCreateOrUpdateOptionalParams. + * An interface representing PropertyCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface LoggerCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface PropertyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -6172,55 +7100,34 @@ export interface LoggerCreateOrUpdateOptionalParams extends msRest.RequestOption /** * @interface - * An interface representing NotificationListByServiceOptionalParams. + * An interface representing ReportsListByApiOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface NotificationListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface ReportsListByApiOptionalParams extends msRest.RequestOptionsBase { /** * @member {number} [top] Number of records to return. */ top?: number; /** * @member {number} [skip] Number of records to skip. - */ - skip?: number; -} - -/** - * @interface - * An interface representing NotificationCreateOrUpdateOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface NotificationCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + */ + skip?: number; /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [orderby] OData order by query option. */ - ifMatch?: string; + orderby?: string; } /** * @interface - * An interface representing OpenIdConnectProviderListByServiceOptionalParams. + * An interface representing ReportsListByUserOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface OpenIdConnectProviderListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | Supported - * functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - */ - filter?: string; +export interface ReportsListByUserOptionalParams extends msRest.RequestOptionsBase { /** * @member {number} [top] Number of records to return. */ @@ -6229,47 +7136,42 @@ export interface OpenIdConnectProviderListByServiceOptionalParams extends msRest * @member {number} [skip] Number of records to skip. */ skip?: number; + /** + * @member {string} [orderby] OData order by query option. + */ + orderby?: string; } /** * @interface - * An interface representing OpenIdConnectProviderCreateOrUpdateOptionalParams. + * An interface representing ReportsListByOperationOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface OpenIdConnectProviderCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ReportsListByOperationOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {number} [top] Number of records to return. */ - ifMatch?: string; + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {string} [orderby] OData order by query option. + */ + orderby?: string; } /** * @interface - * An interface representing ProductListByServiceOptionalParams. + * An interface representing ReportsListByProductOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ProductListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | terms | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | eq | - * | - */ - filter?: string; +export interface ReportsListByProductOptionalParams extends msRest.RequestOptionsBase { /** * @member {number} [top] Number of records to return. */ @@ -6279,67 +7181,59 @@ export interface ProductListByServiceOptionalParams extends msRest.RequestOption */ skip?: number; /** - * @member {boolean} [expandGroups] When set to true, the response contains - * an array of groups that have visibility to the product. The default is - * false. + * @member {string} [orderby] OData order by query option. */ - expandGroups?: boolean; + orderby?: string; } /** * @interface - * An interface representing ProductCreateOrUpdateOptionalParams. + * An interface representing ReportsListByGeoOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ProductCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ReportsListByGeoOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {number} [top] Number of records to return. */ - ifMatch?: string; + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; } /** * @interface - * An interface representing ProductDeleteMethodOptionalParams. + * An interface representing ReportsListBySubscriptionOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ProductDeleteMethodOptionalParams extends msRest.RequestOptionsBase { +export interface ReportsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [deleteSubscriptions] Delete existing subscriptions - * associated with the product or not. + * @member {number} [top] Number of records to return. */ - deleteSubscriptions?: boolean; + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {string} [orderby] OData order by query option. + */ + orderby?: string; } /** * @interface - * An interface representing ProductApiListByProductOptionalParams. + * An interface representing ReportsListByTimeOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ProductApiListByProductOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | path | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; +export interface ReportsListByTimeOptionalParams extends msRest.RequestOptionsBase { /** * @member {number} [top] Number of records to return. */ @@ -6348,30 +7242,20 @@ export interface ProductApiListByProductOptionalParams extends msRest.RequestOpt * @member {number} [skip] Number of records to skip. */ skip?: number; + /** + * @member {string} [orderby] OData order by query option. + */ + orderby?: string; } /** * @interface - * An interface representing ProductGroupListByProductOptionalParams. + * An interface representing ReportsListByRequestOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ProductGroupListByProductOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | type | eq, ne | N/A - * | - */ - filter?: string; +export interface ReportsListByRequestOptionalParams extends msRest.RequestOptionsBase { /** * @member {number} [top] Number of records to return. */ @@ -6384,28 +7268,27 @@ export interface ProductGroupListByProductOptionalParams extends msRest.RequestO /** * @interface - * An interface representing ProductSubscriptionsListOptionalParams. + * An interface representing SubscriptionListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ProductSubscriptionsListOptionalParams extends msRest.RequestOptionsBase { +export interface SubscriptionListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |--------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | userId | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | productId | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | eq | - * | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| stateComment | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| userId | filter | ge, + * le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| + * productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| state | filter | eq | |
| user | + * expand | | |
*/ filter?: string; /** @@ -6420,12 +7303,19 @@ export interface ProductSubscriptionsListOptionalParams extends msRest.RequestOp /** * @interface - * An interface representing ProductPolicyCreateOrUpdateOptionalParams. + * An interface representing SubscriptionCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ProductPolicyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface SubscriptionCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [notify] Notify change in Subscription State. + * - If false, do not send any email notification for change of state of + * subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; /** * @member {string} [ifMatch] ETag of the Entity. Not required when creating * an entity, but required when updating an entity. @@ -6435,20 +7325,49 @@ export interface ProductPolicyCreateOrUpdateOptionalParams extends msRest.Reques /** * @interface - * An interface representing PropertyListByServiceOptionalParams. + * An interface representing SubscriptionUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface PropertyListByServiceOptionalParams extends msRest.RequestOptionsBase { +export interface SubscriptionUpdateOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [notify] Notify change in Subscription State. + * - If false, do not send any email notification for change of state of + * subscription + * - If true, send email notification of change of state of subscription + */ + notify?: boolean; +} + +/** + * @interface + * An interface representing TagResourceListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TagResourceListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] | Field | Supported operators | Supported - * functions | - * |-------|------------------------|-------------------------------------------------------| - * | tags | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith, any, all | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| aid + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| name | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| displayName | filter | ge, le, eq, + * ne, gt, lt | substringof, contains, startswith, endswith |
| apiName + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| apiRevision | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| path | filter | ge, + * le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| + * description | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| serviceUrl | filter | ge, le, eq, ne, gt, lt + * | substringof, contains, startswith, endswith |
| method | filter | + * ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| urlTemplate | filter | ge, le, eq, ne, gt, lt | substringof, + * contains, startswith, endswith |
| terms | filter | ge, le, eq, ne, + * gt, lt | substringof, contains, startswith, endswith |
| state | + * filter | eq | |
| isCurrent | filter | eq | |
*/ filter?: string; /** @@ -6463,27 +7382,27 @@ export interface PropertyListByServiceOptionalParams extends msRest.RequestOptio /** * @interface - * An interface representing PropertyCreateOrUpdateOptionalParams. + * An interface representing UserListByServiceOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface PropertyCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface UserListByServiceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| firstName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| lastName | filter | + * ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| email | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| state | filter | eq | |
| + * registrationDate | filter | ge, le, eq, ne, gt, lt | |
| note | + * filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| groups | expand | | |
*/ - ifMatch?: string; -} - -/** - * @interface - * An interface representing ReportsListByApiOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface ReportsListByApiOptionalParams extends msRest.RequestOptionsBase { + filter?: string; /** * @member {number} [top] Number of records to return. */ @@ -6492,52 +7411,66 @@ export interface ReportsListByApiOptionalParams extends msRest.RequestOptionsBas * @member {number} [skip] Number of records to skip. */ skip?: number; + /** + * @member {boolean} [expandGroups] Detailed Group in response. + */ + expandGroups?: boolean; } /** * @interface - * An interface representing ReportsListByUserOptionalParams. + * An interface representing UserCreateOrUpdateOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ReportsListByUserOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface UserCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [ifMatch] ETag of the Entity. Not required when creating + * an entity, but required when updating an entity. */ - skip?: number; + ifMatch?: string; } /** * @interface - * An interface representing ReportsListByOperationOptionalParams. + * An interface representing UserDeleteMethodOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ReportsListByOperationOptionalParams extends msRest.RequestOptionsBase { +export interface UserDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {number} [top] Number of records to return. + * @member {boolean} [deleteSubscriptions] Whether to delete user's + * subscription or not. */ - top?: number; + deleteSubscriptions?: boolean; /** - * @member {number} [skip] Number of records to skip. + * @member {boolean} [notify] Send an Account Closed Email notification to + * the User. */ - skip?: number; + notify?: boolean; } /** * @interface - * An interface representing ReportsListByProductOptionalParams. + * An interface representing UserGroupListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ReportsListByProductOptionalParams extends msRest.RequestOptionsBase { +export interface UserGroupListOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| description | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
+ */ + filter?: string; /** * @member {number} [top] Number of records to return. */ @@ -6550,14 +7483,26 @@ export interface ReportsListByProductOptionalParams extends msRest.RequestOption /** * @interface - * An interface representing ReportsListByGeoOptionalParams. + * An interface representing UserSubscriptionListOptionalParams. * Optional Parameters. * * @extends RequestOptionsBase */ -export interface ReportsListByGeoOptionalParams extends msRest.RequestOptionsBase { +export interface UserSubscriptionListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [filter] The filter to apply on the operation. + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith |
| displayName | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| stateComment | filter + * | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith | + *
| ownerId | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
| scope | filter | ge, le, eq, ne, gt, lt | + * substringof, contains, startswith, endswith |
| userId | filter | ge, + * le, eq, ne, gt, lt | substringof, contains, startswith, endswith |
| + * productId | filter | ge, le, eq, ne, gt, lt | substringof, contains, + * startswith, endswith |
*/ filter?: string; /** @@ -6572,644 +7517,443 @@ export interface ReportsListByGeoOptionalParams extends msRest.RequestOptionsBas /** * @interface - * An interface representing ReportsListBySubscriptionOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An interface representing ApiManagementClientOptions. + * @extends AzureServiceClientOptions */ -export interface ReportsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface ApiManagementClientOptions extends AzureServiceClientOptions { /** - * @member {string} [filter] The filter to apply on the operation. + * @member {string} [baseUri] */ - filter?: string; + baseUri?: string; +} + +/** + * @interface + * An interface representing ApiGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiGetEntityTagHeaders { /** - * @member {number} [top] Number of records to return. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - top?: number; + eTag: string; +} + +/** + * @interface + * An interface representing ApiGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiGetHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing ReportsListByTimeOptionalParams. - * Optional Parameters. + * An interface representing ApiCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface ReportsListByTimeOptionalParams extends msRest.RequestOptionsBase { +export interface ApiCreateOrUpdateHeaders { /** - * @member {string} [filter] The filter to apply on the operation. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - filter?: string; + eTag: string; +} + +/** + * @interface + * An interface representing ApiReleaseGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiReleaseGetEntityTagHeaders { /** - * @member {number} [top] Number of records to return. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - top?: number; + eTag: string; +} + +/** + * @interface + * An interface representing ApiReleaseGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiReleaseGetHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing ReportsListByRequestOptionalParams. - * Optional Parameters. + * An interface representing ApiReleaseCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface ReportsListByRequestOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiReleaseCreateOrUpdateHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing SubscriptionListOptionalParams. - * Optional Parameters. + * An interface representing ApiOperationGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * - * @extends RequestOptionsBase */ -export interface SubscriptionListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |--------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | userId | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | productId | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | eq | - * | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiOperationGetEntityTagHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing SubscriptionCreateOrUpdateOptionalParams. - * Optional Parameters. + * An interface representing ApiOperationGetHeaders. + * Defines headers for Get operation. * - * @extends RequestOptionsBase */ -export interface SubscriptionCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {boolean} [notify] Notify change in Subscription State. - * - If false, do not send any email notification for change of state of - * subscription - * - If true, send email notification of change of state of subscription - */ - notify?: boolean; +export interface ApiOperationGetHeaders { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - ifMatch?: string; + eTag: string; } /** * @interface - * An interface representing SubscriptionUpdateOptionalParams. - * Optional Parameters. + * An interface representing ApiOperationCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface SubscriptionUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ApiOperationCreateOrUpdateHeaders { /** - * @member {boolean} [notify] Notify change in Subscription State. - * - If false, do not send any email notification for change of state of - * subscription - * - If true, send email notification of change of state of subscription + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - notify?: boolean; + eTag: string; } /** * @interface - * An interface representing TagResourceListByServiceOptionalParams. - * Optional Parameters. + * An interface representing ApiOperationPolicyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * - * @extends RequestOptionsBase */ -export interface TagResourceListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | aid | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | apiName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | apiRevision | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | path | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | serviceUrl | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | method | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | terms | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | isCurrent | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiOperationPolicyGetEntityTagHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing TagListByServiceOptionalParams. - * Optional Parameters. + * An interface representing ApiOperationPolicyGetHeaders. + * Defines headers for Get operation. * - * @extends RequestOptionsBase */ -export interface TagListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiOperationPolicyGetHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing TagListByApiOptionalParams. - * Optional Parameters. + * An interface representing ApiOperationPolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface TagListByApiOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiOperationPolicyCreateOrUpdateHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing TagAssignToApiOptionalParams. - * Optional Parameters. + * An interface representing TagGetEntityStateByOperationHeaders. + * Defines headers for GetEntityStateByOperation operation. * - * @extends RequestOptionsBase */ -export interface TagAssignToApiOptionalParams extends msRest.RequestOptionsBase { +export interface TagGetEntityStateByOperationHeaders { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - ifMatch?: string; + eTag: string; } /** * @interface - * An interface representing TagListByOperationOptionalParams. - * Optional Parameters. + * An interface representing TagGetByOperationHeaders. + * Defines headers for GetByOperation operation. * - * @extends RequestOptionsBase */ -export interface TagListByOperationOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | method | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface TagGetByOperationHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing TagAssignToOperationOptionalParams. - * Optional Parameters. + * An interface representing ApiPolicyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * - * @extends RequestOptionsBase */ -export interface TagAssignToOperationOptionalParams extends msRest.RequestOptionsBase { +export interface ApiPolicyGetEntityTagHeaders { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - ifMatch?: string; + eTag: string; } /** * @interface - * An interface representing TagListByProductOptionalParams. - * Optional Parameters. + * An interface representing ApiPolicyGetHeaders. + * Defines headers for Get operation. * - * @extends RequestOptionsBase */ -export interface TagListByProductOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiPolicyGetHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing TagAssignToProductOptionalParams. - * Optional Parameters. + * An interface representing ApiPolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface TagAssignToProductOptionalParams extends msRest.RequestOptionsBase { +export interface ApiPolicyCreateOrUpdateHeaders { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - ifMatch?: string; + eTag: string; } /** * @interface - * An interface representing TagDescriptionListByApiOptionalParams. - * Optional Parameters. + * An interface representing ApiSchemaGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * - * @extends RequestOptionsBase */ -export interface TagDescriptionListByApiOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiSchemaGetEntityTagHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing TagDescriptionCreateOrUpdateOptionalParams. - * Optional Parameters. + * An interface representing ApiSchemaGetHeaders. + * Defines headers for Get operation. * - * @extends RequestOptionsBase */ -export interface TagDescriptionCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ApiSchemaGetHeaders { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - ifMatch?: string; + eTag: string; } /** * @interface - * An interface representing OperationListByTagsOptionalParams. - * Optional Parameters. + * An interface representing ApiSchemaCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface OperationListByTagsOptionalParams extends msRest.RequestOptionsBase { +export interface ApiSchemaCreateOrUpdateHeaders { /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | apiName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | method | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | urlTemplate | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - filter?: string; + eTag: string; +} + +/** + * @interface + * An interface representing ApiDiagnosticGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiDiagnosticGetEntityTagHeaders { /** - * @member {number} [top] Number of records to return. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - top?: number; + eTag: string; +} + +/** + * @interface + * An interface representing ApiDiagnosticGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiDiagnosticGetHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing UserListByServiceOptionalParams. - * Optional Parameters. + * An interface representing ApiDiagnosticCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface UserListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |------------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | firstName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | lastName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | email | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | eq | N/A - * | - * | registrationDate | ge, le, eq, ne, gt, lt | N/A - * | - * | note | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiDiagnosticCreateOrUpdateHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing UserCreateOrUpdateOptionalParams. - * Optional Parameters. + * An interface representing ApiIssueGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * - * @extends RequestOptionsBase */ -export interface UserCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ApiIssueGetEntityTagHeaders { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - ifMatch?: string; + eTag: string; } /** * @interface - * An interface representing UserDeleteMethodOptionalParams. - * Optional Parameters. + * An interface representing ApiIssueGetHeaders. + * Defines headers for Get operation. * - * @extends RequestOptionsBase */ -export interface UserDeleteMethodOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {boolean} [deleteSubscriptions] Whether to delete user's - * subscription or not. - */ - deleteSubscriptions?: boolean; +export interface ApiIssueGetHeaders { /** - * @member {boolean} [notify] Send an Account Closed Email notification to - * the User. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - notify?: boolean; + eTag: string; } /** * @interface - * An interface representing UserGroupListOptionalParams. - * Optional Parameters. + * An interface representing ApiIssueCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface UserGroupListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | description | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiIssueCreateOrUpdateHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing UserSubscriptionListOptionalParams. - * Optional Parameters. + * An interface representing ApiIssueCommentGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * - * @extends RequestOptionsBase */ -export interface UserSubscriptionListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |--------------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | stateComment | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | userId | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | productId | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | eq | - * | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiIssueCommentGetEntityTagHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing ApiVersionSetListByServiceOptionalParams. - * Optional Parameters. + * An interface representing ApiIssueCommentGetHeaders. + * Defines headers for Get operation. * - * @extends RequestOptionsBase */ -export interface ApiVersionSetListByServiceOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [filter] | Field | Supported operators | - * Supported functions | - * |------------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | firstName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | lastName | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | email | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - * | state | eq | N/A - * | - * | registrationDate | ge, le, eq, ne, gt, lt | N/A - * | - * | note | ge, le, eq, ne, gt, lt | substringof, contains, - * startswith, endswith | - */ - filter?: string; - /** - * @member {number} [top] Number of records to return. - */ - top?: number; +export interface ApiIssueCommentGetHeaders { /** - * @member {number} [skip] Number of records to skip. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - skip?: number; + eTag: string; } /** * @interface - * An interface representing ApiVersionSetCreateOrUpdateOptionalParams. - * Optional Parameters. + * An interface representing ApiIssueCommentCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * - * @extends RequestOptionsBase */ -export interface ApiVersionSetCreateOrUpdateOptionalParams extends msRest.RequestOptionsBase { +export interface ApiIssueCommentCreateOrUpdateHeaders { /** - * @member {string} [ifMatch] ETag of the Entity. Not required when creating - * an entity, but required when updating an entity. + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - ifMatch?: string; + eTag: string; } /** * @interface - * An interface representing ApiManagementClientOptions. - * @extends AzureServiceClientOptions + * An interface representing ApiIssueAttachmentGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * */ -export interface ApiManagementClientOptions extends AzureServiceClientOptions { +export interface ApiIssueAttachmentGetEntityTagHeaders { /** - * @member {string} [baseUri] + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. */ - baseUri?: string; + eTag: string; } /** * @interface - * An interface representing PolicyGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing ApiIssueAttachmentGetHeaders. + * Defines headers for Get operation. * */ -export interface PolicyGetEntityTagHeaders { +export interface ApiIssueAttachmentGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7219,11 +7963,11 @@ export interface PolicyGetEntityTagHeaders { /** * @interface - * An interface representing PolicyGetHeaders. - * Defines headers for Get operation. + * An interface representing ApiIssueAttachmentCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface PolicyGetHeaders { +export interface ApiIssueAttachmentCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7233,11 +7977,11 @@ export interface PolicyGetHeaders { /** * @interface - * An interface representing ApiGetEntityTagHeaders. + * An interface representing ApiTagDescriptionGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface ApiGetEntityTagHeaders { +export interface ApiTagDescriptionGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7247,11 +7991,11 @@ export interface ApiGetEntityTagHeaders { /** * @interface - * An interface representing ApiGetHeaders. + * An interface representing ApiTagDescriptionGetHeaders. * Defines headers for Get operation. * */ -export interface ApiGetHeaders { +export interface ApiTagDescriptionGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7261,11 +8005,11 @@ export interface ApiGetHeaders { /** * @interface - * An interface representing ApiCreateOrUpdateHeaders. + * An interface representing ApiTagDescriptionCreateOrUpdateHeaders. * Defines headers for CreateOrUpdate operation. * */ -export interface ApiCreateOrUpdateHeaders { +export interface ApiTagDescriptionCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7275,11 +8019,11 @@ export interface ApiCreateOrUpdateHeaders { /** * @interface - * An interface representing ApiReleaseGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing TagGetEntityStateByApiHeaders. + * Defines headers for GetEntityStateByApi operation. * */ -export interface ApiReleaseGetEntityTagHeaders { +export interface TagGetEntityStateByApiHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7289,11 +8033,11 @@ export interface ApiReleaseGetEntityTagHeaders { /** * @interface - * An interface representing ApiOperationGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing TagGetByApiHeaders. + * Defines headers for GetByApi operation. * */ -export interface ApiOperationGetEntityTagHeaders { +export interface TagGetByApiHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7303,11 +8047,11 @@ export interface ApiOperationGetEntityTagHeaders { /** * @interface - * An interface representing ApiOperationGetHeaders. - * Defines headers for Get operation. + * An interface representing TagAssignToApiHeaders. + * Defines headers for AssignToApi operation. * */ -export interface ApiOperationGetHeaders { +export interface TagAssignToApiHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7317,11 +8061,11 @@ export interface ApiOperationGetHeaders { /** * @interface - * An interface representing ApiOperationPolicyGetEntityTagHeaders. + * An interface representing ApiVersionSetGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface ApiOperationPolicyGetEntityTagHeaders { +export interface ApiVersionSetGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7331,11 +8075,11 @@ export interface ApiOperationPolicyGetEntityTagHeaders { /** * @interface - * An interface representing ApiOperationPolicyGetHeaders. + * An interface representing ApiVersionSetGetHeaders. * Defines headers for Get operation. * */ -export interface ApiOperationPolicyGetHeaders { +export interface ApiVersionSetGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7345,11 +8089,11 @@ export interface ApiOperationPolicyGetHeaders { /** * @interface - * An interface representing ApiPolicyListByApiHeaders. - * Defines headers for ListByApi operation. + * An interface representing ApiVersionSetCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface ApiPolicyListByApiHeaders { +export interface ApiVersionSetCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7359,11 +8103,11 @@ export interface ApiPolicyListByApiHeaders { /** * @interface - * An interface representing ApiPolicyGetEntityTagHeaders. + * An interface representing AuthorizationServerGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface ApiPolicyGetEntityTagHeaders { +export interface AuthorizationServerGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7373,11 +8117,11 @@ export interface ApiPolicyGetEntityTagHeaders { /** * @interface - * An interface representing ApiPolicyGetHeaders. + * An interface representing AuthorizationServerGetHeaders. * Defines headers for Get operation. * */ -export interface ApiPolicyGetHeaders { +export interface AuthorizationServerGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7387,11 +8131,11 @@ export interface ApiPolicyGetHeaders { /** * @interface - * An interface representing ApiSchemaListByApiHeaders. - * Defines headers for ListByApi operation. + * An interface representing AuthorizationServerCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface ApiSchemaListByApiHeaders { +export interface AuthorizationServerCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7401,11 +8145,11 @@ export interface ApiSchemaListByApiHeaders { /** * @interface - * An interface representing ApiSchemaGetEntityTagHeaders. + * An interface representing BackendGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface ApiSchemaGetEntityTagHeaders { +export interface BackendGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7415,11 +8159,11 @@ export interface ApiSchemaGetEntityTagHeaders { /** * @interface - * An interface representing ApiSchemaGetHeaders. + * An interface representing BackendGetHeaders. * Defines headers for Get operation. * */ -export interface ApiSchemaGetHeaders { +export interface BackendGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7429,11 +8173,11 @@ export interface ApiSchemaGetHeaders { /** * @interface - * An interface representing ApiDiagnosticGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing BackendCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface ApiDiagnosticGetEntityTagHeaders { +export interface BackendCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7443,11 +8187,11 @@ export interface ApiDiagnosticGetEntityTagHeaders { /** * @interface - * An interface representing ApiDiagnosticGetHeaders. - * Defines headers for Get operation. + * An interface representing CacheGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * */ -export interface ApiDiagnosticGetHeaders { +export interface CacheGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7457,11 +8201,11 @@ export interface ApiDiagnosticGetHeaders { /** * @interface - * An interface representing ApiIssueGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing CacheGetHeaders. + * Defines headers for Get operation. * */ -export interface ApiIssueGetEntityTagHeaders { +export interface CacheGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7471,11 +8215,11 @@ export interface ApiIssueGetEntityTagHeaders { /** * @interface - * An interface representing ApiIssueGetHeaders. - * Defines headers for Get operation. + * An interface representing CacheCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface ApiIssueGetHeaders { +export interface CacheCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7485,11 +8229,11 @@ export interface ApiIssueGetHeaders { /** * @interface - * An interface representing ApiIssueCommentGetEntityTagHeaders. + * An interface representing CertificateGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface ApiIssueCommentGetEntityTagHeaders { +export interface CertificateGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7499,11 +8243,11 @@ export interface ApiIssueCommentGetEntityTagHeaders { /** * @interface - * An interface representing ApiIssueCommentGetHeaders. + * An interface representing CertificateGetHeaders. * Defines headers for Get operation. * */ -export interface ApiIssueCommentGetHeaders { +export interface CertificateGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7513,11 +8257,25 @@ export interface ApiIssueCommentGetHeaders { /** * @interface - * An interface representing ApiIssueAttachmentGetEntityTagHeaders. + * An interface representing CertificateCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface CertificateCreateOrUpdateHeaders { + /** + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. + */ + eTag: string; +} + +/** + * @interface + * An interface representing DiagnosticGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface ApiIssueAttachmentGetEntityTagHeaders { +export interface DiagnosticGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7527,11 +8285,11 @@ export interface ApiIssueAttachmentGetEntityTagHeaders { /** * @interface - * An interface representing ApiIssueAttachmentGetHeaders. + * An interface representing DiagnosticGetHeaders. * Defines headers for Get operation. * */ -export interface ApiIssueAttachmentGetHeaders { +export interface DiagnosticGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7541,11 +8299,25 @@ export interface ApiIssueAttachmentGetHeaders { /** * @interface - * An interface representing AuthorizationServerGetEntityTagHeaders. + * An interface representing DiagnosticCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface DiagnosticCreateOrUpdateHeaders { + /** + * @member {string} [eTag] Current entity state version. Should be treated as + * opaque and used to make conditional HTTP requests. + */ + eTag: string; +} + +/** + * @interface + * An interface representing EmailTemplateGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface AuthorizationServerGetEntityTagHeaders { +export interface EmailTemplateGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7555,11 +8327,11 @@ export interface AuthorizationServerGetEntityTagHeaders { /** * @interface - * An interface representing AuthorizationServerGetHeaders. + * An interface representing EmailTemplateGetHeaders. * Defines headers for Get operation. * */ -export interface AuthorizationServerGetHeaders { +export interface EmailTemplateGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7569,11 +8341,11 @@ export interface AuthorizationServerGetHeaders { /** * @interface - * An interface representing BackendGetEntityTagHeaders. + * An interface representing GroupGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface BackendGetEntityTagHeaders { +export interface GroupGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7583,11 +8355,11 @@ export interface BackendGetEntityTagHeaders { /** * @interface - * An interface representing BackendGetHeaders. + * An interface representing GroupGetHeaders. * Defines headers for Get operation. * */ -export interface BackendGetHeaders { +export interface GroupGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7597,11 +8369,11 @@ export interface BackendGetHeaders { /** * @interface - * An interface representing CertificateGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing GroupCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface CertificateGetEntityTagHeaders { +export interface GroupCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7611,11 +8383,11 @@ export interface CertificateGetEntityTagHeaders { /** * @interface - * An interface representing CertificateGetHeaders. - * Defines headers for Get operation. + * An interface representing IdentityProviderGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * */ -export interface CertificateGetHeaders { +export interface IdentityProviderGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7625,11 +8397,11 @@ export interface CertificateGetHeaders { /** * @interface - * An interface representing DiagnosticGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing IdentityProviderGetHeaders. + * Defines headers for Get operation. * */ -export interface DiagnosticGetEntityTagHeaders { +export interface IdentityProviderGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7639,11 +8411,11 @@ export interface DiagnosticGetEntityTagHeaders { /** * @interface - * An interface representing DiagnosticGetHeaders. - * Defines headers for Get operation. + * An interface representing IdentityProviderCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface DiagnosticGetHeaders { +export interface IdentityProviderCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7653,11 +8425,11 @@ export interface DiagnosticGetHeaders { /** * @interface - * An interface representing EmailTemplateGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing IssueGetHeaders. + * Defines headers for Get operation. * */ -export interface EmailTemplateGetEntityTagHeaders { +export interface IssueGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7667,11 +8439,11 @@ export interface EmailTemplateGetEntityTagHeaders { /** * @interface - * An interface representing EmailTemplateGetHeaders. - * Defines headers for Get operation. + * An interface representing LoggerGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * */ -export interface EmailTemplateGetHeaders { +export interface LoggerGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7681,11 +8453,11 @@ export interface EmailTemplateGetHeaders { /** * @interface - * An interface representing GroupGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing LoggerGetHeaders. + * Defines headers for Get operation. * */ -export interface GroupGetEntityTagHeaders { +export interface LoggerGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7695,11 +8467,11 @@ export interface GroupGetEntityTagHeaders { /** * @interface - * An interface representing GroupGetHeaders. - * Defines headers for Get operation. + * An interface representing LoggerCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface GroupGetHeaders { +export interface LoggerCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7709,11 +8481,11 @@ export interface GroupGetHeaders { /** * @interface - * An interface representing IdentityProviderGetEntityTagHeaders. + * An interface representing OpenIdConnectProviderGetEntityTagHeaders. * Defines headers for GetEntityTag operation. * */ -export interface IdentityProviderGetEntityTagHeaders { +export interface OpenIdConnectProviderGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7723,11 +8495,11 @@ export interface IdentityProviderGetEntityTagHeaders { /** * @interface - * An interface representing IdentityProviderGetHeaders. + * An interface representing OpenIdConnectProviderGetHeaders. * Defines headers for Get operation. * */ -export interface IdentityProviderGetHeaders { +export interface OpenIdConnectProviderGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7737,11 +8509,11 @@ export interface IdentityProviderGetHeaders { /** * @interface - * An interface representing LoggerGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing OpenIdConnectProviderCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface LoggerGetEntityTagHeaders { +export interface OpenIdConnectProviderCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7751,11 +8523,11 @@ export interface LoggerGetEntityTagHeaders { /** * @interface - * An interface representing LoggerGetHeaders. - * Defines headers for Get operation. + * An interface representing PolicyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * */ -export interface LoggerGetHeaders { +export interface PolicyGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7765,11 +8537,11 @@ export interface LoggerGetHeaders { /** * @interface - * An interface representing OpenIdConnectProviderGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing PolicyGetHeaders. + * Defines headers for Get operation. * */ -export interface OpenIdConnectProviderGetEntityTagHeaders { +export interface PolicyGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7779,11 +8551,11 @@ export interface OpenIdConnectProviderGetEntityTagHeaders { /** * @interface - * An interface representing OpenIdConnectProviderGetHeaders. - * Defines headers for Get operation. + * An interface representing PolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface OpenIdConnectProviderGetHeaders { +export interface PolicyCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7905,11 +8677,11 @@ export interface ProductGetHeaders { /** * @interface - * An interface representing ProductPolicyListByProductHeaders. - * Defines headers for ListByProduct operation. + * An interface representing ProductCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface ProductPolicyListByProductHeaders { +export interface ProductCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7947,25 +8719,11 @@ export interface ProductPolicyGetHeaders { /** * @interface - * An interface representing PropertyGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. - * - */ -export interface PropertyGetEntityTagHeaders { - /** - * @member {string} [eTag] Current entity state version. Should be treated as - * opaque and used to make conditional HTTP requests. - */ - eTag: string; -} - -/** - * @interface - * An interface representing PropertyGetHeaders. - * Defines headers for Get operation. + * An interface representing ProductPolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface PropertyGetHeaders { +export interface ProductPolicyCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7975,11 +8733,11 @@ export interface PropertyGetHeaders { /** * @interface - * An interface representing SubscriptionGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. + * An interface representing TagGetEntityStateByProductHeaders. + * Defines headers for GetEntityStateByProduct operation. * */ -export interface SubscriptionGetEntityTagHeaders { +export interface TagGetEntityStateByProductHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -7989,11 +8747,11 @@ export interface SubscriptionGetEntityTagHeaders { /** * @interface - * An interface representing SubscriptionGetHeaders. - * Defines headers for Get operation. + * An interface representing TagGetByProductHeaders. + * Defines headers for GetByProduct operation. * */ -export interface SubscriptionGetHeaders { +export interface TagGetByProductHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8003,11 +8761,11 @@ export interface SubscriptionGetHeaders { /** * @interface - * An interface representing TagGetEntityStateHeaders. - * Defines headers for GetEntityState operation. + * An interface representing PropertyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * */ -export interface TagGetEntityStateHeaders { +export interface PropertyGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8017,11 +8775,11 @@ export interface TagGetEntityStateHeaders { /** * @interface - * An interface representing TagGetHeaders. + * An interface representing PropertyGetHeaders. * Defines headers for Get operation. * */ -export interface TagGetHeaders { +export interface PropertyGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8031,11 +8789,11 @@ export interface TagGetHeaders { /** * @interface - * An interface representing TagGetEntityStateByApiHeaders. - * Defines headers for GetEntityStateByApi operation. + * An interface representing PropertyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface TagGetEntityStateByApiHeaders { +export interface PropertyCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8045,11 +8803,11 @@ export interface TagGetEntityStateByApiHeaders { /** * @interface - * An interface representing TagGetByApiHeaders. - * Defines headers for GetByApi operation. + * An interface representing SubscriptionGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * */ -export interface TagGetByApiHeaders { +export interface SubscriptionGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8059,11 +8817,11 @@ export interface TagGetByApiHeaders { /** * @interface - * An interface representing TagDescriptionGetEntityStateHeaders. - * Defines headers for GetEntityState operation. + * An interface representing SubscriptionGetHeaders. + * Defines headers for Get operation. * */ -export interface TagDescriptionGetEntityStateHeaders { +export interface SubscriptionGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8073,11 +8831,11 @@ export interface TagDescriptionGetEntityStateHeaders { /** * @interface - * An interface representing TagDescriptionGetHeaders. - * Defines headers for Get operation. + * An interface representing SubscriptionCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface TagDescriptionGetHeaders { +export interface SubscriptionCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8087,11 +8845,11 @@ export interface TagDescriptionGetHeaders { /** * @interface - * An interface representing TagGetEntityStateByOperationHeaders. - * Defines headers for GetEntityStateByOperation operation. + * An interface representing TagGetEntityStateHeaders. + * Defines headers for GetEntityState operation. * */ -export interface TagGetEntityStateByOperationHeaders { +export interface TagGetEntityStateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8101,11 +8859,11 @@ export interface TagGetEntityStateByOperationHeaders { /** * @interface - * An interface representing TagGetByOperationHeaders. - * Defines headers for GetByOperation operation. + * An interface representing TagGetHeaders. + * Defines headers for Get operation. * */ -export interface TagGetByOperationHeaders { +export interface TagGetHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8115,11 +8873,11 @@ export interface TagGetByOperationHeaders { /** * @interface - * An interface representing TagGetEntityStateByProductHeaders. - * Defines headers for GetEntityStateByProduct operation. + * An interface representing TagCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface TagGetEntityStateByProductHeaders { +export interface TagCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8129,11 +8887,11 @@ export interface TagGetEntityStateByProductHeaders { /** * @interface - * An interface representing TagGetByProductHeaders. - * Defines headers for GetByProduct operation. + * An interface representing TenantAccessGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. * */ -export interface TagGetByProductHeaders { +export interface TenantAccessGetEntityTagHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8199,25 +8957,11 @@ export interface UserGetHeaders { /** * @interface - * An interface representing ApiVersionSetGetEntityTagHeaders. - * Defines headers for GetEntityTag operation. - * - */ -export interface ApiVersionSetGetEntityTagHeaders { - /** - * @member {string} [eTag] Current entity state version. Should be treated as - * opaque and used to make conditional HTTP requests. - */ - eTag: string; -} - -/** - * @interface - * An interface representing ApiVersionSetGetHeaders. - * Defines headers for Get operation. + * An interface representing UserCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. * */ -export interface ApiVersionSetGetHeaders { +export interface UserCreateOrUpdateHeaders { /** * @member {string} [eTag] Current entity state version. Should be treated as * opaque and used to make conditional HTTP requests. @@ -8226,24 +8970,6 @@ export interface ApiVersionSetGetHeaders { } -/** - * @interface - * An interface representing the RegionListResult. - * Lists Regions operation response details. - * - * @extends Array - */ -export interface RegionListResult extends Array { - /** - * @member {number} [count] Total record count number across all pages. - */ - count?: number; - /** - * @member {string} [nextLink] Next page link if any. - */ - nextLink?: string; -} - /** * @interface * An interface representing the ApiCollection. @@ -8268,10 +8994,6 @@ export interface ApiCollection extends Array { * @extends Array */ export interface TagResourceCollection extends Array { - /** - * @member {number} [count] Total record count number across all pages. - */ - count?: number; /** * @member {string} [nextLink] Next page link if any. */ @@ -8297,7 +9019,7 @@ export interface ApiRevisionCollection extends Array { /** * @interface * An interface representing the ApiReleaseCollection. - * Paged Api Revision list representation. + * Paged ApiRelease list representation. * * @extends Array */ @@ -8326,6 +9048,20 @@ export interface OperationCollection extends Array { readonly nextLink?: string; } +/** + * @interface + * An interface representing the TagCollection. + * Paged Tag list representation. + * + * @extends Array + */ +export interface TagCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + /** * @interface * An interface representing the ProductCollection. @@ -8370,24 +9106,6 @@ export interface DiagnosticCollection extends Array { nextLink?: string; } -/** - * @interface - * An interface representing the LoggerCollection. - * Paged Logger list representation. - * - * @extends Array - */ -export interface LoggerCollection extends Array { - /** - * @member {number} [count] Total record count number across all pages. - */ - count?: number; - /** - * @member {string} [nextLink] Next page link if any. - */ - nextLink?: string; -} - /** * @interface * An interface representing the IssueCollection. @@ -8436,6 +9154,34 @@ export interface IssueAttachmentCollection extends Array + */ +export interface TagDescriptionCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ApiVersionSetCollection. + * Paged Api Version Set list representation. + * + * @extends Array + */ +export interface ApiVersionSetCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + /** * @interface * An interface representing the AuthorizationServerCollection. @@ -8468,6 +9214,20 @@ export interface BackendCollection extends Array { nextLink?: string; } +/** + * @interface + * An interface representing the CacheCollection. + * Paged Caches list representation. + * + * @extends Array + */ +export interface CacheCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + /** * @interface * An interface representing the CertificateCollection. @@ -8498,6 +9258,21 @@ export interface OperationListResult extends Array { nextLink?: string; } +/** + * @interface + * An interface representing the ResourceSkuResults. + * The API Management service SKUs operation response. + * + * @extends Array + */ +export interface ResourceSkuResults extends Array { + /** + * @member {string} [nextLink] The uri to fetch the next page of API + * Management service Skus. + */ + nextLink?: string; +} + /** * @interface * An interface representing the ApiManagementServiceListResult. @@ -8569,6 +9344,24 @@ export interface IdentityProviderList extends Array { nextLink?: string; } +/** + * @interface + * An interface representing the LoggerCollection. + * Paged Logger list representation. + * + * @extends Array + */ +export interface LoggerCollection extends Array { + /** + * @member {number} [count] Total record count number across all pages. + */ + count?: number; + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + /** * @interface * An interface representing the NotificationCollection. @@ -8627,12 +9420,12 @@ export interface PropertyCollection extends Array { /** * @interface - * An interface representing the ReportCollection. - * Paged Report records list representation. + * An interface representing the RegionListResult. + * Lists Regions operation response details. * - * @extends Array + * @extends Array */ -export interface ReportCollection extends Array { +export interface RegionListResult extends Array { /** * @member {number} [count] Total record count number across all pages. */ @@ -8645,26 +9438,16 @@ export interface ReportCollection extends Array { /** * @interface - * An interface representing the RequestReportCollection. + * An interface representing the ReportCollection. * Paged Report records list representation. * - * @extends Array + * @extends Array */ -export interface RequestReportCollection extends Array { +export interface ReportCollection extends Array { /** * @member {number} [count] Total record count number across all pages. */ count?: number; -} - -/** - * @interface - * An interface representing the TagCollection. - * Paged Tag list representation. - * - * @extends Array - */ -export interface TagCollection extends Array { /** * @member {string} [nextLink] Next page link if any. */ @@ -8673,16 +9456,16 @@ export interface TagCollection extends Array { /** * @interface - * An interface representing the TagDescriptionCollection. - * Paged TagDescription list representation. + * An interface representing the RequestReportCollection. + * Paged Report records list representation. * - * @extends Array + * @extends Array */ -export interface TagDescriptionCollection extends Array { +export interface RequestReportCollection extends Array { /** - * @member {string} [nextLink] Next page link if any. + * @member {number} [count] Total record count number across all pages. */ - nextLink?: string; + count?: number; } /** @@ -8704,26 +9487,20 @@ export interface UserIdentityCollection extends Array { } /** - * @interface - * An interface representing the ApiVersionSetCollection. - * Paged Api Version Set list representation. - * - * @extends Array + * Defines values for ProductState. + * Possible values include: 'notPublished', 'published' + * @readonly + * @enum {string} */ -export interface ApiVersionSetCollection extends Array { - /** - * @member {string} [nextLink] Next page link if any. - */ - nextLink?: string; -} +export type ProductState = 'notPublished' | 'published'; /** - * Defines values for PolicyContentFormat. - * Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link' + * Defines values for BearerTokenSendingMethods. + * Possible values include: 'authorizationHeader', 'query' * @readonly * @enum {string} */ -export type PolicyContentFormat = 'xml' | 'xml-link' | 'rawxml' | 'rawxml-link'; +export type BearerTokenSendingMethods = 'authorizationHeader' | 'query'; /** * Defines values for Protocol. @@ -8736,11 +9513,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' + * 'wsdl', 'wsdl-link', 'openapi', 'openapi+json', 'openapi-link' * @readonly * @enum {string} */ -export type ContentFormat = 'wadl-xml' | 'wadl-link-json' | 'swagger-json' | 'swagger-link-json' | 'wsdl' | 'wsdl-link'; +export type ContentFormat = 'wadl-xml' | 'wadl-link-json' | 'swagger-json' | 'swagger-link-json' | 'wsdl' | 'wsdl-link' | 'openapi' | 'openapi+json' | 'openapi-link'; /** * Defines values for SoapApiType. @@ -8750,14 +9527,6 @@ export type ContentFormat = 'wadl-xml' | 'wadl-link-json' | 'swagger-json' | 'sw */ export type SoapApiType = 'http' | 'soap'; -/** - * Defines values for BearerTokenSendingMethods. - * Possible values include: 'authorizationHeader', 'query' - * @readonly - * @enum {string} - */ -export type BearerTokenSendingMethods = 'authorizationHeader' | 'query'; - /** * Defines values for ApiType. * Possible values include: 'http', 'soap' @@ -8775,20 +9544,36 @@ export type ApiType = 'http' | 'soap'; export type State = 'proposed' | 'open' | 'removed' | 'resolved' | 'closed'; /** - * Defines values for LoggerType. - * Possible values include: 'azureEventHub', 'applicationInsights' + * Defines values for SamplingType. + * Possible values include: 'fixed' * @readonly * @enum {string} */ -export type LoggerType = 'azureEventHub' | 'applicationInsights'; +export type SamplingType = 'fixed'; /** - * Defines values for ProductState. - * Possible values include: 'notPublished', 'published' + * Defines values for AlwaysLog. + * Possible values include: 'allErrors' * @readonly * @enum {string} */ -export type ProductState = 'notPublished' | 'published'; +export type AlwaysLog = 'allErrors'; + +/** + * Defines values for PolicyContentFormat. + * Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link' + * @readonly + * @enum {string} + */ +export type PolicyContentFormat = 'xml' | 'xml-link' | 'rawxml' | 'rawxml-link'; + +/** + * Defines values for VersioningScheme. + * Possible values include: 'Segment', 'Query', 'Header' + * @readonly + * @enum {string} + */ +export type VersioningScheme = 'Segment' | 'Query' | 'Header'; /** * Defines values for GrantType. @@ -8832,20 +9617,28 @@ export type BearerTokenSendingMethod = 'authorizationHeader' | 'query'; export type BackendProtocol = 'http' | 'soap'; /** - * Defines values for HostnameType. - * Possible values include: 'Proxy', 'Portal', 'Management', 'Scm' + * Defines values for SkuType. + * Possible values include: 'Developer', 'Standard', 'Premium', 'Basic', 'Consumption' * @readonly * @enum {string} */ -export type HostnameType = 'Proxy' | 'Portal' | 'Management' | 'Scm'; +export type SkuType = 'Developer' | 'Standard' | 'Premium' | 'Basic' | 'Consumption'; /** - * Defines values for SkuType. - * Possible values include: 'Developer', 'Standard', 'Premium', 'Basic' + * Defines values for ResourceSkuCapacityScaleType. + * Possible values include: 'automatic', 'manual', 'none' * @readonly * @enum {string} */ -export type SkuType = 'Developer' | 'Standard' | 'Premium' | 'Basic'; +export type ResourceSkuCapacityScaleType = 'automatic' | 'manual' | 'none'; + +/** + * Defines values for HostnameType. + * Possible values include: 'Proxy', 'Portal', 'Management', 'Scm', 'DeveloperPortal' + * @readonly + * @enum {string} + */ +export type HostnameType = 'Proxy' | 'Portal' | 'Management' | 'Scm' | 'DeveloperPortal'; /** * Defines values for VirtualNetworkType. @@ -8863,14 +9656,6 @@ export type VirtualNetworkType = 'None' | 'External' | 'Internal'; */ export type NameAvailabilityReason = 'Valid' | 'Invalid' | 'AlreadyExists'; -/** - * Defines values for GroupType. - * Possible values include: 'custom', 'system', 'external' - * @readonly - * @enum {string} - */ -export type GroupType = 'custom' | 'system' | 'external'; - /** * Defines values for Confirmation. * Possible values include: 'signup', 'invite' @@ -8887,6 +9672,14 @@ export type Confirmation = 'signup' | 'invite'; */ export type UserState = 'active' | 'blocked' | 'pending' | 'deleted'; +/** + * Defines values for GroupType. + * Possible values include: 'custom', 'system', 'external' + * @readonly + * @enum {string} + */ +export type GroupType = 'custom' | 'system' | 'external'; + /** * Defines values for IdentityProviderType. * Possible values include: 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' @@ -8895,6 +9688,14 @@ export type UserState = 'active' | 'blocked' | 'pending' | 'deleted'; */ export type IdentityProviderType = 'facebook' | 'google' | 'microsoft' | 'twitter' | 'aad' | 'aadB2C'; +/** + * Defines values for LoggerType. + * Possible values include: 'azureEventHub', 'applicationInsights' + * @readonly + * @enum {string} + */ +export type LoggerType = 'azureEventHub' | 'applicationInsights'; + /** * Defines values for ConnectivityStatusType. * Possible values include: 'initializing', 'success', 'failure' @@ -8928,12 +9729,15 @@ export type AsyncOperationStatus = 'Started' | 'InProgress' | 'Succeeded' | 'Fai export type KeyType = 'primary' | 'secondary'; /** - * Defines values for VersioningScheme. - * Possible values include: 'Segment', 'Query', 'Header' + * Defines values for NotificationName. + * Possible values include: 'RequestPublisherNotificationMessage', + * 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', 'BCC', + * 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + * 'QuotaLimitApproachingPublisherNotificationMessage' * @readonly * @enum {string} */ -export type VersioningScheme = 'Segment' | 'Query' | 'Header'; +export type NotificationName = 'RequestPublisherNotificationMessage' | 'PurchasePublisherNotificationMessage' | 'NewApplicationNotificationMessage' | 'BCC' | 'NewIssuePublisherNotificationMessage' | 'AccountClosedPublisher' | 'QuotaLimitApproachingPublisherNotificationMessage'; /** * Defines values for TemplateName. @@ -8949,17 +9753,6 @@ export type VersioningScheme = 'Segment' | 'Query' | 'Header'; */ export type TemplateName = 'applicationApprovedNotificationMessage' | 'accountClosedDeveloper' | 'quotaLimitApproachingDeveloperNotificationMessage' | 'newDeveloperNotificationMessage' | 'emailChangeIdentityDefault' | 'inviteUserNotificationMessage' | 'newCommentNotificationMessage' | 'confirmSignUpIdentityDefault' | 'newIssueNotificationMessage' | 'purchaseDeveloperNotificationMessage' | 'passwordResetIdentityDefault' | 'passwordResetByAdminNotificationMessage' | 'rejectDeveloperNotificationMessage' | 'requestDeveloperNotificationMessage'; -/** - * Defines values for NotificationName. - * Possible values include: 'RequestPublisherNotificationMessage', - * 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', 'BCC', - * 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', - * 'QuotaLimitApproachingPublisherNotificationMessage' - * @readonly - * @enum {string} - */ -export type NotificationName = 'RequestPublisherNotificationMessage' | 'PurchasePublisherNotificationMessage' | 'NewApplicationNotificationMessage' | 'BCC' | 'NewIssuePublisherNotificationMessage' | 'AccountClosedPublisher' | 'QuotaLimitApproachingPublisherNotificationMessage'; - /** * Defines values for PolicyScopeContract. * Possible values include: 'Tenant', 'Product', 'Api', 'Operation', 'All' @@ -8970,11 +9763,11 @@ export type PolicyScopeContract = 'Tenant' | 'Product' | 'Api' | 'Operation' | ' /** * Defines values for ExportFormat. - * Possible values include: 'Swagger', 'Wsdl', 'Wadl' + * Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi3' * @readonly * @enum {string} */ -export type ExportFormat = 'swagger-link' | 'wsdl-link' | 'wadl-link'; +export type ExportFormat = 'swagger-link' | 'wsdl-link' | 'wadl-link' | 'openapi-link'; /** * Defines values for VersioningScheme1. @@ -8993,9 +9786,89 @@ export type VersioningScheme1 = 'Segment' | 'Query' | 'Header'; export type StoreName = 'CertificateAuthority' | 'Root'; /** - * Contains response data for the listByService operation. + * Contains response data for the listByService operation. + */ +export type ApiListByServiceResponse = ApiCollection & { + /** + * 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: ApiCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiGetResponse = ApiContract & ApiGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApiContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ApiCreateOrUpdateResponse = ApiContract & ApiCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApiContract; + }; +}; + +/** + * Contains response data for the listByTags operation. */ -export type PolicyListByServiceResponse = PolicyCollection & { +export type ApiListByTagsResponse = TagResourceCollection & { /** * The underlying HTTP response. */ @@ -9007,37 +9880,56 @@ export type PolicyListByServiceResponse = PolicyCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyCollection; + parsedBody: TagResourceCollection; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the listByServiceNext operation. */ -export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders & { +export type ApiListByServiceNextResponse = ApiCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: PolicyGetEntityTagHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApiCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByTagsNext operation. */ -export type PolicyGetResponse = PolicyContract & PolicyGetHeaders & { +export type ApiListByTagsNextResponse = TagResourceCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: PolicyGetHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagResourceCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ApiRevisionListByServiceResponse = ApiRevisionCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { /** * The response body as text (string format) */ @@ -9045,14 +9937,14 @@ export type PolicyGetResponse = PolicyContract & PolicyGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: ApiRevisionCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServiceNext operation. */ -export type PolicyCreateOrUpdateResponse = PolicyContract & { +export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection & { /** * The underlying HTTP response. */ @@ -9064,14 +9956,14 @@ export type PolicyCreateOrUpdateResponse = PolicyContract & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: ApiRevisionCollection; }; }; /** * Contains response data for the listByService operation. */ -export type PolicySnippetsListByServiceResponse = PolicySnippetsCollection & { +export type ApiReleaseListByServiceResponse = ApiReleaseCollection & { /** * The underlying HTTP response. */ @@ -9083,18 +9975,37 @@ export type PolicySnippetsListByServiceResponse = PolicySnippetsCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicySnippetsCollection; + parsedBody: ApiReleaseCollection; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the getEntityTag operation. + */ +export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiReleaseGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. */ -export type RegionsListByServiceResponse = RegionListResult & { +export type ApiReleaseGetResponse = ApiReleaseContract & ApiReleaseGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiReleaseGetHeaders; /** * The response body as text (string format) */ @@ -9102,14 +10013,37 @@ export type RegionsListByServiceResponse = RegionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RegionListResult; + parsedBody: ApiReleaseContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ApiReleaseCreateOrUpdateResponse = ApiReleaseContract & ApiReleaseCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiReleaseCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApiReleaseContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type RegionsListByServiceNextResponse = RegionListResult & { +export type ApiReleaseListByServiceNextResponse = ApiReleaseCollection & { /** * The underlying HTTP response. */ @@ -9121,14 +10055,14 @@ export type RegionsListByServiceNextResponse = RegionListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: RegionListResult; + parsedBody: ApiReleaseCollection; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the listByApi operation. */ -export type ApiListByServiceResponse = ApiCollection & { +export type ApiOperationListByApiResponse = OperationCollection & { /** * The underlying HTTP response. */ @@ -9140,14 +10074,14 @@ export type ApiListByServiceResponse = ApiCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiCollection; + parsedBody: OperationCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders & { +export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -9155,14 +10089,14 @@ export type ApiGetEntityTagResponse = ApiGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ApiGetEntityTagHeaders; + parsedHeaders: ApiOperationGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type ApiGetResponse = ApiContract & ApiGetHeaders & { +export type ApiOperationGetResponse = OperationContract & ApiOperationGetHeaders & { /** * The underlying HTTP response. */ @@ -9170,7 +10104,7 @@ export type ApiGetResponse = ApiContract & ApiGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ApiGetHeaders; + parsedHeaders: ApiOperationGetHeaders; /** * The response body as text (string format) */ @@ -9178,14 +10112,14 @@ export type ApiGetResponse = ApiContract & ApiGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiContract; + parsedBody: OperationContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ApiCreateOrUpdateResponse = ApiContract & ApiCreateOrUpdateHeaders & { +export type ApiOperationCreateOrUpdateResponse = OperationContract & ApiOperationCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ @@ -9193,7 +10127,7 @@ export type ApiCreateOrUpdateResponse = ApiContract & ApiCreateOrUpdateHeaders & /** * The parsed HTTP response headers. */ - parsedHeaders: ApiCreateOrUpdateHeaders; + parsedHeaders: ApiOperationCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -9201,14 +10135,14 @@ export type ApiCreateOrUpdateResponse = ApiContract & ApiCreateOrUpdateHeaders & /** * The response body as parsed JSON or XML */ - parsedBody: ApiContract; + parsedBody: OperationContract; }; }; /** - * Contains response data for the listByTags operation. + * Contains response data for the listByApiNext operation. */ -export type ApiListByTagsResponse = TagResourceCollection & { +export type ApiOperationListByApiNextResponse = OperationCollection & { /** * The underlying HTTP response. */ @@ -9220,14 +10154,14 @@ export type ApiListByTagsResponse = TagResourceCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagResourceCollection; + parsedBody: OperationCollection; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the listByOperation operation. */ -export type ApiListByServiceNextResponse = ApiCollection & { +export type ApiOperationPolicyListByOperationResponse = PolicyCollection & { /** * The underlying HTTP response. */ @@ -9239,37 +10173,37 @@ export type ApiListByServiceNextResponse = ApiCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiCollection; + parsedBody: PolicyCollection; }; }; /** - * Contains response data for the listByTagsNext operation. + * Contains response data for the getEntityTag operation. */ -export type ApiListByTagsNextResponse = TagResourceCollection & { +export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders & { /** * 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: TagResourceCollection; + parsedHeaders: ApiOperationPolicyGetEntityTagHeaders; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ApiRevisionsListResponse = ApiRevisionCollection & { +export type ApiOperationPolicyGetResponse = PolicyContract & ApiOperationPolicyGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiOperationPolicyGetHeaders; /** * The response body as text (string format) */ @@ -9277,18 +10211,22 @@ export type ApiRevisionsListResponse = ApiRevisionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiRevisionCollection; + parsedBody: PolicyContract; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ApiRevisionsListNextResponse = ApiRevisionCollection & { +export type ApiOperationPolicyCreateOrUpdateResponse = PolicyContract & ApiOperationPolicyCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiOperationPolicyCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -9296,14 +10234,14 @@ export type ApiRevisionsListNextResponse = ApiRevisionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiRevisionCollection; + parsedBody: PolicyContract; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByOperation operation. */ -export type ApiReleaseListResponse = ApiReleaseCollection & { +export type TagListByOperationResponse = TagCollection & { /** * The underlying HTTP response. */ @@ -9315,14 +10253,14 @@ export type ApiReleaseListResponse = ApiReleaseCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiReleaseCollection; + parsedBody: TagCollection; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the getEntityStateByOperation operation. */ -export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders & { +export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders & { /** * The underlying HTTP response. */ @@ -9330,18 +10268,22 @@ export type ApiReleaseGetEntityTagResponse = ApiReleaseGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ApiReleaseGetEntityTagHeaders; + parsedHeaders: TagGetEntityStateByOperationHeaders; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getByOperation operation. */ -export type ApiReleaseGetResponse = ApiReleaseContract & { +export type TagGetByOperationResponse = TagContract & TagGetByOperationHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetByOperationHeaders; /** * The response body as text (string format) */ @@ -9349,14 +10291,14 @@ export type ApiReleaseGetResponse = ApiReleaseContract & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiReleaseContract; + parsedBody: TagContract; }; }; /** - * Contains response data for the create operation. + * Contains response data for the assignToOperation operation. */ -export type ApiReleaseCreateResponse = ApiReleaseContract & { +export type TagAssignToOperationResponse = TagContract & { /** * The underlying HTTP response. */ @@ -9368,14 +10310,14 @@ export type ApiReleaseCreateResponse = ApiReleaseContract & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiReleaseContract; + parsedBody: TagContract; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByApi operation. */ -export type ApiReleaseListNextResponse = ApiReleaseCollection & { +export type TagListByApiResponse = TagCollection & { /** * The underlying HTTP response. */ @@ -9387,18 +10329,37 @@ export type ApiReleaseListNextResponse = ApiReleaseCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiReleaseCollection; + parsedBody: TagCollection; }; }; /** - * Contains response data for the listByApi operation. + * Contains response data for the getEntityStateByApi operation. */ -export type ApiOperationListByApiResponse = OperationCollection & { +export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetEntityStateByApiHeaders; + }; +}; + +/** + * Contains response data for the getByApi operation. + */ +export type TagGetByApiResponse = TagContract & TagGetByApiHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetByApiHeaders; /** * The response body as text (string format) */ @@ -9406,14 +10367,14 @@ export type ApiOperationListByApiResponse = OperationCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationCollection; + parsedBody: TagContract; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the assignToApi operation. */ -export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders & { +export type TagAssignToApiResponse = TagContract & TagAssignToApiHeaders & { /** * The underlying HTTP response. */ @@ -9421,22 +10382,26 @@ export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders & /** * The parsed HTTP response headers. */ - parsedHeaders: ApiOperationGetEntityTagHeaders; + parsedHeaders: TagAssignToApiHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagContract; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByProduct operation. */ -export type ApiOperationGetResponse = OperationContract & ApiOperationGetHeaders & { +export type TagListByProductResponse = TagCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApiOperationGetHeaders; /** * The response body as text (string format) */ @@ -9444,18 +10409,37 @@ export type ApiOperationGetResponse = OperationContract & ApiOperationGetHeaders /** * The response body as parsed JSON or XML */ - parsedBody: OperationContract; + parsedBody: TagCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the getEntityStateByProduct operation. + */ +export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetEntityStateByProductHeaders; + }; +}; + +/** + * Contains response data for the getByProduct operation. */ -export type ApiOperationCreateOrUpdateResponse = OperationContract & { +export type TagGetByProductResponse = TagContract & TagGetByProductHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetByProductHeaders; /** * The response body as text (string format) */ @@ -9463,14 +10447,14 @@ export type ApiOperationCreateOrUpdateResponse = OperationContract & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationContract; + parsedBody: TagContract; }; }; /** - * Contains response data for the listByApiNext operation. + * Contains response data for the assignToProduct operation. */ -export type ApiOperationListByApiNextResponse = OperationCollection & { +export type TagAssignToProductResponse = TagContract & { /** * The underlying HTTP response. */ @@ -9482,14 +10466,14 @@ export type ApiOperationListByApiNextResponse = OperationCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationCollection; + parsedBody: TagContract; }; }; /** - * Contains response data for the listByOperation operation. + * Contains response data for the listByService operation. */ -export type ApiOperationPolicyListByOperationResponse = PolicyCollection & { +export type TagListByServiceResponse = TagCollection & { /** * The underlying HTTP response. */ @@ -9501,14 +10485,14 @@ export type ApiOperationPolicyListByOperationResponse = PolicyCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyCollection; + parsedBody: TagCollection; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the getEntityState operation. */ -export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders & { +export type TagGetEntityStateResponse = TagGetEntityStateHeaders & { /** * The underlying HTTP response. */ @@ -9516,14 +10500,14 @@ export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntity /** * The parsed HTTP response headers. */ - parsedHeaders: ApiOperationPolicyGetEntityTagHeaders; + parsedHeaders: TagGetEntityStateHeaders; }; }; /** * Contains response data for the get operation. */ -export type ApiOperationPolicyGetResponse = PolicyContract & ApiOperationPolicyGetHeaders & { +export type TagGetResponse = TagContract & TagGetHeaders & { /** * The underlying HTTP response. */ @@ -9531,7 +10515,7 @@ export type ApiOperationPolicyGetResponse = PolicyContract & ApiOperationPolicyG /** * The parsed HTTP response headers. */ - parsedHeaders: ApiOperationPolicyGetHeaders; + parsedHeaders: TagGetHeaders; /** * The response body as text (string format) */ @@ -9539,18 +10523,22 @@ export type ApiOperationPolicyGetResponse = PolicyContract & ApiOperationPolicyG /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: TagContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ApiOperationPolicyCreateOrUpdateResponse = PolicyContract & { +export type TagCreateOrUpdateResponse = TagContract & TagCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -9558,14 +10546,14 @@ export type ApiOperationPolicyCreateOrUpdateResponse = PolicyContract & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: TagContract; }; }; /** - * Contains response data for the listByApis operation. + * Contains response data for the listByOperationNext operation. */ -export type ApiProductListByApisResponse = ProductCollection & { +export type TagListByOperationNextResponse = TagCollection & { /** * The underlying HTTP response. */ @@ -9577,14 +10565,14 @@ export type ApiProductListByApisResponse = ProductCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ProductCollection; + parsedBody: TagCollection; }; }; /** - * Contains response data for the listByApisNext operation. + * Contains response data for the listByApiNext operation. */ -export type ApiProductListByApisNextResponse = ProductCollection & { +export type TagListByApiNextResponse = TagCollection & { /** * The underlying HTTP response. */ @@ -9596,22 +10584,18 @@ export type ApiProductListByApisNextResponse = ProductCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ProductCollection; + parsedBody: TagCollection; }; }; /** - * Contains response data for the listByApi operation. + * Contains response data for the listByProductNext operation. */ -export type ApiPolicyListByApiResponse = PolicyCollection & ApiPolicyListByApiHeaders & { +export type TagListByProductNextResponse = TagCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApiPolicyListByApiHeaders; /** * The response body as text (string format) */ @@ -9619,37 +10603,37 @@ export type ApiPolicyListByApiResponse = PolicyCollection & ApiPolicyListByApiHe /** * The response body as parsed JSON or XML */ - parsedBody: PolicyCollection; + parsedBody: TagCollection; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the listByServiceNext operation. */ -export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders & { +export type TagListByServiceNextResponse = TagCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: ApiPolicyGetEntityTagHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByApis operation. */ -export type ApiPolicyGetResponse = PolicyContract & ApiPolicyGetHeaders & { +export type ApiProductListByApisResponse = ProductCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApiPolicyGetHeaders; /** * The response body as text (string format) */ @@ -9657,14 +10641,14 @@ export type ApiPolicyGetResponse = PolicyContract & ApiPolicyGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: ProductCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByApisNext operation. */ -export type ApiPolicyCreateOrUpdateResponse = PolicyContract & { +export type ApiProductListByApisNextResponse = ProductCollection & { /** * The underlying HTTP response. */ @@ -9676,22 +10660,18 @@ export type ApiPolicyCreateOrUpdateResponse = PolicyContract & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: ProductCollection; }; }; /** * Contains response data for the listByApi operation. */ -export type ApiSchemaListByApiResponse = SchemaCollection & ApiSchemaListByApiHeaders & { +export type ApiPolicyListByApiResponse = PolicyCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApiSchemaListByApiHeaders; /** * The response body as text (string format) */ @@ -9699,14 +10679,14 @@ export type ApiSchemaListByApiResponse = SchemaCollection & ApiSchemaListByApiHe /** * The response body as parsed JSON or XML */ - parsedBody: SchemaCollection; + parsedBody: PolicyCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders & { +export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -9714,14 +10694,14 @@ export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ApiSchemaGetEntityTagHeaders; + parsedHeaders: ApiPolicyGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type ApiSchemaGetResponse = SchemaContract & ApiSchemaGetHeaders & { +export type ApiPolicyGetResponse = PolicyContract & ApiPolicyGetHeaders & { /** * The underlying HTTP response. */ @@ -9729,7 +10709,7 @@ export type ApiSchemaGetResponse = SchemaContract & ApiSchemaGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: ApiSchemaGetHeaders; + parsedHeaders: ApiPolicyGetHeaders; /** * The response body as text (string format) */ @@ -9737,18 +10717,22 @@ export type ApiSchemaGetResponse = SchemaContract & ApiSchemaGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: SchemaContract; + parsedBody: PolicyContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ApiSchemaCreateOrUpdateResponse = SchemaContract & { +export type ApiPolicyCreateOrUpdateResponse = PolicyContract & ApiPolicyCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiPolicyCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -9756,14 +10740,14 @@ export type ApiSchemaCreateOrUpdateResponse = SchemaContract & { /** * The response body as parsed JSON or XML */ - parsedBody: SchemaContract; + parsedBody: PolicyContract; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the listByApi operation. */ -export type ApiDiagnosticListByServiceResponse = DiagnosticCollection & { +export type ApiSchemaListByApiResponse = SchemaCollection & { /** * The underlying HTTP response. */ @@ -9775,14 +10759,14 @@ export type ApiDiagnosticListByServiceResponse = DiagnosticCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticCollection; + parsedBody: SchemaCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders & { +export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -9790,14 +10774,14 @@ export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders /** * The parsed HTTP response headers. */ - parsedHeaders: ApiDiagnosticGetEntityTagHeaders; + parsedHeaders: ApiSchemaGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type ApiDiagnosticGetResponse = DiagnosticContract & ApiDiagnosticGetHeaders & { +export type ApiSchemaGetResponse = SchemaContract & ApiSchemaGetHeaders & { /** * The underlying HTTP response. */ @@ -9805,7 +10789,7 @@ export type ApiDiagnosticGetResponse = DiagnosticContract & ApiDiagnosticGetHead /** * The parsed HTTP response headers. */ - parsedHeaders: ApiDiagnosticGetHeaders; + parsedHeaders: ApiSchemaGetHeaders; /** * The response body as text (string format) */ @@ -9813,18 +10797,22 @@ export type ApiDiagnosticGetResponse = DiagnosticContract & ApiDiagnosticGetHead /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticContract; + parsedBody: SchemaContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ApiDiagnosticCreateOrUpdateResponse = DiagnosticContract & { +export type ApiSchemaCreateOrUpdateResponse = SchemaContract & ApiSchemaCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiSchemaCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -9832,14 +10820,14 @@ export type ApiDiagnosticCreateOrUpdateResponse = DiagnosticContract & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticContract; + parsedBody: SchemaContract; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the listByApiNext operation. */ -export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection & { +export type ApiSchemaListByApiNextResponse = SchemaCollection & { /** * The underlying HTTP response. */ @@ -9851,14 +10839,14 @@ export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticCollection; + parsedBody: SchemaCollection; }; }; /** * Contains response data for the listByService operation. */ -export type ApiDiagnosticLoggerListByServiceResponse = LoggerCollection & { +export type ApiDiagnosticListByServiceResponse = DiagnosticCollection & { /** * The underlying HTTP response. */ @@ -9870,22 +10858,37 @@ export type ApiDiagnosticLoggerListByServiceResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: DiagnosticCollection; }; }; /** - * Contains response data for the checkEntityExists operation. + * Contains response data for the getEntityTag operation. */ -export type ApiDiagnosticLoggerCheckEntityExistsResponse = { +export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: boolean; + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiDiagnosticGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiDiagnosticGetResponse = DiagnosticContract & ApiDiagnosticGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiDiagnosticGetHeaders; /** * The response body as text (string format) */ @@ -9893,18 +10896,22 @@ export type ApiDiagnosticLoggerCheckEntityExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: DiagnosticContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ApiDiagnosticLoggerCreateOrUpdateResponse = LoggerContract & { +export type ApiDiagnosticCreateOrUpdateResponse = DiagnosticContract & ApiDiagnosticCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiDiagnosticCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -9912,14 +10919,14 @@ export type ApiDiagnosticLoggerCreateOrUpdateResponse = LoggerContract & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerContract; + parsedBody: DiagnosticContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type ApiDiagnosticLoggerListByServiceNextResponse = LoggerCollection & { +export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection & { /** * The underlying HTTP response. */ @@ -9931,7 +10938,7 @@ export type ApiDiagnosticLoggerListByServiceNextResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: DiagnosticCollection; }; }; @@ -9995,11 +11002,15 @@ export type ApiIssueGetResponse = IssueContract & ApiIssueGetHeaders & { /** * Contains response data for the createOrUpdate operation. */ -export type ApiIssueCreateOrUpdateResponse = IssueContract & { +export type ApiIssueCreateOrUpdateResponse = IssueContract & ApiIssueCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10090,11 +11101,15 @@ export type ApiIssueCommentGetResponse = IssueCommentContract & ApiIssueCommentG /** * Contains response data for the createOrUpdate operation. */ -export type ApiIssueCommentCreateOrUpdateResponse = IssueCommentContract & { +export type ApiIssueCommentCreateOrUpdateResponse = IssueCommentContract & ApiIssueCommentCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueCommentCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10185,11 +11200,15 @@ export type ApiIssueAttachmentGetResponse = IssueAttachmentContract & ApiIssueAt /** * Contains response data for the createOrUpdate operation. */ -export type ApiIssueAttachmentCreateOrUpdateResponse = IssueAttachmentContract & { +export type ApiIssueAttachmentCreateOrUpdateResponse = IssueAttachmentContract & ApiIssueAttachmentCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueAttachmentCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10223,7 +11242,7 @@ export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollect /** * Contains response data for the listByService operation. */ -export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection & { +export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection & { /** * The underlying HTTP response. */ @@ -10235,14 +11254,14 @@ export type AuthorizationServerListByServiceResponse = AuthorizationServerCollec /** * The response body as parsed JSON or XML */ - parsedBody: AuthorizationServerCollection; + parsedBody: TagDescriptionCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders & { +export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -10250,14 +11269,14 @@ export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEnti /** * The parsed HTTP response headers. */ - parsedHeaders: AuthorizationServerGetEntityTagHeaders; + parsedHeaders: ApiTagDescriptionGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type AuthorizationServerGetResponse = AuthorizationServerContract & AuthorizationServerGetHeaders & { +export type ApiTagDescriptionGetResponse = TagDescriptionContract & ApiTagDescriptionGetHeaders & { /** * The underlying HTTP response. */ @@ -10265,7 +11284,7 @@ export type AuthorizationServerGetResponse = AuthorizationServerContract & Autho /** * The parsed HTTP response headers. */ - parsedHeaders: AuthorizationServerGetHeaders; + parsedHeaders: ApiTagDescriptionGetHeaders; /** * The response body as text (string format) */ @@ -10273,56 +11292,22 @@ export type AuthorizationServerGetResponse = AuthorizationServerContract & Autho /** * The response body as parsed JSON or XML */ - parsedBody: AuthorizationServerContract; + parsedBody: TagDescriptionContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerContract & { - /** - * 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: AuthorizationServerContract; - }; -}; - -/** - * Contains response data for the listByServiceNext operation. - */ -export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection & { +export type ApiTagDescriptionCreateOrUpdateResponse = TagDescriptionContract & ApiTagDescriptionCreateOrUpdateHeaders & { /** * 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: AuthorizationServerCollection; - }; -}; - -/** - * Contains response data for the listByService operation. - */ -export type BackendListByServiceResponse = BackendCollection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { + parsedHeaders: ApiTagDescriptionCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10330,37 +11315,18 @@ export type BackendListByServiceResponse = BackendCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: BackendCollection; - }; -}; - -/** - * Contains response data for the getEntityTag operation. - */ -export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BackendGetEntityTagHeaders; + parsedBody: TagDescriptionContract; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServiceNext operation. */ -export type BackendGetResponse = BackendContract & BackendGetHeaders & { +export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: BackendGetHeaders; /** * The response body as text (string format) */ @@ -10368,14 +11334,14 @@ export type BackendGetResponse = BackendContract & BackendGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: BackendContract; + parsedBody: TagDescriptionCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByTags operation. */ -export type BackendCreateOrUpdateResponse = BackendContract & { +export type OperationListByTagsResponse = TagResourceCollection & { /** * The underlying HTTP response. */ @@ -10387,14 +11353,14 @@ export type BackendCreateOrUpdateResponse = BackendContract & { /** * The response body as parsed JSON or XML */ - parsedBody: BackendContract; + parsedBody: TagResourceCollection; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the listByTagsNext operation. */ -export type BackendListByServiceNextResponse = BackendCollection & { +export type OperationListByTagsNextResponse = TagResourceCollection & { /** * The underlying HTTP response. */ @@ -10406,14 +11372,14 @@ export type BackendListByServiceNextResponse = BackendCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: BackendCollection; + parsedBody: TagResourceCollection; }; }; /** * Contains response data for the listByService operation. */ -export type CertificateListByServiceResponse = CertificateCollection & { +export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection & { /** * The underlying HTTP response. */ @@ -10425,14 +11391,14 @@ export type CertificateListByServiceResponse = CertificateCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: CertificateCollection; + parsedBody: ApiVersionSetCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders & { +export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -10440,14 +11406,14 @@ export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: CertificateGetEntityTagHeaders; + parsedHeaders: ApiVersionSetGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type CertificateGetResponse = CertificateContract & CertificateGetHeaders & { +export type ApiVersionSetGetResponse = ApiVersionSetContract & ApiVersionSetGetHeaders & { /** * The underlying HTTP response. */ @@ -10455,7 +11421,7 @@ export type CertificateGetResponse = CertificateContract & CertificateGetHeaders /** * The parsed HTTP response headers. */ - parsedHeaders: CertificateGetHeaders; + parsedHeaders: ApiVersionSetGetHeaders; /** * The response body as text (string format) */ @@ -10463,18 +11429,22 @@ export type CertificateGetResponse = CertificateContract & CertificateGetHeaders /** * The response body as parsed JSON or XML */ - parsedBody: CertificateContract; + parsedBody: ApiVersionSetContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type CertificateCreateOrUpdateResponse = CertificateContract & { +export type ApiVersionSetCreateOrUpdateResponse = ApiVersionSetContract & ApiVersionSetCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiVersionSetCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10482,14 +11452,14 @@ export type CertificateCreateOrUpdateResponse = CertificateContract & { /** * The response body as parsed JSON or XML */ - parsedBody: CertificateContract; + parsedBody: ApiVersionSetContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type CertificateListByServiceNextResponse = CertificateCollection & { +export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection & { /** * The underlying HTTP response. */ @@ -10501,14 +11471,14 @@ export type CertificateListByServiceNextResponse = CertificateCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: CertificateCollection; + parsedBody: ApiVersionSetCollection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByService operation. */ -export type ApiManagementOperationsListResponse = OperationListResult & { +export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection & { /** * The underlying HTTP response. */ @@ -10520,37 +11490,37 @@ export type ApiManagementOperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: AuthorizationServerCollection; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the getEntityTag operation. */ -export type ApiManagementOperationsListNextResponse = OperationListResult & { +export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders & { /** * 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: OperationListResult; + parsedHeaders: AuthorizationServerGetEntityTagHeaders; }; }; /** - * Contains response data for the restore operation. + * Contains response data for the get operation. */ -export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource & { +export type AuthorizationServerGetResponse = AuthorizationServerContract & AuthorizationServerGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AuthorizationServerGetHeaders; /** * The response body as text (string format) */ @@ -10558,18 +11528,22 @@ export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource & /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: AuthorizationServerContract; }; }; /** - * Contains response data for the backup operation. + * Contains response data for the createOrUpdate operation. */ -export type ApiManagementServiceBackupResponse = ApiManagementServiceResource & { +export type AuthorizationServerCreateOrUpdateResponse = AuthorizationServerContract & AuthorizationServerCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AuthorizationServerCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10577,14 +11551,14 @@ export type ApiManagementServiceBackupResponse = ApiManagementServiceResource & /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: AuthorizationServerContract; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServiceNext operation. */ -export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource & { +export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection & { /** * The underlying HTTP response. */ @@ -10596,14 +11570,14 @@ export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceRes /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: AuthorizationServerCollection; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listByService operation. */ -export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource & { +export type BackendListByServiceResponse = BackendCollection & { /** * The underlying HTTP response. */ @@ -10615,37 +11589,37 @@ export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource & /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: BackendCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getEntityTag operation. */ -export type ApiManagementServiceGetResponse = ApiManagementServiceResource & { +export type BackendGetEntityTagResponse = BackendGetEntityTagHeaders & { /** * 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: ApiManagementServiceResource; + parsedHeaders: BackendGetEntityTagHeaders; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the get operation. */ -export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult & { +export type BackendGetResponse = BackendContract & BackendGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BackendGetHeaders; /** * The response body as text (string format) */ @@ -10653,18 +11627,22 @@ export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServi /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceListResult; + parsedBody: BackendContract; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createOrUpdate operation. */ -export type ApiManagementServiceListResponse = ApiManagementServiceListResult & { +export type BackendCreateOrUpdateResponse = BackendContract & BackendCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: BackendCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10672,14 +11650,14 @@ export type ApiManagementServiceListResponse = ApiManagementServiceListResult & /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceListResult; + parsedBody: BackendContract; }; }; /** - * Contains response data for the getSsoToken operation. + * Contains response data for the listByServiceNext operation. */ -export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult & { +export type BackendListByServiceNextResponse = BackendCollection & { /** * The underlying HTTP response. */ @@ -10691,14 +11669,14 @@ export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSso /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceGetSsoTokenResult; + parsedBody: BackendCollection; }; }; /** - * Contains response data for the checkNameAvailability operation. + * Contains response data for the listByService operation. */ -export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult & { +export type CacheListByServiceResponse = CacheCollection & { /** * The underlying HTTP response. */ @@ -10710,37 +11688,37 @@ export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementSer /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceNameAvailabilityResult; + parsedBody: CacheCollection; }; }; /** - * Contains response data for the applyNetworkConfigurationUpdates operation. + * Contains response data for the getEntityTag operation. */ -export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource & { +export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders & { /** * 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: ApiManagementServiceResource; + parsedHeaders: CacheGetEntityTagHeaders; }; }; /** - * Contains response data for the uploadCertificate operation. + * Contains response data for the get operation. */ -export type ApiManagementServiceUploadCertificateResponse = CertificateInformation & { +export type CacheGetResponse = CacheContract & CacheGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CacheGetHeaders; /** * The response body as text (string format) */ @@ -10748,18 +11726,22 @@ export type ApiManagementServiceUploadCertificateResponse = CertificateInformati /** * The response body as parsed JSON or XML */ - parsedBody: CertificateInformation; + parsedBody: CacheContract; }; }; /** - * Contains response data for the updateHostname operation. + * Contains response data for the createOrUpdate operation. */ -export type ApiManagementServiceUpdateHostnameResponse = ApiManagementServiceResource & { +export type CacheCreateOrUpdateResponse = CacheContract & CacheCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CacheCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10767,14 +11749,14 @@ export type ApiManagementServiceUpdateHostnameResponse = ApiManagementServiceRes /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: CacheContract; }; }; /** - * Contains response data for the beginRestore operation. + * Contains response data for the listByServiceNext operation. */ -export type ApiManagementServiceBeginRestoreResponse = ApiManagementServiceResource & { +export type CacheListByServiceNextResponse = CacheCollection & { /** * The underlying HTTP response. */ @@ -10786,14 +11768,14 @@ export type ApiManagementServiceBeginRestoreResponse = ApiManagementServiceResou /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: CacheCollection; }; }; /** - * Contains response data for the beginBackup operation. + * Contains response data for the listByService operation. */ -export type ApiManagementServiceBeginBackupResponse = ApiManagementServiceResource & { +export type CertificateListByServiceResponse = CertificateCollection & { /** * The underlying HTTP response. */ @@ -10805,37 +11787,37 @@ export type ApiManagementServiceBeginBackupResponse = ApiManagementServiceResour /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: CertificateCollection; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the getEntityTag operation. */ -export type ApiManagementServiceBeginCreateOrUpdateResponse = ApiManagementServiceResource & { +export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders & { /** * 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: ApiManagementServiceResource; + parsedHeaders: CertificateGetEntityTagHeaders; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the get operation. */ -export type ApiManagementServiceBeginUpdateResponse = ApiManagementServiceResource & { +export type CertificateGetResponse = CertificateContract & CertificateGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CertificateGetHeaders; /** * The response body as text (string format) */ @@ -10843,18 +11825,22 @@ export type ApiManagementServiceBeginUpdateResponse = ApiManagementServiceResour /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: CertificateContract; }; }; /** - * Contains response data for the beginApplyNetworkConfigurationUpdates operation. + * Contains response data for the createOrUpdate operation. */ -export type ApiManagementServiceBeginApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource & { +export type CertificateCreateOrUpdateResponse = CertificateContract & CertificateCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CertificateCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -10862,14 +11848,14 @@ export type ApiManagementServiceBeginApplyNetworkConfigurationUpdatesResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: CertificateContract; }; }; /** - * Contains response data for the beginUpdateHostname operation. + * Contains response data for the listByServiceNext operation. */ -export type ApiManagementServiceBeginUpdateHostnameResponse = ApiManagementServiceResource & { +export type CertificateListByServiceNextResponse = CertificateCollection & { /** * The underlying HTTP response. */ @@ -10881,14 +11867,14 @@ export type ApiManagementServiceBeginUpdateHostnameResponse = ApiManagementServi /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceResource; + parsedBody: CertificateCollection; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the list operation. */ -export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult & { +export type ApiManagementOperationsListResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -10900,14 +11886,14 @@ export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementS /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceListResult; + parsedBody: OperationListResult; }; }; /** * Contains response data for the listNext operation. */ -export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult & { +export type ApiManagementOperationsListNextResponse = OperationListResult & { /** * The underlying HTTP response. */ @@ -10919,14 +11905,14 @@ export type ApiManagementServiceListNextResponse = ApiManagementServiceListResul /** * The response body as parsed JSON or XML */ - parsedBody: ApiManagementServiceListResult; + parsedBody: OperationListResult; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the listAvailableServiceSkus operation. */ -export type DiagnosticListByServiceResponse = DiagnosticCollection & { +export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults & { /** * The underlying HTTP response. */ @@ -10938,37 +11924,18 @@ export type DiagnosticListByServiceResponse = DiagnosticCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticCollection; - }; -}; - -/** - * Contains response data for the getEntityTag operation. - */ -export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DiagnosticGetEntityTagHeaders; + parsedBody: ResourceSkuResults; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listAvailableServiceSkusNext operation. */ -export type DiagnosticGetResponse = DiagnosticContract & DiagnosticGetHeaders & { +export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DiagnosticGetHeaders; /** * The response body as text (string format) */ @@ -10976,14 +11943,14 @@ export type DiagnosticGetResponse = DiagnosticContract & DiagnosticGetHeaders & /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticContract; + parsedBody: ResourceSkuResults; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the restore operation. */ -export type DiagnosticCreateOrUpdateResponse = DiagnosticContract & { +export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -10995,14 +11962,14 @@ export type DiagnosticCreateOrUpdateResponse = DiagnosticContract & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticContract; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the backup operation. */ -export type DiagnosticListByServiceNextResponse = DiagnosticCollection & { +export type ApiManagementServiceBackupResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11014,14 +11981,14 @@ export type DiagnosticListByServiceNextResponse = DiagnosticCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: DiagnosticCollection; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the createOrUpdate operation. */ -export type DiagnosticLoggerListByServiceResponse = LoggerCollection & { +export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11033,18 +12000,14 @@ export type DiagnosticLoggerListByServiceResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the checkEntityExists operation. + * Contains response data for the update operation. */ -export type DiagnosticLoggerCheckEntityExistsResponse = { - /** - * The parsed response body. - */ - body: boolean; +export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11056,14 +12019,14 @@ export type DiagnosticLoggerCheckEntityExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type DiagnosticLoggerCreateOrUpdateResponse = LoggerContract & { +export type ApiManagementServiceGetResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11075,14 +12038,14 @@ export type DiagnosticLoggerCreateOrUpdateResponse = LoggerContract & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerContract; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the deleteMethod operation. */ -export type DiagnosticLoggerListByServiceNextResponse = LoggerCollection & { +export type ApiManagementServiceDeleteMethodResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11094,14 +12057,14 @@ export type DiagnosticLoggerListByServiceNextResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the listByResourceGroup operation. */ -export type EmailTemplateListByServiceResponse = EmailTemplateCollection & { +export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult & { /** * The underlying HTTP response. */ @@ -11113,37 +12076,18 @@ export type EmailTemplateListByServiceResponse = EmailTemplateCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EmailTemplateCollection; - }; -}; - -/** - * Contains response data for the getEntityTag operation. - */ -export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: EmailTemplateGetEntityTagHeaders; + parsedBody: ApiManagementServiceListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type EmailTemplateGetResponse = EmailTemplateContract & EmailTemplateGetHeaders & { +export type ApiManagementServiceListResponse = ApiManagementServiceListResult & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: EmailTemplateGetHeaders; /** * The response body as text (string format) */ @@ -11151,14 +12095,14 @@ export type EmailTemplateGetResponse = EmailTemplateContract & EmailTemplateGetH /** * The response body as parsed JSON or XML */ - parsedBody: EmailTemplateContract; + parsedBody: ApiManagementServiceListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the getSsoToken operation. */ -export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract & { +export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult & { /** * The underlying HTTP response. */ @@ -11170,14 +12114,14 @@ export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract & { /** * The response body as parsed JSON or XML */ - parsedBody: EmailTemplateContract; + parsedBody: ApiManagementServiceGetSsoTokenResult; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the checkNameAvailability operation. */ -export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection & { +export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult & { /** * The underlying HTTP response. */ @@ -11189,14 +12133,14 @@ export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: EmailTemplateCollection; + parsedBody: ApiManagementServiceNameAvailabilityResult; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the applyNetworkConfigurationUpdates operation. */ -export type GroupListByServiceResponse = GroupCollection & { +export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11208,37 +12152,37 @@ export type GroupListByServiceResponse = GroupCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupCollection; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the beginRestore operation. */ -export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders & { +export type ApiManagementServiceBeginRestoreResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: GroupGetEntityTagHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginBackup operation. */ -export type GroupGetResponse = GroupContract & GroupGetHeaders & { +export type ApiManagementServiceBeginBackupResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: GroupGetHeaders; /** * The response body as text (string format) */ @@ -11246,14 +12190,14 @@ export type GroupGetResponse = GroupContract & GroupGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupContract; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type GroupCreateOrUpdateResponse = GroupContract & { +export type ApiManagementServiceBeginCreateOrUpdateResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11265,14 +12209,14 @@ export type GroupCreateOrUpdateResponse = GroupContract & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupContract; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the beginUpdate operation. */ -export type GroupListByServiceNextResponse = GroupCollection & { +export type ApiManagementServiceBeginUpdateResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11284,14 +12228,14 @@ export type GroupListByServiceNextResponse = GroupCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupCollection; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginDeleteMethod operation. */ -export type GroupUserListResponse = UserCollection & { +export type ApiManagementServiceBeginDeleteMethodResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11303,18 +12247,14 @@ export type GroupUserListResponse = UserCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: UserCollection; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the checkEntityExists operation. + * Contains response data for the beginApplyNetworkConfigurationUpdates operation. */ -export type GroupUserCheckEntityExistsResponse = { - /** - * The parsed response body. - */ - body: boolean; +export type ApiManagementServiceBeginApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource & { /** * The underlying HTTP response. */ @@ -11326,14 +12266,14 @@ export type GroupUserCheckEntityExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: ApiManagementServiceResource; }; }; /** - * Contains response data for the create operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type GroupUserCreateResponse = UserContract & { +export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult & { /** * The underlying HTTP response. */ @@ -11345,14 +12285,14 @@ export type GroupUserCreateResponse = UserContract & { /** * The response body as parsed JSON or XML */ - parsedBody: UserContract; + parsedBody: ApiManagementServiceListResult; }; }; /** * Contains response data for the listNext operation. */ -export type GroupUserListNextResponse = UserCollection & { +export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult & { /** * The underlying HTTP response. */ @@ -11364,14 +12304,14 @@ export type GroupUserListNextResponse = UserCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: UserCollection; + parsedBody: ApiManagementServiceListResult; }; }; /** * Contains response data for the listByService operation. */ -export type IdentityProviderListByServiceResponse = IdentityProviderList & { +export type DiagnosticListByServiceResponse = DiagnosticCollection & { /** * The underlying HTTP response. */ @@ -11383,14 +12323,14 @@ export type IdentityProviderListByServiceResponse = IdentityProviderList & { /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderList; + parsedBody: DiagnosticCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders & { +export type DiagnosticGetEntityTagResponse = DiagnosticGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -11398,14 +12338,14 @@ export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagH /** * The parsed HTTP response headers. */ - parsedHeaders: IdentityProviderGetEntityTagHeaders; + parsedHeaders: DiagnosticGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type IdentityProviderGetResponse = IdentityProviderContract & IdentityProviderGetHeaders & { +export type DiagnosticGetResponse = DiagnosticContract & DiagnosticGetHeaders & { /** * The underlying HTTP response. */ @@ -11413,7 +12353,7 @@ export type IdentityProviderGetResponse = IdentityProviderContract & IdentityPro /** * The parsed HTTP response headers. */ - parsedHeaders: IdentityProviderGetHeaders; + parsedHeaders: DiagnosticGetHeaders; /** * The response body as text (string format) */ @@ -11421,18 +12361,22 @@ export type IdentityProviderGetResponse = IdentityProviderContract & IdentityPro /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderContract; + parsedBody: DiagnosticContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type IdentityProviderCreateOrUpdateResponse = IdentityProviderContract & { +export type DiagnosticCreateOrUpdateResponse = DiagnosticContract & DiagnosticCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DiagnosticCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -11440,14 +12384,14 @@ export type IdentityProviderCreateOrUpdateResponse = IdentityProviderContract & /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderContract; + parsedBody: DiagnosticContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type IdentityProviderListByServiceNextResponse = IdentityProviderList & { +export type DiagnosticListByServiceNextResponse = DiagnosticCollection & { /** * The underlying HTTP response. */ @@ -11459,14 +12403,14 @@ export type IdentityProviderListByServiceNextResponse = IdentityProviderList & { /** * The response body as parsed JSON or XML */ - parsedBody: IdentityProviderList; + parsedBody: DiagnosticCollection; }; }; /** * Contains response data for the listByService operation. */ -export type LoggerListByServiceResponse = LoggerCollection & { +export type EmailTemplateListByServiceResponse = EmailTemplateCollection & { /** * The underlying HTTP response. */ @@ -11478,14 +12422,14 @@ export type LoggerListByServiceResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: EmailTemplateCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders & { +export type EmailTemplateGetEntityTagResponse = EmailTemplateGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -11493,14 +12437,14 @@ export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: LoggerGetEntityTagHeaders; + parsedHeaders: EmailTemplateGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type LoggerGetResponse = LoggerContract & LoggerGetHeaders & { +export type EmailTemplateGetResponse = EmailTemplateContract & EmailTemplateGetHeaders & { /** * The underlying HTTP response. */ @@ -11508,7 +12452,7 @@ export type LoggerGetResponse = LoggerContract & LoggerGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: LoggerGetHeaders; + parsedHeaders: EmailTemplateGetHeaders; /** * The response body as text (string format) */ @@ -11516,14 +12460,14 @@ export type LoggerGetResponse = LoggerContract & LoggerGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerContract; + parsedBody: EmailTemplateContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type LoggerCreateOrUpdateResponse = LoggerContract & { +export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract & { /** * The underlying HTTP response. */ @@ -11535,14 +12479,14 @@ export type LoggerCreateOrUpdateResponse = LoggerContract & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerContract; + parsedBody: EmailTemplateContract; }; }; /** * Contains response data for the listByServiceNext operation. */ -export type LoggerListByServiceNextResponse = LoggerCollection & { +export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection & { /** * The underlying HTTP response. */ @@ -11554,14 +12498,14 @@ export type LoggerListByServiceNextResponse = LoggerCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: LoggerCollection; + parsedBody: EmailTemplateCollection; }; }; /** * Contains response data for the listByService operation. */ -export type NotificationListByServiceResponse = NotificationCollection & { +export type GroupListByServiceResponse = GroupCollection & { /** * The underlying HTTP response. */ @@ -11573,56 +12517,37 @@ export type NotificationListByServiceResponse = NotificationCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationCollection; + parsedBody: GroupCollection; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getEntityTag operation. */ -export type NotificationGetResponse = NotificationContract & { +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders & { /** * 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: NotificationContract; + parsedHeaders: GroupGetEntityTagHeaders; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type NotificationCreateOrUpdateResponse = NotificationContract & { +export type GroupGetResponse = GroupContract & GroupGetHeaders & { /** * 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: NotificationContract; - }; -}; - -/** - * Contains response data for the listByServiceNext operation. - */ -export type NotificationListByServiceNextResponse = NotificationCollection & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { + parsedHeaders: GroupGetHeaders; /** * The response body as text (string format) */ @@ -11630,41 +12555,22 @@ export type NotificationListByServiceNextResponse = NotificationCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: NotificationCollection; + parsedBody: GroupContract; }; }; /** - * Contains response data for the listByNotification operation. + * Contains response data for the createOrUpdate operation. */ -export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection & { +export type GroupCreateOrUpdateResponse = GroupContract & GroupCreateOrUpdateHeaders & { /** * 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: RecipientUserCollection; - }; -}; - -/** - * Contains response data for the checkEntityExists operation. - */ -export type NotificationRecipientUserCheckEntityExistsResponse = { - /** - * The parsed response body. - */ - body: boolean; - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { + parsedHeaders: GroupCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -11672,14 +12578,14 @@ export type NotificationRecipientUserCheckEntityExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: GroupContract; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServiceNext operation. */ -export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract & { +export type GroupListByServiceNextResponse = GroupCollection & { /** * The underlying HTTP response. */ @@ -11691,14 +12597,14 @@ export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContr /** * The response body as parsed JSON or XML */ - parsedBody: RecipientUserContract; + parsedBody: GroupCollection; }; }; /** - * Contains response data for the listByNotification operation. + * Contains response data for the list operation. */ -export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection & { +export type GroupUserListResponse = UserCollection & { /** * The underlying HTTP response. */ @@ -11710,14 +12616,14 @@ export type NotificationRecipientEmailListByNotificationResponse = RecipientEmai /** * The response body as parsed JSON or XML */ - parsedBody: RecipientEmailCollection; + parsedBody: UserCollection; }; }; /** * Contains response data for the checkEntityExists operation. */ -export type NotificationRecipientEmailCheckEntityExistsResponse = { +export type GroupUserCheckEntityExistsResponse = { /** * The parsed response body. */ @@ -11738,9 +12644,9 @@ export type NotificationRecipientEmailCheckEntityExistsResponse = { }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the create operation. */ -export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract & { +export type GroupUserCreateResponse = UserContract & { /** * The underlying HTTP response. */ @@ -11752,14 +12658,14 @@ export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailCon /** * The response body as parsed JSON or XML */ - parsedBody: RecipientEmailContract; + parsedBody: UserContract; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the listNext operation. */ -export type NetworkStatusListByServiceResponse = Array & { +export type GroupUserListNextResponse = UserCollection & { /** * The underlying HTTP response. */ @@ -11771,14 +12677,14 @@ export type NetworkStatusListByServiceResponse = Array & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: DelegationSettingsGetHeaders; /** * The response body as text (string format) */ @@ -12037,14 +12955,14 @@ export type DelegationSettingsGetResponse = PortalDelegationSettings & Delegatio /** * The response body as parsed JSON or XML */ - parsedBody: PortalDelegationSettings; + parsedBody: NetworkStatusContractByLocation[]; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByLocation operation. */ -export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings & { +export type NetworkStatusListByLocationResponse = NetworkStatusContract & { /** * The underlying HTTP response. */ @@ -12056,14 +12974,14 @@ export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings /** * The response body as parsed JSON or XML */ - parsedBody: PortalDelegationSettings; + parsedBody: NetworkStatusContract; }; }; /** * Contains response data for the listByService operation. */ -export type ProductListByServiceResponse = ProductCollection & { +export type NotificationListByServiceResponse = NotificationCollection & { /** * The underlying HTTP response. */ @@ -12075,37 +12993,37 @@ export type ProductListByServiceResponse = ProductCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ProductCollection; + parsedBody: NotificationCollection; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the get operation. */ -export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders & { +export type NotificationGetResponse = NotificationContract & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: ProductGetEntityTagHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotificationContract; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type ProductGetResponse = ProductContract & ProductGetHeaders & { +export type NotificationCreateOrUpdateResponse = NotificationContract & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ProductGetHeaders; /** * The response body as text (string format) */ @@ -12113,14 +13031,14 @@ export type ProductGetResponse = ProductContract & ProductGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: ProductContract; + parsedBody: NotificationContract; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByServiceNext operation. */ -export type ProductCreateOrUpdateResponse = ProductContract & { +export type NotificationListByServiceNextResponse = NotificationCollection & { /** * The underlying HTTP response. */ @@ -12132,14 +13050,14 @@ export type ProductCreateOrUpdateResponse = ProductContract & { /** * The response body as parsed JSON or XML */ - parsedBody: ProductContract; + parsedBody: NotificationCollection; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the listByNotification operation. */ -export type ProductListByServiceNextResponse = ProductCollection & { +export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection & { /** * The underlying HTTP response. */ @@ -12151,14 +13069,14 @@ export type ProductListByServiceNextResponse = ProductCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ProductCollection; + parsedBody: RecipientUserCollection; }; }; /** - * Contains response data for the listByProduct operation. + * Contains response data for the createOrUpdate operation. */ -export type ProductApiListByProductResponse = ApiCollection & { +export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract & { /** * The underlying HTTP response. */ @@ -12170,18 +13088,14 @@ export type ProductApiListByProductResponse = ApiCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiCollection; + parsedBody: RecipientUserContract; }; }; /** - * Contains response data for the checkEntityExists operation. + * Contains response data for the listByNotification operation. */ -export type ProductApiCheckEntityExistsResponse = { - /** - * The parsed response body. - */ - body: boolean; +export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection & { /** * The underlying HTTP response. */ @@ -12193,14 +13107,14 @@ export type ProductApiCheckEntityExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: RecipientEmailCollection; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ProductApiCreateOrUpdateResponse = ApiContract & { +export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract & { /** * The underlying HTTP response. */ @@ -12212,14 +13126,14 @@ export type ProductApiCreateOrUpdateResponse = ApiContract & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiContract; + parsedBody: RecipientEmailContract; }; }; /** - * Contains response data for the listByProductNext operation. + * Contains response data for the listByService operation. */ -export type ProductApiListByProductNextResponse = ApiCollection & { +export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection & { /** * The underlying HTTP response. */ @@ -12231,41 +13145,37 @@ export type ProductApiListByProductNextResponse = ApiCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ApiCollection; + parsedBody: OpenIdConnectProviderCollection; }; }; /** - * Contains response data for the listByProduct operation. + * Contains response data for the getEntityTag operation. */ -export type ProductGroupListByProductResponse = GroupCollection & { +export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders & { /** * 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: GroupCollection; + parsedHeaders: OpenIdConnectProviderGetEntityTagHeaders; }; }; /** - * Contains response data for the checkEntityExists operation. + * Contains response data for the get operation. */ -export type ProductGroupCheckEntityExistsResponse = { - /** - * The parsed response body. - */ - body: boolean; +export type OpenIdConnectProviderGetResponse = OpenidConnectProviderContract & OpenIdConnectProviderGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OpenIdConnectProviderGetHeaders; /** * The response body as text (string format) */ @@ -12273,18 +13183,22 @@ export type ProductGroupCheckEntityExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: OpenidConnectProviderContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type ProductGroupCreateOrUpdateResponse = GroupContract & { +export type OpenIdConnectProviderCreateOrUpdateResponse = OpenidConnectProviderContract & OpenIdConnectProviderCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OpenIdConnectProviderCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -12292,14 +13206,14 @@ export type ProductGroupCreateOrUpdateResponse = GroupContract & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupContract; + parsedBody: OpenidConnectProviderContract; }; }; /** - * Contains response data for the listByProductNext operation. + * Contains response data for the listByServiceNext operation. */ -export type ProductGroupListByProductNextResponse = GroupCollection & { +export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection & { /** * The underlying HTTP response. */ @@ -12311,14 +13225,14 @@ export type ProductGroupListByProductNextResponse = GroupCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: GroupCollection; + parsedBody: OpenIdConnectProviderCollection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByService operation. */ -export type ProductSubscriptionsListResponse = SubscriptionCollection & { +export type PolicyListByServiceResponse = PolicyCollection & { /** * The underlying HTTP response. */ @@ -12330,33 +13244,29 @@ export type ProductSubscriptionsListResponse = SubscriptionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionCollection; + parsedBody: PolicyCollection; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the getEntityTag operation. */ -export type ProductSubscriptionsListNextResponse = SubscriptionCollection & { +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders & { /** * 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: SubscriptionCollection; + parsedHeaders: PolicyGetEntityTagHeaders; }; }; /** - * Contains response data for the listByProduct operation. + * Contains response data for the get operation. */ -export type ProductPolicyListByProductResponse = PolicyCollection & ProductPolicyListByProductHeaders & { +export type PolicyGetResponse = PolicyContract & PolicyGetHeaders & { /** * The underlying HTTP response. */ @@ -12364,7 +13274,7 @@ export type ProductPolicyListByProductResponse = PolicyCollection & ProductPolic /** * The parsed HTTP response headers. */ - parsedHeaders: ProductPolicyListByProductHeaders; + parsedHeaders: PolicyGetHeaders; /** * The response body as text (string format) */ @@ -12372,14 +13282,14 @@ export type ProductPolicyListByProductResponse = PolicyCollection & ProductPolic /** * The response body as parsed JSON or XML */ - parsedBody: PolicyCollection; + parsedBody: PolicyContract; }; }; /** - * Contains response data for the getEntityTag operation. + * Contains response data for the createOrUpdate operation. */ -export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders & { +export type PolicyCreateOrUpdateResponse = PolicyContract & PolicyCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ @@ -12387,22 +13297,26 @@ export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders /** * The parsed HTTP response headers. */ - parsedHeaders: ProductPolicyGetEntityTagHeaders; + parsedHeaders: PolicyCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByService operation. */ -export type ProductPolicyGetResponse = PolicyContract & ProductPolicyGetHeaders & { +export type PolicySnippetListByServiceResponse = PolicySnippetsCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ProductPolicyGetHeaders; /** * The response body as text (string format) */ @@ -12410,18 +13324,37 @@ export type ProductPolicyGetResponse = PolicyContract & ProductPolicyGetHeaders /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: PolicySnippetsCollection; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the getEntityTag operation. + */ +export type SignInSettingsGetEntityTagResponse = SignInSettingsGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SignInSettingsGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. */ -export type ProductPolicyCreateOrUpdateResponse = PolicyContract & { +export type SignInSettingsGetResponse = PortalSigninSettings & SignInSettingsGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SignInSettingsGetHeaders; /** * The response body as text (string format) */ @@ -12429,14 +13362,14 @@ export type ProductPolicyCreateOrUpdateResponse = PolicyContract & { /** * The response body as parsed JSON or XML */ - parsedBody: PolicyContract; + parsedBody: PortalSigninSettings; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the createOrUpdate operation. */ -export type PropertyListByServiceResponse = PropertyCollection & { +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings & { /** * The underlying HTTP response. */ @@ -12448,14 +13381,14 @@ export type PropertyListByServiceResponse = PropertyCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyCollection; + parsedBody: PortalSigninSettings; }; }; /** * Contains response data for the getEntityTag operation. */ -export type PropertyGetEntityTagResponse = PropertyGetEntityTagHeaders & { +export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -12463,14 +13396,14 @@ export type PropertyGetEntityTagResponse = PropertyGetEntityTagHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: PropertyGetEntityTagHeaders; + parsedHeaders: SignUpSettingsGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { +export type SignUpSettingsGetResponse = PortalSignupSettings & SignUpSettingsGetHeaders & { /** * The underlying HTTP response. */ @@ -12478,7 +13411,7 @@ export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { /** * The parsed HTTP response headers. */ - parsedHeaders: PropertyGetHeaders; + parsedHeaders: SignUpSettingsGetHeaders; /** * The response body as text (string format) */ @@ -12486,14 +13419,14 @@ export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyContract; + parsedBody: PortalSignupSettings; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type PropertyCreateOrUpdateResponse = PropertyContract & { +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings & { /** * The underlying HTTP response. */ @@ -12505,37 +13438,37 @@ export type PropertyCreateOrUpdateResponse = PropertyContract & { /** * The response body as parsed JSON or XML */ - parsedBody: PropertyContract; + parsedBody: PortalSignupSettings; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the getEntityTag operation. */ -export type PropertyListByServiceNextResponse = PropertyCollection & { +export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders & { /** * 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: PropertyCollection; + parsedHeaders: DelegationSettingsGetEntityTagHeaders; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the get operation. */ -export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection & { +export type DelegationSettingsGetResponse = PortalDelegationSettings & DelegationSettingsGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DelegationSettingsGetHeaders; /** * The response body as text (string format) */ @@ -12543,14 +13476,14 @@ export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: QuotaCounterCollection; + parsedBody: PortalDelegationSettings; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createOrUpdate operation. */ -export type QuotaByPeriodKeysGetResponse = QuotaCounterContract & { +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings & { /** * The underlying HTTP response. */ @@ -12562,14 +13495,14 @@ export type QuotaByPeriodKeysGetResponse = QuotaCounterContract & { /** * The response body as parsed JSON or XML */ - parsedBody: QuotaCounterContract; + parsedBody: PortalDelegationSettings; }; }; /** - * Contains response data for the listByApi operation. + * Contains response data for the listByService operation. */ -export type ReportsListByApiResponse = ReportCollection & { +export type ProductListByServiceResponse = ProductCollection & { /** * The underlying HTTP response. */ @@ -12581,37 +13514,37 @@ export type ReportsListByApiResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: ProductCollection; }; }; /** - * Contains response data for the listByUser operation. + * Contains response data for the getEntityTag operation. */ -export type ReportsListByUserResponse = ReportCollection & { +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders & { /** * 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: ReportCollection; + parsedHeaders: ProductGetEntityTagHeaders; }; }; /** - * Contains response data for the listByOperation operation. + * Contains response data for the get operation. */ -export type ReportsListByOperationResponse = ReportCollection & { +export type ProductGetResponse = ProductContract & ProductGetHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProductGetHeaders; /** * The response body as text (string format) */ @@ -12619,18 +13552,22 @@ export type ReportsListByOperationResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: ProductContract; }; }; /** - * Contains response data for the listByProduct operation. + * Contains response data for the createOrUpdate operation. */ -export type ReportsListByProductResponse = ReportCollection & { +export type ProductCreateOrUpdateResponse = ProductContract & ProductCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProductCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -12638,14 +13575,14 @@ export type ReportsListByProductResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: ProductContract; }; }; /** - * Contains response data for the listByGeo operation. + * Contains response data for the listByTags operation. */ -export type ReportsListByGeoResponse = ReportCollection & { +export type ProductListByTagsResponse = TagResourceCollection & { /** * The underlying HTTP response. */ @@ -12657,14 +13594,14 @@ export type ReportsListByGeoResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: TagResourceCollection; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByServiceNext operation. */ -export type ReportsListBySubscriptionResponse = ReportCollection & { +export type ProductListByServiceNextResponse = ProductCollection & { /** * The underlying HTTP response. */ @@ -12676,14 +13613,14 @@ export type ReportsListBySubscriptionResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: ProductCollection; }; }; /** - * Contains response data for the listByTime operation. + * Contains response data for the listByTagsNext operation. */ -export type ReportsListByTimeResponse = ReportCollection & { +export type ProductListByTagsNextResponse = TagResourceCollection & { /** * The underlying HTTP response. */ @@ -12695,14 +13632,14 @@ export type ReportsListByTimeResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: TagResourceCollection; }; }; /** - * Contains response data for the listByRequest operation. + * Contains response data for the listByProduct operation. */ -export type ReportsListByRequestResponse = RequestReportCollection & { +export type ProductApiListByProductResponse = ApiCollection & { /** * The underlying HTTP response. */ @@ -12714,14 +13651,14 @@ export type ReportsListByRequestResponse = RequestReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: RequestReportCollection; + parsedBody: ApiCollection; }; }; /** - * Contains response data for the listByApiNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ReportsListByApiNextResponse = ReportCollection & { +export type ProductApiCreateOrUpdateResponse = ApiContract & { /** * The underlying HTTP response. */ @@ -12733,14 +13670,14 @@ export type ReportsListByApiNextResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: ApiContract; }; }; /** - * Contains response data for the listByUserNext operation. + * Contains response data for the listByProductNext operation. */ -export type ReportsListByUserNextResponse = ReportCollection & { +export type ProductApiListByProductNextResponse = ApiCollection & { /** * The underlying HTTP response. */ @@ -12752,14 +13689,14 @@ export type ReportsListByUserNextResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: ApiCollection; }; }; /** - * Contains response data for the listByOperationNext operation. + * Contains response data for the listByProduct operation. */ -export type ReportsListByOperationNextResponse = ReportCollection & { +export type ProductGroupListByProductResponse = GroupCollection & { /** * The underlying HTTP response. */ @@ -12771,14 +13708,14 @@ export type ReportsListByOperationNextResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: GroupCollection; }; }; /** - * Contains response data for the listByProductNext operation. + * Contains response data for the createOrUpdate operation. */ -export type ReportsListByProductNextResponse = ReportCollection & { +export type ProductGroupCreateOrUpdateResponse = GroupContract & { /** * The underlying HTTP response. */ @@ -12790,14 +13727,14 @@ export type ReportsListByProductNextResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: GroupContract; }; }; /** - * Contains response data for the listByGeoNext operation. + * Contains response data for the listByProductNext operation. */ -export type ReportsListByGeoNextResponse = ReportCollection & { +export type ProductGroupListByProductNextResponse = GroupCollection & { /** * The underlying HTTP response. */ @@ -12809,14 +13746,14 @@ export type ReportsListByGeoNextResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: GroupCollection; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the list operation. */ -export type ReportsListBySubscriptionNextResponse = ReportCollection & { +export type ProductSubscriptionsListResponse = SubscriptionCollection & { /** * The underlying HTTP response. */ @@ -12828,14 +13765,14 @@ export type ReportsListBySubscriptionNextResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: SubscriptionCollection; }; }; /** - * Contains response data for the listByTimeNext operation. + * Contains response data for the listNext operation. */ -export type ReportsListByTimeNextResponse = ReportCollection & { +export type ProductSubscriptionsListNextResponse = SubscriptionCollection & { /** * The underlying HTTP response. */ @@ -12847,14 +13784,14 @@ export type ReportsListByTimeNextResponse = ReportCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: ReportCollection; + parsedBody: SubscriptionCollection; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByProduct operation. */ -export type SubscriptionListResponse = SubscriptionCollection & { +export type ProductPolicyListByProductResponse = PolicyCollection & { /** * The underlying HTTP response. */ @@ -12866,14 +13803,14 @@ export type SubscriptionListResponse = SubscriptionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionCollection; + parsedBody: PolicyCollection; }; }; /** * Contains response data for the getEntityTag operation. */ -export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders & { +export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -12881,14 +13818,14 @@ export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders & /** * The parsed HTTP response headers. */ - parsedHeaders: SubscriptionGetEntityTagHeaders; + parsedHeaders: ProductPolicyGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type SubscriptionGetResponse = SubscriptionContract & SubscriptionGetHeaders & { +export type ProductPolicyGetResponse = PolicyContract & ProductPolicyGetHeaders & { /** * The underlying HTTP response. */ @@ -12896,7 +13833,7 @@ export type SubscriptionGetResponse = SubscriptionContract & SubscriptionGetHead /** * The parsed HTTP response headers. */ - parsedHeaders: SubscriptionGetHeaders; + parsedHeaders: ProductPolicyGetHeaders; /** * The response body as text (string format) */ @@ -12904,18 +13841,22 @@ export type SubscriptionGetResponse = SubscriptionContract & SubscriptionGetHead /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionContract; + parsedBody: PolicyContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type SubscriptionCreateOrUpdateResponse = SubscriptionContract & { +export type ProductPolicyCreateOrUpdateResponse = PolicyContract & ProductPolicyCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProductPolicyCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -12923,14 +13864,14 @@ export type SubscriptionCreateOrUpdateResponse = SubscriptionContract & { /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionContract; + parsedBody: PolicyContract; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByService operation. */ -export type SubscriptionListNextResponse = SubscriptionCollection & { +export type PropertyListByServiceResponse = PropertyCollection & { /** * The underlying HTTP response. */ @@ -12942,18 +13883,37 @@ export type SubscriptionListNextResponse = SubscriptionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: SubscriptionCollection; + parsedBody: PropertyCollection; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the getEntityTag operation. */ -export type TagResourceListByServiceResponse = TagResourceCollection & { +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) */ @@ -12961,18 +13921,22 @@ export type TagResourceListByServiceResponse = TagResourceCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagResourceCollection; + parsedBody: PropertyContract; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the createOrUpdate operation. */ -export type TagResourceListByServiceNextResponse = TagResourceCollection & { +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) */ @@ -12980,14 +13944,14 @@ export type TagResourceListByServiceNextResponse = TagResourceCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagResourceCollection; + parsedBody: PropertyContract; }; }; /** - * Contains response data for the listByService operation. + * Contains response data for the listByServiceNext operation. */ -export type TagListByServiceResponse = TagCollection & { +export type PropertyListByServiceNextResponse = PropertyCollection & { /** * The underlying HTTP response. */ @@ -12999,37 +13963,37 @@ export type TagListByServiceResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: PropertyCollection; }; }; /** - * Contains response data for the getEntityState operation. + * Contains response data for the listByService operation. */ -export type TagGetEntityStateResponse = TagGetEntityStateHeaders & { +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: TagGetEntityStateHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: QuotaCounterCollection; }; }; /** * Contains response data for the get operation. */ -export type TagGetResponse = TagContract & TagGetHeaders & { +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TagGetHeaders; /** * The response body as text (string format) */ @@ -13037,14 +14001,14 @@ export type TagGetResponse = TagContract & TagGetHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: QuotaCounterContract; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByService operation. */ -export type TagCreateOrUpdateResponse = TagContract & { +export type RegionListByServiceResponse = RegionListResult & { /** * The underlying HTTP response. */ @@ -13056,14 +14020,14 @@ export type TagCreateOrUpdateResponse = TagContract & { /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: RegionListResult; }; }; /** - * Contains response data for the listByApi operation. + * Contains response data for the listByServiceNext operation. */ -export type TagListByApiResponse = TagCollection & { +export type RegionListByServiceNextResponse = RegionListResult & { /** * The underlying HTTP response. */ @@ -13075,37 +14039,37 @@ export type TagListByApiResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: RegionListResult; }; }; /** - * Contains response data for the getEntityStateByApi operation. + * Contains response data for the listByApi operation. */ -export type TagGetEntityStateByApiResponse = TagGetEntityStateByApiHeaders & { +export type ReportsListByApiResponse = ReportCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: TagGetEntityStateByApiHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReportCollection; }; }; /** - * Contains response data for the getByApi operation. + * Contains response data for the listByUser operation. */ -export type TagGetByApiResponse = TagContract & TagGetByApiHeaders & { +export type ReportsListByUserResponse = ReportCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TagGetByApiHeaders; /** * The response body as text (string format) */ @@ -13113,14 +14077,14 @@ export type TagGetByApiResponse = TagContract & TagGetByApiHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the assignToApi operation. + * Contains response data for the listByOperation operation. */ -export type TagAssignToApiResponse = TagContract & { +export type ReportsListByOperationResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13132,14 +14096,14 @@ export type TagAssignToApiResponse = TagContract & { /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the listByOperation operation. + * Contains response data for the listByProduct operation. */ -export type TagListByOperationResponse = TagCollection & { +export type ReportsListByProductResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13151,37 +14115,37 @@ export type TagListByOperationResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the getEntityStateByOperation operation. + * Contains response data for the listByGeo operation. */ -export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders & { +export type ReportsListByGeoResponse = ReportCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: TagGetEntityStateByOperationHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReportCollection; }; }; /** - * Contains response data for the getByOperation operation. + * Contains response data for the listBySubscription operation. */ -export type TagGetByOperationResponse = TagContract & TagGetByOperationHeaders & { +export type ReportsListBySubscriptionResponse = ReportCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TagGetByOperationHeaders; /** * The response body as text (string format) */ @@ -13189,14 +14153,14 @@ export type TagGetByOperationResponse = TagContract & TagGetByOperationHeaders & /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the assignToOperation operation. + * Contains response data for the listByTime operation. */ -export type TagAssignToOperationResponse = TagContract & { +export type ReportsListByTimeResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13208,14 +14172,14 @@ export type TagAssignToOperationResponse = TagContract & { /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the listByProduct operation. + * Contains response data for the listByRequest operation. */ -export type TagListByProductResponse = TagCollection & { +export type ReportsListByRequestResponse = RequestReportCollection & { /** * The underlying HTTP response. */ @@ -13227,37 +14191,37 @@ export type TagListByProductResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: RequestReportCollection; }; }; /** - * Contains response data for the getEntityStateByProduct operation. + * Contains response data for the listByApiNext operation. */ -export type TagGetEntityStateByProductResponse = TagGetEntityStateByProductHeaders & { +export type ReportsListByApiNextResponse = ReportCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { /** - * The parsed HTTP response headers. + * The response body as text (string format) */ - parsedHeaders: TagGetEntityStateByProductHeaders; + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReportCollection; }; }; /** - * Contains response data for the getByProduct operation. + * Contains response data for the listByUserNext operation. */ -export type TagGetByProductResponse = TagContract & TagGetByProductHeaders & { +export type ReportsListByUserNextResponse = ReportCollection & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: TagGetByProductHeaders; /** * The response body as text (string format) */ @@ -13265,14 +14229,14 @@ export type TagGetByProductResponse = TagContract & TagGetByProductHeaders & { /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the assignToProduct operation. + * Contains response data for the listByOperationNext operation. */ -export type TagAssignToProductResponse = TagContract & { +export type ReportsListByOperationNextResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13284,14 +14248,14 @@ export type TagAssignToProductResponse = TagContract & { /** * The response body as parsed JSON or XML */ - parsedBody: TagContract; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the listByServiceNext operation. + * Contains response data for the listByProductNext operation. */ -export type TagListByServiceNextResponse = TagCollection & { +export type ReportsListByProductNextResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13303,14 +14267,14 @@ export type TagListByServiceNextResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the listByApiNext operation. + * Contains response data for the listByGeoNext operation. */ -export type TagListByApiNextResponse = TagCollection & { +export type ReportsListByGeoNextResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13322,14 +14286,14 @@ export type TagListByApiNextResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the listByOperationNext operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type TagListByOperationNextResponse = TagCollection & { +export type ReportsListBySubscriptionNextResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13341,14 +14305,14 @@ export type TagListByOperationNextResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the listByProductNext operation. + * Contains response data for the listByTimeNext operation. */ -export type TagListByProductNextResponse = TagCollection & { +export type ReportsListByTimeNextResponse = ReportCollection & { /** * The underlying HTTP response. */ @@ -13360,14 +14324,14 @@ export type TagListByProductNextResponse = TagCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagCollection; + parsedBody: ReportCollection; }; }; /** - * Contains response data for the listByApi operation. + * Contains response data for the list operation. */ -export type TagDescriptionListByApiResponse = TagDescriptionCollection & { +export type SubscriptionListResponse = SubscriptionCollection & { /** * The underlying HTTP response. */ @@ -13379,14 +14343,14 @@ export type TagDescriptionListByApiResponse = TagDescriptionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagDescriptionCollection; + parsedBody: SubscriptionCollection; }; }; /** - * Contains response data for the getEntityState operation. + * Contains response data for the getEntityTag operation. */ -export type TagDescriptionGetEntityStateResponse = TagDescriptionGetEntityStateHeaders & { +export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders & { /** * The underlying HTTP response. */ @@ -13394,14 +14358,14 @@ export type TagDescriptionGetEntityStateResponse = TagDescriptionGetEntityStateH /** * The parsed HTTP response headers. */ - parsedHeaders: TagDescriptionGetEntityStateHeaders; + parsedHeaders: SubscriptionGetEntityTagHeaders; }; }; /** * Contains response data for the get operation. */ -export type TagDescriptionGetResponse = TagDescriptionContract & TagDescriptionGetHeaders & { +export type SubscriptionGetResponse = SubscriptionContract & SubscriptionGetHeaders & { /** * The underlying HTTP response. */ @@ -13409,7 +14373,7 @@ export type TagDescriptionGetResponse = TagDescriptionContract & TagDescriptionG /** * The parsed HTTP response headers. */ - parsedHeaders: TagDescriptionGetHeaders; + parsedHeaders: SubscriptionGetHeaders; /** * The response body as text (string format) */ @@ -13417,18 +14381,22 @@ export type TagDescriptionGetResponse = TagDescriptionContract & TagDescriptionG /** * The response body as parsed JSON or XML */ - parsedBody: TagDescriptionContract; + parsedBody: SubscriptionContract; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type TagDescriptionCreateOrUpdateResponse = TagDescriptionContract & { +export type SubscriptionCreateOrUpdateResponse = SubscriptionContract & SubscriptionCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SubscriptionCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -13436,14 +14404,14 @@ export type TagDescriptionCreateOrUpdateResponse = TagDescriptionContract & { /** * The response body as parsed JSON or XML */ - parsedBody: TagDescriptionContract; + parsedBody: SubscriptionContract; }; }; /** - * Contains response data for the listByApiNext operation. + * Contains response data for the listNext operation. */ -export type TagDescriptionListByApiNextResponse = TagDescriptionCollection & { +export type SubscriptionListNextResponse = SubscriptionCollection & { /** * The underlying HTTP response. */ @@ -13455,14 +14423,14 @@ export type TagDescriptionListByApiNextResponse = TagDescriptionCollection & { /** * The response body as parsed JSON or XML */ - parsedBody: TagDescriptionCollection; + parsedBody: SubscriptionCollection; }; }; /** - * Contains response data for the listByTags operation. + * Contains response data for the listByService operation. */ -export type OperationListByTagsResponse = TagResourceCollection & { +export type TagResourceListByServiceResponse = TagResourceCollection & { /** * The underlying HTTP response. */ @@ -13479,9 +14447,9 @@ export type OperationListByTagsResponse = TagResourceCollection & { }; /** - * Contains response data for the listByTagsNext operation. + * Contains response data for the listByServiceNext operation. */ -export type OperationListByTagsNextResponse = TagResourceCollection & { +export type TagResourceListByServiceNextResponse = TagResourceCollection & { /** * The underlying HTTP response. */ @@ -13497,6 +14465,21 @@ export type OperationListByTagsNextResponse = TagResourceCollection & { }; }; +/** + * Contains response data for the getEntityTag operation. + */ +export type TenantAccessGetEntityTagResponse = TenantAccessGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TenantAccessGetEntityTagHeaders; + }; +}; + /** * Contains response data for the get operation. */ @@ -13676,25 +14659,6 @@ export type TenantConfigurationBeginValidateResponse = OperationResultContract & }; }; -/** - * Contains response data for the getIdentity operation. - */ -export type UserGetIdentityResponse = CurrentUserIdentity & { - /** - * 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: CurrentUserIdentity; - }; -}; - /** * Contains response data for the listByService operation. */ @@ -13755,11 +14719,15 @@ export type UserGetResponse = UserContract & UserGetHeaders & { /** * Contains response data for the createOrUpdate operation. */ -export type UserCreateOrUpdateResponse = UserContract & { +export type UserCreateOrUpdateResponse = UserContract & UserCreateOrUpdateHeaders & { /** * The underlying HTTP response. */ _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: UserCreateOrUpdateHeaders; /** * The response body as text (string format) */ @@ -13942,101 +14910,6 @@ export type UserIdentitiesListNextResponse = UserIdentityCollection & { }; }; -/** - * Contains response data for the listByService operation. - */ -export type ApiVersionSetListByServiceResponse = ApiVersionSetCollection & { - /** - * 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: ApiVersionSetCollection; - }; -}; - -/** - * Contains response data for the getEntityTag operation. - */ -export type ApiVersionSetGetEntityTagResponse = ApiVersionSetGetEntityTagHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApiVersionSetGetEntityTagHeaders; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ApiVersionSetGetResponse = ApiVersionSetContract & ApiVersionSetGetHeaders & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: ApiVersionSetGetHeaders; - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApiVersionSetContract; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ApiVersionSetCreateOrUpdateResponse = ApiVersionSetContract & { - /** - * 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: ApiVersionSetContract; - }; -}; - -/** - * Contains response data for the listByServiceNext operation. - */ -export type ApiVersionSetListByServiceNextResponse = ApiVersionSetCollection & { - /** - * 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: ApiVersionSetCollection; - }; -}; - /** * Contains response data for the get operation. */ diff --git a/packages/@azure/arm-apimanagement/lib/models/issueMappers.ts b/packages/@azure/arm-apimanagement/lib/models/issueMappers.ts new file mode 100644 index 000000000000..58da7fce6a15 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/issueMappers.ts @@ -0,0 +1,90 @@ +/* + * 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 { + IssueCollection, + IssueContract, + Resource, + BaseResource, + ErrorResponse, + ErrorFieldContract, + IssueGetHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, + ApiContract, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + ApiVersionSetContractDetails, + ApiVersionSetContract, + AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, + BackendContract, + BackendProperties, + BackendServiceFabricClusterProperties, + X509CertificateName, + BackendCredentialsContract, + BackendAuthorizationHeaderCredentials, + BackendProxyContract, + BackendTlsProperties, + CacheContract, + CertificateContract, + ApimResource, + ApiManagementServiceUpdateParameters, + HostnameConfiguration, + CertificateInformation, + VirtualNetworkConfiguration, + AdditionalLocation, + ApiManagementServiceSkuProperties, + CertificateConfiguration, + ApiManagementServiceIdentity, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + UserContract, + UserIdentityContract, + GroupContractProperties, + GroupContract, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/loggerMappers.ts b/packages/@azure/arm-apimanagement/lib/models/loggerMappers.ts index 610fde932801..759bf43d95fc 100644 --- a/packages/@azure/arm-apimanagement/lib/models/loggerMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/loggerMappers.ts @@ -17,29 +17,38 @@ export { ErrorFieldContract, LoggerGetEntityTagHeaders, LoggerGetHeaders, + LoggerCreateOrUpdateHeaders, LoggerUpdateContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +57,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +70,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/mappers.ts b/packages/@azure/arm-apimanagement/lib/models/mappers.ts index b18a83ba8e85..69ddbf98ef8a 100644 --- a/packages/@azure/arm-apimanagement/lib/models/mappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/mappers.ts @@ -110,6 +110,35 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; +export const RegionContract: msRest.CompositeMapper = { + serializedName: "RegionContract", + type: { + name: "Composite", + className: "RegionContract", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + isMasterRegion: { + serializedName: "isMasterRegion", + type: { + name: "Boolean" + } + }, + isDeleted: { + serializedName: "isDeleted", + type: { + name: "Boolean" + } + } + } + } +}; + export const Resource: msRest.CompositeMapper = { serializedName: "Resource", type: { @@ -141,51 +170,96 @@ export const Resource: msRest.CompositeMapper = { } }; -export const PolicyContract: msRest.CompositeMapper = { - serializedName: "PolicyContract", +export const ApiExportResult: msRest.CompositeMapper = { + serializedName: "ApiExportResult", type: { name: "Composite", - className: "PolicyContract", + className: "ApiExportResult", modelProperties: { - ...Resource.type.modelProperties, - policyContent: { - required: true, - serializedName: "properties.policyContent", + link: { + serializedName: "link", + type: { + name: "String" + } + } + } + } +}; + +export const ProductEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "ProductEntityBaseParameters", + type: { + name: "Composite", + className: "ProductEntityBaseParameters", + modelProperties: { + description: { + serializedName: "description", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, type: { name: "String" } }, - contentFormat: { - serializedName: "properties.contentFormat", - defaultValue: 'xml', + terms: { + serializedName: "terms", type: { name: "String" } + }, + subscriptionRequired: { + serializedName: "subscriptionRequired", + type: { + name: "Boolean" + } + }, + approvalRequired: { + serializedName: "approvalRequired", + type: { + name: "Boolean" + } + }, + subscriptionsLimit: { + serializedName: "subscriptionsLimit", + type: { + name: "Number" + } + }, + state: { + serializedName: "state", + type: { + name: "Enum", + allowedValues: [ + "notPublished", + "published" + ] + } } } } }; -export const PolicyCollection: msRest.CompositeMapper = { - serializedName: "PolicyCollection", +export const ProductTagResourceContractProperties: msRest.CompositeMapper = { + serializedName: "ProductTagResourceContractProperties", type: { name: "Composite", - className: "PolicyCollection", + className: "ProductTagResourceContractProperties", modelProperties: { - value: { - serializedName: "value", + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicyContract" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + name: { + required: true, + serializedName: "name", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { name: "String" } @@ -194,12 +268,18 @@ export const PolicyCollection: msRest.CompositeMapper = { } }; -export const PolicySnippetContract: msRest.CompositeMapper = { - serializedName: "PolicySnippetContract", +export const OperationTagResourceContractProperties: msRest.CompositeMapper = { + serializedName: "OperationTagResourceContractProperties", type: { name: "Composite", - className: "PolicySnippetContract", + className: "OperationTagResourceContractProperties", modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, name: { readOnly: true, serializedName: "name", @@ -207,90 +287,115 @@ export const PolicySnippetContract: msRest.CompositeMapper = { name: "String" } }, - content: { + apiName: { readOnly: true, - serializedName: "content", + serializedName: "apiName", type: { name: "String" } }, - toolTip: { + apiRevision: { readOnly: true, - serializedName: "toolTip", + serializedName: "apiRevision", type: { name: "String" } }, - scope: { + apiVersion: { readOnly: true, - serializedName: "scope", + serializedName: "apiVersion", type: { - name: "Number" + name: "String" + } + }, + description: { + readOnly: true, + serializedName: "description", + type: { + name: "String" + } + }, + method: { + readOnly: true, + serializedName: "method", + type: { + name: "String" + } + }, + urlTemplate: { + readOnly: true, + serializedName: "urlTemplate", + type: { + name: "String" } } } } }; -export const PolicySnippetsCollection: msRest.CompositeMapper = { - serializedName: "PolicySnippetsCollection", +export const SubscriptionKeyParameterNamesContract: msRest.CompositeMapper = { + serializedName: "SubscriptionKeyParameterNamesContract", type: { name: "Composite", - className: "PolicySnippetsCollection", + className: "SubscriptionKeyParameterNamesContract", modelProperties: { - value: { - serializedName: "value", + header: { + serializedName: "header", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PolicySnippetContract" - } - } + name: "String" + } + }, + query: { + serializedName: "query", + type: { + name: "String" } } } } }; -export const RegionContract: msRest.CompositeMapper = { - serializedName: "RegionContract", +export const OpenIdAuthenticationSettingsContract: msRest.CompositeMapper = { + serializedName: "OpenIdAuthenticationSettingsContract", type: { name: "Composite", - className: "RegionContract", + className: "OpenIdAuthenticationSettingsContract", modelProperties: { - name: { - readOnly: true, - serializedName: "name", + openidProviderId: { + serializedName: "openidProviderId", type: { name: "String" } }, - isMasterRegion: { - serializedName: "isMasterRegion", - type: { - name: "Boolean" - } - }, - isDeleted: { - serializedName: "isDeleted", + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ApiExportResult: msRest.CompositeMapper = { - serializedName: "ApiExportResult", +export const OAuth2AuthenticationSettingsContract: msRest.CompositeMapper = { + serializedName: "OAuth2AuthenticationSettingsContract", type: { name: "Composite", - className: "ApiExportResult", + className: "OAuth2AuthenticationSettingsContract", modelProperties: { - link: { - serializedName: "link", + authorizationServerId: { + serializedName: "authorizationServerId", + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", type: { name: "String" } @@ -299,25 +404,61 @@ export const ApiExportResult: msRest.CompositeMapper = { } }; -export const ApiVersionSetContractDetails: msRest.CompositeMapper = { - serializedName: "ApiVersionSetContractDetails", +export const AuthenticationSettingsContract: msRest.CompositeMapper = { + serializedName: "AuthenticationSettingsContract", type: { name: "Composite", - className: "ApiVersionSetContractDetails", + className: "AuthenticationSettingsContract", modelProperties: { - id: { - serializedName: "id", + oAuth2: { + serializedName: "oAuth2", type: { - name: "String" + name: "Composite", + className: "OAuth2AuthenticationSettingsContract" } }, - description: { - serializedName: "description", + openid: { + serializedName: "openid", type: { - name: "String" + name: "Composite", + className: "OpenIdAuthenticationSettingsContract" } }, - versioningScheme: { + subscriptionKeyRequired: { + serializedName: "subscriptionKeyRequired", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ApiVersionSetContractDetails: msRest.CompositeMapper = { + serializedName: "ApiVersionSetContractDetails", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + versioningScheme: { serializedName: "versioningScheme", type: { name: "String" @@ -339,6 +480,28 @@ export const ApiVersionSetContractDetails: msRest.CompositeMapper = { } }; +export const ApiCreateOrUpdatePropertiesWsdlSelector: msRest.CompositeMapper = { + serializedName: "ApiCreateOrUpdateProperties_wsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector", + modelProperties: { + wsdlServiceName: { + serializedName: "wsdlServiceName", + type: { + name: "String" + } + }, + wsdlEndpointName: { + serializedName: "wsdlEndpointName", + type: { + name: "String" + } + } + } + } +}; + export const ApiEntityBaseContract: msRest.CompositeMapper = { serializedName: "ApiEntityBaseContract", type: { @@ -391,7 +554,6 @@ export const ApiEntityBaseContract: msRest.CompositeMapper = { } }, isCurrent: { - readOnly: true, serializedName: "isCurrent", type: { name: "Boolean" @@ -427,6 +589,12 @@ export const ApiEntityBaseContract: msRest.CompositeMapper = { type: { name: "String" } + }, + subscriptionRequired: { + serializedName: "subscriptionRequired", + type: { + name: "Boolean" + } } } } @@ -439,6 +607,12 @@ export const ApiContractProperties: msRest.CompositeMapper = { className: "ApiContractProperties", modelProperties: { ...ApiEntityBaseContract.type.modelProperties, + sourceApiId: { + serializedName: "sourceApiId", + type: { + name: "String" + } + }, displayName: { serializedName: "displayName", constraints: { @@ -496,98 +670,21 @@ export const ApiContractProperties: msRest.CompositeMapper = { } }; -export const ApiContract: msRest.CompositeMapper = { - serializedName: "ApiContract", +export const ApiTagResourceContractProperties: msRest.CompositeMapper = { + serializedName: "ApiTagResourceContractProperties", type: { name: "Composite", - className: "ApiContract", + className: "ApiTagResourceContractProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } - }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", - type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" - } - }, - apiType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - apiRevision: { - serializedName: "properties.apiRevision", - constraints: { - MaxLength: 100, - MinLength: 1 - }, - type: { - name: "String" - } - }, - apiVersion: { - serializedName: "properties.apiVersion", - constraints: { - MaxLength: 100 - }, - type: { - name: "String" - } - }, - isCurrent: { - readOnly: true, - serializedName: "properties.isCurrent", - type: { - name: "Boolean" - } - }, - isOnline: { - readOnly: true, - serializedName: "properties.isOnline", - type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - serializedName: "properties.apiRevisionDescription", - constraints: { - MaxLength: 256 - }, - type: { - name: "String" - } - }, - apiVersionDescription: { - serializedName: "properties.apiVersionDescription", - constraints: { - MaxLength: 256 - }, - type: { - name: "String" - } - }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", + ...ApiEntityBaseContract.type.modelProperties, + id: { + serializedName: "id", type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", + name: { + serializedName: "name", constraints: { MaxLength: 300, MinLength: 1 @@ -597,18 +694,17 @@ export const ApiContract: msRest.CompositeMapper = { } }, serviceUrl: { - serializedName: "properties.serviceUrl", + serializedName: "serviceUrl", constraints: { MaxLength: 2000, - MinLength: 0 + MinLength: 1 }, type: { name: "String" } }, path: { - required: true, - serializedName: "properties.path", + serializedName: "path", constraints: { MaxLength: 400, MinLength: 0 @@ -618,7 +714,7 @@ export const ApiContract: msRest.CompositeMapper = { } }, protocols: { - serializedName: "properties.protocols", + serializedName: "protocols", type: { name: "Sequence", element: { @@ -631,32 +727,29 @@ export const ApiContract: msRest.CompositeMapper = { } } } - }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } } } } }; -export const ApiCreateOrUpdatePropertiesWsdlSelector: msRest.CompositeMapper = { - serializedName: "ApiCreateOrUpdateProperties_wsdlSelector", +export const TagTagResourceContractProperties: msRest.CompositeMapper = { + serializedName: "TagTagResourceContractProperties", type: { name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector", + className: "TagTagResourceContractProperties", modelProperties: { - wsdlServiceName: { - serializedName: "wsdlServiceName", + id: { + serializedName: "id", type: { name: "String" } }, - wsdlEndpointName: { - serializedName: "wsdlEndpointName", + name: { + serializedName: "name", + constraints: { + MaxLength: 160, + MinLength: 1 + }, type: { name: "String" } @@ -665,91 +758,91 @@ export const ApiCreateOrUpdatePropertiesWsdlSelector: msRest.CompositeMapper = { } }; -export const ApiCreateOrUpdateParameter: msRest.CompositeMapper = { - serializedName: "ApiCreateOrUpdateParameter", +export const TagResourceContract: msRest.CompositeMapper = { + serializedName: "TagResourceContract", type: { name: "Composite", - className: "ApiCreateOrUpdateParameter", + className: "TagResourceContract", modelProperties: { - description: { - serializedName: "properties.description", + tag: { + required: true, + serializedName: "tag", type: { - name: "String" + name: "Composite", + className: "TagTagResourceContractProperties" } }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", + api: { + serializedName: "api", type: { name: "Composite", - className: "AuthenticationSettingsContract" + className: "ApiTagResourceContractProperties" } }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", + operation: { + serializedName: "operation", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract" + className: "OperationTagResourceContractProperties" } }, - apiType: { - serializedName: "properties.type", + product: { + serializedName: "product", type: { - name: "String" + name: "Composite", + className: "ProductTagResourceContractProperties" } - }, - apiRevision: { - serializedName: "properties.apiRevision", + } + } + } +}; + +export const TagContract: msRest.CompositeMapper = { + serializedName: "TagContract", + type: { + name: "Composite", + className: "TagContract", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", constraints: { - MaxLength: 100, + MaxLength: 160, MinLength: 1 }, type: { name: "String" } - }, - apiVersion: { - serializedName: "properties.apiVersion", - constraints: { - MaxLength: 100 - }, - type: { - name: "String" - } - }, - isCurrent: { - readOnly: true, - serializedName: "properties.isCurrent", - type: { - name: "Boolean" - } - }, - isOnline: { - readOnly: true, - serializedName: "properties.isOnline", - type: { - name: "Boolean" - } - }, - apiRevisionDescription: { - serializedName: "properties.apiRevisionDescription", - constraints: { - MaxLength: 256 - }, + } + } + } +}; + +export const TagDescriptionContract: msRest.CompositeMapper = { + serializedName: "TagDescriptionContract", + type: { + name: "Composite", + className: "TagDescriptionContract", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } }, - apiVersionDescription: { - serializedName: "properties.apiVersionDescription", + externalDocsUrl: { + serializedName: "properties.externalDocsUrl", constraints: { - MaxLength: 256 + MaxLength: 2000 }, type: { name: "String" } }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", type: { name: "String" } @@ -757,77 +850,72 @@ export const ApiCreateOrUpdateParameter: msRest.CompositeMapper = { displayName: { serializedName: "properties.displayName", constraints: { - MaxLength: 300, + MaxLength: 160, MinLength: 1 }, type: { name: "String" } - }, - serviceUrl: { - serializedName: "properties.serviceUrl", - constraints: { - MaxLength: 2000, - MinLength: 0 - }, + } + } + } +}; + +export const TagDescriptionCreateParameters: msRest.CompositeMapper = { + serializedName: "TagDescriptionCreateParameters", + type: { + name: "Composite", + className: "TagDescriptionCreateParameters", + modelProperties: { + description: { + serializedName: "properties.description", type: { name: "String" } }, - path: { - required: true, - serializedName: "properties.path", + externalDocsUrl: { + serializedName: "properties.externalDocsUrl", constraints: { - MaxLength: 400, - MinLength: 0 + MaxLength: 2000 }, type: { name: "String" } }, - protocols: { - serializedName: "properties.protocols", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "http", - "https" - ] - } - } - } - }, - apiVersionSet: { - serializedName: "properties.apiVersionSet", + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", type: { - name: "Composite", - className: "ApiVersionSetContractDetails" + name: "String" } - }, - contentValue: { - serializedName: "properties.contentValue", + } + } + } +}; + +export const IssueAttachmentContract: msRest.CompositeMapper = { + serializedName: "IssueAttachmentContract", + type: { + name: "Composite", + className: "IssueAttachmentContract", + modelProperties: { + ...Resource.type.modelProperties, + title: { + required: true, + serializedName: "properties.title", type: { name: "String" } }, contentFormat: { + required: true, serializedName: "properties.contentFormat", type: { name: "String" } }, - wsdlSelector: { - serializedName: "properties.wsdlSelector", - type: { - name: "Composite", - className: "ApiCreateOrUpdatePropertiesWsdlSelector" - } - }, - soapApiType: { - serializedName: "properties.apiType", + content: { + required: true, + serializedName: "properties.content", type: { name: "String" } @@ -836,158 +924,153 @@ export const ApiCreateOrUpdateParameter: msRest.CompositeMapper = { } }; -export const ApiUpdateContract: msRest.CompositeMapper = { - serializedName: "ApiUpdateContract", +export const IssueCommentContract: msRest.CompositeMapper = { + serializedName: "IssueCommentContract", type: { name: "Composite", - className: "ApiUpdateContract", + className: "IssueCommentContract", modelProperties: { - description: { - serializedName: "properties.description", + ...Resource.type.modelProperties, + text: { + required: true, + serializedName: "properties.text", type: { name: "String" } }, - authenticationSettings: { - serializedName: "properties.authenticationSettings", - type: { - name: "Composite", - className: "AuthenticationSettingsContract" - } - }, - subscriptionKeyParameterNames: { - serializedName: "properties.subscriptionKeyParameterNames", + createdDate: { + serializedName: "properties.createdDate", type: { - name: "Composite", - className: "SubscriptionKeyParameterNamesContract" + name: "DateTime" } }, - apiType: { - serializedName: "properties.type", + userId: { + required: true, + serializedName: "properties.userId", type: { name: "String" } - }, - apiRevision: { - serializedName: "properties.apiRevision", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const IssueContractBaseProperties: msRest.CompositeMapper = { + serializedName: "IssueContractBaseProperties", + type: { + name: "Composite", + className: "IssueContractBaseProperties", + modelProperties: { + createdDate: { + serializedName: "createdDate", type: { - name: "String" + name: "DateTime" } }, - apiVersion: { - serializedName: "properties.apiVersion", - constraints: { - MaxLength: 100 - }, + state: { + serializedName: "state", type: { name: "String" } }, - isCurrent: { - readOnly: true, - serializedName: "properties.isCurrent", + apiId: { + serializedName: "apiId", type: { - name: "Boolean" + name: "String" } - }, - isOnline: { - readOnly: true, - serializedName: "properties.isOnline", + } + } + } +}; + +export const IssueUpdateContract: msRest.CompositeMapper = { + serializedName: "IssueUpdateContract", + type: { + name: "Composite", + className: "IssueUpdateContract", + modelProperties: { + createdDate: { + serializedName: "properties.createdDate", type: { - name: "Boolean" + name: "DateTime" } }, - apiRevisionDescription: { - serializedName: "properties.apiRevisionDescription", - constraints: { - MaxLength: 256 - }, + state: { + serializedName: "properties.state", type: { name: "String" } }, - apiVersionDescription: { - serializedName: "properties.apiVersionDescription", - constraints: { - MaxLength: 256 - }, + apiId: { + serializedName: "properties.apiId", type: { name: "String" } }, - apiVersionSetId: { - serializedName: "properties.apiVersionSetId", + title: { + serializedName: "properties.title", type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", - constraints: { - MaxLength: 300, - MinLength: 1 - }, + description: { + serializedName: "properties.description", type: { name: "String" } }, - serviceUrl: { - serializedName: "properties.serviceUrl", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, + userId: { + serializedName: "properties.userId", type: { name: "String" } - }, - path: { - serializedName: "properties.path", - constraints: { - MaxLength: 400, - MinLength: 0 - }, - type: { - name: "String" - } - }, - protocols: { - serializedName: "properties.protocols", - type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "http", - "https" - ] - } - } - } } } } }; -export const OAuth2AuthenticationSettingsContract: msRest.CompositeMapper = { - serializedName: "OAuth2AuthenticationSettingsContract", +export const IssueContract: msRest.CompositeMapper = { + serializedName: "IssueContract", type: { name: "Composite", - className: "OAuth2AuthenticationSettingsContract", + className: "IssueContract", modelProperties: { - authorizationServerId: { - serializedName: "authorizationServerId", + ...Resource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", type: { name: "String" } }, - scope: { - serializedName: "scope", + apiId: { + serializedName: "properties.apiId", + type: { + name: "String" + } + }, + title: { + required: true, + serializedName: "properties.title", + type: { + name: "String" + } + }, + description: { + required: true, + serializedName: "properties.description", + type: { + name: "String" + } + }, + userId: { + required: true, + serializedName: "properties.userId", type: { name: "String" } @@ -996,20 +1079,33 @@ export const OAuth2AuthenticationSettingsContract: msRest.CompositeMapper = { } }; -export const OpenIdAuthenticationSettingsContract: msRest.CompositeMapper = { - serializedName: "OpenIdAuthenticationSettingsContract", +export const BodyDiagnosticSettings: msRest.CompositeMapper = { + serializedName: "BodyDiagnosticSettings", type: { name: "Composite", - className: "OpenIdAuthenticationSettingsContract", + className: "BodyDiagnosticSettings", modelProperties: { - openidProviderId: { - serializedName: "openidProviderId", + bytes: { + serializedName: "bytes", + constraints: { + InclusiveMaximum: 8192 + }, type: { - name: "String" + name: "Number" } - }, - bearerTokenSendingMethods: { - serializedName: "bearerTokenSendingMethods", + } + } + } +}; + +export const HttpMessageDiagnostic: msRest.CompositeMapper = { + serializedName: "HttpMessageDiagnostic", + type: { + name: "Composite", + className: "HttpMessageDiagnostic", + modelProperties: { + headers: { + serializedName: "headers", type: { name: "Sequence", element: { @@ -1018,128 +1114,111 @@ export const OpenIdAuthenticationSettingsContract: msRest.CompositeMapper = { } } } + }, + body: { + serializedName: "body", + type: { + name: "Composite", + className: "BodyDiagnosticSettings" + } } } } }; -export const AuthenticationSettingsContract: msRest.CompositeMapper = { - serializedName: "AuthenticationSettingsContract", +export const PipelineDiagnosticSettings: msRest.CompositeMapper = { + serializedName: "PipelineDiagnosticSettings", type: { name: "Composite", - className: "AuthenticationSettingsContract", + className: "PipelineDiagnosticSettings", modelProperties: { - oAuth2: { - serializedName: "oAuth2", + request: { + serializedName: "request", type: { name: "Composite", - className: "OAuth2AuthenticationSettingsContract" + className: "HttpMessageDiagnostic" } }, - openid: { - serializedName: "openid", + response: { + serializedName: "response", type: { name: "Composite", - className: "OpenIdAuthenticationSettingsContract" - } - }, - subscriptionKeyRequired: { - serializedName: "subscriptionKeyRequired", - type: { - name: "Boolean" + className: "HttpMessageDiagnostic" } } } } }; -export const SubscriptionKeyParameterNamesContract: msRest.CompositeMapper = { - serializedName: "SubscriptionKeyParameterNamesContract", +export const SamplingSettings: msRest.CompositeMapper = { + serializedName: "SamplingSettings", type: { name: "Composite", - className: "SubscriptionKeyParameterNamesContract", + className: "SamplingSettings", modelProperties: { - header: { - serializedName: "header", + samplingType: { + serializedName: "samplingType", type: { name: "String" } }, - query: { - serializedName: "query", + percentage: { + serializedName: "percentage", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, type: { - name: "String" + name: "Number" } } } } }; -export const ApiRevisionContract: msRest.CompositeMapper = { - serializedName: "ApiRevisionContract", +export const DiagnosticContract: msRest.CompositeMapper = { + serializedName: "DiagnosticContract", type: { name: "Composite", - className: "ApiRevisionContract", + className: "DiagnosticContract", modelProperties: { - apiId: { - readOnly: true, - serializedName: "apiId", + ...Resource.type.modelProperties, + alwaysLog: { + serializedName: "properties.alwaysLog", type: { name: "String" } }, - apiRevision: { - readOnly: true, - serializedName: "apiRevision", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + loggerId: { + required: true, + serializedName: "properties.loggerId", type: { name: "String" } }, - createdDateTime: { - readOnly: true, - serializedName: "createdDateTime", - type: { - name: "DateTime" - } - }, - updatedDateTime: { - readOnly: true, - serializedName: "updatedDateTime", - type: { - name: "DateTime" - } - }, - description: { - readOnly: true, - serializedName: "description", - constraints: { - MaxLength: 256 - }, + sampling: { + serializedName: "properties.sampling", type: { - name: "String" + name: "Composite", + className: "SamplingSettings" } }, - privateUrl: { - readOnly: true, - serializedName: "privateUrl", + frontend: { + serializedName: "properties.frontend", type: { - name: "String" + name: "Composite", + className: "PipelineDiagnosticSettings" } }, - isOnline: { - readOnly: true, - serializedName: "isOnline", + backend: { + serializedName: "properties.backend", type: { - name: "Boolean" + name: "Composite", + className: "PipelineDiagnosticSettings" } }, - isCurrent: { - readOnly: true, - serializedName: "isCurrent", + enableHttpCorrelationHeaders: { + serializedName: "properties.enableHttpCorrelationHeaders", type: { name: "Boolean" } @@ -1148,76 +1227,47 @@ export const ApiRevisionContract: msRest.CompositeMapper = { } }; -export const ApiRevisionInfoContract: msRest.CompositeMapper = { - serializedName: "ApiRevisionInfoContract", +export const SchemaContract: msRest.CompositeMapper = { + serializedName: "SchemaContract", type: { name: "Composite", - className: "ApiRevisionInfoContract", + className: "SchemaContract", modelProperties: { - sourceApiId: { - serializedName: "sourceApiId", - type: { - name: "String" - } - }, - apiVersionName: { - serializedName: "apiVersionName", - constraints: { - MaxLength: 100 - }, + ...Resource.type.modelProperties, + contentType: { + required: true, + serializedName: "properties.contentType", type: { name: "String" } }, - apiRevisionDescription: { - serializedName: "apiRevisionDescription", - constraints: { - MaxLength: 256 - }, + value: { + serializedName: "properties.document.value", type: { name: "String" } - }, - apiVersionSet: { - serializedName: "apiVersionSet", - type: { - name: "Composite", - className: "ApiVersionSetContractDetails" - } } } } }; -export const ApiReleaseContract: msRest.CompositeMapper = { - serializedName: "ApiReleaseContract", +export const PolicyContract: msRest.CompositeMapper = { + serializedName: "PolicyContract", type: { name: "Composite", - className: "ApiReleaseContract", + className: "PolicyContract", modelProperties: { ...Resource.type.modelProperties, - apiId: { - serializedName: "properties.apiId", + value: { + required: true, + serializedName: "properties.value", type: { name: "String" } }, - createdDateTime: { - readOnly: true, - serializedName: "properties.createdDateTime", - type: { - name: "DateTime" - } - }, - updatedDateTime: { - readOnly: true, - serializedName: "properties.updatedDateTime", - type: { - name: "DateTime" - } - }, - notes: { - serializedName: "properties.notes", + format: { + serializedName: "properties.format", + defaultValue: 'xml', type: { name: "String" } @@ -1226,82 +1276,90 @@ export const ApiReleaseContract: msRest.CompositeMapper = { } }; -export const OperationContract: msRest.CompositeMapper = { - serializedName: "OperationContract", +export const PolicyCollection: msRest.CompositeMapper = { + serializedName: "PolicyCollection", type: { name: "Composite", - className: "OperationContract", + className: "PolicyCollection", modelProperties: { - ...Resource.type.modelProperties, - templateParameters: { - serializedName: "properties.templateParameters", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ParameterContract" + className: "PolicyContract" } } } }, - description: { - serializedName: "properties.description", - constraints: { - MaxLength: 1000 - }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - request: { - serializedName: "properties.request", - type: { - name: "Composite", - className: "RequestContract" + } + } + } +}; + +export const ProductContract: msRest.CompositeMapper = { + serializedName: "ProductContract", + type: { + name: "Composite", + className: "ProductContract", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: "String" } }, - responses: { - serializedName: "properties.responses", + terms: { + serializedName: "properties.terms", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResponseContract" - } - } + name: "String" } }, - policies: { - serializedName: "properties.policies", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", type: { - name: "String" + name: "Boolean" } }, - displayName: { - required: true, - serializedName: "properties.displayName", - constraints: { - MaxLength: 300, - MinLength: 1 - }, + approvalRequired: { + serializedName: "properties.approvalRequired", type: { - name: "String" + name: "Boolean" } }, - method: { - required: true, - serializedName: "properties.method", + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", type: { - name: "String" + name: "Number" } }, - urlTemplate: { + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "notPublished", + "published" + ] + } + }, + displayName: { required: true, - serializedName: "properties.urlTemplate", + serializedName: "properties.displayName", constraints: { - MaxLength: 1000, + MaxLength: 300, MinLength: 1 }, type: { @@ -1412,26 +1470,33 @@ export const RepresentationContract: msRest.CompositeMapper = { } }; -export const RequestContract: msRest.CompositeMapper = { - serializedName: "RequestContract", +export const ResponseContract: msRest.CompositeMapper = { + serializedName: "ResponseContract", type: { name: "Composite", - className: "RequestContract", + className: "ResponseContract", modelProperties: { + statusCode: { + required: true, + serializedName: "statusCode", + type: { + name: "Number" + } + }, description: { serializedName: "description", type: { name: "String" } }, - queryParameters: { - serializedName: "queryParameters", + representations: { + serializedName: "representations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ParameterContract" + className: "RepresentationContract" } } } @@ -1447,50 +1512,31 @@ export const RequestContract: msRest.CompositeMapper = { } } } - }, - representations: { - serializedName: "representations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RepresentationContract" - } - } - } } } } }; -export const ResponseContract: msRest.CompositeMapper = { - serializedName: "ResponseContract", +export const RequestContract: msRest.CompositeMapper = { + serializedName: "RequestContract", type: { name: "Composite", - className: "ResponseContract", + className: "RequestContract", modelProperties: { - statusCode: { - required: true, - serializedName: "statusCode", - type: { - name: "Number" - } - }, description: { serializedName: "description", type: { name: "String" } }, - representations: { - serializedName: "representations", + queryParameters: { + serializedName: "queryParameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RepresentationContract" + className: "ParameterContract" } } } @@ -1506,6 +1552,18 @@ export const ResponseContract: msRest.CompositeMapper = { } } } + }, + representations: { + serializedName: "representations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RepresentationContract" + } + } + } } } } @@ -1649,72 +1707,84 @@ export const OperationUpdateContract: msRest.CompositeMapper = { } }; -export const SchemaContract: msRest.CompositeMapper = { - serializedName: "SchemaContract", +export const OperationContract: msRest.CompositeMapper = { + serializedName: "OperationContract", type: { name: "Composite", - className: "SchemaContract", + className: "OperationContract", modelProperties: { ...Resource.type.modelProperties, - contentType: { - required: true, - serializedName: "properties.contentType", + templateParameters: { + serializedName: "properties.templateParameters", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } } }, - value: { - serializedName: "properties.document.value", + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 1000 + }, type: { name: "String" } - } - } - } -}; - -export const IssueContract: msRest.CompositeMapper = { - serializedName: "IssueContract", - type: { - name: "Composite", - className: "IssueContract", - modelProperties: { - ...Resource.type.modelProperties, - createdDate: { - serializedName: "properties.createdDate", + }, + request: { + serializedName: "properties.request", type: { - name: "DateTime" + name: "Composite", + className: "RequestContract" } }, - state: { - serializedName: "properties.state", + responses: { + serializedName: "properties.responses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResponseContract" + } + } } }, - apiId: { - serializedName: "properties.apiId", + policies: { + serializedName: "properties.policies", type: { name: "String" } }, - title: { + displayName: { required: true, - serializedName: "properties.title", + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { name: "String" } }, - description: { + method: { required: true, - serializedName: "properties.description", + serializedName: "properties.method", type: { name: "String" } }, - userId: { + urlTemplate: { required: true, - serializedName: "properties.userId", + serializedName: "properties.urlTemplate", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, type: { name: "String" } @@ -1723,44 +1793,35 @@ export const IssueContract: msRest.CompositeMapper = { } }; -export const IssueUpdateContract: msRest.CompositeMapper = { - serializedName: "IssueUpdateContract", +export const ApiReleaseContract: msRest.CompositeMapper = { + serializedName: "ApiReleaseContract", type: { name: "Composite", - className: "IssueUpdateContract", + className: "ApiReleaseContract", modelProperties: { - createdDate: { - serializedName: "properties.createdDate", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "properties.state", - type: { - name: "String" - } - }, + ...Resource.type.modelProperties, apiId: { serializedName: "properties.apiId", type: { name: "String" } }, - title: { - serializedName: "properties.title", + createdDateTime: { + readOnly: true, + serializedName: "properties.createdDateTime", type: { - name: "String" + name: "DateTime" } }, - description: { - serializedName: "properties.description", + updatedDateTime: { + readOnly: true, + serializedName: "properties.updatedDateTime", type: { - name: "String" + name: "DateTime" } }, - userId: { - serializedName: "properties.userId", + notes: { + serializedName: "properties.notes", type: { name: "String" } @@ -1769,230 +1830,175 @@ export const IssueUpdateContract: msRest.CompositeMapper = { } }; -export const IssueContractBaseProperties: msRest.CompositeMapper = { - serializedName: "IssueContractBaseProperties", - type: { +export const ApiRevisionContract: msRest.CompositeMapper = { + serializedName: "ApiRevisionContract", + type: { name: "Composite", - className: "IssueContractBaseProperties", + className: "ApiRevisionContract", modelProperties: { - createdDate: { - serializedName: "createdDate", - type: { - name: "DateTime" - } - }, - state: { - serializedName: "state", + apiId: { + readOnly: true, + serializedName: "apiId", type: { name: "String" } }, - apiId: { - serializedName: "apiId", + apiRevision: { + readOnly: true, + serializedName: "apiRevision", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } - } - } - } -}; - -export const IssueCommentContract: msRest.CompositeMapper = { - serializedName: "IssueCommentContract", - type: { - name: "Composite", - className: "IssueCommentContract", - modelProperties: { - ...Resource.type.modelProperties, - text: { - required: true, - serializedName: "properties.text", + }, + createdDateTime: { + readOnly: true, + serializedName: "createdDateTime", type: { - name: "String" + name: "DateTime" } }, - createdDate: { - serializedName: "properties.createdDate", + updatedDateTime: { + readOnly: true, + serializedName: "updatedDateTime", type: { name: "DateTime" } }, - userId: { - required: true, - serializedName: "properties.userId", + description: { + readOnly: true, + serializedName: "description", + constraints: { + MaxLength: 256 + }, type: { name: "String" } - } - } - } -}; - -export const IssueAttachmentContract: msRest.CompositeMapper = { - serializedName: "IssueAttachmentContract", - type: { - name: "Composite", - className: "IssueAttachmentContract", - modelProperties: { - ...Resource.type.modelProperties, - title: { - required: true, - serializedName: "properties.title", + }, + privateUrl: { + readOnly: true, + serializedName: "privateUrl", type: { name: "String" } }, - contentFormat: { - required: true, - serializedName: "properties.contentFormat", + isOnline: { + readOnly: true, + serializedName: "isOnline", type: { - name: "String" + name: "Boolean" } }, - content: { - required: true, - serializedName: "properties.content", + isCurrent: { + readOnly: true, + serializedName: "isCurrent", type: { - name: "String" + name: "Boolean" } } } } }; -export const LoggerContract: msRest.CompositeMapper = { - serializedName: "LoggerContract", +export const ApiUpdateContract: msRest.CompositeMapper = { + serializedName: "ApiUpdateContract", type: { name: "Composite", - className: "LoggerContract", + className: "ApiUpdateContract", 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", + authenticationSettings: { + serializedName: "properties.authenticationSettings", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Composite", + className: "AuthenticationSettingsContract" } }, - isBuffered: { - serializedName: "properties.isBuffered", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", type: { - name: "Boolean" + name: "Composite", + className: "SubscriptionKeyParameterNamesContract" } - } - } - } -}; - -export const DiagnosticContract: msRest.CompositeMapper = { - serializedName: "DiagnosticContract", - type: { - name: "Composite", - className: "DiagnosticContract", - modelProperties: { - ...Resource.type.modelProperties, - enabled: { - required: true, - serializedName: "properties.enabled", + }, + apiType: { + serializedName: "properties.type", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const ProductEntityBaseParameters: msRest.CompositeMapper = { - serializedName: "ProductEntityBaseParameters", - type: { - name: "Composite", - className: "ProductEntityBaseParameters", - modelProperties: { - description: { - serializedName: "description", + }, + apiRevision: { + serializedName: "properties.apiRevision", constraints: { - MaxLength: 1000, + MaxLength: 100, MinLength: 1 }, type: { name: "String" } }, - terms: { - serializedName: "terms", + apiVersion: { + serializedName: "properties.apiVersion", + constraints: { + MaxLength: 100 + }, type: { name: "String" } }, - subscriptionRequired: { - serializedName: "subscriptionRequired", + isCurrent: { + serializedName: "properties.isCurrent", type: { name: "Boolean" } }, - approvalRequired: { - serializedName: "approvalRequired", + isOnline: { + readOnly: true, + serializedName: "properties.isOnline", type: { name: "Boolean" } }, - subscriptionsLimit: { - serializedName: "subscriptionsLimit", + apiRevisionDescription: { + serializedName: "properties.apiRevisionDescription", + constraints: { + MaxLength: 256 + }, type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "state", + apiVersionDescription: { + serializedName: "properties.apiVersionDescription", + constraints: { + MaxLength: 256 + }, type: { - name: "Enum", - allowedValues: [ - "notPublished", - "published" - ] + name: "String" } - } - } - } -}; - -export const ProductTagResourceContractProperties: msRest.CompositeMapper = { - serializedName: "ProductTagResourceContractProperties", - type: { - name: "Composite", - className: "ProductTagResourceContractProperties", - modelProperties: { - ...ProductEntityBaseParameters.type.modelProperties, - id: { - serializedName: "id", + }, + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", type: { name: "String" } }, - name: { - required: true, - serializedName: "name", + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + displayName: { + serializedName: "properties.displayName", constraints: { MaxLength: 300, MinLength: 1 @@ -2000,91 +2006,149 @@ export const ProductTagResourceContractProperties: msRest.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const OperationTagResourceContractProperties: msRest.CompositeMapper = { - serializedName: "OperationTagResourceContractProperties", - type: { - name: "Composite", - className: "OperationTagResourceContractProperties", - modelProperties: { - id: { - serializedName: "id", + }, + serviceUrl: { + serializedName: "properties.serviceUrl", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + path: { + serializedName: "properties.path", + constraints: { + MaxLength: 400, + MinLength: 0 + }, type: { name: "String" } }, - apiName: { - readOnly: true, - serializedName: "apiName", + protocols: { + serializedName: "properties.protocols", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "http", + "https" + ] + } + } + } + } + } + } +}; + +export const ApiContract: msRest.CompositeMapper = { + serializedName: "ApiContract", + type: { + name: "Composite", + className: "ApiContract", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + authenticationSettings: { + serializedName: "properties.authenticationSettings", + type: { + name: "Composite", + className: "AuthenticationSettingsContract" + } + }, + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract" + } + }, + apiType: { + serializedName: "properties.type", type: { name: "String" } }, apiRevision: { - readOnly: true, - serializedName: "apiRevision", + serializedName: "properties.apiRevision", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } }, apiVersion: { - readOnly: true, - serializedName: "apiVersion", + serializedName: "properties.apiVersion", + constraints: { + MaxLength: 100 + }, type: { name: "String" } }, - description: { + isCurrent: { + serializedName: "properties.isCurrent", + type: { + name: "Boolean" + } + }, + isOnline: { readOnly: true, - serializedName: "description", + serializedName: "properties.isOnline", + type: { + name: "Boolean" + } + }, + apiRevisionDescription: { + serializedName: "properties.apiRevisionDescription", + constraints: { + MaxLength: 256 + }, type: { name: "String" } }, - method: { - readOnly: true, - serializedName: "method", + apiVersionDescription: { + serializedName: "properties.apiVersionDescription", + constraints: { + MaxLength: 256 + }, type: { name: "String" } }, - urlTemplate: { - readOnly: true, - serializedName: "urlTemplate", + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", type: { name: "String" } - } - } - } -}; - -export const ApiTagResourceContractProperties: msRest.CompositeMapper = { - serializedName: "ApiTagResourceContractProperties", - type: { - name: "Composite", - className: "ApiTagResourceContractProperties", - modelProperties: { - ...ApiEntityBaseContract.type.modelProperties, - id: { - serializedName: "id", + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + sourceApiId: { + serializedName: "properties.sourceApiId", type: { name: "String" } }, - name: { - serializedName: "name", + displayName: { + serializedName: "properties.displayName", constraints: { MaxLength: 300, MinLength: 1 @@ -2094,17 +2158,18 @@ export const ApiTagResourceContractProperties: msRest.CompositeMapper = { } }, serviceUrl: { - serializedName: "serviceUrl", + serializedName: "properties.serviceUrl", constraints: { MaxLength: 2000, - MinLength: 1 + MinLength: 0 }, type: { name: "String" } }, path: { - serializedName: "path", + required: true, + serializedName: "properties.path", constraints: { MaxLength: 400, MinLength: 0 @@ -2114,7 +2179,7 @@ export const ApiTagResourceContractProperties: msRest.CompositeMapper = { } }, protocols: { - serializedName: "protocols", + serializedName: "properties.protocols", type: { name: "Sequence", element: { @@ -2127,129 +2192,119 @@ export const ApiTagResourceContractProperties: msRest.CompositeMapper = { } } } - } - } - } -}; - -export const TagTagResourceContractProperties: msRest.CompositeMapper = { - serializedName: "TagTagResourceContractProperties", - type: { - name: "Composite", - className: "TagTagResourceContractProperties", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } }, - name: { - serializedName: "name", - constraints: { - MaxLength: 160, - MinLength: 1 - }, + apiVersionSet: { + serializedName: "properties.apiVersionSet", type: { - name: "String" + name: "Composite", + className: "ApiVersionSetContractDetails" } } } } }; -export const TagResourceContract: msRest.CompositeMapper = { - serializedName: "TagResourceContract", +export const ApiCreateOrUpdateParameter: msRest.CompositeMapper = { + serializedName: "ApiCreateOrUpdateParameter", type: { name: "Composite", - className: "TagResourceContract", + className: "ApiCreateOrUpdateParameter", modelProperties: { - tag: { - required: true, - serializedName: "tag", + description: { + serializedName: "properties.description", type: { - name: "Composite", - className: "TagTagResourceContractProperties" + name: "String" } }, - api: { - serializedName: "api", + authenticationSettings: { + serializedName: "properties.authenticationSettings", type: { name: "Composite", - className: "ApiTagResourceContractProperties" + className: "AuthenticationSettingsContract" } }, - operation: { - serializedName: "operation", + subscriptionKeyParameterNames: { + serializedName: "properties.subscriptionKeyParameterNames", type: { name: "Composite", - className: "OperationTagResourceContractProperties" + className: "SubscriptionKeyParameterNamesContract" } }, - product: { - serializedName: "product", + apiType: { + serializedName: "properties.type", type: { - name: "Composite", - className: "ProductTagResourceContractProperties" + name: "String" } - } - } - } -}; - -export const ProductContract: msRest.CompositeMapper = { - serializedName: "ProductContract", - type: { - name: "Composite", - className: "ProductContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + apiRevision: { + serializedName: "properties.apiRevision", constraints: { - MaxLength: 1000, + MaxLength: 100, MinLength: 1 }, type: { name: "String" } }, - terms: { - serializedName: "properties.terms", + apiVersion: { + serializedName: "properties.apiVersion", + constraints: { + MaxLength: 100 + }, type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", + isCurrent: { + serializedName: "properties.isCurrent", type: { name: "Boolean" } }, - approvalRequired: { - serializedName: "properties.approvalRequired", + isOnline: { + readOnly: true, + serializedName: "properties.isOnline", type: { name: "Boolean" } }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", + apiRevisionDescription: { + serializedName: "properties.apiRevisionDescription", + constraints: { + MaxLength: 256 + }, type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "properties.state", + apiVersionDescription: { + serializedName: "properties.apiVersionDescription", + constraints: { + MaxLength: 256 + }, type: { - name: "Enum", - allowedValues: [ - "notPublished", - "published" - ] + name: "String" + } + }, + apiVersionSetId: { + serializedName: "properties.apiVersionSetId", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + type: { + name: "String" } }, displayName: { - required: true, serializedName: "properties.displayName", constraints: { MaxLength: 300, @@ -2258,155 +2313,159 @@ export const ProductContract: msRest.CompositeMapper = { type: { name: "String" } - } - } - } -}; - -export const AuthorizationServerContract: msRest.CompositeMapper = { - serializedName: "AuthorizationServerContract", - type: { - name: "Composite", - className: "AuthorizationServerContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", + }, + serviceUrl: { + serializedName: "properties.serviceUrl", + constraints: { + MaxLength: 2000, + MinLength: 0 + }, type: { name: "String" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", + path: { + required: true, + serializedName: "properties.path", + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: "String" + } + }, + protocols: { + serializedName: "properties.protocols", type: { name: "Sequence", element: { type: { name: "Enum", allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" + "http", + "https" ] } } } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", + apiVersionSet: { + serializedName: "properties.apiVersionSet", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ApiVersionSetContractDetails" } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", + value: { + serializedName: "properties.value", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } + name: "String" } }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", + format: { + serializedName: "properties.format", type: { name: "String" } }, - supportState: { - serializedName: "properties.supportState", + wsdlSelector: { + serializedName: "properties.wsdlSelector", type: { - name: "Boolean" + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector" } }, - defaultScope: { - serializedName: "properties.defaultScope", + soapApiType: { + serializedName: "properties.apiType", type: { name: "String" } - }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", + } + } + } +}; + +export const ApiVersionSetEntityBase: msRest.CompositeMapper = { + serializedName: "ApiVersionSetEntityBase", + type: { + name: "Composite", + className: "ApiVersionSetEntityBase", + modelProperties: { + description: { + serializedName: "description", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - clientSecret: { - serializedName: "properties.clientSecret", + versionQueryName: { + serializedName: "versionQueryName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", + versionHeaderName: { + serializedName: "versionHeaderName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } - }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", + } + } + } +}; + +export const ApiVersionSetUpdateParameters: msRest.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParameters", + type: { + name: "Composite", + className: "ApiVersionSetUpdateParameters", + modelProperties: { + description: { + serializedName: "properties.description", type: { name: "String" } }, - displayName: { - required: true, - serializedName: "properties.displayName", + versionQueryName: { + serializedName: "properties.versionQueryName", constraints: { - MaxLength: 50, + MaxLength: 100, MinLength: 1 }, type: { name: "String" } }, - clientRegistrationEndpoint: { - required: true, - serializedName: "properties.clientRegistrationEndpoint", + versionHeaderName: { + serializedName: "properties.versionHeaderName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } }, - authorizationEndpoint: { - required: true, - serializedName: "properties.authorizationEndpoint", + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } }, - grantTypes: { - required: true, - serializedName: "properties.grantTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - required: true, - serializedName: "properties.clientId", + versioningScheme: { + serializedName: "properties.versioningScheme", type: { name: "String" } @@ -2415,11 +2474,11 @@ export const AuthorizationServerContract: msRest.CompositeMapper = { } }; -export const AuthorizationServerUpdateContract: msRest.CompositeMapper = { - serializedName: "AuthorizationServerUpdateContract", +export const ApiVersionSetContract: msRest.CompositeMapper = { + serializedName: "ApiVersionSetContract", type: { name: "Composite", - className: "AuthorizationServerUpdateContract", + className: "ApiVersionSetContract", modelProperties: { ...Resource.type.modelProperties, description: { @@ -2428,132 +2487,40 @@ export const AuthorizationServerUpdateContract: msRest.CompositeMapper = { name: "String" } }, - authorizationMethods: { - serializedName: "properties.authorizationMethods", + versionQueryName: { + serializedName: "properties.versionQueryName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { - name: "Sequence", - element: { - type: { - name: "Enum", - allowedValues: [ - "HEAD", - "OPTIONS", - "TRACE", - "GET", - "POST", - "PUT", - "PATCH", - "DELETE" - ] - } - } + name: "String" } }, - clientAuthenticationMethod: { - serializedName: "properties.clientAuthenticationMethod", + versionHeaderName: { + serializedName: "properties.versionHeaderName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - tokenBodyParameters: { - serializedName: "properties.tokenBodyParameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TokenBodyParameterContract" - } - } - } - }, - tokenEndpoint: { - serializedName: "properties.tokenEndpoint", - type: { - name: "String" - } - }, - supportState: { - serializedName: "properties.supportState", - type: { - name: "Boolean" - } - }, - defaultScope: { - serializedName: "properties.defaultScope", - type: { - name: "String" - } - }, - bearerTokenSendingMethods: { - serializedName: "properties.bearerTokenSendingMethods", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientSecret: { - serializedName: "properties.clientSecret", - type: { - name: "String" - } - }, - resourceOwnerUsername: { - serializedName: "properties.resourceOwnerUsername", - type: { - name: "String" - } - }, - resourceOwnerPassword: { - serializedName: "properties.resourceOwnerPassword", - type: { - name: "String" - } - }, - displayName: { - serializedName: "properties.displayName", - constraints: { - MaxLength: 50, - MinLength: 1 - }, - type: { - name: "String" - } - }, - clientRegistrationEndpoint: { - serializedName: "properties.clientRegistrationEndpoint", - type: { - name: "String" - } - }, - authorizationEndpoint: { - serializedName: "properties.authorizationEndpoint", + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } }, - grantTypes: { - serializedName: "properties.grantTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - clientId: { - serializedName: "properties.clientId", + versioningScheme: { + required: true, + serializedName: "properties.versioningScheme", type: { name: "String" } @@ -2693,93 +2660,42 @@ export const AuthorizationServerContractBaseProperties: msRest.CompositeMapper = } }; -export const BackendAuthorizationHeaderCredentials: msRest.CompositeMapper = { - serializedName: "BackendAuthorizationHeaderCredentials", - type: { - name: "Composite", - className: "BackendAuthorizationHeaderCredentials", - modelProperties: { - scheme: { - required: true, - serializedName: "scheme", - constraints: { - MaxLength: 100, - MinLength: 1 - }, - type: { - name: "String" - } - }, - parameter: { - required: true, - serializedName: "parameter", - constraints: { - MaxLength: 300, - MinLength: 1 - }, - type: { - name: "String" - } - } - } - } -}; - -export const X509CertificateName: msRest.CompositeMapper = { - serializedName: "X509CertificateName", - type: { - name: "Composite", - className: "X509CertificateName", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - issuerCertificateThumbprint: { - serializedName: "issuerCertificateThumbprint", - type: { - name: "String" - } - } - } - } -}; - -export const BackendServiceFabricClusterProperties: msRest.CompositeMapper = { - serializedName: "BackendServiceFabricClusterProperties", +export const AuthorizationServerUpdateContract: msRest.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", type: { name: "Composite", - className: "BackendServiceFabricClusterProperties", + className: "AuthorizationServerUpdateContract", modelProperties: { - clientCertificatethumbprint: { - required: true, - serializedName: "clientCertificatethumbprint", + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } }, - maxPartitionResolutionRetries: { - serializedName: "maxPartitionResolutionRetries", - type: { - name: "Number" - } - }, - managementEndpoints: { - required: true, - serializedName: "managementEndpoints", + authorizationMethods: { + serializedName: "properties.authorizationMethods", type: { name: "Sequence", element: { type: { - name: "String" + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] } } } }, - serverCertificateThumbprints: { - serializedName: "serverCertificateThumbprints", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", type: { name: "Sequence", element: { @@ -2789,50 +2705,38 @@ export const BackendServiceFabricClusterProperties: msRest.CompositeMapper = { } } }, - serverX509Names: { - serializedName: "serverX509Names", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "X509CertificateName" + className: "TokenBodyParameterContract" } } } - } - } - } -}; - -export const BackendProperties: msRest.CompositeMapper = { - serializedName: "BackendProperties", - type: { - name: "Composite", - className: "BackendProperties", - modelProperties: { - serviceFabricCluster: { - serializedName: "serviceFabricCluster", + }, + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", type: { - name: "Composite", - className: "BackendServiceFabricClusterProperties" + name: "String" } - } - } - } -}; - -export const BackendCredentialsContract: msRest.CompositeMapper = { - serializedName: "BackendCredentialsContract", - type: { - name: "Composite", - className: "BackendCredentialsContract", - modelProperties: { - certificate: { - serializedName: "certificate", - constraints: { - MaxItems: 32 - }, + }, + supportState: { + serializedName: "properties.supportState", + type: { + name: "Boolean" + } + }, + defaultScope: { + serializedName: "properties.defaultScope", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", type: { name: "Sequence", element: { @@ -2842,337 +2746,211 @@ export const BackendCredentialsContract: msRest.CompositeMapper = { } } }, - query: { - serializedName: "query", + clientSecret: { + serializedName: "properties.clientSecret", type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } }, - header: { - serializedName: "header", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } }, - authorization: { - serializedName: "authorization", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", type: { - name: "Composite", - className: "BackendAuthorizationHeaderCredentials" + name: "String" } - } - } - } -}; - -export const BackendProxyContract: msRest.CompositeMapper = { - serializedName: "BackendProxyContract", - type: { - name: "Composite", - className: "BackendProxyContract", - modelProperties: { - url: { - required: true, - serializedName: "url", + }, + displayName: { + serializedName: "properties.displayName", constraints: { - MaxLength: 2000, + MaxLength: 50, MinLength: 1 }, type: { name: "String" } }, - username: { - serializedName: "username", + clientRegistrationEndpoint: { + serializedName: "properties.clientRegistrationEndpoint", type: { name: "String" } }, - password: { - serializedName: "password", + authorizationEndpoint: { + serializedName: "properties.authorizationEndpoint", type: { name: "String" } - } - } - } -}; - -export const BackendTlsProperties: msRest.CompositeMapper = { - serializedName: "BackendTlsProperties", - type: { - name: "Composite", - className: "BackendTlsProperties", - modelProperties: { - validateCertificateChain: { - serializedName: "validateCertificateChain", - defaultValue: true, + }, + grantTypes: { + serializedName: "properties.grantTypes", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - validateCertificateName: { - serializedName: "validateCertificateName", - defaultValue: true, + clientId: { + serializedName: "properties.clientId", type: { - name: "Boolean" + name: "String" } } } } }; -export const BackendBaseParameters: msRest.CompositeMapper = { - serializedName: "BackendBaseParameters", +export const AuthorizationServerContract: msRest.CompositeMapper = { + serializedName: "AuthorizationServerContract", type: { name: "Composite", - className: "BackendBaseParameters", + className: "AuthorizationServerContract", modelProperties: { - title: { - serializedName: "title", - constraints: { - MaxLength: 300, - MinLength: 1 - }, - type: { - name: "String" - } - }, + ...Resource.type.modelProperties, description: { - serializedName: "description", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, + serializedName: "properties.description", type: { name: "String" } }, - properties: { - serializedName: "properties", + authorizationMethods: { + serializedName: "properties.authorizationMethods", type: { - name: "Composite", - className: "BackendProperties" + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } } }, - credentials: { - serializedName: "credentials", + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", type: { - name: "Composite", - className: "BackendCredentialsContract" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - proxy: { - serializedName: "proxy", + tokenBodyParameters: { + serializedName: "properties.tokenBodyParameters", type: { - name: "Composite", - className: "BackendProxyContract" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } } }, - tls: { - serializedName: "tls", - type: { - name: "Composite", - className: "BackendTlsProperties" - } - } - } - } -}; - -export const BackendContract: msRest.CompositeMapper = { - serializedName: "BackendContract", - type: { - name: "Composite", - className: "BackendContract", - modelProperties: { - ...Resource.type.modelProperties, - title: { - serializedName: "properties.title", - constraints: { - MaxLength: 300, - MinLength: 1 - }, + tokenEndpoint: { + serializedName: "properties.tokenEndpoint", type: { name: "String" } }, - description: { - serializedName: "properties.description", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, + supportState: { + serializedName: "properties.supportState", type: { - name: "String" + name: "Boolean" } }, - resourceId: { - serializedName: "properties.resourceId", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, + defaultScope: { + serializedName: "properties.defaultScope", type: { name: "String" } }, - properties: { - serializedName: "properties.properties", + bearerTokenSendingMethods: { + serializedName: "properties.bearerTokenSendingMethods", type: { - name: "Composite", - className: "BackendProperties" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - credentials: { - serializedName: "properties.credentials", + clientSecret: { + serializedName: "properties.clientSecret", type: { - name: "Composite", - className: "BackendCredentialsContract" + name: "String" } }, - proxy: { - serializedName: "properties.proxy", + resourceOwnerUsername: { + serializedName: "properties.resourceOwnerUsername", type: { - name: "Composite", - className: "BackendProxyContract" + name: "String" } }, - tls: { - serializedName: "properties.tls", + resourceOwnerPassword: { + serializedName: "properties.resourceOwnerPassword", type: { - name: "Composite", - className: "BackendTlsProperties" + name: "String" } }, - url: { + displayName: { required: true, - serializedName: "properties.url", + serializedName: "properties.displayName", constraints: { - MaxLength: 2000, + MaxLength: 50, MinLength: 1 }, type: { name: "String" } }, - protocol: { + clientRegistrationEndpoint: { required: true, - serializedName: "properties.protocol", - type: { - name: "String" - } - } - } - } -}; - -export const BackendUpdateParameters: msRest.CompositeMapper = { - serializedName: "BackendUpdateParameters", - type: { - name: "Composite", - className: "BackendUpdateParameters", - modelProperties: { - title: { - serializedName: "properties.title", - constraints: { - MaxLength: 300, - MinLength: 1 - }, - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, + serializedName: "properties.clientRegistrationEndpoint", type: { name: "String" } }, - resourceId: { - serializedName: "properties.resourceId", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, + authorizationEndpoint: { + required: true, + serializedName: "properties.authorizationEndpoint", type: { name: "String" } }, - properties: { - serializedName: "properties.properties", - type: { - name: "Composite", - className: "BackendProperties" - } - }, - credentials: { - serializedName: "properties.credentials", - type: { - name: "Composite", - className: "BackendCredentialsContract" - } - }, - proxy: { - serializedName: "properties.proxy", - type: { - name: "Composite", - className: "BackendProxyContract" - } - }, - tls: { - serializedName: "properties.tls", - type: { - name: "Composite", - className: "BackendTlsProperties" - } - }, - url: { - serializedName: "properties.url", - constraints: { - MaxLength: 2000, - MinLength: 1 - }, + grantTypes: { + required: true, + serializedName: "properties.grantTypes", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - protocol: { - serializedName: "properties.protocol", + clientId: { + required: true, + serializedName: "properties.clientId", type: { name: "String" } @@ -3198,54 +2976,55 @@ export const BackendReconnectContract: msRest.CompositeMapper = { } }; -export const CertificateContract: msRest.CompositeMapper = { - serializedName: "CertificateContract", +export const BackendTlsProperties: msRest.CompositeMapper = { + serializedName: "BackendTlsProperties", type: { name: "Composite", - className: "CertificateContract", + className: "BackendTlsProperties", modelProperties: { - ...Resource.type.modelProperties, - subject: { - required: true, - serializedName: "properties.subject", - type: { - name: "String" - } - }, - thumbprint: { - required: true, - serializedName: "properties.thumbprint", + validateCertificateChain: { + serializedName: "validateCertificateChain", + defaultValue: true, type: { - name: "String" + name: "Boolean" } }, - expirationDate: { - required: true, - serializedName: "properties.expirationDate", + validateCertificateName: { + serializedName: "validateCertificateName", + defaultValue: true, type: { - name: "DateTime" + name: "Boolean" } } } } }; -export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = { - serializedName: "CertificateCreateOrUpdateParameters", +export const BackendProxyContract: msRest.CompositeMapper = { + serializedName: "BackendProxyContract", type: { name: "Composite", - className: "CertificateCreateOrUpdateParameters", + className: "BackendProxyContract", modelProperties: { - data: { + url: { required: true, - serializedName: "properties.data", + serializedName: "url", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + username: { + serializedName: "username", type: { name: "String" } }, password: { - required: true, - serializedName: "properties.password", + serializedName: "password", type: { name: "String" } @@ -3254,29 +3033,30 @@ export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = { } }; -export const CertificateInformation: msRest.CompositeMapper = { - serializedName: "CertificateInformation", +export const BackendAuthorizationHeaderCredentials: msRest.CompositeMapper = { + serializedName: "BackendAuthorizationHeaderCredentials", type: { name: "Composite", - className: "CertificateInformation", + className: "BackendAuthorizationHeaderCredentials", modelProperties: { - expiry: { - required: true, - serializedName: "expiry", - type: { - name: "DateTime" - } - }, - thumbprint: { + scheme: { required: true, - serializedName: "thumbprint", + serializedName: "scheme", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } }, - subject: { + parameter: { required: true, - serializedName: "subject", + serializedName: "parameter", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { name: "String" } @@ -3285,223 +3065,310 @@ export const CertificateInformation: msRest.CompositeMapper = { } }; -export const CertificateConfiguration: msRest.CompositeMapper = { - serializedName: "CertificateConfiguration", +export const BackendCredentialsContract: msRest.CompositeMapper = { + serializedName: "BackendCredentialsContract", type: { name: "Composite", - className: "CertificateConfiguration", + className: "BackendCredentialsContract", modelProperties: { - encodedCertificate: { - serializedName: "encodedCertificate", + certificate: { + serializedName: "certificate", + constraints: { + MaxItems: 32 + }, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - certificatePassword: { - serializedName: "certificatePassword", + query: { + serializedName: "query", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - storeName: { - required: true, - serializedName: "storeName", + header: { + serializedName: "header", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } } }, - certificate: { - serializedName: "certificate", + authorization: { + serializedName: "authorization", type: { name: "Composite", - className: "CertificateInformation" + className: "BackendAuthorizationHeaderCredentials" } } } } }; -export const HostnameConfiguration: msRest.CompositeMapper = { - serializedName: "HostnameConfiguration", +export const X509CertificateName: msRest.CompositeMapper = { + serializedName: "X509CertificateName", type: { name: "Composite", - className: "HostnameConfiguration", + className: "X509CertificateName", modelProperties: { - type: { - required: true, - serializedName: "type", + name: { + serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "Proxy", - "Portal", - "Management", - "Scm" - ] + name: "String" } }, - hostName: { - required: true, - serializedName: "hostName", + issuerCertificateThumbprint: { + serializedName: "issuerCertificateThumbprint", type: { name: "String" } - }, - keyVaultId: { - serializedName: "keyVaultId", + } + } + } +}; + +export const BackendServiceFabricClusterProperties: msRest.CompositeMapper = { + serializedName: "BackendServiceFabricClusterProperties", + type: { + name: "Composite", + className: "BackendServiceFabricClusterProperties", + modelProperties: { + clientCertificatethumbprint: { + required: true, + serializedName: "clientCertificatethumbprint", type: { name: "String" } }, - encodedCertificate: { - serializedName: "encodedCertificate", + maxPartitionResolutionRetries: { + serializedName: "maxPartitionResolutionRetries", type: { - name: "String" + name: "Number" } }, - certificatePassword: { - serializedName: "certificatePassword", + managementEndpoints: { + required: true, + serializedName: "managementEndpoints", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - defaultSslBinding: { - serializedName: "defaultSslBinding", - defaultValue: false, + serverCertificateThumbprints: { + serializedName: "serverCertificateThumbprints", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - negotiateClientCertificate: { - serializedName: "negotiateClientCertificate", - defaultValue: false, + serverX509Names: { + serializedName: "serverX509Names", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "X509CertificateName" + } + } } - }, - certificate: { - serializedName: "certificate", + } + } + } +}; + +export const BackendProperties: msRest.CompositeMapper = { + serializedName: "BackendProperties", + type: { + name: "Composite", + className: "BackendProperties", + modelProperties: { + serviceFabricCluster: { + serializedName: "serviceFabricCluster", type: { name: "Composite", - className: "CertificateInformation" + className: "BackendServiceFabricClusterProperties" } } } } }; -export const VirtualNetworkConfiguration: msRest.CompositeMapper = { - serializedName: "VirtualNetworkConfiguration", +export const BackendBaseParameters: msRest.CompositeMapper = { + serializedName: "BackendBaseParameters", type: { name: "Composite", - className: "VirtualNetworkConfiguration", + className: "BackendBaseParameters", modelProperties: { - vnetid: { - readOnly: true, - serializedName: "vnetid", + title: { + serializedName: "title", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { name: "String" } }, - subnetname: { - readOnly: true, - serializedName: "subnetname", + description: { + serializedName: "description", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, type: { name: "String" } }, - subnetResourceId: { - serializedName: "subnetResourceId", + resourceId: { + serializedName: "resourceId", constraints: { - Pattern: /^\/subscriptions\/[^\/]*\/resourceGroups\/[^\/]*\/providers\/Microsoft.(ClassicNetwork|Network)\/virtualNetworks\/[^\/]*\/subnets\/[^\/]*$/ + MaxLength: 2000, + MinLength: 1 }, type: { name: "String" } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BackendProperties" + } + }, + credentials: { + serializedName: "credentials", + type: { + name: "Composite", + className: "BackendCredentialsContract" + } + }, + proxy: { + serializedName: "proxy", + type: { + name: "Composite", + className: "BackendProxyContract" + } + }, + tls: { + serializedName: "tls", + type: { + name: "Composite", + className: "BackendTlsProperties" + } } } } }; -export const ApiManagementServiceSkuProperties: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceSkuProperties", +export const BackendUpdateParameters: msRest.CompositeMapper = { + serializedName: "BackendUpdateParameters", type: { name: "Composite", - className: "ApiManagementServiceSkuProperties", + className: "BackendUpdateParameters", modelProperties: { - name: { - required: true, - serializedName: "name", + title: { + serializedName: "properties.title", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { name: "String" } }, - capacity: { - serializedName: "capacity", - defaultValue: 1, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const AdditionalLocation: msRest.CompositeMapper = { - serializedName: "AdditionalLocation", - type: { - name: "Composite", - className: "AdditionalLocation", - modelProperties: { - location: { - required: true, - serializedName: "location", + }, + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, type: { name: "String" } }, - sku: { - required: true, - serializedName: "sku", + properties: { + serializedName: "properties.properties", type: { name: "Composite", - className: "ApiManagementServiceSkuProperties" + className: "BackendProperties" } }, - publicIPAddresses: { - readOnly: true, - serializedName: "publicIPAddresses", + credentials: { + serializedName: "properties.credentials", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "BackendCredentialsContract" } }, - privateIPAddresses: { - readOnly: true, - serializedName: "privateIPAddresses", + proxy: { + serializedName: "properties.proxy", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "BackendProxyContract" } }, - virtualNetworkConfiguration: { - serializedName: "virtualNetworkConfiguration", + tls: { + serializedName: "properties.tls", type: { name: "Composite", - className: "VirtualNetworkConfiguration" + className: "BackendTlsProperties" } }, - gatewayRegionalUrl: { - readOnly: true, - serializedName: "gatewayRegionalUrl", + url: { + serializedName: "properties.url", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + protocol: { + serializedName: "properties.protocol", type: { name: "String" } @@ -3510,36 +3377,85 @@ export const AdditionalLocation: msRest.CompositeMapper = { } }; -export const ApiManagementServiceBackupRestoreParameters: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceBackupRestoreParameters", +export const BackendContract: msRest.CompositeMapper = { + serializedName: "BackendContract", type: { name: "Composite", - className: "ApiManagementServiceBackupRestoreParameters", + className: "BackendContract", modelProperties: { - storageAccount: { - required: true, - serializedName: "storageAccount", + ...Resource.type.modelProperties, + title: { + serializedName: "properties.title", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { name: "String" } }, - accessKey: { - required: true, - serializedName: "accessKey", + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, type: { name: "String" } }, - containerName: { - required: true, - serializedName: "containerName", + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, type: { name: "String" } }, - backupName: { + properties: { + serializedName: "properties.properties", + type: { + name: "Composite", + className: "BackendProperties" + } + }, + credentials: { + serializedName: "properties.credentials", + type: { + name: "Composite", + className: "BackendCredentialsContract" + } + }, + proxy: { + serializedName: "properties.proxy", + type: { + name: "Composite", + className: "BackendProxyContract" + } + }, + tls: { + serializedName: "properties.tls", + type: { + name: "Composite", + className: "BackendTlsProperties" + } + }, + url: { required: true, - serializedName: "backupName", + serializedName: "properties.url", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "properties.protocol", type: { name: "String" } @@ -3548,158 +3464,184 @@ export const ApiManagementServiceBackupRestoreParameters: msRest.CompositeMapper } }; -export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceBaseProperties", +export const CacheUpdateParameters: msRest.CompositeMapper = { + serializedName: "CacheUpdateParameters", type: { name: "Composite", - className: "ApiManagementServiceBaseProperties", + className: "CacheUpdateParameters", modelProperties: { - notificationSenderEmail: { - serializedName: "notificationSenderEmail", + description: { + serializedName: "properties.description", constraints: { - MaxLength: 100 + MaxLength: 2000 }, type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "provisioningState", + connectionString: { + serializedName: "properties.connectionString", + constraints: { + MaxLength: 300 + }, type: { name: "String" } }, - targetProvisioningState: { - readOnly: true, - serializedName: "targetProvisioningState", + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000 + }, type: { name: "String" } - }, - createdAtUtc: { - readOnly: true, - serializedName: "createdAtUtc", - type: { - name: "DateTime" - } - }, - gatewayUrl: { - readOnly: true, - serializedName: "gatewayUrl", + } + } + } +}; + +export const CacheContract: msRest.CompositeMapper = { + serializedName: "CacheContract", + type: { + name: "Composite", + className: "CacheContract", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 2000 + }, type: { name: "String" } }, - gatewayRegionalUrl: { - readOnly: true, - serializedName: "gatewayRegionalUrl", + connectionString: { + required: true, + serializedName: "properties.connectionString", + constraints: { + MaxLength: 300 + }, type: { name: "String" } }, - portalUrl: { - readOnly: true, - serializedName: "portalUrl", + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000 + }, type: { name: "String" } - }, - managementApiUrl: { - readOnly: true, - serializedName: "managementApiUrl", + } + } + } +}; + +export const CertificateContract: msRest.CompositeMapper = { + serializedName: "CertificateContract", + type: { + name: "Composite", + className: "CertificateContract", + modelProperties: { + ...Resource.type.modelProperties, + subject: { + required: true, + serializedName: "properties.subject", type: { name: "String" } }, - scmUrl: { - readOnly: true, - serializedName: "scmUrl", + thumbprint: { + required: true, + serializedName: "properties.thumbprint", type: { name: "String" } }, - hostnameConfigurations: { - serializedName: "hostnameConfigurations", + expirationDate: { + required: true, + serializedName: "properties.expirationDate", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } + name: "DateTime" } - }, - publicIPAddresses: { - readOnly: true, - serializedName: "publicIPAddresses", + } + } + } +}; + +export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "CertificateCreateOrUpdateParameters", + type: { + name: "Composite", + className: "CertificateCreateOrUpdateParameters", + modelProperties: { + data: { + required: true, + serializedName: "properties.data", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - privateIPAddresses: { - readOnly: true, - serializedName: "privateIPAddresses", + password: { + required: true, + serializedName: "properties.password", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } - }, - virtualNetworkConfiguration: { - serializedName: "virtualNetworkConfiguration", + } + } + } +}; + +export const ResourceSku: msRest.CompositeMapper = { + serializedName: "ResourceSku", + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + name: { + serializedName: "name", type: { - name: "Composite", - className: "VirtualNetworkConfiguration" + name: "String" } - }, - additionalLocations: { - serializedName: "additionalLocations", + } + } + } +}; + +export const ResourceSkuCapacity: msRest.CompositeMapper = { + serializedName: "ResourceSkuCapacity", + type: { + name: "Composite", + className: "ResourceSkuCapacity", + modelProperties: { + minimum: { + readOnly: true, + serializedName: "minimum", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } + name: "Number" } }, - customProperties: { - serializedName: "customProperties", + maximum: { + readOnly: true, + serializedName: "maximum", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Number" } }, - certificates: { - serializedName: "certificates", + default: { + readOnly: true, + serializedName: "default", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } + name: "Number" } }, - virtualNetworkType: { - serializedName: "virtualNetworkType", - defaultValue: 'None', + scaleType: { + readOnly: true, + serializedName: "scaleType", type: { name: "String" } @@ -3708,168 +3650,250 @@ export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { } }; -export const ApiManagementServiceIdentity: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceIdentity", +export const ResourceSkuResult: msRest.CompositeMapper = { + serializedName: "ResourceSkuResult", type: { name: "Composite", - className: "ApiManagementServiceIdentity", + className: "ResourceSkuResult", modelProperties: { - type: { - required: true, - isConstant: true, - serializedName: "type", - defaultValue: 'SystemAssigned', + resourceType: { + readOnly: true, + serializedName: "resourceType", type: { name: "String" } }, - principalId: { + sku: { readOnly: true, - serializedName: "principalId", + serializedName: "sku", type: { - name: "Uuid" + name: "Composite", + className: "ResourceSku" } }, - tenantId: { + capacity: { readOnly: true, - serializedName: "tenantId", + serializedName: "capacity", type: { - name: "Uuid" + name: "Composite", + className: "ResourceSkuCapacity" } } } } }; -export const ApimResource: msRest.CompositeMapper = { - serializedName: "ApimResource", +export const CertificateInformation: msRest.CompositeMapper = { + serializedName: "CertificateInformation", type: { name: "Composite", - className: "ApimResource", + className: "CertificateInformation", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + expiry: { + required: true, + serializedName: "expiry", + type: { + name: "DateTime" + } + }, + thumbprint: { + required: true, + serializedName: "thumbprint", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + subject: { + required: true, + serializedName: "subject", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateConfiguration: msRest.CompositeMapper = { + serializedName: "CertificateConfiguration", + type: { + name: "Composite", + className: "CertificateConfiguration", + modelProperties: { + encodedCertificate: { + serializedName: "encodedCertificate", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + certificatePassword: { + serializedName: "certificatePassword", type: { name: "String" } }, - tags: { - serializedName: "tags", + storeName: { + required: true, + serializedName: "storeName", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" + } + }, + certificate: { + serializedName: "certificate", + type: { + name: "Composite", + className: "CertificateInformation" } } } } }; -export const ApiManagementServiceResource: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceResource", +export const HostnameConfiguration: msRest.CompositeMapper = { + serializedName: "HostnameConfiguration", type: { name: "Composite", - className: "ApiManagementServiceResource", + className: "HostnameConfiguration", modelProperties: { - ...ApimResource.type.modelProperties, - notificationSenderEmail: { - serializedName: "properties.notificationSenderEmail", - constraints: { - MaxLength: 100 - }, + type: { + required: true, + serializedName: "type", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + hostName: { + required: true, + serializedName: "hostName", type: { name: "String" } }, - targetProvisioningState: { - readOnly: true, - serializedName: "properties.targetProvisioningState", + keyVaultId: { + serializedName: "keyVaultId", type: { name: "String" } }, - createdAtUtc: { - readOnly: true, - serializedName: "properties.createdAtUtc", + encodedCertificate: { + serializedName: "encodedCertificate", type: { - name: "DateTime" + name: "String" } }, - gatewayUrl: { - readOnly: true, - serializedName: "properties.gatewayUrl", + certificatePassword: { + serializedName: "certificatePassword", type: { name: "String" } }, - gatewayRegionalUrl: { + defaultSslBinding: { + serializedName: "defaultSslBinding", + defaultValue: false, + type: { + name: "Boolean" + } + }, + negotiateClientCertificate: { + serializedName: "negotiateClientCertificate", + defaultValue: false, + type: { + name: "Boolean" + } + }, + certificate: { + serializedName: "certificate", + type: { + name: "Composite", + className: "CertificateInformation" + } + } + } + } +}; + +export const VirtualNetworkConfiguration: msRest.CompositeMapper = { + serializedName: "VirtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration", + modelProperties: { + vnetid: { readOnly: true, - serializedName: "properties.gatewayRegionalUrl", + serializedName: "vnetid", type: { name: "String" } }, - portalUrl: { + subnetname: { readOnly: true, - serializedName: "properties.portalUrl", + serializedName: "subnetname", type: { name: "String" } }, - managementApiUrl: { - readOnly: true, - serializedName: "properties.managementApiUrl", + subnetResourceId: { + serializedName: "subnetResourceId", + constraints: { + Pattern: /^\/subscriptions\/[^\/]*\/resourceGroups\/[^\/]*\/providers\/Microsoft.(ClassicNetwork|Network)\/virtualNetworks\/[^\/]*\/subnets\/[^\/]*$/ + }, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementServiceSkuProperties: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceSkuProperties", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties", + modelProperties: { + name: { + required: true, + serializedName: "name", type: { name: "String" } }, - scmUrl: { - readOnly: true, - serializedName: "properties.scmUrl", + capacity: { + serializedName: "capacity", + defaultValue: 1, + type: { + name: "Number" + } + } + } + } +}; + +export const AdditionalLocation: msRest.CompositeMapper = { + serializedName: "AdditionalLocation", + type: { + name: "Composite", + className: "AdditionalLocation", + modelProperties: { + location: { + required: true, + serializedName: "location", type: { name: "String" } }, - hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", + sku: { + required: true, + serializedName: "sku", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HostnameConfiguration" - } - } + name: "Composite", + className: "ApiManagementServiceSkuProperties" } }, publicIPAddresses: { readOnly: true, - serializedName: "properties.publicIPAddresses", + serializedName: "publicIPAddresses", type: { name: "Sequence", element: { @@ -3881,7 +3905,7 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { }, privateIPAddresses: { readOnly: true, - serializedName: "properties.privateIPAddresses", + serializedName: "privateIPAddresses", type: { name: "Sequence", element: { @@ -3892,99 +3916,53 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { } }, virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", + serializedName: "virtualNetworkConfiguration", type: { name: "Composite", className: "VirtualNetworkConfiguration" } }, - additionalLocations: { - serializedName: "properties.additionalLocations", + gatewayRegionalUrl: { + readOnly: true, + serializedName: "gatewayRegionalUrl", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdditionalLocation" - } - } + name: "String" } - }, - customProperties: { - serializedName: "properties.customProperties", + } + } + } +}; + +export const ApiManagementServiceBackupRestoreParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceBackupRestoreParameters", + type: { + name: "Composite", + className: "ApiManagementServiceBackupRestoreParameters", + modelProperties: { + storageAccount: { + required: true, + serializedName: "storageAccount", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" } }, - certificates: { - serializedName: "properties.certificates", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CertificateConfiguration" - } - } - } - }, - virtualNetworkType: { - serializedName: "properties.virtualNetworkType", - defaultValue: 'None', - type: { - name: "String" - } - }, - publisherEmail: { + accessKey: { required: true, - serializedName: "properties.publisherEmail", - constraints: { - MaxLength: 100 - }, + serializedName: "accessKey", type: { name: "String" } }, - publisherName: { + containerName: { required: true, - serializedName: "properties.publisherName", - constraints: { - MaxLength: 100 - }, + serializedName: "containerName", type: { name: "String" } }, - sku: { - required: true, - serializedName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ApiManagementServiceIdentity" - } - }, - location: { + backupName: { required: true, - serializedName: "location", - type: { - name: "String" - } - }, - etag: { - readOnly: true, - serializedName: "etag", + serializedName: "backupName", type: { name: "String" } @@ -3993,15 +3971,14 @@ export const ApiManagementServiceResource: msRest.CompositeMapper = { } }; -export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateParameters", +export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceBaseProperties", type: { name: "Composite", - className: "ApiManagementServiceUpdateParameters", + className: "ApiManagementServiceBaseProperties", modelProperties: { - ...ApimResource.type.modelProperties, notificationSenderEmail: { - serializedName: "properties.notificationSenderEmail", + serializedName: "notificationSenderEmail", constraints: { MaxLength: 100 }, @@ -4011,62 +3988,62 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { }, provisioningState: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "provisioningState", type: { name: "String" } }, targetProvisioningState: { readOnly: true, - serializedName: "properties.targetProvisioningState", + serializedName: "targetProvisioningState", type: { name: "String" } }, createdAtUtc: { readOnly: true, - serializedName: "properties.createdAtUtc", + serializedName: "createdAtUtc", type: { name: "DateTime" } }, gatewayUrl: { readOnly: true, - serializedName: "properties.gatewayUrl", + serializedName: "gatewayUrl", type: { name: "String" } }, gatewayRegionalUrl: { readOnly: true, - serializedName: "properties.gatewayRegionalUrl", + serializedName: "gatewayRegionalUrl", type: { name: "String" } }, portalUrl: { readOnly: true, - serializedName: "properties.portalUrl", + serializedName: "portalUrl", type: { name: "String" } }, managementApiUrl: { readOnly: true, - serializedName: "properties.managementApiUrl", + serializedName: "managementApiUrl", type: { name: "String" } }, scmUrl: { readOnly: true, - serializedName: "properties.scmUrl", + serializedName: "scmUrl", type: { name: "String" } }, hostnameConfigurations: { - serializedName: "properties.hostnameConfigurations", + serializedName: "hostnameConfigurations", type: { name: "Sequence", element: { @@ -4079,7 +4056,7 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { }, publicIPAddresses: { readOnly: true, - serializedName: "properties.publicIPAddresses", + serializedName: "publicIPAddresses", type: { name: "Sequence", element: { @@ -4091,7 +4068,7 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { }, privateIPAddresses: { readOnly: true, - serializedName: "properties.privateIPAddresses", + serializedName: "privateIPAddresses", type: { name: "Sequence", element: { @@ -4102,14 +4079,14 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { } }, virtualNetworkConfiguration: { - serializedName: "properties.virtualNetworkConfiguration", + serializedName: "virtualNetworkConfiguration", type: { name: "Composite", className: "VirtualNetworkConfiguration" } }, additionalLocations: { - serializedName: "properties.additionalLocations", + serializedName: "additionalLocations", type: { name: "Sequence", element: { @@ -4121,7 +4098,7 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { } }, customProperties: { - serializedName: "properties.customProperties", + serializedName: "customProperties", type: { name: "Dictionary", value: { @@ -4132,7 +4109,7 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { } }, certificates: { - serializedName: "properties.certificates", + serializedName: "certificates", type: { name: "Sequence", element: { @@ -4143,357 +4120,308 @@ export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { } } }, - virtualNetworkType: { - serializedName: "properties.virtualNetworkType", - defaultValue: 'None', + enableClientCertificate: { + serializedName: "enableClientCertificate", + defaultValue: false, type: { - name: "String" + name: "Boolean" } }, - publisherEmail: { - serializedName: "properties.publisherEmail", - constraints: { - MaxLength: 100 - }, + virtualNetworkType: { + serializedName: "virtualNetworkType", + defaultValue: 'None', type: { name: "String" } - }, - publisherName: { - serializedName: "properties.publisherName", - constraints: { - MaxLength: 100 - }, + } + } + } +}; + +export const ApiManagementServiceIdentity: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceIdentity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity", + modelProperties: { + type: { + required: true, + isConstant: true, + serializedName: "type", + defaultValue: 'SystemAssigned', type: { name: "String" } }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "ApiManagementServiceSkuProperties" - } - }, - identity: { - serializedName: "identity", + principalId: { + readOnly: true, + serializedName: "principalId", type: { - name: "Composite", - className: "ApiManagementServiceIdentity" + name: "Uuid" } }, - etag: { + tenantId: { readOnly: true, - serializedName: "etag", + serializedName: "tenantId", type: { - name: "String" + name: "Uuid" } } } } }; -export const ApiManagementServiceGetSsoTokenResult: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceGetSsoTokenResult", +export const ApimResource: msRest.CompositeMapper = { + serializedName: "ApimResource", type: { name: "Composite", - className: "ApiManagementServiceGetSsoTokenResult", + className: "ApimResource", modelProperties: { - redirectUri: { - serializedName: "redirectUri", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } - } - } - } -}; - -export const ApiManagementServiceCheckNameAvailabilityParameters: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", - type: { - name: "Composite", - className: "ApiManagementServiceCheckNameAvailabilityParameters", - modelProperties: { + }, name: { - required: true, + readOnly: true, serializedName: "name", type: { name: "String" } - } - } - } -}; - -export const ApiManagementServiceNameAvailabilityResult: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceNameAvailabilityResult", - type: { - name: "Composite", - className: "ApiManagementServiceNameAvailabilityResult", - modelProperties: { - nameAvailable: { - readOnly: true, - serializedName: "nameAvailable", - type: { - name: "Boolean" - } }, - message: { + type: { readOnly: true, - serializedName: "message", + serializedName: "type", type: { name: "String" } }, - reason: { - serializedName: "reason", + tags: { + serializedName: "tags", type: { - name: "Enum", - allowedValues: [ - "Valid", - "Invalid", - "AlreadyExists" - ] + name: "Dictionary", + value: { + type: { + name: "String" + } + } } } } } }; -export const ApiManagementServiceApplyNetworkConfigurationParameters: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", +export const ApiManagementServiceResource: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceResource", type: { name: "Composite", - className: "ApiManagementServiceApplyNetworkConfigurationParameters", + className: "ApiManagementServiceResource", modelProperties: { - location: { - serializedName: "location", + ...ApimResource.type.modelProperties, + notificationSenderEmail: { + serializedName: "properties.notificationSenderEmail", + constraints: { + MaxLength: 100 + }, type: { name: "String" } - } - } - } -}; - -export const ApiManagementServiceUploadCertificateParameters: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceUploadCertificateParameters", - type: { - name: "Composite", - className: "ApiManagementServiceUploadCertificateParameters", - modelProperties: { - type: { - required: true, - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "Proxy", - "Portal", - "Management", - "Scm" - ] - } }, - certificate: { - required: true, - serializedName: "certificate", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - certificatePassword: { - required: true, - serializedName: "certificate_password", + targetProvisioningState: { + readOnly: true, + serializedName: "properties.targetProvisioningState", type: { name: "String" } - } - } - } -}; - -export const HostnameConfigurationOld: msRest.CompositeMapper = { - serializedName: "HostnameConfigurationOld", - type: { - name: "Composite", - className: "HostnameConfigurationOld", - modelProperties: { - type: { - required: true, - serializedName: "type", + }, + createdAtUtc: { + readOnly: true, + serializedName: "properties.createdAtUtc", type: { - name: "Enum", - allowedValues: [ - "Proxy", - "Portal", - "Management", - "Scm" - ] + name: "DateTime" } }, - hostname: { - required: true, - serializedName: "hostname", + gatewayUrl: { + readOnly: true, + serializedName: "properties.gatewayUrl", type: { name: "String" } }, - certificate: { - required: true, - serializedName: "certificate", + gatewayRegionalUrl: { + readOnly: true, + serializedName: "properties.gatewayRegionalUrl", type: { - name: "Composite", - className: "CertificateInformation" + name: "String" } - } - } - } -}; - -export const ApiManagementServiceUpdateHostnameParameters: msRest.CompositeMapper = { - serializedName: "ApiManagementServiceUpdateHostnameParameters", - type: { - name: "Composite", - className: "ApiManagementServiceUpdateHostnameParameters", - modelProperties: { - update: { - serializedName: "update", + }, + portalUrl: { + readOnly: true, + serializedName: "properties.portalUrl", + type: { + name: "String" + } + }, + managementApiUrl: { + readOnly: true, + serializedName: "properties.managementApiUrl", + type: { + name: "String" + } + }, + scmUrl: { + readOnly: true, + serializedName: "properties.scmUrl", + type: { + name: "String" + } + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "HostnameConfigurationOld" + className: "HostnameConfiguration" } } } }, - deleteProperty: { - serializedName: "delete", + publicIPAddresses: { + readOnly: true, + serializedName: "properties.publicIPAddresses", type: { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "Proxy", - "Portal", - "Management", - "Scm" - ] + name: "String" } } } - } - } - } -}; - -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", + }, + privateIPAddresses: { + readOnly: true, + serializedName: "properties.privateIPAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - operation: { - serializedName: "operation", + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - resource: { - serializedName: "resource", + additionalLocations: { + serializedName: "properties.additionalLocations", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation" + } + } } }, - description: { - serializedName: "description", + customProperties: { + serializedName: "properties.customProperties", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", + }, + certificates: { + serializedName: "properties.certificates", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } } }, - display: { - serializedName: "display", + enableClientCertificate: { + serializedName: "properties.enableClientCertificate", + defaultValue: false, type: { - name: "Composite", - className: "OperationDisplay" + name: "Boolean" } }, - origin: { - serializedName: "origin", + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + defaultValue: 'None', type: { name: "String" } }, - properties: { - serializedName: "properties", - type: { - name: "Object" - } - } - } - } -}; - -export const EmailTemplateParametersContractProperties: msRest.CompositeMapper = { - serializedName: "EmailTemplateParametersContractProperties", - type: { - name: "Composite", - className: "EmailTemplateParametersContractProperties", - modelProperties: { - name: { - serializedName: "name", + publisherEmail: { + required: true, + serializedName: "properties.publisherEmail", constraints: { - MaxLength: 256, - MinLength: 1, - Pattern: /^[A-Za-z0-9-._]+$/ + MaxLength: 100 }, type: { name: "String" } }, - title: { - serializedName: "title", + publisherName: { + required: true, + serializedName: "properties.publisherName", constraints: { - MaxLength: 4096, - MinLength: 1 + MaxLength: 100 }, type: { name: "String" } }, - description: { - serializedName: "description", - constraints: { - MaxLength: 256, - MinLength: 1, - Pattern: /^[A-Za-z0-9-._]+$/ - }, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity" + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + }, + etag: { + readOnly: true, + serializedName: "etag", type: { name: "String" } @@ -4502,223 +4430,205 @@ export const EmailTemplateParametersContractProperties: msRest.CompositeMapper = } }; -export const EmailTemplateContract: msRest.CompositeMapper = { - serializedName: "EmailTemplateContract", +export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateParameters", type: { name: "Composite", - className: "EmailTemplateContract", + className: "ApiManagementServiceUpdateParameters", modelProperties: { - ...Resource.type.modelProperties, - subject: { - required: true, - serializedName: "properties.subject", + ...ApimResource.type.modelProperties, + notificationSenderEmail: { + serializedName: "properties.notificationSenderEmail", constraints: { - MaxLength: 1000, - MinLength: 1 + MaxLength: 100 }, type: { name: "String" } }, - body: { - required: true, - serializedName: "properties.body", - constraints: { - MinLength: 1 - }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - title: { - serializedName: "properties.title", + targetProvisioningState: { + readOnly: true, + serializedName: "properties.targetProvisioningState", type: { name: "String" } }, - description: { - serializedName: "properties.description", + createdAtUtc: { + readOnly: true, + serializedName: "properties.createdAtUtc", + type: { + name: "DateTime" + } + }, + gatewayUrl: { + readOnly: true, + serializedName: "properties.gatewayUrl", type: { name: "String" } }, - isDefault: { + gatewayRegionalUrl: { readOnly: true, - serializedName: "properties.isDefault", + serializedName: "properties.gatewayRegionalUrl", type: { - name: "Boolean" + name: "String" } }, - parameters: { - serializedName: "properties.parameters", + portalUrl: { + readOnly: true, + serializedName: "properties.portalUrl", + type: { + name: "String" + } + }, + managementApiUrl: { + readOnly: true, + serializedName: "properties.managementApiUrl", + type: { + name: "String" + } + }, + scmUrl: { + readOnly: true, + serializedName: "properties.scmUrl", + type: { + name: "String" + } + }, + hostnameConfigurations: { + serializedName: "properties.hostnameConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EmailTemplateParametersContractProperties" + className: "HostnameConfiguration" } } } - } - } - } -}; - -export const EmailTemplateUpdateParameters: msRest.CompositeMapper = { - serializedName: "EmailTemplateUpdateParameters", - type: { - name: "Composite", - className: "EmailTemplateUpdateParameters", - modelProperties: { - subject: { - serializedName: "properties.subject", - constraints: { - MaxLength: 1000, - MinLength: 1 - }, - type: { - name: "String" - } }, - title: { - serializedName: "properties.title", + publicIPAddresses: { + readOnly: true, + serializedName: "properties.publicIPAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - description: { - serializedName: "properties.description", + privateIPAddresses: { + readOnly: true, + serializedName: "properties.privateIPAddresses", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - body: { - serializedName: "properties.body", - constraints: { - MinLength: 1 - }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", type: { - name: "String" + name: "Composite", + className: "VirtualNetworkConfiguration" } }, - parameters: { - serializedName: "properties.parameters", + additionalLocations: { + serializedName: "properties.additionalLocations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EmailTemplateParametersContractProperties" + className: "AdditionalLocation" } } } - } - } - } -}; - -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 - }, + customProperties: { + serializedName: "properties.customProperties", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - builtIn: { - readOnly: true, - serializedName: "builtIn", + certificates: { + serializedName: "properties.certificates", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } } }, - type: { - serializedName: "type", + enableClientCertificate: { + serializedName: "properties.enableClientCertificate", + defaultValue: false, type: { - name: "Enum", - allowedValues: [ - "custom", - "system", - "external" - ] + name: "Boolean" } }, - externalId: { - serializedName: "externalId", + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + defaultValue: 'None', type: { name: "String" } - } - } - } -}; - -export const GroupContract: msRest.CompositeMapper = { - serializedName: "GroupContract", - type: { - name: "Composite", - className: "GroupContract", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", + }, + publisherEmail: { + serializedName: "properties.publisherEmail", constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 100 }, type: { name: "String" } }, - description: { - serializedName: "properties.description", + publisherName: { + serializedName: "properties.publisherName", constraints: { - MaxLength: 1000 + MaxLength: 100 }, type: { name: "String" } }, - builtIn: { - readOnly: true, - serializedName: "properties.builtIn", + sku: { + serializedName: "sku", type: { - name: "Boolean" + name: "Composite", + className: "ApiManagementServiceSkuProperties" } }, - groupContractType: { - serializedName: "properties.type", + identity: { + serializedName: "identity", type: { - name: "Enum", - allowedValues: [ - "custom", - "system", - "external" - ] + name: "Composite", + className: "ApiManagementServiceIdentity" } }, - externalId: { - serializedName: "properties.externalId", + etag: { + readOnly: true, + serializedName: "etag", type: { name: "String" } @@ -4727,42 +4637,14 @@ export const GroupContract: msRest.CompositeMapper = { } }; -export const GroupCreateParameters: msRest.CompositeMapper = { - serializedName: "GroupCreateParameters", +export const ApiManagementServiceGetSsoTokenResult: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceGetSsoTokenResult", type: { name: "Composite", - className: "GroupCreateParameters", + className: "ApiManagementServiceGetSsoTokenResult", modelProperties: { - displayName: { - required: true, - serializedName: "properties.displayName", - constraints: { - MaxLength: 300, - MinLength: 1 - }, - type: { - name: "String" - } - }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - type: { - serializedName: "properties.type", - type: { - name: "Enum", - allowedValues: [ - "custom", - "system", - "external" - ] - } - }, - externalId: { - serializedName: "properties.externalId", + redirectUri: { + serializedName: "redirectUri", type: { name: "String" } @@ -4771,41 +4653,66 @@ export const GroupCreateParameters: msRest.CompositeMapper = { } }; -export const GroupUpdateParameters: msRest.CompositeMapper = { - serializedName: "GroupUpdateParameters", +export const ApiManagementServiceCheckNameAvailabilityParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", type: { name: "Composite", - className: "GroupUpdateParameters", + className: "ApiManagementServiceCheckNameAvailabilityParameters", modelProperties: { - displayName: { - serializedName: "properties.displayName", - constraints: { - MaxLength: 300, - MinLength: 1 - }, + name: { + required: true, + serializedName: "name", type: { name: "String" } + } + } + } +}; + +export const ApiManagementServiceNameAvailabilityResult: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceNameAvailabilityResult", + type: { + name: "Composite", + className: "ApiManagementServiceNameAvailabilityResult", + modelProperties: { + nameAvailable: { + readOnly: true, + serializedName: "nameAvailable", + type: { + name: "Boolean" + } }, - description: { - serializedName: "properties.description", + message: { + readOnly: true, + serializedName: "message", type: { name: "String" } }, - type: { - serializedName: "properties.type", + reason: { + serializedName: "reason", type: { name: "Enum", allowedValues: [ - "custom", - "system", - "external" + "Valid", + "Invalid", + "AlreadyExists" ] } - }, - externalId: { - serializedName: "properties.externalId", + } + } + } +}; + +export const ApiManagementServiceApplyNetworkConfigurationParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationParameters", + modelProperties: { + location: { + serializedName: "location", type: { name: "String" } @@ -4814,11 +4721,11 @@ export const GroupUpdateParameters: msRest.CompositeMapper = { } }; -export const UserIdentityContract: msRest.CompositeMapper = { - serializedName: "UserIdentityContract", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", type: { name: "Composite", - className: "UserIdentityContract", + className: "OperationDisplay", modelProperties: { provider: { serializedName: "provider", @@ -4826,8 +4733,20 @@ export const UserIdentityContract: msRest.CompositeMapper = { name: "String" } }, - id: { - serializedName: "id", + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + description: { + serializedName: "description", type: { name: "String" } @@ -4836,106 +4755,128 @@ export const UserIdentityContract: msRest.CompositeMapper = { } }; -export const UserEntityBaseParameters: msRest.CompositeMapper = { - serializedName: "UserEntityBaseParameters", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "UserEntityBaseParameters", + className: "Operation", modelProperties: { - state: { - serializedName: "state", - defaultValue: 'active', + name: { + serializedName: "name", type: { name: "String" } }, - note: { - serializedName: "note", + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", type: { name: "String" } }, - identities: { - serializedName: "identities", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } + name: "Object" } } } } }; -export const UserContract: msRest.CompositeMapper = { - serializedName: "UserContract", +export const EmailTemplateParametersContractProperties: msRest.CompositeMapper = { + serializedName: "EmailTemplateParametersContractProperties", type: { name: "Composite", - className: "UserContract", + className: "EmailTemplateParametersContractProperties", modelProperties: { - ...Resource.type.modelProperties, - state: { - serializedName: "properties.state", - defaultValue: 'active', + name: { + serializedName: "name", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, type: { name: "String" } }, - note: { - serializedName: "properties.note", + title: { + serializedName: "title", + constraints: { + MaxLength: 4096, + MinLength: 1 + }, type: { name: "String" } }, - identities: { - serializedName: "properties.identities", + description: { + serializedName: "description", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } + name: "String" } - }, - firstName: { - serializedName: "properties.firstName", + } + } + } +}; + +export const EmailTemplateUpdateParameters: msRest.CompositeMapper = { + serializedName: "EmailTemplateUpdateParameters", + type: { + name: "Composite", + className: "EmailTemplateUpdateParameters", + modelProperties: { + subject: { + serializedName: "properties.subject", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, type: { name: "String" } }, - lastName: { - serializedName: "properties.lastName", + title: { + serializedName: "properties.title", type: { name: "String" } }, - email: { - serializedName: "properties.email", + description: { + serializedName: "properties.description", type: { name: "String" } }, - registrationDate: { - serializedName: "properties.registrationDate", + body: { + serializedName: "properties.body", + constraints: { + MinLength: 1 + }, type: { - name: "DateTime" + name: "String" } }, - groups: { - readOnly: true, - serializedName: "properties.groups", + parameters: { + serializedName: "properties.parameters", type: { name: "Sequence", element: { type: { name: "Composite", - className: "GroupContractProperties" + className: "EmailTemplateParametersContractProperties" } } } @@ -4944,44 +4885,27 @@ export const UserContract: msRest.CompositeMapper = { } }; -export const IdentityProviderContract: msRest.CompositeMapper = { - serializedName: "IdentityProviderContract", +export const EmailTemplateContract: msRest.CompositeMapper = { + serializedName: "EmailTemplateContract", type: { name: "Composite", - className: "IdentityProviderContract", + className: "EmailTemplateContract", modelProperties: { ...Resource.type.modelProperties, - identityProviderContractType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - allowedTenants: { - serializedName: "properties.allowedTenants", - constraints: { - MaxItems: 32 - }, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - signupPolicyName: { - serializedName: "properties.signupPolicyName", + subject: { + required: true, + serializedName: "properties.subject", constraints: { + MaxLength: 1000, MinLength: 1 }, type: { name: "String" } }, - signinPolicyName: { - serializedName: "properties.signinPolicyName", + body: { + required: true, + serializedName: "properties.body", constraints: { MinLength: 1 }, @@ -4989,40 +4913,55 @@ export const IdentityProviderContract: msRest.CompositeMapper = { name: "String" } }, - profileEditingPolicyName: { - serializedName: "properties.profileEditingPolicyName", - constraints: { - MinLength: 1 - }, + title: { + serializedName: "properties.title", type: { name: "String" } }, - passwordResetPolicyName: { - serializedName: "properties.passwordResetPolicyName", - constraints: { - MinLength: 1 - }, + description: { + serializedName: "properties.description", type: { name: "String" } }, - clientId: { - required: true, - serializedName: "properties.clientId", - constraints: { - MinLength: 1 - }, + isDefault: { + readOnly: true, + serializedName: "properties.isDefault", + type: { + name: "Boolean" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EmailTemplateParametersContractProperties" + } + } + } + } + } + } +}; + +export const UserIdentityContract: msRest.CompositeMapper = { + serializedName: "UserIdentityContract", + type: { + name: "Composite", + className: "UserIdentityContract", + modelProperties: { + provider: { + serializedName: "provider", type: { name: "String" } }, - clientSecret: { - required: true, - serializedName: "properties.clientSecret", - constraints: { - MinLength: 1 - }, + id: { + serializedName: "id", type: { name: "String" } @@ -5031,82 +4970,87 @@ export const IdentityProviderContract: msRest.CompositeMapper = { } }; -export const IdentityProviderUpdateParameters: msRest.CompositeMapper = { - serializedName: "IdentityProviderUpdateParameters", +export const UserEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "UserEntityBaseParameters", type: { name: "Composite", - className: "IdentityProviderUpdateParameters", + className: "UserEntityBaseParameters", modelProperties: { - type: { - serializedName: "properties.type", + state: { + serializedName: "state", + defaultValue: 'active', type: { name: "String" } }, - allowedTenants: { - serializedName: "properties.allowedTenants", - constraints: { - MaxItems: 32 - }, + note: { + serializedName: "note", + type: { + name: "String" + } + }, + identities: { + serializedName: "identities", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "UserIdentityContract" } } } - }, - signupPolicyName: { - serializedName: "properties.signupPolicyName", - constraints: { - MinLength: 1 - }, - type: { - name: "String" - } - }, - signinPolicyName: { - serializedName: "properties.signinPolicyName", + } + } + } +}; + +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" } }, - profileEditingPolicyName: { - serializedName: "properties.profileEditingPolicyName", + description: { + serializedName: "description", constraints: { - MinLength: 1 + MaxLength: 1000 }, type: { name: "String" } }, - passwordResetPolicyName: { - serializedName: "properties.passwordResetPolicyName", - constraints: { - MinLength: 1 - }, + builtIn: { + readOnly: true, + serializedName: "builtIn", type: { - name: "String" + name: "Boolean" } }, - clientId: { - serializedName: "properties.clientId", - constraints: { - MinLength: 1 - }, + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "custom", + "system", + "external" + ] } }, - clientSecret: { - serializedName: "properties.clientSecret", - constraints: { - MinLength: 1 - }, + externalId: { + serializedName: "externalId", type: { name: "String" } @@ -5115,80 +5059,91 @@ export const IdentityProviderUpdateParameters: msRest.CompositeMapper = { } }; -export const IdentityProviderBaseParameters: msRest.CompositeMapper = { - serializedName: "IdentityProviderBaseParameters", +export const UserContract: msRest.CompositeMapper = { + serializedName: "UserContract", type: { name: "Composite", - className: "IdentityProviderBaseParameters", + className: "UserContract", modelProperties: { - type: { - serializedName: "type", + ...Resource.type.modelProperties, + state: { + serializedName: "properties.state", + defaultValue: 'active', type: { name: "String" } }, - allowedTenants: { - serializedName: "allowedTenants", - constraints: { - MaxItems: 32 - }, + note: { + serializedName: "properties.note", + type: { + name: "String" + } + }, + identities: { + serializedName: "properties.identities", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "UserIdentityContract" } } } }, - signupPolicyName: { - serializedName: "signupPolicyName", - constraints: { - MinLength: 1 - }, + firstName: { + serializedName: "properties.firstName", type: { name: "String" } }, - signinPolicyName: { - serializedName: "signinPolicyName", - constraints: { - MinLength: 1 - }, + lastName: { + serializedName: "properties.lastName", type: { name: "String" } }, - profileEditingPolicyName: { - serializedName: "profileEditingPolicyName", - constraints: { - MinLength: 1 - }, + email: { + serializedName: "properties.email", type: { name: "String" } }, - passwordResetPolicyName: { - serializedName: "passwordResetPolicyName", - constraints: { - MinLength: 1 - }, + registrationDate: { + serializedName: "properties.registrationDate", type: { - name: "String" + name: "DateTime" + } + }, + groups: { + readOnly: true, + serializedName: "properties.groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContractProperties" + } + } } } } } }; -export const LoggerUpdateContract: msRest.CompositeMapper = { - serializedName: "LoggerUpdateContract", +export const GroupUpdateParameters: msRest.CompositeMapper = { + serializedName: "GroupUpdateParameters", type: { name: "Composite", - className: "LoggerUpdateContract", + className: "GroupUpdateParameters", modelProperties: { - loggerType: { - serializedName: "properties.loggerType", + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { name: "String" } @@ -5199,71 +5154,39 @@ export const LoggerUpdateContract: msRest.CompositeMapper = { name: "String" } }, - credentials: { - serializedName: "properties.credentials", + type: { + serializedName: "properties.type", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "Enum", + allowedValues: [ + "custom", + "system", + "external" + ] } }, - isBuffered: { - serializedName: "properties.isBuffered", + externalId: { + serializedName: "properties.externalId", type: { - name: "Boolean" + name: "String" } } } } }; -export const RecipientsContractProperties: msRest.CompositeMapper = { - serializedName: "RecipientsContractProperties", +export const GroupContract: msRest.CompositeMapper = { + serializedName: "GroupContract", type: { name: "Composite", - className: "RecipientsContractProperties", - modelProperties: { - emails: { - serializedName: "emails", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - users: { - serializedName: "users", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const NotificationContract: msRest.CompositeMapper = { - serializedName: "NotificationContract", - type: { - name: "Composite", - className: "NotificationContract", + className: "GroupContract", modelProperties: { ...Resource.type.modelProperties, - title: { + displayName: { required: true, - serializedName: "properties.title", + serializedName: "properties.displayName", constraints: { - MaxLength: 1000, + MaxLength: 300, MinLength: 1 }, type: { @@ -5272,30 +5195,33 @@ export const NotificationContract: msRest.CompositeMapper = { }, description: { serializedName: "properties.description", + constraints: { + MaxLength: 1000 + }, type: { name: "String" } }, - recipients: { - serializedName: "properties.recipients", + builtIn: { + readOnly: true, + serializedName: "properties.builtIn", type: { - name: "Composite", - className: "RecipientsContractProperties" + name: "Boolean" } - } - } - } -}; - -export const RecipientUserContract: msRest.CompositeMapper = { - serializedName: "RecipientUserContract", - type: { - name: "Composite", - className: "RecipientUserContract", - modelProperties: { - ...Resource.type.modelProperties, - userId: { - serializedName: "properties.userId", + }, + groupContractType: { + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: [ + "custom", + "system", + "external" + ] + } + }, + externalId: { + serializedName: "properties.externalId", type: { name: "String" } @@ -5304,43 +5230,42 @@ export const RecipientUserContract: msRest.CompositeMapper = { } }; -export const RecipientUserCollection: msRest.CompositeMapper = { - serializedName: "RecipientUserCollection", +export const GroupCreateParameters: msRest.CompositeMapper = { + serializedName: "GroupCreateParameters", type: { name: "Composite", - className: "RecipientUserCollection", + className: "GroupCreateParameters", modelProperties: { - value: { - serializedName: "value", + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecipientUserContract" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + description: { + serializedName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const RecipientEmailContract: msRest.CompositeMapper = { - serializedName: "RecipientEmailContract", - type: { - name: "Composite", - className: "RecipientEmailContract", - modelProperties: { - ...Resource.type.modelProperties, - email: { - serializedName: "properties.email", + }, + type: { + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: [ + "custom", + "system", + "external" + ] + } + }, + externalId: { + serializedName: "properties.externalId", type: { name: "String" } @@ -5349,43 +5274,40 @@ export const RecipientEmailContract: msRest.CompositeMapper = { } }; -export const RecipientEmailCollection: msRest.CompositeMapper = { - serializedName: "RecipientEmailCollection", +export const IdentityProviderBaseParameters: msRest.CompositeMapper = { + serializedName: "IdentityProviderBaseParameters", type: { name: "Composite", - className: "RecipientEmailCollection", + className: "IdentityProviderBaseParameters", modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + type: { + name: "String" + } + }, + allowedTenants: { + serializedName: "allowedTenants", + constraints: { + MaxItems: 32 + }, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RecipientEmailContract" + name: "String" } } } }, - nextLink: { - serializedName: "nextLink", + authority: { + serializedName: "authority", type: { name: "String" } - } - } - } -}; - -export const ConnectivityStatusContract: msRest.CompositeMapper = { - serializedName: "ConnectivityStatusContract", - type: { - name: "Composite", - className: "ConnectivityStatusContract", - modelProperties: { - name: { - required: true, - serializedName: "name", + }, + signupPolicyName: { + serializedName: "signupPolicyName", constraints: { MinLength: 1 }, @@ -5393,46 +5315,54 @@ export const ConnectivityStatusContract: msRest.CompositeMapper = { name: "String" } }, - status: { - required: true, - serializedName: "status", + signinPolicyName: { + serializedName: "signinPolicyName", + constraints: { + MinLength: 1 + }, type: { name: "String" } }, - error: { - serializedName: "error", + profileEditingPolicyName: { + serializedName: "profileEditingPolicyName", + constraints: { + MinLength: 1 + }, type: { name: "String" } }, - lastUpdated: { - required: true, - serializedName: "lastUpdated", - type: { - name: "DateTime" - } - }, - lastStatusChange: { - required: true, - serializedName: "lastStatusChange", + passwordResetPolicyName: { + serializedName: "passwordResetPolicyName", + constraints: { + MinLength: 1 + }, type: { - name: "DateTime" + name: "String" } } } } }; -export const NetworkStatusContract: msRest.CompositeMapper = { - serializedName: "NetworkStatusContract", +export const IdentityProviderUpdateParameters: msRest.CompositeMapper = { + serializedName: "IdentityProviderUpdateParameters", type: { name: "Composite", - className: "NetworkStatusContract", + className: "IdentityProviderUpdateParameters", modelProperties: { - dnsServers: { - required: true, - serializedName: "dnsServers", + type: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + allowedTenants: { + serializedName: "properties.allowedTenants", + constraints: { + MaxItems: 32 + }, type: { name: "Sequence", element: { @@ -5442,31 +5372,14 @@ export const NetworkStatusContract: msRest.CompositeMapper = { } } }, - connectivityStatus: { - required: true, - serializedName: "connectivityStatus", + authority: { + serializedName: "properties.authority", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectivityStatusContract" - } - } + name: "String" } - } - } - } -}; - -export const NetworkStatusContractByLocation: msRest.CompositeMapper = { - serializedName: "NetworkStatusContractByLocation", - type: { - name: "Composite", - className: "NetworkStatusContractByLocation", - modelProperties: { - location: { - serializedName: "location", + }, + signupPolicyName: { + serializedName: "properties.signupPolicyName", constraints: { MinLength: 1 }, @@ -5474,56 +5387,47 @@ export const NetworkStatusContractByLocation: msRest.CompositeMapper = { name: "String" } }, - networkStatus: { - serializedName: "networkStatus", + signinPolicyName: { + serializedName: "properties.signinPolicyName", + constraints: { + MinLength: 1 + }, type: { - name: "Composite", - className: "NetworkStatusContract" + name: "String" } - } - } - } -}; - -export const OpenidConnectProviderContract: msRest.CompositeMapper = { - serializedName: "OpenidConnectProviderContract", - type: { - name: "Composite", - className: "OpenidConnectProviderContract", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", + }, + profileEditingPolicyName: { + serializedName: "properties.profileEditingPolicyName", constraints: { - MaxLength: 50 + MinLength: 1 }, type: { name: "String" } }, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - metadataEndpoint: { - required: true, - serializedName: "properties.metadataEndpoint", + 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" } @@ -5532,41 +5436,91 @@ export const OpenidConnectProviderContract: msRest.CompositeMapper = { } }; -export const OpenidConnectProviderUpdateContract: msRest.CompositeMapper = { - serializedName: "OpenidConnectProviderUpdateContract", +export const IdentityProviderContract: msRest.CompositeMapper = { + serializedName: "IdentityProviderContract", type: { name: "Composite", - className: "OpenidConnectProviderUpdateContract", + className: "IdentityProviderContract", modelProperties: { - displayName: { - serializedName: "properties.displayName", + ...Resource.type.modelProperties, + identityProviderContractType: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + allowedTenants: { + serializedName: "properties.allowedTenants", constraints: { - MaxLength: 50 + 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" } }, - description: { - serializedName: "properties.description", + signinPolicyName: { + serializedName: "properties.signinPolicyName", + constraints: { + MinLength: 1 + }, type: { name: "String" } }, - metadataEndpoint: { - serializedName: "properties.metadataEndpoint", + 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: { + required: true, serializedName: "properties.clientSecret", + constraints: { + MinLength: 1 + }, type: { name: "String" } @@ -5575,43 +5529,37 @@ export const OpenidConnectProviderUpdateContract: msRest.CompositeMapper = { } }; -export const PortalSigninSettings: msRest.CompositeMapper = { - serializedName: "PortalSigninSettings", +export const LoggerUpdateContract: msRest.CompositeMapper = { + serializedName: "LoggerUpdateContract", type: { name: "Composite", - className: "PortalSigninSettings", + className: "LoggerUpdateContract", modelProperties: { - ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", + loggerType: { + serializedName: "properties.loggerType", type: { - name: "Boolean" + name: "String" } - } - } - } -}; - -export const TermsOfServiceProperties: msRest.CompositeMapper = { - serializedName: "TermsOfServiceProperties", - type: { - name: "Composite", - className: "TermsOfServiceProperties", - modelProperties: { - text: { - serializedName: "text", + }, + description: { + serializedName: "properties.description", type: { name: "String" } }, - enabled: { - serializedName: "enabled", + credentials: { + serializedName: "properties.credentials", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } }, - consentRequired: { - serializedName: "consentRequired", + isBuffered: { + serializedName: "properties.isBuffered", type: { name: "Boolean" } @@ -5620,107 +5568,297 @@ export const TermsOfServiceProperties: msRest.CompositeMapper = { } }; -export const PortalSignupSettings: msRest.CompositeMapper = { - serializedName: "PortalSignupSettings", +export const LoggerContract: msRest.CompositeMapper = { + serializedName: "LoggerContract", type: { name: "Composite", - className: "PortalSignupSettings", + className: "LoggerContract", modelProperties: { ...Resource.type.modelProperties, - enabled: { - serializedName: "properties.enabled", + loggerType: { + required: true, + serializedName: "properties.loggerType", type: { - name: "Boolean" + name: "String" } }, - termsOfService: { - serializedName: "properties.termsOfService", + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 256 + }, type: { - name: "Composite", - className: "TermsOfServiceProperties" + name: "String" } - } - } - } -}; - -export const SubscriptionsDelegationSettingsProperties: msRest.CompositeMapper = { - serializedName: "SubscriptionsDelegationSettingsProperties", - type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties", - modelProperties: { - enabled: { - serializedName: "enabled", + }, + credentials: { + required: true, + serializedName: "properties.credentials", type: { - name: "Boolean" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - } - } - } -}; - -export const RegistrationDelegationSettingsProperties: msRest.CompositeMapper = { - serializedName: "RegistrationDelegationSettingsProperties", - type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties", - modelProperties: { - enabled: { - serializedName: "enabled", + }, + isBuffered: { + serializedName: "properties.isBuffered", type: { name: "Boolean" } + }, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } } } } }; -export const PortalDelegationSettings: msRest.CompositeMapper = { - serializedName: "PortalDelegationSettings", +export const ConnectivityStatusContract: msRest.CompositeMapper = { + serializedName: "ConnectivityStatusContract", type: { name: "Composite", - className: "PortalDelegationSettings", + className: "ConnectivityStatusContract", modelProperties: { - ...Resource.type.modelProperties, - url: { - serializedName: "properties.url", + name: { + required: true, + serializedName: "name", + constraints: { + MinLength: 1 + }, type: { name: "String" } }, - validationKey: { - serializedName: "properties.validationKey", + status: { + required: true, + serializedName: "status", type: { name: "String" } }, - subscriptions: { - serializedName: "properties.subscriptions", + error: { + serializedName: "error", type: { - name: "Composite", - className: "SubscriptionsDelegationSettingsProperties" + name: "String" } }, - userRegistration: { - serializedName: "properties.userRegistration", + lastUpdated: { + required: true, + serializedName: "lastUpdated", type: { - name: "Composite", - className: "RegistrationDelegationSettingsProperties" + name: "DateTime" + } + }, + lastStatusChange: { + required: true, + serializedName: "lastStatusChange", + type: { + name: "DateTime" } } } } }; -export const ProductUpdateParameters: msRest.CompositeMapper = { - serializedName: "ProductUpdateParameters", +export const NetworkStatusContract: msRest.CompositeMapper = { + serializedName: "NetworkStatusContract", type: { name: "Composite", - className: "ProductUpdateParameters", + className: "NetworkStatusContract", modelProperties: { - description: { - serializedName: "properties.description", + dnsServers: { + required: true, + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + connectivityStatus: { + required: true, + serializedName: "connectivityStatus", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectivityStatusContract" + } + } + } + } + } + } +}; + +export const NetworkStatusContractByLocation: msRest.CompositeMapper = { + serializedName: "NetworkStatusContractByLocation", + type: { + name: "Composite", + className: "NetworkStatusContractByLocation", + modelProperties: { + location: { + serializedName: "location", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + networkStatus: { + serializedName: "networkStatus", + type: { + name: "Composite", + className: "NetworkStatusContract" + } + } + } + } +}; + +export const RecipientEmailContract: msRest.CompositeMapper = { + serializedName: "RecipientEmailContract", + type: { + name: "Composite", + className: "RecipientEmailContract", + modelProperties: { + ...Resource.type.modelProperties, + email: { + serializedName: "properties.email", + type: { + name: "String" + } + } + } + } +}; + +export const RecipientEmailCollection: msRest.CompositeMapper = { + serializedName: "RecipientEmailCollection", + type: { + name: "Composite", + className: "RecipientEmailCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecipientEmailContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RecipientUserContract: msRest.CompositeMapper = { + serializedName: "RecipientUserContract", + type: { + name: "Composite", + className: "RecipientUserContract", + modelProperties: { + ...Resource.type.modelProperties, + userId: { + serializedName: "properties.userId", + type: { + name: "String" + } + } + } + } +}; + +export const RecipientUserCollection: msRest.CompositeMapper = { + serializedName: "RecipientUserCollection", + type: { + name: "Composite", + className: "RecipientUserCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RecipientUserContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RecipientsContractProperties: msRest.CompositeMapper = { + serializedName: "RecipientsContractProperties", + type: { + name: "Composite", + className: "RecipientsContractProperties", + modelProperties: { + emails: { + serializedName: "emails", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + users: { + serializedName: "users", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const NotificationContract: msRest.CompositeMapper = { + serializedName: "NotificationContract", + type: { + name: "Composite", + className: "NotificationContract", + modelProperties: { + ...Resource.type.modelProperties, + title: { + required: true, + serializedName: "properties.title", constraints: { MaxLength: 1000, MinLength: 1 @@ -5729,49 +5867,306 @@ export const ProductUpdateParameters: msRest.CompositeMapper = { name: "String" } }, - terms: { - serializedName: "properties.terms", + description: { + serializedName: "properties.description", type: { name: "String" } }, - subscriptionRequired: { - serializedName: "properties.subscriptionRequired", + recipients: { + serializedName: "properties.recipients", type: { - name: "Boolean" + name: "Composite", + className: "RecipientsContractProperties" + } + } + } + } +}; + +export const OpenidConnectProviderUpdateContract: msRest.CompositeMapper = { + serializedName: "OpenidConnectProviderUpdateContract", + type: { + name: "Composite", + className: "OpenidConnectProviderUpdateContract", + modelProperties: { + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 50 + }, + type: { + name: "String" } }, - approvalRequired: { - serializedName: "properties.approvalRequired", + description: { + serializedName: "properties.description", type: { - name: "Boolean" + name: "String" } }, - subscriptionsLimit: { - serializedName: "properties.subscriptionsLimit", + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", type: { - name: "Number" + name: "String" } }, - state: { - serializedName: "properties.state", + clientId: { + serializedName: "properties.clientId", type: { - name: "Enum", - allowedValues: [ - "notPublished", - "published" - ] + name: "String" } }, + clientSecret: { + serializedName: "properties.clientSecret", + type: { + name: "String" + } + } + } + } +}; + +export const OpenidConnectProviderContract: msRest.CompositeMapper = { + serializedName: "OpenidConnectProviderContract", + type: { + name: "Composite", + className: "OpenidConnectProviderContract", + modelProperties: { + ...Resource.type.modelProperties, displayName: { + required: true, serializedName: "properties.displayName", constraints: { - MaxLength: 300, - MinLength: 1 + MaxLength: 50 }, type: { name: "String" } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + metadataEndpoint: { + required: true, + serializedName: "properties.metadataEndpoint", + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "properties.clientId", + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "properties.clientSecret", + type: { + name: "String" + } + } + } + } +}; + +export const PolicySnippetContract: msRest.CompositeMapper = { + serializedName: "PolicySnippetContract", + type: { + name: "Composite", + className: "PolicySnippetContract", + modelProperties: { + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + content: { + readOnly: true, + serializedName: "content", + type: { + name: "String" + } + }, + toolTip: { + readOnly: true, + serializedName: "toolTip", + type: { + name: "String" + } + }, + scope: { + readOnly: true, + serializedName: "scope", + type: { + name: "Number" + } + } + } + } +}; + +export const PolicySnippetsCollection: msRest.CompositeMapper = { + serializedName: "PolicySnippetsCollection", + type: { + name: "Composite", + className: "PolicySnippetsCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicySnippetContract" + } + } + } + } + } + } +}; + +export const RegistrationDelegationSettingsProperties: msRest.CompositeMapper = { + serializedName: "RegistrationDelegationSettingsProperties", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SubscriptionsDelegationSettingsProperties: msRest.CompositeMapper = { + serializedName: "SubscriptionsDelegationSettingsProperties", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalDelegationSettings: msRest.CompositeMapper = { + serializedName: "PortalDelegationSettings", + type: { + name: "Composite", + className: "PortalDelegationSettings", + modelProperties: { + ...Resource.type.modelProperties, + url: { + serializedName: "properties.url", + type: { + name: "String" + } + }, + validationKey: { + serializedName: "properties.validationKey", + type: { + name: "String" + } + }, + subscriptions: { + serializedName: "properties.subscriptions", + type: { + name: "Composite", + className: "SubscriptionsDelegationSettingsProperties" + } + }, + userRegistration: { + serializedName: "properties.userRegistration", + type: { + name: "Composite", + className: "RegistrationDelegationSettingsProperties" + } + } + } + } +}; + +export const TermsOfServiceProperties: msRest.CompositeMapper = { + serializedName: "TermsOfServiceProperties", + type: { + name: "Composite", + className: "TermsOfServiceProperties", + modelProperties: { + text: { + serializedName: "text", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + consentRequired: { + serializedName: "consentRequired", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PortalSignupSettings: msRest.CompositeMapper = { + serializedName: "PortalSignupSettings", + type: { + name: "Composite", + className: "PortalSignupSettings", + modelProperties: { + ...Resource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + }, + termsOfService: { + serializedName: "properties.termsOfService", + type: { + name: "Composite", + className: "TermsOfServiceProperties" + } + } + } + } +}; + +export const PortalSigninSettings: msRest.CompositeMapper = { + serializedName: "PortalSigninSettings", + type: { + name: "Composite", + className: "PortalSigninSettings", + modelProperties: { + ...Resource.type.modelProperties, + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } } } } @@ -5784,16 +6179,15 @@ export const SubscriptionContract: msRest.CompositeMapper = { className: "SubscriptionContract", modelProperties: { ...Resource.type.modelProperties, - userId: { - required: true, - serializedName: "properties.userId", + ownerId: { + serializedName: "properties.ownerId", type: { name: "String" } }, - productId: { + scope: { required: true, - serializedName: "properties.productId", + serializedName: "properties.scope", type: { name: "String" } @@ -5881,59 +6275,105 @@ export const SubscriptionContract: msRest.CompositeMapper = { 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" + } + }, + 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: { - required: true, serializedName: "properties.displayName", constraints: { - MaxLength: 256, - MinLength: 1, - Pattern: /^[A-Za-z0-9-._]+$/ + MaxLength: 300, + MinLength: 1 }, type: { name: "String" } - }, - value: { - required: true, - serializedName: "properties.value", + } + } + } +}; + +export const PropertyEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "PropertyEntityBaseParameters", + type: { + name: "Composite", + className: "PropertyEntityBaseParameters", + modelProperties: { + tags: { + serializedName: "tags", constraints: { - MaxLength: 4096, - MinLength: 1 + MaxItems: 32 }, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + secret: { + serializedName: "secret", + type: { + name: "Boolean" } } } @@ -5991,14 +6431,15 @@ export const PropertyUpdateParameters: msRest.CompositeMapper = { } }; -export const PropertyEntityBaseParameters: msRest.CompositeMapper = { - serializedName: "PropertyEntityBaseParameters", +export const PropertyContract: msRest.CompositeMapper = { + serializedName: "PropertyContract", type: { name: "Composite", - className: "PropertyEntityBaseParameters", + className: "PropertyContract", modelProperties: { + ...Resource.type.modelProperties, tags: { - serializedName: "tags", + serializedName: "properties.tags", constraints: { MaxItems: 32 }, @@ -6012,10 +6453,33 @@ export const PropertyEntityBaseParameters: msRest.CompositeMapper = { } }, secret: { - serializedName: "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: { + required: true, + serializedName: "properties.value", + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: "String" + } } } } @@ -6083,65 +6547,163 @@ export const QuotaCounterContract: msRest.CompositeMapper = { name: "DateTime" } }, - value: { - serializedName: "value", + value: { + serializedName: "value", + type: { + name: "Composite", + className: "QuotaCounterValueContractProperties" + } + } + } + } +}; + +export const QuotaCounterCollection: msRest.CompositeMapper = { + serializedName: "QuotaCounterCollection", + type: { + name: "Composite", + className: "QuotaCounterCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "QuotaCounterContract" + } + } + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RequestReportRecordContract: msRest.CompositeMapper = { + serializedName: "RequestReportRecordContract", + type: { + name: "Composite", + className: "RequestReportRecordContract", + modelProperties: { + apiId: { + serializedName: "apiId", + type: { + name: "String" + } + }, + operationId: { + serializedName: "operationId", + type: { + name: "String" + } + }, + productId: { + readOnly: true, + serializedName: "productId", + type: { + name: "String" + } + }, + userId: { + readOnly: true, + serializedName: "userId", + type: { + name: "String" + } + }, + method: { + serializedName: "method", + type: { + name: "String" + } + }, + url: { + serializedName: "url", + type: { + name: "String" + } + }, + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + }, + backendResponseCode: { + serializedName: "backendResponseCode", + type: { + name: "String" + } + }, + responseCode: { + serializedName: "responseCode", + type: { + name: "Number" + } + }, + responseSize: { + serializedName: "responseSize", + type: { + name: "Number" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + cache: { + serializedName: "cache", + type: { + name: "String" + } + }, + apiTime: { + serializedName: "apiTime", type: { - name: "Composite", - className: "QuotaCounterValueContractProperties" + name: "Number" } - } - } - } -}; - -export const QuotaCounterCollection: msRest.CompositeMapper = { - serializedName: "QuotaCounterCollection", - type: { - name: "Composite", - className: "QuotaCounterCollection", - modelProperties: { - value: { - serializedName: "value", + }, + serviceTime: { + serializedName: "serviceTime", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "QuotaCounterContract" - } - } + name: "Number" } }, - count: { - serializedName: "count", + apiRegion: { + serializedName: "apiRegion", type: { - name: "Number" + name: "String" } }, - nextLink: { - serializedName: "nextLink", + subscriptionId: { + serializedName: "subscriptionId", type: { name: "String" } - } - } - } -}; - -export const QuotaCounterValueContract: msRest.CompositeMapper = { - serializedName: "QuotaCounterValueContract", - type: { - name: "Composite", - className: "QuotaCounterValueContract", - modelProperties: { - callsCount: { - serializedName: "value.callsCount", + }, + requestId: { + serializedName: "requestId", type: { - name: "Number" + name: "String" } }, - kbTransferred: { - serializedName: "value.kbTransferred", + requestSize: { + serializedName: "requestSize", type: { name: "Number" } @@ -6260,319 +6822,605 @@ export const ReportRecordContract: msRest.CompositeMapper = { name: "Number" } }, - bandwidth: { - serializedName: "bandwidth", + bandwidth: { + serializedName: "bandwidth", + type: { + name: "Number" + } + }, + cacheHitCount: { + serializedName: "cacheHitCount", + type: { + name: "Number" + } + }, + cacheMissCount: { + serializedName: "cacheMissCount", + type: { + name: "Number" + } + }, + apiTimeAvg: { + serializedName: "apiTimeAvg", + type: { + name: "Number" + } + }, + apiTimeMin: { + serializedName: "apiTimeMin", + type: { + name: "Number" + } + }, + apiTimeMax: { + serializedName: "apiTimeMax", + type: { + name: "Number" + } + }, + serviceTimeAvg: { + serializedName: "serviceTimeAvg", + type: { + name: "Number" + } + }, + serviceTimeMin: { + serializedName: "serviceTimeMin", + type: { + name: "Number" + } + }, + serviceTimeMax: { + serializedName: "serviceTimeMax", + type: { + name: "Number" + } + } + } + } +}; + +export const SubscriptionUpdateParameters: msRest.CompositeMapper = { + serializedName: "SubscriptionUpdateParameters", + type: { + name: "Composite", + className: "SubscriptionUpdateParameters", + modelProperties: { + ownerId: { + serializedName: "properties.ownerId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String" + } + }, + expirationDate: { + serializedName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + primaryKey: { + serializedName: "properties.primaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "properties.secondaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ] + } + }, + stateComment: { + serializedName: "properties.stateComment", + type: { + name: "String" + } + }, + allowTracing: { + serializedName: "properties.allowTracing", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SubscriptionCreateParameters: msRest.CompositeMapper = { + serializedName: "SubscriptionCreateParameters", + type: { + name: "Composite", + className: "SubscriptionCreateParameters", + modelProperties: { + ownerId: { + serializedName: "properties.ownerId", + type: { + name: "String" + } + }, + scope: { + required: true, + serializedName: "properties.scope", + type: { + name: "String" + } + }, + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + }, + primaryKey: { + serializedName: "properties.primaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "properties.secondaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ] + } + }, + allowTracing: { + serializedName: "properties.allowTracing", type: { - name: "Number" + name: "Boolean" } - }, - cacheHitCount: { - serializedName: "cacheHitCount", + } + } + } +}; + +export const TagCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "TagCreateUpdateParameters", + type: { + name: "Composite", + className: "TagCreateUpdateParameters", + modelProperties: { + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 160, + MinLength: 1 + }, type: { - name: "Number" + name: "String" } - }, - cacheMissCount: { - serializedName: "cacheMissCount", + } + } + } +}; + +export const TenantConfigurationSyncStateContract: msRest.CompositeMapper = { + serializedName: "TenantConfigurationSyncStateContract", + type: { + name: "Composite", + className: "TenantConfigurationSyncStateContract", + modelProperties: { + branch: { + serializedName: "branch", type: { - name: "Number" + name: "String" } }, - apiTimeAvg: { - serializedName: "apiTimeAvg", + commitId: { + serializedName: "commitId", type: { - name: "Number" + name: "String" } }, - apiTimeMin: { - serializedName: "apiTimeMin", + isExport: { + serializedName: "isExport", type: { - name: "Number" + name: "Boolean" } }, - apiTimeMax: { - serializedName: "apiTimeMax", + isSynced: { + serializedName: "isSynced", type: { - name: "Number" + name: "Boolean" } }, - serviceTimeAvg: { - serializedName: "serviceTimeAvg", + isGitEnabled: { + serializedName: "isGitEnabled", type: { - name: "Number" + name: "Boolean" } }, - serviceTimeMin: { - serializedName: "serviceTimeMin", + syncDate: { + serializedName: "syncDate", type: { - name: "Number" + name: "DateTime" } }, - serviceTimeMax: { - serializedName: "serviceTimeMax", + configurationChangeDate: { + serializedName: "configurationChangeDate", type: { - name: "Number" + name: "DateTime" } } } } }; -export const RequestReportRecordContract: msRest.CompositeMapper = { - serializedName: "RequestReportRecordContract", +export const OperationResultLogItemContract: msRest.CompositeMapper = { + serializedName: "OperationResultLogItemContract", type: { name: "Composite", - className: "RequestReportRecordContract", + className: "OperationResultLogItemContract", modelProperties: { - apiId: { - serializedName: "apiId", + objectType: { + serializedName: "objectType", type: { name: "String" } }, - operationId: { - serializedName: "operationId", + action: { + serializedName: "action", type: { name: "String" } }, - productId: { - readOnly: true, - serializedName: "productId", + objectKey: { + serializedName: "objectKey", type: { name: "String" } - }, - userId: { - readOnly: true, - serializedName: "userId", + } + } + } +}; + +export const OperationResultContract: msRest.CompositeMapper = { + serializedName: "OperationResultContract", + type: { + name: "Composite", + className: "OperationResultContract", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - method: { - serializedName: "method", + status: { + serializedName: "status", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Started", + "InProgress", + "Succeeded", + "Failed" + ] } }, - url: { - serializedName: "url", + started: { + serializedName: "started", type: { - name: "String" + name: "DateTime" } }, - ipAddress: { - serializedName: "ipAddress", + updated: { + serializedName: "updated", type: { - name: "String" + name: "DateTime" } }, - backendResponseCode: { - serializedName: "backendResponseCode", + resultInfo: { + serializedName: "resultInfo", type: { name: "String" } }, - responseCode: { - serializedName: "responseCode", + error: { + serializedName: "error", type: { - name: "Number" + name: "Composite", + className: "ErrorResponseBody" } }, - responseSize: { - serializedName: "responseSize", + actionLog: { + readOnly: true, + serializedName: "actionLog", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationResultLogItemContract" + } + } } - }, - timestamp: { - serializedName: "timestamp", + } + } + } +}; + +export const DeployConfigurationParameters: msRest.CompositeMapper = { + serializedName: "DeployConfigurationParameters", + type: { + name: "Composite", + className: "DeployConfigurationParameters", + modelProperties: { + branch: { + required: true, + serializedName: "branch", type: { - name: "DateTime" + name: "String" } }, - cache: { - serializedName: "cache", + force: { + serializedName: "force", type: { - name: "String" + name: "Boolean" } - }, - apiTime: { - serializedName: "apiTime", + } + } + } +}; + +export const SaveConfigurationParameter: msRest.CompositeMapper = { + serializedName: "SaveConfigurationParameter", + type: { + name: "Composite", + className: "SaveConfigurationParameter", + modelProperties: { + branch: { + required: true, + serializedName: "branch", type: { - name: "Number" + name: "String" } }, - serviceTime: { - serializedName: "serviceTime", + force: { + serializedName: "force", type: { - name: "Number" + name: "Boolean" } - }, - apiRegion: { - serializedName: "apiRegion", + } + } + } +}; + +export const AccessInformationContract: msRest.CompositeMapper = { + serializedName: "AccessInformationContract", + type: { + name: "Composite", + className: "AccessInformationContract", + modelProperties: { + id: { + serializedName: "id", type: { name: "String" } }, - subscriptionId: { - serializedName: "subscriptionId", + primaryKey: { + serializedName: "primaryKey", type: { name: "String" } }, - requestId: { - serializedName: "requestId", + secondaryKey: { + serializedName: "secondaryKey", type: { name: "String" } }, - requestSize: { - serializedName: "requestSize", + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AccessInformationUpdateParameters: msRest.CompositeMapper = { + serializedName: "AccessInformationUpdateParameters", + type: { + name: "Composite", + className: "AccessInformationUpdateParameters", + modelProperties: { + enabled: { + serializedName: "enabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const SubscriptionCreateParameters: msRest.CompositeMapper = { - serializedName: "SubscriptionCreateParameters", +export const UserTokenResult: msRest.CompositeMapper = { + serializedName: "UserTokenResult", type: { name: "Composite", - className: "SubscriptionCreateParameters", + className: "UserTokenResult", modelProperties: { - userId: { - required: true, - serializedName: "properties.userId", + value: { + serializedName: "value", type: { name: "String" } - }, - productId: { + } + } + } +}; + +export const UserTokenParameters: msRest.CompositeMapper = { + serializedName: "UserTokenParameters", + type: { + name: "Composite", + className: "UserTokenParameters", + modelProperties: { + keyType: { required: true, - serializedName: "properties.productId", + serializedName: "keyType", + defaultValue: 'primary', type: { - name: "String" + name: "Enum", + allowedValues: [ + "primary", + "secondary" + ] } }, - displayName: { + expiry: { required: true, - serializedName: "properties.displayName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "properties.primaryKey", - constraints: { - MaxLength: 256, - MinLength: 1 - }, + serializedName: "expiry", type: { - name: "String" + name: "DateTime" } - }, - secondaryKey: { - serializedName: "properties.secondaryKey", - constraints: { - MaxLength: 256, - MinLength: 1 - }, + } + } + } +}; + +export const GenerateSsoUrlResult: msRest.CompositeMapper = { + serializedName: "GenerateSsoUrlResult", + type: { + name: "Composite", + className: "GenerateSsoUrlResult", + modelProperties: { + value: { + serializedName: "value", type: { name: "String" } - }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } } } } }; -export const SubscriptionUpdateParameters: msRest.CompositeMapper = { - serializedName: "SubscriptionUpdateParameters", +export const UserUpdateParameters: msRest.CompositeMapper = { + serializedName: "UserUpdateParameters", type: { name: "Composite", - className: "SubscriptionUpdateParameters", + className: "UserUpdateParameters", modelProperties: { - userId: { - serializedName: "properties.userId", + state: { + serializedName: "properties.state", + defaultValue: 'active', type: { name: "String" } }, - productId: { - serializedName: "properties.productId", + note: { + serializedName: "properties.note", type: { name: "String" } }, - expirationDate: { - serializedName: "properties.expirationDate", + identities: { + serializedName: "properties.identities", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract" + } + } } }, - displayName: { - serializedName: "properties.displayName", + email: { + serializedName: "properties.email", + constraints: { + MaxLength: 254, + MinLength: 1 + }, type: { name: "String" } }, - primaryKey: { - serializedName: "properties.primaryKey", - constraints: { - MaxLength: 256, - MinLength: 1 - }, + password: { + serializedName: "properties.password", type: { name: "String" } }, - secondaryKey: { - serializedName: "properties.secondaryKey", + firstName: { + serializedName: "properties.firstName", constraints: { - MaxLength: 256, + MaxLength: 100, MinLength: 1 }, type: { name: "String" } }, - state: { - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "suspended", - "active", - "expired", - "submitted", - "rejected", - "cancelled" - ] - } - }, - stateComment: { - serializedName: "properties.stateComment", + lastName: { + serializedName: "properties.lastName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, type: { name: "String" } @@ -6581,83 +7429,78 @@ export const SubscriptionUpdateParameters: msRest.CompositeMapper = { } }; -export const TagContract: msRest.CompositeMapper = { - serializedName: "TagContract", +export const UserCreateParameters: msRest.CompositeMapper = { + serializedName: "UserCreateParameters", type: { name: "Composite", - className: "TagContract", + className: "UserCreateParameters", modelProperties: { - ...Resource.type.modelProperties, - displayName: { + state: { + serializedName: "properties.state", + defaultValue: 'active', + type: { + name: "String" + } + }, + note: { + serializedName: "properties.note", + type: { + name: "String" + } + }, + identities: { + serializedName: "properties.identities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract" + } + } + } + }, + email: { required: true, - serializedName: "properties.displayName", + serializedName: "properties.email", constraints: { - MaxLength: 160, + MaxLength: 254, MinLength: 1 }, type: { name: "String" } - } - } - } -}; - -export const TagCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "TagCreateUpdateParameters", - type: { - name: "Composite", - className: "TagCreateUpdateParameters", - modelProperties: { - displayName: { + }, + firstName: { required: true, - serializedName: "properties.displayName", + serializedName: "properties.firstName", constraints: { - MaxLength: 160, + MaxLength: 100, MinLength: 1 }, type: { name: "String" } - } - } - } -}; - -export const TagDescriptionContract: msRest.CompositeMapper = { - serializedName: "TagDescriptionContract", - type: { - name: "Composite", - className: "TagDescriptionContract", - modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - type: { - name: "String" - } }, - externalDocsUrl: { - serializedName: "properties.externalDocsUrl", + lastName: { + required: true, + serializedName: "properties.lastName", constraints: { - MaxLength: 2000 + MaxLength: 100, + MinLength: 1 }, type: { name: "String" } }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", + password: { + serializedName: "properties.password", type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", - constraints: { - MaxLength: 160, - MinLength: 1 - }, + confirmation: { + serializedName: "properties.confirmation", type: { name: "String" } @@ -6666,130 +7509,109 @@ export const TagDescriptionContract: msRest.CompositeMapper = { } }; -export const TagDescriptionCreateParameters: msRest.CompositeMapper = { - serializedName: "TagDescriptionCreateParameters", +export const ApiRevisionInfoContract: msRest.CompositeMapper = { + serializedName: "ApiRevisionInfoContract", type: { name: "Composite", - className: "TagDescriptionCreateParameters", + className: "ApiRevisionInfoContract", modelProperties: { - description: { - serializedName: "properties.description", + sourceApiId: { + serializedName: "sourceApiId", type: { name: "String" } }, - externalDocsUrl: { - serializedName: "properties.externalDocsUrl", + apiVersionName: { + serializedName: "apiVersionName", constraints: { - MaxLength: 2000 + MaxLength: 100 }, type: { name: "String" } }, - externalDocsDescription: { - serializedName: "properties.externalDocsDescription", + apiRevisionDescription: { + serializedName: "apiRevisionDescription", + constraints: { + MaxLength: 256 + }, type: { name: "String" } + }, + apiVersionSet: { + serializedName: "apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails" + } } } } }; -export const AccessInformationContract: msRest.CompositeMapper = { - serializedName: "AccessInformationContract", +export const QuotaCounterValueContract: msRest.CompositeMapper = { + serializedName: "QuotaCounterValueContract", type: { name: "Composite", - className: "AccessInformationContract", + className: "QuotaCounterValueContract", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - primaryKey: { - serializedName: "primaryKey", - type: { - name: "String" - } - }, - secondaryKey: { - serializedName: "secondaryKey", + callsCount: { + serializedName: "value.callsCount", type: { - name: "String" + name: "Number" } }, - enabled: { - serializedName: "enabled", + kbTransferred: { + serializedName: "value.kbTransferred", type: { - name: "Boolean" + name: "Number" } } } } }; -export const AccessInformationUpdateParameters: msRest.CompositeMapper = { - serializedName: "AccessInformationUpdateParameters", +export const ApiGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "api-getentitytag-headers", type: { name: "Composite", - className: "AccessInformationUpdateParameters", + className: "ApiGetEntityTagHeaders", modelProperties: { - enabled: { - serializedName: "enabled", + eTag: { + serializedName: "etag", type: { - name: "Boolean" + name: "String" } } } } }; -export const DeployConfigurationParameters: msRest.CompositeMapper = { - serializedName: "DeployConfigurationParameters", +export const ApiGetHeaders: msRest.CompositeMapper = { + serializedName: "api-get-headers", type: { name: "Composite", - className: "DeployConfigurationParameters", + className: "ApiGetHeaders", modelProperties: { - branch: { - required: true, - serializedName: "branch", + eTag: { + serializedName: "etag", type: { name: "String" } - }, - force: { - serializedName: "force", - type: { - name: "Boolean" - } } } } }; -export const OperationResultLogItemContract: msRest.CompositeMapper = { - serializedName: "OperationResultLogItemContract", +export const ApiCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "api-createorupdate-headers", type: { name: "Composite", - className: "OperationResultLogItemContract", + className: "ApiCreateOrUpdateHeaders", modelProperties: { - objectType: { - serializedName: "objectType", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - objectKey: { - serializedName: "objectKey", + eTag: { + serializedName: "etag", type: { name: "String" } @@ -6798,155 +7620,110 @@ export const OperationResultLogItemContract: msRest.CompositeMapper = { } }; -export const OperationResultContract: msRest.CompositeMapper = { - serializedName: "OperationResultContract", +export const ApiReleaseGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apirelease-getentitytag-headers", type: { name: "Composite", - className: "OperationResultContract", + className: "ApiReleaseGetEntityTagHeaders", modelProperties: { - id: { - serializedName: "id", + eTag: { + serializedName: "etag", type: { name: "String" } - }, - status: { - serializedName: "status", - type: { - name: "Enum", - allowedValues: [ - "Started", - "InProgress", - "Succeeded", - "Failed" - ] - } - }, - started: { - serializedName: "started", - type: { - name: "DateTime" - } - }, - updated: { - serializedName: "updated", - type: { - name: "DateTime" - } - }, - resultInfo: { - serializedName: "resultInfo", + } + } + } +}; + +export const ApiReleaseGetHeaders: msRest.CompositeMapper = { + serializedName: "apirelease-get-headers", + type: { + name: "Composite", + className: "ApiReleaseGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } - }, - actionLog: { - readOnly: true, - serializedName: "actionLog", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationResultLogItemContract" - } - } - } } } } }; -export const SaveConfigurationParameter: msRest.CompositeMapper = { - serializedName: "SaveConfigurationParameter", +export const ApiReleaseCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apirelease-createorupdate-headers", type: { name: "Composite", - className: "SaveConfigurationParameter", + className: "ApiReleaseCreateOrUpdateHeaders", modelProperties: { - branch: { - required: true, - serializedName: "branch", + eTag: { + serializedName: "etag", type: { name: "String" } - }, - force: { - serializedName: "force", - type: { - name: "Boolean" - } } } } }; -export const TenantConfigurationSyncStateContract: msRest.CompositeMapper = { - serializedName: "TenantConfigurationSyncStateContract", +export const ApiOperationGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apioperation-getentitytag-headers", type: { name: "Composite", - className: "TenantConfigurationSyncStateContract", + className: "ApiOperationGetEntityTagHeaders", modelProperties: { - branch: { - serializedName: "branch", + eTag: { + serializedName: "etag", type: { name: "String" } - }, - commitId: { - serializedName: "commitId", + } + } + } +}; + +export const ApiOperationGetHeaders: msRest.CompositeMapper = { + serializedName: "apioperation-get-headers", + type: { + name: "Composite", + className: "ApiOperationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - isExport: { - serializedName: "isExport", - type: { - name: "Boolean" - } - }, - isSynced: { - serializedName: "isSynced", - type: { - name: "Boolean" - } - }, - isGitEnabled: { - serializedName: "isGitEnabled", - type: { - name: "Boolean" - } - }, - syncDate: { - serializedName: "syncDate", - type: { - name: "DateTime" - } - }, - configurationChangeDate: { - serializedName: "configurationChangeDate", + } + } + } +}; + +export const ApiOperationCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apioperation-createorupdate-headers", + type: { + name: "Composite", + className: "ApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { - name: "DateTime" + name: "String" } } } } }; -export const GenerateSsoUrlResult: msRest.CompositeMapper = { - serializedName: "GenerateSsoUrlResult", +export const ApiOperationPolicyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apioperationpolicy-getentitytag-headers", type: { name: "Composite", - className: "GenerateSsoUrlResult", + className: "ApiOperationPolicyGetEntityTagHeaders", modelProperties: { - value: { - serializedName: "value", + eTag: { + serializedName: "etag", type: { name: "String" } @@ -6955,78 +7732,62 @@ export const GenerateSsoUrlResult: msRest.CompositeMapper = { } }; -export const UserCreateParameters: msRest.CompositeMapper = { - serializedName: "UserCreateParameters", +export const ApiOperationPolicyGetHeaders: msRest.CompositeMapper = { + serializedName: "apioperationpolicy-get-headers", type: { name: "Composite", - className: "UserCreateParameters", + className: "ApiOperationPolicyGetHeaders", modelProperties: { - state: { - serializedName: "properties.state", - defaultValue: 'active', - type: { - name: "String" - } - }, - note: { - serializedName: "properties.note", - type: { - name: "String" - } - }, - identities: { - serializedName: "properties.identities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } - }, - email: { - required: true, - serializedName: "properties.email", - constraints: { - MaxLength: 254, - MinLength: 1 - }, - type: { - name: "String" - } - }, - firstName: { - required: true, - serializedName: "properties.firstName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + eTag: { + serializedName: "etag", type: { name: "String" } - }, - lastName: { - required: true, - serializedName: "properties.lastName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiOperationPolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apioperationpolicy-createorupdate-headers", + type: { + name: "Composite", + className: "ApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - password: { - serializedName: "properties.password", + } + } + } +}; + +export const TagGetEntityStateByOperationHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystatebyoperation-headers", + type: { + name: "Composite", + className: "TagGetEntityStateByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - confirmation: { - serializedName: "properties.confirmation", + } + } + } +}; + +export const TagGetByOperationHeaders: msRest.CompositeMapper = { + serializedName: "tag-getbyoperation-headers", + type: { + name: "Composite", + className: "TagGetByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } @@ -7035,43 +7796,30 @@ export const UserCreateParameters: msRest.CompositeMapper = { } }; -export const UserTokenParameters: msRest.CompositeMapper = { - serializedName: "UserTokenParameters", +export const ApiPolicyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apipolicy-getentitytag-headers", type: { name: "Composite", - className: "UserTokenParameters", + className: "ApiPolicyGetEntityTagHeaders", modelProperties: { - keyType: { - required: true, - serializedName: "keyType", - defaultValue: 'primary', - type: { - name: "Enum", - allowedValues: [ - "primary", - "secondary" - ] - } - }, - expiry: { - required: true, - serializedName: "expiry", + eTag: { + serializedName: "etag", type: { - name: "DateTime" + name: "String" } } } } }; -export const UserTokenResult: msRest.CompositeMapper = { - serializedName: "UserTokenResult", +export const ApiPolicyGetHeaders: msRest.CompositeMapper = { + serializedName: "apipolicy-get-headers", type: { name: "Composite", - className: "UserTokenResult", + className: "ApiPolicyGetHeaders", modelProperties: { - value: { - serializedName: "value", + eTag: { + serializedName: "etag", type: { name: "String" } @@ -7080,69 +7828,94 @@ export const UserTokenResult: msRest.CompositeMapper = { } }; -export const UserUpdateParameters: msRest.CompositeMapper = { - serializedName: "UserUpdateParameters", +export const ApiPolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apipolicy-createorupdate-headers", type: { name: "Composite", - className: "UserUpdateParameters", + className: "ApiPolicyCreateOrUpdateHeaders", modelProperties: { - state: { - serializedName: "properties.state", - defaultValue: 'active', + eTag: { + serializedName: "etag", type: { name: "String" } - }, - note: { - serializedName: "properties.note", + } + } + } +}; + +export const ApiSchemaGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apischema-getentitytag-headers", + type: { + name: "Composite", + className: "ApiSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - identities: { - serializedName: "properties.identities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserIdentityContract" - } - } - } - }, - email: { - serializedName: "properties.email", - constraints: { - MaxLength: 254, - MinLength: 1 - }, + } + } + } +}; + +export const ApiSchemaGetHeaders: msRest.CompositeMapper = { + serializedName: "apischema-get-headers", + type: { + name: "Composite", + className: "ApiSchemaGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - password: { - serializedName: "properties.password", + } + } + } +}; + +export const ApiSchemaCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apischema-createorupdate-headers", + type: { + name: "Composite", + className: "ApiSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - firstName: { - serializedName: "properties.firstName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiDiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apidiagnostic-getentitytag-headers", + type: { + name: "Composite", + className: "ApiDiagnosticGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - lastName: { - serializedName: "properties.lastName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiDiagnosticGetHeaders: msRest.CompositeMapper = { + serializedName: "apidiagnostic-get-headers", + type: { + name: "Composite", + className: "ApiDiagnosticGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } @@ -7151,14 +7924,14 @@ export const UserUpdateParameters: msRest.CompositeMapper = { } }; -export const CurrentUserIdentity: msRest.CompositeMapper = { - serializedName: "CurrentUserIdentity", +export const ApiDiagnosticCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apidiagnostic-createorupdate-headers", type: { name: "Composite", - className: "CurrentUserIdentity", + className: "ApiDiagnosticCreateOrUpdateHeaders", modelProperties: { - id: { - serializedName: "id", + eTag: { + serializedName: "etag", type: { name: "String" } @@ -7167,53 +7940,14 @@ export const CurrentUserIdentity: msRest.CompositeMapper = { } }; -export const ApiVersionSetContract: msRest.CompositeMapper = { - serializedName: "ApiVersionSetContract", +export const ApiIssueGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apiissue-getentitytag-headers", type: { name: "Composite", - className: "ApiVersionSetContract", + className: "ApiIssueGetEntityTagHeaders", modelProperties: { - ...Resource.type.modelProperties, - description: { - serializedName: "properties.description", - type: { - name: "String" - } - }, - versionQueryName: { - serializedName: "properties.versionQueryName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, - type: { - name: "String" - } - }, - versionHeaderName: { - serializedName: "properties.versionHeaderName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, - type: { - name: "String" - } - }, - displayName: { - required: true, - serializedName: "properties.displayName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, - type: { - name: "String" - } - }, - versioningScheme: { - required: true, - serializedName: "properties.versioningScheme", + eTag: { + serializedName: "etag", type: { name: "String" } @@ -7222,34 +7956,46 @@ export const ApiVersionSetContract: msRest.CompositeMapper = { } }; -export const ApiVersionSetEntityBase: msRest.CompositeMapper = { - serializedName: "ApiVersionSetEntityBase", +export const ApiIssueGetHeaders: msRest.CompositeMapper = { + serializedName: "apiissue-get-headers", type: { name: "Composite", - className: "ApiVersionSetEntityBase", + className: "ApiIssueGetHeaders", modelProperties: { - description: { - serializedName: "description", + eTag: { + serializedName: "etag", type: { name: "String" } - }, - versionQueryName: { - serializedName: "versionQueryName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiIssueCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiissue-createorupdate-headers", + type: { + name: "Composite", + className: "ApiIssueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - versionHeaderName: { - serializedName: "versionHeaderName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiIssueCommentGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apiissuecomment-getentitytag-headers", + type: { + name: "Composite", + className: "ApiIssueCommentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } @@ -7258,50 +8004,78 @@ export const ApiVersionSetEntityBase: msRest.CompositeMapper = { } }; -export const ApiVersionSetUpdateParameters: msRest.CompositeMapper = { - serializedName: "ApiVersionSetUpdateParameters", +export const ApiIssueCommentGetHeaders: msRest.CompositeMapper = { + serializedName: "apiissuecomment-get-headers", type: { name: "Composite", - className: "ApiVersionSetUpdateParameters", + className: "ApiIssueCommentGetHeaders", modelProperties: { - description: { - serializedName: "properties.description", + eTag: { + serializedName: "etag", type: { name: "String" } - }, - versionQueryName: { - serializedName: "properties.versionQueryName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiIssueCommentCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiissuecomment-createorupdate-headers", + type: { + name: "Composite", + className: "ApiIssueCommentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - versionHeaderName: { - serializedName: "properties.versionHeaderName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiIssueAttachmentGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apiissueattachment-getentitytag-headers", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - displayName: { - serializedName: "properties.displayName", - constraints: { - MaxLength: 100, - MinLength: 1 - }, + } + } + } +}; + +export const ApiIssueAttachmentGetHeaders: msRest.CompositeMapper = { + serializedName: "apiissueattachment-get-headers", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } - }, - versioningScheme: { - serializedName: "properties.versioningScheme", + } + } + } +}; + +export const ApiIssueAttachmentCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiissueattachment-createorupdate-headers", + type: { + name: "Composite", + className: "ApiIssueAttachmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", type: { name: "String" } @@ -7310,11 +8084,11 @@ export const ApiVersionSetUpdateParameters: msRest.CompositeMapper = { } }; -export const PolicyGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "policy-getentitytag-headers", +export const ApiTagDescriptionGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apitagdescription-getentitytag-headers", type: { name: "Composite", - className: "PolicyGetEntityTagHeaders", + className: "ApiTagDescriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7326,11 +8100,11 @@ export const PolicyGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const PolicyGetHeaders: msRest.CompositeMapper = { - serializedName: "policy-get-headers", +export const ApiTagDescriptionGetHeaders: msRest.CompositeMapper = { + serializedName: "apitagdescription-get-headers", type: { name: "Composite", - className: "PolicyGetHeaders", + className: "ApiTagDescriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7342,11 +8116,11 @@ export const PolicyGetHeaders: msRest.CompositeMapper = { } }; -export const ApiGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "api-getentitytag-headers", +export const ApiTagDescriptionCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apitagdescription-createorupdate-headers", type: { name: "Composite", - className: "ApiGetEntityTagHeaders", + className: "ApiTagDescriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7358,11 +8132,11 @@ export const ApiGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiGetHeaders: msRest.CompositeMapper = { - serializedName: "api-get-headers", +export const TagGetEntityStateByApiHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystatebyapi-headers", type: { name: "Composite", - className: "ApiGetHeaders", + className: "TagGetEntityStateByApiHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7374,11 +8148,11 @@ export const ApiGetHeaders: msRest.CompositeMapper = { } }; -export const ApiCreateOrUpdateHeaders: msRest.CompositeMapper = { - serializedName: "api-createorupdate-headers", +export const TagGetByApiHeaders: msRest.CompositeMapper = { + serializedName: "tag-getbyapi-headers", type: { name: "Composite", - className: "ApiCreateOrUpdateHeaders", + className: "TagGetByApiHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7390,11 +8164,11 @@ export const ApiCreateOrUpdateHeaders: msRest.CompositeMapper = { } }; -export const ApiReleaseGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apirelease-getentitytag-headers", +export const TagAssignToApiHeaders: msRest.CompositeMapper = { + serializedName: "tag-assigntoapi-headers", type: { name: "Composite", - className: "ApiReleaseGetEntityTagHeaders", + className: "TagAssignToApiHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7406,11 +8180,11 @@ export const ApiReleaseGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiOperationGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apioperation-getentitytag-headers", +export const ApiVersionSetGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apiversionset-getentitytag-headers", type: { name: "Composite", - className: "ApiOperationGetEntityTagHeaders", + className: "ApiVersionSetGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7422,11 +8196,11 @@ export const ApiOperationGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiOperationGetHeaders: msRest.CompositeMapper = { - serializedName: "apioperation-get-headers", +export const ApiVersionSetGetHeaders: msRest.CompositeMapper = { + serializedName: "apiversionset-get-headers", type: { name: "Composite", - className: "ApiOperationGetHeaders", + className: "ApiVersionSetGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7438,11 +8212,11 @@ export const ApiOperationGetHeaders: msRest.CompositeMapper = { } }; -export const ApiOperationPolicyGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apioperationpolicy-getentitytag-headers", +export const ApiVersionSetCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiversionset-createorupdate-headers", type: { name: "Composite", - className: "ApiOperationPolicyGetEntityTagHeaders", + className: "ApiVersionSetCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7454,11 +8228,11 @@ export const ApiOperationPolicyGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiOperationPolicyGetHeaders: msRest.CompositeMapper = { - serializedName: "apioperationpolicy-get-headers", +export const AuthorizationServerGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "authorizationserver-getentitytag-headers", type: { name: "Composite", - className: "ApiOperationPolicyGetHeaders", + className: "AuthorizationServerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7470,11 +8244,11 @@ export const ApiOperationPolicyGetHeaders: msRest.CompositeMapper = { } }; -export const ApiPolicyListByApiHeaders: msRest.CompositeMapper = { - serializedName: "apipolicy-listbyapi-headers", +export const AuthorizationServerGetHeaders: msRest.CompositeMapper = { + serializedName: "authorizationserver-get-headers", type: { name: "Composite", - className: "ApiPolicyListByApiHeaders", + className: "AuthorizationServerGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7486,11 +8260,11 @@ export const ApiPolicyListByApiHeaders: msRest.CompositeMapper = { } }; -export const ApiPolicyGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apipolicy-getentitytag-headers", +export const AuthorizationServerCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "authorizationserver-createorupdate-headers", type: { name: "Composite", - className: "ApiPolicyGetEntityTagHeaders", + className: "AuthorizationServerCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7502,11 +8276,11 @@ export const ApiPolicyGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiPolicyGetHeaders: msRest.CompositeMapper = { - serializedName: "apipolicy-get-headers", +export const BackendGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "backend-getentitytag-headers", type: { name: "Composite", - className: "ApiPolicyGetHeaders", + className: "BackendGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7518,11 +8292,11 @@ export const ApiPolicyGetHeaders: msRest.CompositeMapper = { } }; -export const ApiSchemaListByApiHeaders: msRest.CompositeMapper = { - serializedName: "apischema-listbyapi-headers", +export const BackendGetHeaders: msRest.CompositeMapper = { + serializedName: "backend-get-headers", type: { name: "Composite", - className: "ApiSchemaListByApiHeaders", + className: "BackendGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7534,11 +8308,11 @@ export const ApiSchemaListByApiHeaders: msRest.CompositeMapper = { } }; -export const ApiSchemaGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apischema-getentitytag-headers", +export const BackendCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "backend-createorupdate-headers", type: { name: "Composite", - className: "ApiSchemaGetEntityTagHeaders", + className: "BackendCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7550,11 +8324,11 @@ export const ApiSchemaGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiSchemaGetHeaders: msRest.CompositeMapper = { - serializedName: "apischema-get-headers", +export const CacheGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "cache-getentitytag-headers", type: { name: "Composite", - className: "ApiSchemaGetHeaders", + className: "CacheGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7566,11 +8340,11 @@ export const ApiSchemaGetHeaders: msRest.CompositeMapper = { } }; -export const ApiDiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apidiagnostic-getentitytag-headers", +export const CacheGetHeaders: msRest.CompositeMapper = { + serializedName: "cache-get-headers", type: { name: "Composite", - className: "ApiDiagnosticGetEntityTagHeaders", + className: "CacheGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7582,11 +8356,11 @@ export const ApiDiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiDiagnosticGetHeaders: msRest.CompositeMapper = { - serializedName: "apidiagnostic-get-headers", +export const CacheCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "cache-createorupdate-headers", type: { name: "Composite", - className: "ApiDiagnosticGetHeaders", + className: "CacheCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7597,12 +8371,12 @@ export const ApiDiagnosticGetHeaders: msRest.CompositeMapper = { } } }; - -export const ApiIssueGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apiissue-getentitytag-headers", + +export const CertificateGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "certificate-getentitytag-headers", type: { name: "Composite", - className: "ApiIssueGetEntityTagHeaders", + className: "CertificateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7614,11 +8388,11 @@ export const ApiIssueGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiIssueGetHeaders: msRest.CompositeMapper = { - serializedName: "apiissue-get-headers", +export const CertificateGetHeaders: msRest.CompositeMapper = { + serializedName: "certificate-get-headers", type: { name: "Composite", - className: "ApiIssueGetHeaders", + className: "CertificateGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7630,11 +8404,11 @@ export const ApiIssueGetHeaders: msRest.CompositeMapper = { } }; -export const ApiIssueCommentGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apiissuecomment-getentitytag-headers", +export const CertificateCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "certificate-createorupdate-headers", type: { name: "Composite", - className: "ApiIssueCommentGetEntityTagHeaders", + className: "CertificateCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7646,11 +8420,11 @@ export const ApiIssueCommentGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiIssueCommentGetHeaders: msRest.CompositeMapper = { - serializedName: "apiissuecomment-get-headers", +export const DiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-getentitytag-headers", type: { name: "Composite", - className: "ApiIssueCommentGetHeaders", + className: "DiagnosticGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7662,11 +8436,11 @@ export const ApiIssueCommentGetHeaders: msRest.CompositeMapper = { } }; -export const ApiIssueAttachmentGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apiissueattachment-getentitytag-headers", +export const DiagnosticGetHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-get-headers", type: { name: "Composite", - className: "ApiIssueAttachmentGetEntityTagHeaders", + className: "DiagnosticGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7678,11 +8452,11 @@ export const ApiIssueAttachmentGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const ApiIssueAttachmentGetHeaders: msRest.CompositeMapper = { - serializedName: "apiissueattachment-get-headers", +export const DiagnosticCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-createorupdate-headers", type: { name: "Composite", - className: "ApiIssueAttachmentGetHeaders", + className: "DiagnosticCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7694,11 +8468,11 @@ export const ApiIssueAttachmentGetHeaders: msRest.CompositeMapper = { } }; -export const AuthorizationServerGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "authorizationserver-getentitytag-headers", +export const EmailTemplateGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "emailtemplate-getentitytag-headers", type: { name: "Composite", - className: "AuthorizationServerGetEntityTagHeaders", + className: "EmailTemplateGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7710,11 +8484,11 @@ export const AuthorizationServerGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const AuthorizationServerGetHeaders: msRest.CompositeMapper = { - serializedName: "authorizationserver-get-headers", +export const EmailTemplateGetHeaders: msRest.CompositeMapper = { + serializedName: "emailtemplate-get-headers", type: { name: "Composite", - className: "AuthorizationServerGetHeaders", + className: "EmailTemplateGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7726,11 +8500,11 @@ export const AuthorizationServerGetHeaders: msRest.CompositeMapper = { } }; -export const BackendGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "backend-getentitytag-headers", +export const GroupGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "group-getentitytag-headers", type: { name: "Composite", - className: "BackendGetEntityTagHeaders", + className: "GroupGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7742,11 +8516,11 @@ export const BackendGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const BackendGetHeaders: msRest.CompositeMapper = { - serializedName: "backend-get-headers", +export const GroupGetHeaders: msRest.CompositeMapper = { + serializedName: "group-get-headers", type: { name: "Composite", - className: "BackendGetHeaders", + className: "GroupGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7758,11 +8532,11 @@ export const BackendGetHeaders: msRest.CompositeMapper = { } }; -export const CertificateGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "certificate-getentitytag-headers", +export const GroupCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "group-createorupdate-headers", type: { name: "Composite", - className: "CertificateGetEntityTagHeaders", + className: "GroupCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7774,11 +8548,11 @@ export const CertificateGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const CertificateGetHeaders: msRest.CompositeMapper = { - serializedName: "certificate-get-headers", +export const IdentityProviderGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "identityprovider-getentitytag-headers", type: { name: "Composite", - className: "CertificateGetHeaders", + className: "IdentityProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7790,11 +8564,11 @@ export const CertificateGetHeaders: msRest.CompositeMapper = { } }; -export const DiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "diagnostic-getentitytag-headers", +export const IdentityProviderGetHeaders: msRest.CompositeMapper = { + serializedName: "identityprovider-get-headers", type: { name: "Composite", - className: "DiagnosticGetEntityTagHeaders", + className: "IdentityProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7806,11 +8580,11 @@ export const DiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const DiagnosticGetHeaders: msRest.CompositeMapper = { - serializedName: "diagnostic-get-headers", +export const IdentityProviderCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "identityprovider-createorupdate-headers", type: { name: "Composite", - className: "DiagnosticGetHeaders", + className: "IdentityProviderCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7822,11 +8596,11 @@ export const DiagnosticGetHeaders: msRest.CompositeMapper = { } }; -export const EmailTemplateGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "emailtemplate-getentitytag-headers", +export const IssueGetHeaders: msRest.CompositeMapper = { + serializedName: "issue-get-headers", type: { name: "Composite", - className: "EmailTemplateGetEntityTagHeaders", + className: "IssueGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7838,11 +8612,11 @@ export const EmailTemplateGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const EmailTemplateGetHeaders: msRest.CompositeMapper = { - serializedName: "emailtemplate-get-headers", +export const LoggerGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "logger-getentitytag-headers", type: { name: "Composite", - className: "EmailTemplateGetHeaders", + className: "LoggerGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7854,11 +8628,11 @@ export const EmailTemplateGetHeaders: msRest.CompositeMapper = { } }; -export const GroupGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "group-getentitytag-headers", +export const LoggerGetHeaders: msRest.CompositeMapper = { + serializedName: "logger-get-headers", type: { name: "Composite", - className: "GroupGetEntityTagHeaders", + className: "LoggerGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7870,11 +8644,11 @@ export const GroupGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const GroupGetHeaders: msRest.CompositeMapper = { - serializedName: "group-get-headers", +export const LoggerCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "logger-createorupdate-headers", type: { name: "Composite", - className: "GroupGetHeaders", + className: "LoggerCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7886,11 +8660,11 @@ export const GroupGetHeaders: msRest.CompositeMapper = { } }; -export const IdentityProviderGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "identityprovider-getentitytag-headers", +export const OpenIdConnectProviderGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "openidconnectprovider-getentitytag-headers", type: { name: "Composite", - className: "IdentityProviderGetEntityTagHeaders", + className: "OpenIdConnectProviderGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7902,11 +8676,11 @@ export const IdentityProviderGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const IdentityProviderGetHeaders: msRest.CompositeMapper = { - serializedName: "identityprovider-get-headers", +export const OpenIdConnectProviderGetHeaders: msRest.CompositeMapper = { + serializedName: "openidconnectprovider-get-headers", type: { name: "Composite", - className: "IdentityProviderGetHeaders", + className: "OpenIdConnectProviderGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7918,11 +8692,11 @@ export const IdentityProviderGetHeaders: msRest.CompositeMapper = { } }; -export const LoggerGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "logger-getentitytag-headers", +export const OpenIdConnectProviderCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "openidconnectprovider-createorupdate-headers", type: { name: "Composite", - className: "LoggerGetEntityTagHeaders", + className: "OpenIdConnectProviderCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7934,11 +8708,11 @@ export const LoggerGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const LoggerGetHeaders: msRest.CompositeMapper = { - serializedName: "logger-get-headers", +export const PolicyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "policy-getentitytag-headers", type: { name: "Composite", - className: "LoggerGetHeaders", + className: "PolicyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7950,11 +8724,11 @@ export const LoggerGetHeaders: msRest.CompositeMapper = { } }; -export const OpenIdConnectProviderGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "openidconnectprovider-getentitytag-headers", +export const PolicyGetHeaders: msRest.CompositeMapper = { + serializedName: "policy-get-headers", type: { name: "Composite", - className: "OpenIdConnectProviderGetEntityTagHeaders", + className: "PolicyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -7966,11 +8740,11 @@ export const OpenIdConnectProviderGetEntityTagHeaders: msRest.CompositeMapper = } }; -export const OpenIdConnectProviderGetHeaders: msRest.CompositeMapper = { - serializedName: "openidconnectprovider-get-headers", +export const PolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "policy-createorupdate-headers", type: { name: "Composite", - className: "OpenIdConnectProviderGetHeaders", + className: "PolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8110,11 +8884,11 @@ export const ProductGetHeaders: msRest.CompositeMapper = { } }; -export const ProductPolicyListByProductHeaders: msRest.CompositeMapper = { - serializedName: "productpolicy-listbyproduct-headers", +export const ProductCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "product-createorupdate-headers", type: { name: "Composite", - className: "ProductPolicyListByProductHeaders", + className: "ProductCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8158,27 +8932,11 @@ export const ProductPolicyGetHeaders: 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", +export const ProductPolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "productpolicy-createorupdate-headers", type: { name: "Composite", - className: "PropertyGetHeaders", + className: "ProductPolicyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8190,11 +8948,11 @@ export const PropertyGetHeaders: msRest.CompositeMapper = { } }; -export const SubscriptionGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "subscription-getentitytag-headers", +export const TagGetEntityStateByProductHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystatebyproduct-headers", type: { name: "Composite", - className: "SubscriptionGetEntityTagHeaders", + className: "TagGetEntityStateByProductHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8206,11 +8964,11 @@ export const SubscriptionGetEntityTagHeaders: msRest.CompositeMapper = { } }; -export const SubscriptionGetHeaders: msRest.CompositeMapper = { - serializedName: "subscription-get-headers", +export const TagGetByProductHeaders: msRest.CompositeMapper = { + serializedName: "tag-getbyproduct-headers", type: { name: "Composite", - className: "SubscriptionGetHeaders", + className: "TagGetByProductHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8222,11 +8980,11 @@ export const SubscriptionGetHeaders: msRest.CompositeMapper = { } }; -export const TagGetEntityStateHeaders: msRest.CompositeMapper = { - serializedName: "tag-getentitystate-headers", +export const PropertyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "property-getentitytag-headers", type: { name: "Composite", - className: "TagGetEntityStateHeaders", + className: "PropertyGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8238,11 +8996,11 @@ export const TagGetEntityStateHeaders: msRest.CompositeMapper = { } }; -export const TagGetHeaders: msRest.CompositeMapper = { - serializedName: "tag-get-headers", +export const PropertyGetHeaders: msRest.CompositeMapper = { + serializedName: "property-get-headers", type: { name: "Composite", - className: "TagGetHeaders", + className: "PropertyGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8254,11 +9012,11 @@ export const TagGetHeaders: msRest.CompositeMapper = { } }; -export const TagGetEntityStateByApiHeaders: msRest.CompositeMapper = { - serializedName: "tag-getentitystatebyapi-headers", +export const PropertyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "property-createorupdate-headers", type: { name: "Composite", - className: "TagGetEntityStateByApiHeaders", + className: "PropertyCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8270,11 +9028,11 @@ export const TagGetEntityStateByApiHeaders: msRest.CompositeMapper = { } }; -export const TagGetByApiHeaders: msRest.CompositeMapper = { - serializedName: "tag-getbyapi-headers", +export const SubscriptionGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "subscription-getentitytag-headers", type: { name: "Composite", - className: "TagGetByApiHeaders", + className: "SubscriptionGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8286,11 +9044,11 @@ export const TagGetByApiHeaders: msRest.CompositeMapper = { } }; -export const TagDescriptionGetEntityStateHeaders: msRest.CompositeMapper = { - serializedName: "tagdescription-getentitystate-headers", +export const SubscriptionGetHeaders: msRest.CompositeMapper = { + serializedName: "subscription-get-headers", type: { name: "Composite", - className: "TagDescriptionGetEntityStateHeaders", + className: "SubscriptionGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8302,11 +9060,11 @@ export const TagDescriptionGetEntityStateHeaders: msRest.CompositeMapper = { } }; -export const TagDescriptionGetHeaders: msRest.CompositeMapper = { - serializedName: "tagdescription-get-headers", +export const SubscriptionCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "subscription-createorupdate-headers", type: { name: "Composite", - className: "TagDescriptionGetHeaders", + className: "SubscriptionCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8318,11 +9076,11 @@ export const TagDescriptionGetHeaders: msRest.CompositeMapper = { } }; -export const TagGetEntityStateByOperationHeaders: msRest.CompositeMapper = { - serializedName: "tag-getentitystatebyoperation-headers", +export const TagGetEntityStateHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystate-headers", type: { name: "Composite", - className: "TagGetEntityStateByOperationHeaders", + className: "TagGetEntityStateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8334,11 +9092,11 @@ export const TagGetEntityStateByOperationHeaders: msRest.CompositeMapper = { } }; -export const TagGetByOperationHeaders: msRest.CompositeMapper = { - serializedName: "tag-getbyoperation-headers", +export const TagGetHeaders: msRest.CompositeMapper = { + serializedName: "tag-get-headers", type: { name: "Composite", - className: "TagGetByOperationHeaders", + className: "TagGetHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8350,11 +9108,11 @@ export const TagGetByOperationHeaders: msRest.CompositeMapper = { } }; -export const TagGetEntityStateByProductHeaders: msRest.CompositeMapper = { - serializedName: "tag-getentitystatebyproduct-headers", +export const TagCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "tag-createorupdate-headers", type: { name: "Composite", - className: "TagGetEntityStateByProductHeaders", + className: "TagCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8366,11 +9124,11 @@ export const TagGetEntityStateByProductHeaders: msRest.CompositeMapper = { } }; -export const TagGetByProductHeaders: msRest.CompositeMapper = { - serializedName: "tag-getbyproduct-headers", +export const TenantAccessGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "tenantaccess-getentitytag-headers", type: { name: "Composite", - className: "TagGetByProductHeaders", + className: "TenantAccessGetEntityTagHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8446,27 +9204,11 @@ export const UserGetHeaders: msRest.CompositeMapper = { } }; -export const ApiVersionSetGetEntityTagHeaders: msRest.CompositeMapper = { - serializedName: "apiversionset-getentitytag-headers", - type: { - name: "Composite", - className: "ApiVersionSetGetEntityTagHeaders", - modelProperties: { - eTag: { - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const ApiVersionSetGetHeaders: msRest.CompositeMapper = { - serializedName: "apiversionset-get-headers", +export const UserCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "user-createorupdate-headers", type: { name: "Composite", - className: "ApiVersionSetGetHeaders", + className: "UserCreateOrUpdateHeaders", modelProperties: { eTag: { serializedName: "etag", @@ -8478,31 +9220,27 @@ export const ApiVersionSetGetHeaders: msRest.CompositeMapper = { } }; -export const RegionListResult: msRest.CompositeMapper = { - serializedName: "RegionListResult", +export const ApiCollection: msRest.CompositeMapper = { + serializedName: "ApiCollection", type: { name: "Composite", - className: "RegionListResult", + className: "ApiCollection", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegionContract" + className: "ApiContract" } } } }, - count: { - serializedName: "count", - type: { - name: "Number" - } - }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -8512,27 +9250,25 @@ export const RegionListResult: msRest.CompositeMapper = { } }; -export const ApiCollection: msRest.CompositeMapper = { - serializedName: "ApiCollection", +export const TagResourceCollection: msRest.CompositeMapper = { + serializedName: "TagResourceCollection", type: { name: "Composite", - className: "ApiCollection", + className: "TagResourceCollection", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiContract" + className: "TagResourceContract" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -8542,31 +9278,27 @@ export const ApiCollection: msRest.CompositeMapper = { } }; -export const TagResourceCollection: msRest.CompositeMapper = { - serializedName: "TagResourceCollection", +export const ApiRevisionCollection: msRest.CompositeMapper = { + serializedName: "ApiRevisionCollection", type: { name: "Composite", - className: "TagResourceCollection", + className: "ApiRevisionCollection", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "TagResourceContract" + className: "ApiRevisionContract" } } } }, - count: { - serializedName: "count", - type: { - name: "Number" - } - }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -8575,12 +9307,12 @@ export const TagResourceCollection: msRest.CompositeMapper = { } } }; - -export const ApiRevisionCollection: msRest.CompositeMapper = { - serializedName: "ApiRevisionCollection", + +export const ApiReleaseCollection: msRest.CompositeMapper = { + serializedName: "ApiReleaseCollection", type: { name: "Composite", - className: "ApiRevisionCollection", + className: "ApiReleaseCollection", modelProperties: { value: { readOnly: true, @@ -8590,7 +9322,7 @@ export const ApiRevisionCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiRevisionContract" + className: "ApiReleaseContract" } } } @@ -8606,11 +9338,11 @@ export const ApiRevisionCollection: msRest.CompositeMapper = { } }; -export const ApiReleaseCollection: msRest.CompositeMapper = { - serializedName: "ApiReleaseCollection", +export const OperationCollection: msRest.CompositeMapper = { + serializedName: "OperationCollection", type: { name: "Composite", - className: "ApiReleaseCollection", + className: "OperationCollection", modelProperties: { value: { readOnly: true, @@ -8620,7 +9352,7 @@ export const ApiReleaseCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiReleaseContract" + className: "OperationContract" } } } @@ -8636,27 +9368,25 @@ export const ApiReleaseCollection: msRest.CompositeMapper = { } }; -export const OperationCollection: msRest.CompositeMapper = { - serializedName: "OperationCollection", +export const TagCollection: msRest.CompositeMapper = { + serializedName: "TagCollection", type: { name: "Composite", - className: "OperationCollection", + className: "TagCollection", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "OperationContract" + className: "TagContract" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -8752,31 +9482,57 @@ export const DiagnosticCollection: msRest.CompositeMapper = { } }; -export const LoggerCollection: msRest.CompositeMapper = { - serializedName: "LoggerCollection", +export const IssueCollection: msRest.CompositeMapper = { + serializedName: "IssueCollection", type: { name: "Composite", - className: "LoggerCollection", + className: "IssueCollection", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "LoggerContract" + className: "IssueContract" } } } }, - count: { - serializedName: "count", + nextLink: { + readOnly: true, + serializedName: "nextLink", type: { - name: "Number" + name: "String" + } + } + } + } +}; + +export const IssueCommentCollection: msRest.CompositeMapper = { + serializedName: "IssueCommentCollection", + type: { + name: "Composite", + className: "IssueCommentCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IssueCommentContract" + } + } } }, nextLink: { + readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -8786,11 +9542,11 @@ export const LoggerCollection: msRest.CompositeMapper = { } }; -export const IssueCollection: msRest.CompositeMapper = { - serializedName: "IssueCollection", +export const IssueAttachmentCollection: msRest.CompositeMapper = { + serializedName: "IssueAttachmentCollection", type: { name: "Composite", - className: "IssueCollection", + className: "IssueAttachmentCollection", modelProperties: { value: { readOnly: true, @@ -8800,7 +9556,7 @@ export const IssueCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "IssueContract" + className: "IssueAttachmentContract" } } } @@ -8816,27 +9572,25 @@ export const IssueCollection: msRest.CompositeMapper = { } }; -export const IssueCommentCollection: msRest.CompositeMapper = { - serializedName: "IssueCommentCollection", +export const TagDescriptionCollection: msRest.CompositeMapper = { + serializedName: "TagDescriptionCollection", type: { name: "Composite", - className: "IssueCommentCollection", + className: "TagDescriptionCollection", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IssueCommentContract" + className: "TagDescriptionContract" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -8846,27 +9600,25 @@ export const IssueCommentCollection: msRest.CompositeMapper = { } }; -export const IssueAttachmentCollection: msRest.CompositeMapper = { - serializedName: "IssueAttachmentCollection", +export const ApiVersionSetCollection: msRest.CompositeMapper = { + serializedName: "ApiVersionSetCollection", type: { name: "Composite", - className: "IssueAttachmentCollection", + className: "ApiVersionSetCollection", modelProperties: { value: { - readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IssueAttachmentContract" + className: "ApiVersionSetContract" } } } }, nextLink: { - readOnly: true, serializedName: "nextLink", type: { name: "String" @@ -8938,6 +9690,34 @@ export const BackendCollection: msRest.CompositeMapper = { } }; +export const CacheCollection: msRest.CompositeMapper = { + serializedName: "CacheCollection", + type: { + name: "Composite", + className: "CacheCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CacheContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const CertificateCollection: msRest.CompositeMapper = { serializedName: "CertificateCollection", type: { @@ -8994,6 +9774,35 @@ export const OperationListResult: msRest.CompositeMapper = { } }; +export const ResourceSkuResults: msRest.CompositeMapper = { + serializedName: "ResourceSkuResults", + type: { + name: "Composite", + className: "ResourceSkuResults", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResourceSkuResult" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const ApiManagementServiceListResult: msRest.CompositeMapper = { serializedName: "ApiManagementServiceListResult", type: { @@ -9135,6 +9944,40 @@ export const IdentityProviderList: msRest.CompositeMapper = { } }; +export const LoggerCollection: msRest.CompositeMapper = { + serializedName: "LoggerCollection", + type: { + name: "Composite", + className: "LoggerCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LoggerContract" + } + } + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const NotificationCollection: msRest.CompositeMapper = { serializedName: "NotificationCollection", type: { @@ -9247,11 +10090,11 @@ export const PropertyCollection: msRest.CompositeMapper = { } }; -export const ReportCollection: msRest.CompositeMapper = { - serializedName: "ReportCollection", +export const RegionListResult: msRest.CompositeMapper = { + serializedName: "RegionListResult", type: { name: "Composite", - className: "ReportCollection", + className: "RegionListResult", modelProperties: { value: { serializedName: "", @@ -9260,7 +10103,7 @@ export const ReportCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ReportRecordContract" + className: "RegionContract" } } } @@ -9281,11 +10124,11 @@ export const ReportCollection: msRest.CompositeMapper = { } }; -export const RequestReportCollection: msRest.CompositeMapper = { - serializedName: "RequestReportCollection", +export const ReportCollection: msRest.CompositeMapper = { + serializedName: "ReportCollection", type: { name: "Composite", - className: "RequestReportCollection", + className: "ReportCollection", modelProperties: { value: { serializedName: "", @@ -9294,7 +10137,7 @@ export const RequestReportCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "RequestReportRecordContract" + className: "ReportRecordContract" } } } @@ -9304,28 +10147,6 @@ export const RequestReportCollection: msRest.CompositeMapper = { type: { name: "Number" } - } - } - } -}; - -export const TagCollection: msRest.CompositeMapper = { - serializedName: "TagCollection", - type: { - name: "Composite", - className: "TagCollection", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TagContract" - } - } - } }, nextLink: { serializedName: "nextLink", @@ -9337,11 +10158,11 @@ export const TagCollection: msRest.CompositeMapper = { } }; -export const TagDescriptionCollection: msRest.CompositeMapper = { - serializedName: "TagDescriptionCollection", +export const RequestReportCollection: msRest.CompositeMapper = { + serializedName: "RequestReportCollection", type: { name: "Composite", - className: "TagDescriptionCollection", + className: "RequestReportCollection", modelProperties: { value: { serializedName: "", @@ -9350,15 +10171,15 @@ export const TagDescriptionCollection: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "TagDescriptionContract" + className: "RequestReportRecordContract" } } } }, - nextLink: { - serializedName: "nextLink", + count: { + serializedName: "count", type: { - name: "String" + name: "Number" } } } @@ -9398,31 +10219,3 @@ export const UserIdentityCollection: msRest.CompositeMapper = { } } }; - -export const ApiVersionSetCollection: msRest.CompositeMapper = { - serializedName: "ApiVersionSetCollection", - type: { - name: "Composite", - className: "ApiVersionSetCollection", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiVersionSetContract" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; diff --git a/packages/@azure/arm-apimanagement/lib/models/notificationMappers.ts b/packages/@azure/arm-apimanagement/lib/models/notificationMappers.ts index 150e44708a5d..948d8db5e93d 100644 --- a/packages/@azure/arm-apimanagement/lib/models/notificationMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/notificationMappers.ts @@ -14,32 +14,38 @@ export { Resource, BaseResource, RecipientsContractProperties, - CloudError, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +54,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,25 +67,23 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, - RecipientUserContract, + LoggerContract, RecipientEmailContract, + RecipientUserContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/notificationRecipientEmailMappers.ts b/packages/@azure/arm-apimanagement/lib/models/notificationRecipientEmailMappers.ts index ca430d1bcc84..84fcdcee08e2 100644 --- a/packages/@azure/arm-apimanagement/lib/models/notificationRecipientEmailMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/notificationRecipientEmailMappers.ts @@ -15,29 +15,36 @@ export { BaseResource, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -46,7 +53,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -59,26 +66,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/notificationRecipientUserMappers.ts b/packages/@azure/arm-apimanagement/lib/models/notificationRecipientUserMappers.ts index 29bc0c4ca7ad..3f171f0907a4 100644 --- a/packages/@azure/arm-apimanagement/lib/models/notificationRecipientUserMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/notificationRecipientUserMappers.ts @@ -15,29 +15,36 @@ export { BaseResource, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -46,7 +53,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -59,26 +66,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, NotificationContract, RecipientsContractProperties, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/openIdConnectProviderMappers.ts b/packages/@azure/arm-apimanagement/lib/models/openIdConnectProviderMappers.ts index 7ea6ff99a8da..df4b452e16eb 100644 --- a/packages/@azure/arm-apimanagement/lib/models/openIdConnectProviderMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/openIdConnectProviderMappers.ts @@ -13,35 +13,42 @@ export { OpenidConnectProviderContract, Resource, BaseResource, - CloudError, - OpenIdConnectProviderGetEntityTagHeaders, ErrorResponse, ErrorFieldContract, + OpenIdConnectProviderGetEntityTagHeaders, OpenIdConnectProviderGetHeaders, + OpenIdConnectProviderCreateOrUpdateHeaders, OpenidConnectProviderUpdateContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -50,7 +57,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -63,26 +70,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/parameters.ts b/packages/@azure/arm-apimanagement/lib/models/parameters.ts index 5b4eb7add3c2..b0a3f9bf1b2f 100644 --- a/packages/@azure/arm-apimanagement/lib/models/parameters.ts +++ b/packages/@azure/arm-apimanagement/lib/models/parameters.ts @@ -55,7 +55,7 @@ export const apiId1: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -95,22 +95,37 @@ export const authsid: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" } } }; -export const backendid: msRest.OperationURLParameter = { - parameterPath: "backendid", +export const backendId: msRest.OperationURLParameter = { + parameterPath: "backendId", mapper: { required: true, - serializedName: "backendid", + serializedName: "backendId", constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const cacheId: msRest.OperationURLParameter = { + parameterPath: "cacheId", + mapper: { + required: true, + serializedName: "cacheId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -125,7 +140,7 @@ export const certificateId: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -191,7 +206,7 @@ export const diagnosticId: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -215,7 +230,18 @@ export const expandApiVersionSet: msRest.OperationQueryParameter = { ], mapper: { serializedName: "expandApiVersionSet", - defaultValue: false, + type: { + name: "Boolean" + } + } +}; +export const expandCommentsAttachments: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expandCommentsAttachments" + ], + mapper: { + serializedName: "expandCommentsAttachments", type: { name: "Boolean" } @@ -267,6 +293,18 @@ export const filter1: msRest.OperationQueryParameter = { } } }; +export const force: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "force" + ], + mapper: { + serializedName: "force", + type: { + name: "Boolean" + } + } +}; export const format: msRest.OperationQueryParameter = { parameterPath: "format", mapper: { @@ -283,9 +321,9 @@ export const groupId: msRest.OperationURLParameter = { required: true, serializedName: "groupId", constraints: { - MaxLength: 80, + MaxLength: 256, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -303,6 +341,18 @@ export const identityProviderName: msRest.OperationURLParameter = { } }; export const ifMatch0: msRest.OperationParameter = { + parameterPath: [ + "options", + "ifMatch" + ], + mapper: { + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const ifMatch1: msRest.OperationParameter = { parameterPath: "ifMatch", mapper: { required: true, @@ -312,15 +362,39 @@ export const ifMatch0: msRest.OperationParameter = { } } }; -export const ifMatch1: msRest.OperationParameter = { +export const includeNotTaggedApis: msRest.OperationQueryParameter = { parameterPath: [ "options", - "ifMatch" + "includeNotTaggedApis" ], mapper: { - serializedName: "If-Match", + serializedName: "includeNotTaggedApis", type: { - name: "String" + name: "Boolean" + } + } +}; +export const includeNotTaggedOperations: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeNotTaggedOperations" + ], + mapper: { + serializedName: "includeNotTaggedOperations", + type: { + name: "Boolean" + } + } +}; +export const includeNotTaggedProducts: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeNotTaggedProducts" + ], + mapper: { + serializedName: "includeNotTaggedProducts", + type: { + name: "Boolean" } } }; @@ -362,14 +436,14 @@ export const locationName: msRest.OperationURLParameter = { } } }; -export const loggerid: msRest.OperationURLParameter = { - parameterPath: "loggerid", +export const loggerId: msRest.OperationURLParameter = { + parameterPath: "loggerId", mapper: { required: true, - serializedName: "loggerid", + serializedName: "loggerId", constraints: { - MaxLength: 80, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -417,7 +491,7 @@ export const operationId: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -438,6 +512,18 @@ export const opid: msRest.OperationURLParameter = { } } }; +export const orderby: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderby" + ], + mapper: { + serializedName: "$orderby", + type: { + name: "String" + } + } +}; export const policyId: msRest.OperationURLParameter = { parameterPath: "policyId", mapper: { @@ -456,9 +542,9 @@ export const productId: msRest.OperationURLParameter = { required: true, serializedName: "productId", constraints: { - MaxLength: 80, + MaxLength: 256, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -471,8 +557,8 @@ export const propId: msRest.OperationURLParameter = { required: true, serializedName: "propId", constraints: { - MaxLength: 80, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -507,7 +593,7 @@ export const releaseId: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -532,14 +618,26 @@ export const schemaId: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" } } }; -export const scope: msRest.OperationQueryParameter = { +export const scope0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "scope" + ], + mapper: { + serializedName: "scope", + type: { + name: "String" + } + } +}; +export const scope1: msRest.OperationQueryParameter = { parameterPath: [ "options", "scope" @@ -579,8 +677,8 @@ export const sid: msRest.OperationURLParameter = { required: true, serializedName: "sid", constraints: { - MaxLength: 80, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -620,13 +718,25 @@ export const tagId: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" } } }; +export const tags: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "tags" + ], + mapper: { + serializedName: "tags", + type: { + name: "String" + } + } +}; export const templateName: msRest.OperationURLParameter = { parameterPath: "templateName", mapper: { @@ -652,15 +762,15 @@ export const top: msRest.OperationQueryParameter = { } } }; -export const uid: msRest.OperationURLParameter = { - parameterPath: "uid", +export const userId: msRest.OperationURLParameter = { + parameterPath: "userId", mapper: { required: true, - serializedName: "uid", + serializedName: "userId", constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" @@ -675,7 +785,7 @@ export const versionSetId: msRest.OperationURLParameter = { constraints: { MaxLength: 80, MinLength: 1, - Pattern: /(^[\w]+$)|(^[\w][\w\-]+[\w]$)/ + Pattern: /^[^*#&+:<>?]+$/ }, type: { name: "String" diff --git a/packages/@azure/arm-apimanagement/lib/models/policyMappers.ts b/packages/@azure/arm-apimanagement/lib/models/policyMappers.ts index 3f19746ea381..c1c95ca8028d 100644 --- a/packages/@azure/arm-apimanagement/lib/models/policyMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/policyMappers.ts @@ -13,33 +13,40 @@ export { PolicyContract, Resource, BaseResource, - CloudError, - PolicyGetEntityTagHeaders, ErrorResponse, ErrorFieldContract, + PolicyGetEntityTagHeaders, PolicyGetHeaders, + PolicyCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/policySnippetMappers.ts b/packages/@azure/arm-apimanagement/lib/models/policySnippetMappers.ts new file mode 100644 index 000000000000..cb73da0cfd56 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/policySnippetMappers.ts @@ -0,0 +1,17 @@ +/* + * 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 { + PolicySnippetsCollection, + PolicySnippetContract, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/productApiMappers.ts b/packages/@azure/arm-apimanagement/lib/models/productApiMappers.ts index 611b031c3b8f..b66dd712987d 100644 --- a/packages/@azure/arm-apimanagement/lib/models/productApiMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/productApiMappers.ts @@ -20,23 +20,30 @@ export { ApiVersionSetContractDetails, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, - ApiReleaseContract, + ProductContract, OperationContract, ParameterContract, RequestContract, RepresentationContract, ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiReleaseContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -45,7 +52,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -58,27 +65,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/productGroupMappers.ts b/packages/@azure/arm-apimanagement/lib/models/productGroupMappers.ts index 6f3cfe5e0d5c..4ae7f02cd090 100644 --- a/packages/@azure/arm-apimanagement/lib/models/productGroupMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/productGroupMappers.ts @@ -15,29 +15,36 @@ export { BaseResource, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -46,7 +53,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -63,22 +70,20 @@ export { UserIdentityContract, GroupContractProperties, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/productMappers.ts b/packages/@azure/arm-apimanagement/lib/models/productMappers.ts index b87719bb81bd..546e8e20abc9 100644 --- a/packages/@azure/arm-apimanagement/lib/models/productMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/productMappers.ts @@ -17,29 +17,46 @@ export { ErrorFieldContract, ProductGetEntityTagHeaders, ProductGetHeaders, + ProductCreateOrUpdateHeaders, ProductUpdateParameters, - PolicyContract, - ApiContract, + TagResourceCollection, + TagResourceContract, + TagTagResourceContractProperties, + ApiTagResourceContractProperties, + ApiEntityBaseContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, + OperationTagResourceContractProperties, + ProductTagResourceContractProperties, + ProductEntityBaseParameters, + ApiContractProperties, ApiVersionSetContractDetails, - ApiReleaseContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, OperationContract, ParameterContract, RequestContract, RepresentationContract, ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiReleaseContract, + ApiContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +65,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +78,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/productPolicyMappers.ts b/packages/@azure/arm-apimanagement/lib/models/productPolicyMappers.ts index 8a6a452f6329..5235d969a56e 100644 --- a/packages/@azure/arm-apimanagement/lib/models/productPolicyMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/productPolicyMappers.ts @@ -13,33 +13,40 @@ export { PolicyContract, Resource, BaseResource, - ProductPolicyListByProductHeaders, ErrorResponse, ErrorFieldContract, ProductPolicyGetEntityTagHeaders, ProductPolicyGetHeaders, + ProductPolicyCreateOrUpdateHeaders, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,27 +68,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/productSubscriptionsMappers.ts b/packages/@azure/arm-apimanagement/lib/models/productSubscriptionsMappers.ts index 930dd6de3e98..987102281ef0 100644 --- a/packages/@azure/arm-apimanagement/lib/models/productSubscriptionsMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/productSubscriptionsMappers.ts @@ -15,29 +15,36 @@ export { BaseResource, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -46,7 +53,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -59,26 +66,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/propertyMappers.ts b/packages/@azure/arm-apimanagement/lib/models/propertyMappers.ts index f753b8426944..e9b5ea3cc492 100644 --- a/packages/@azure/arm-apimanagement/lib/models/propertyMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/propertyMappers.ts @@ -13,35 +13,42 @@ export { PropertyContract, Resource, BaseResource, - CloudError, - PropertyGetEntityTagHeaders, ErrorResponse, ErrorFieldContract, + PropertyGetEntityTagHeaders, PropertyGetHeaders, + PropertyCreateOrUpdateHeaders, PropertyUpdateParameters, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -50,7 +57,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -63,26 +70,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/regionMappers.ts b/packages/@azure/arm-apimanagement/lib/models/regionMappers.ts new file mode 100644 index 000000000000..41e6e18673ab --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/regionMappers.ts @@ -0,0 +1,17 @@ +/* + * 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 { + RegionListResult, + RegionContract, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/signInSettingsMappers.ts b/packages/@azure/arm-apimanagement/lib/models/signInSettingsMappers.ts index 64380f1487db..06a9befcbb23 100644 --- a/packages/@azure/arm-apimanagement/lib/models/signInSettingsMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/signInSettingsMappers.ts @@ -16,30 +16,36 @@ export { Resource, BaseResource, SignInSettingsGetHeaders, - CloudError, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -48,7 +54,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -61,26 +67,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/signUpSettingsMappers.ts b/packages/@azure/arm-apimanagement/lib/models/signUpSettingsMappers.ts index f01e9d32ffa3..53f8bfbf4561 100644 --- a/packages/@azure/arm-apimanagement/lib/models/signUpSettingsMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/signUpSettingsMappers.ts @@ -17,30 +17,36 @@ export { BaseResource, TermsOfServiceProperties, SignUpSettingsGetHeaders, - CloudError, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -49,7 +55,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -62,25 +68,23 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/subscriptionMappers.ts b/packages/@azure/arm-apimanagement/lib/models/subscriptionMappers.ts index ffbf54a040a1..1f6b4b4e5aa1 100644 --- a/packages/@azure/arm-apimanagement/lib/models/subscriptionMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/subscriptionMappers.ts @@ -18,30 +18,38 @@ export { SubscriptionGetEntityTagHeaders, SubscriptionGetHeaders, SubscriptionCreateParameters, + SubscriptionCreateOrUpdateHeaders, SubscriptionUpdateParameters, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -50,7 +58,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -63,26 +71,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/tagMappers.ts b/packages/@azure/arm-apimanagement/lib/models/tagMappers.ts index 59d8e41161de..96b898c5f6e6 100644 --- a/packages/@azure/arm-apimanagement/lib/models/tagMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/tagMappers.ts @@ -13,41 +13,48 @@ export { TagContract, Resource, BaseResource, - CloudError, - TagGetEntityStateHeaders, ErrorResponse, ErrorFieldContract, - TagGetHeaders, - TagCreateUpdateParameters, - TagGetEntityStateByApiHeaders, - TagGetByApiHeaders, TagGetEntityStateByOperationHeaders, TagGetByOperationHeaders, + TagGetEntityStateByApiHeaders, + TagGetByApiHeaders, + TagAssignToApiHeaders, TagGetEntityStateByProductHeaders, TagGetByProductHeaders, + TagGetEntityStateHeaders, + TagGetHeaders, + TagCreateUpdateParameters, + TagCreateOrUpdateHeaders, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -56,7 +63,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -69,26 +76,25 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/tagResourceMappers.ts b/packages/@azure/arm-apimanagement/lib/models/tagResourceMappers.ts index 6d2f90121239..64cb8b03cfb6 100644 --- a/packages/@azure/arm-apimanagement/lib/models/tagResourceMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/tagResourceMappers.ts @@ -21,7 +21,8 @@ export { OperationTagResourceContractProperties, ProductTagResourceContractProperties, ProductEntityBaseParameters, - CloudError, + ErrorResponse, + ErrorFieldContract, ApiContractProperties, ApiVersionSetContractDetails } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/tenantAccessMappers.ts b/packages/@azure/arm-apimanagement/lib/models/tenantAccessMappers.ts index 4227d9a54c34..68fc9fa843c5 100644 --- a/packages/@azure/arm-apimanagement/lib/models/tenantAccessMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/tenantAccessMappers.ts @@ -9,11 +9,11 @@ */ export { + TenantAccessGetEntityTagHeaders, + ErrorResponse, + ErrorFieldContract, AccessInformationContract, TenantAccessGetHeaders, - CloudError, - AccessInformationUpdateParameters, - ErrorResponse, - ErrorFieldContract + AccessInformationUpdateParameters } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/userConfirmationPasswordMappers.ts b/packages/@azure/arm-apimanagement/lib/models/userConfirmationPasswordMappers.ts new file mode 100644 index 000000000000..59af1e64a75d --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/models/userConfirmationPasswordMappers.ts @@ -0,0 +1,15 @@ +/* + * 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 { + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/packages/@azure/arm-apimanagement/lib/models/userGroupMappers.ts b/packages/@azure/arm-apimanagement/lib/models/userGroupMappers.ts index 6f3cfe5e0d5c..4ae7f02cd090 100644 --- a/packages/@azure/arm-apimanagement/lib/models/userGroupMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/userGroupMappers.ts @@ -15,29 +15,36 @@ export { BaseResource, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -46,7 +53,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -63,22 +70,20 @@ export { UserIdentityContract, GroupContractProperties, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/userMappers.ts b/packages/@azure/arm-apimanagement/lib/models/userMappers.ts index 09f86c4b3716..228f214e2ccd 100644 --- a/packages/@azure/arm-apimanagement/lib/models/userMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/userMappers.ts @@ -9,45 +9,52 @@ */ export { - CurrentUserIdentity, - ErrorResponse, - ErrorFieldContract, UserCollection, UserContract, Resource, BaseResource, UserIdentityContract, GroupContractProperties, + ErrorResponse, + ErrorFieldContract, UserGetEntityTagHeaders, UserGetHeaders, UserCreateParameters, + UserCreateOrUpdateHeaders, UserUpdateParameters, GenerateSsoUrlResult, UserTokenParameters, UserTokenResult, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -56,7 +63,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -71,22 +78,20 @@ export { EmailTemplateParametersContractProperties, GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, SubscriptionContract, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/models/userSubscriptionMappers.ts b/packages/@azure/arm-apimanagement/lib/models/userSubscriptionMappers.ts index 930dd6de3e98..987102281ef0 100644 --- a/packages/@azure/arm-apimanagement/lib/models/userSubscriptionMappers.ts +++ b/packages/@azure/arm-apimanagement/lib/models/userSubscriptionMappers.ts @@ -15,29 +15,36 @@ export { BaseResource, ErrorResponse, ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, ApiContract, AuthenticationSettingsContract, OAuth2AuthenticationSettingsContract, OpenIdAuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, ApiVersionSetContractDetails, - ApiReleaseContract, - OperationContract, - ParameterContract, - RequestContract, - RepresentationContract, - ResponseContract, - SchemaContract, - IssueContract, - IssueCommentContract, - IssueAttachmentContract, - LoggerContract, - DiagnosticContract, - ProductContract, - AuthorizationServerContract, - TokenBodyParameterContract, + ApiVersionSetContract, AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, BackendContract, BackendProperties, BackendServiceFabricClusterProperties, @@ -46,7 +53,7 @@ export { BackendAuthorizationHeaderCredentials, BackendProxyContract, BackendTlsProperties, - BackendReconnectContract, + CacheContract, CertificateContract, ApimResource, ApiManagementServiceUpdateParameters, @@ -59,26 +66,24 @@ export { ApiManagementServiceIdentity, EmailTemplateContract, EmailTemplateParametersContractProperties, - GroupContract, UserContract, UserIdentityContract, GroupContractProperties, + GroupContract, IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, NotificationContract, RecipientsContractProperties, - RecipientUserContract, - RecipientEmailContract, OpenidConnectProviderContract, - PortalSigninSettings, - PortalSignupSettings, - TermsOfServiceProperties, PortalDelegationSettings, SubscriptionsDelegationSettingsProperties, RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, PropertyContract, - TagContract, - TagDescriptionContract, - ApiVersionSetContract, ApiManagementServiceResource } from "../models/mappers"; diff --git a/packages/@azure/arm-apimanagement/lib/operations/api.ts b/packages/@azure/arm-apimanagement/lib/operations/api.ts index 6f2af06fe1a0..7dc3aea4f799 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/api.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/api.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/apiMappers"; import * as Parameters from "../models/parameters"; @@ -146,37 +147,9 @@ export class Api { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.ApiCreateOrUpdateParameter, options?: Models.ApiCreateOrUpdateOptionalParams): 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 parameters Create or update parameters. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.ApiCreateOrUpdateParameter, 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 parameters Create or update parameters. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.ApiCreateOrUpdateParameter, options: Models.ApiCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.ApiCreateOrUpdateParameter, options?: Models.ApiCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - apiId, - parameters, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.ApiCreateOrUpdateParameter, options?: Models.ApiCreateOrUpdateOptionalParams): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serviceName,apiId,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -307,6 +280,29 @@ export class Api { callback) as Promise; } + /** + * Creates new or updates existing specified API of the API Management service instance. + * @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 parameters Create or update parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.ApiCreateOrUpdateParameter, options?: Models.ApiBeginCreateOrUpdateOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + apiId, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + /** * Lists all APIs of the API Management service instance. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -378,8 +374,9 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.filter0, Parameters.top, Parameters.skip, - Parameters.apiVersion, - Parameters.expandApiVersionSet + Parameters.tags, + Parameters.expandApiVersionSet, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -448,8 +445,8 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", urlParameters: [ Parameters.resourceGroupName, @@ -467,19 +464,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "parameters", mapper: { - ...Mappers.ApiCreateOrUpdateParameter, + ...Mappers.ApiUpdateContract, required: true } }, responses: { - 200: { - bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders - }, - 201: { - bodyMapper: Mappers.ApiContract, - headersMapper: Mappers.ApiCreateOrUpdateHeaders - }, + 204: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -487,8 +477,8 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", urlParameters: [ Parameters.resourceGroupName, @@ -497,20 +487,15 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.deleteRevisions, Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ApiUpdateContract, - required: true - } - }, responses: { + 200: {}, 204: {}, default: { bodyMapper: Mappers.ErrorResponse @@ -519,26 +504,28 @@ const updateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", +const listByTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiId0, Parameters.subscriptionId ], queryParameters: [ - Parameters.deleteRevisions, + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.includeNotTaggedApis, Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, Parameters.acceptLanguage ], responses: { - 200: {}, - 204: {}, + 200: { + bodyMapper: Mappers.TagResourceCollection + }, default: { bodyMapper: Mappers.ErrorResponse } @@ -546,29 +533,43 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const listByTagsOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, + Parameters.apiId0, Parameters.subscriptionId ], queryParameters: [ - Parameters.filter0, - Parameters.top, - Parameters.skip, Parameters.apiVersion ], headerParameters: [ + Parameters.ifMatch0, Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiCreateOrUpdateParameter, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.TagResourceCollection + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.ApiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.ApiCreateOrUpdateHeaders + }, + 202: { + headersMapper: Mappers.ApiCreateOrUpdateHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -610,7 +611,7 @@ const listByTagsNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.TagResourceCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiDiagnostic.ts b/packages/@azure/arm-apimanagement/lib/operations/apiDiagnostic.ts index 150db4056bc5..aac5ab05ff5e 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiDiagnostic.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiDiagnostic.ts @@ -340,10 +340,10 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, Parameters.filter0, Parameters.top, - Parameters.skip + Parameters.skip, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -428,7 +428,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -440,10 +440,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.DiagnosticContract + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.DiagnosticContract + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -466,7 +468,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -499,7 +501,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiExport.ts b/packages/@azure/arm-apimanagement/lib/operations/apiExport.ts index daec1e964aaf..d89f7f4fd1a7 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiExport.ts +++ b/packages/@azure/arm-apimanagement/lib/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' + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi3' * @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' + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi3' * @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' + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi3' * @param options The optional parameters * @param callback The callback */ diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiIssue.ts b/packages/@azure/arm-apimanagement/lib/operations/apiIssue.ts index 4b268000cb83..e6bc0634c75f 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiIssue.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiIssue.ts @@ -27,7 +27,7 @@ export class ApiIssue { } /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. @@ -111,7 +111,7 @@ export class ApiIssue { * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: Models.ApiIssueGetOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -128,8 +128,8 @@ export class ApiIssue { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: Models.ApiIssueGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: Models.ApiIssueGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -193,30 +193,36 @@ export class ApiIssue { * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @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 */ - update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, options?: Models.ApiIssueUpdateOptionalParams): Promise; + update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, 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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @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 callback The callback */ - update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, 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 identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param parameters Update parameters. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, options: Models.ApiIssueUpdateOptionalParams, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, options?: Models.ApiIssueUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -224,6 +230,7 @@ export class ApiIssue { apiId, issueId, parameters, + ifMatch, options }, updateOperationSpec, @@ -236,8 +243,8 @@ export class ApiIssue { * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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 */ @@ -247,8 +254,8 @@ export class ApiIssue { * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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, issueId: string, ifMatch: string, callback: msRest.ServiceCallback): void; @@ -257,8 +264,8 @@ export class ApiIssue { * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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 */ @@ -278,7 +285,7 @@ export class ApiIssue { } /** - * Lists all issues assosiated with the specified API. + * Lists all issues associated with the specified API. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -318,10 +325,11 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, Parameters.filter0, + Parameters.expandCommentsAttachments, Parameters.top, - Parameters.skip + Parameters.skip, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -375,6 +383,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.expandCommentsAttachments, Parameters.apiVersion ], headerParameters: [ @@ -406,7 +415,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -418,10 +427,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.IssueContract + bodyMapper: Mappers.IssueContract, + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.IssueContract + bodyMapper: Mappers.IssueContract, + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -477,7 +488,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiIssueAttachment.ts b/packages/@azure/arm-apimanagement/lib/operations/apiIssueAttachment.ts index ff352c52fc93..9392f644c44d 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiIssueAttachment.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiIssueAttachment.ts @@ -27,7 +27,7 @@ export class ApiIssueAttachment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all attachments for the Issue associated with the specified API. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. @@ -210,8 +210,8 @@ export class ApiIssueAttachment { * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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 */ @@ -222,8 +222,8 @@ export class ApiIssueAttachment { * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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, issueId: string, attachmentId: string, ifMatch: string, callback: msRest.ServiceCallback): void; @@ -233,8 +233,8 @@ export class ApiIssueAttachment { * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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 */ @@ -255,7 +255,7 @@ export class ApiIssueAttachment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all attachments for the Issue associated with the specified API. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -296,10 +296,10 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, Parameters.filter0, Parameters.top, - Parameters.skip + Parameters.skip, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -387,7 +387,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -399,10 +399,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.IssueAttachmentContract + bodyMapper: Mappers.IssueAttachmentContract, + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.IssueAttachmentContract + bodyMapper: Mappers.IssueAttachmentContract, + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -426,7 +428,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiIssueComment.ts b/packages/@azure/arm-apimanagement/lib/operations/apiIssueComment.ts index c249a1108922..8f4584a711ee 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiIssueComment.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiIssueComment.ts @@ -27,7 +27,7 @@ export class ApiIssueComment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. @@ -210,8 +210,8 @@ export class ApiIssueComment { * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param commentId Comment identifier within an Issue. Must be unique in the current Issue. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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 */ @@ -222,8 +222,8 @@ export class ApiIssueComment { * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param commentId Comment identifier within an Issue. Must be unique in the current Issue. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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, issueId: string, commentId: string, ifMatch: string, callback: msRest.ServiceCallback): void; @@ -233,8 +233,8 @@ export class ApiIssueComment { * @param apiId API identifier. Must be unique in the current API Management service instance. * @param issueId Issue identifier. Must be unique in the current API Management service instance. * @param commentId Comment identifier within an Issue. Must be unique in the current Issue. - * @param ifMatch ETag of the Issue Entity. ETag should match the current entity state from the - * header response of the GET request or it should be * for unconditional update. + * @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 */ @@ -255,7 +255,7 @@ export class ApiIssueComment { } /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all comments for the Issue associated with the specified API. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -296,10 +296,10 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, Parameters.filter0, Parameters.top, - Parameters.skip + Parameters.skip, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -387,7 +387,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -399,10 +399,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.IssueCommentContract + bodyMapper: Mappers.IssueCommentContract, + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.IssueCommentContract + bodyMapper: Mappers.IssueCommentContract, + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -426,7 +428,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiManagementService.ts b/packages/@azure/arm-apimanagement/lib/operations/apiManagementService.ts index 26e58d227a44..109c47ec51f7 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiManagementService.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiManagementService.ts @@ -121,31 +121,11 @@ export class ApiManagementService { * @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 */ - deleteMethod(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 - */ - deleteMethod(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 - */ - deleteMethod(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - options - }, - deleteMethodOperationSpec, - callback); + deleteMethod(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serviceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -273,62 +253,6 @@ export class ApiManagementService { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } - /** - * Upload Custom Domain SSL certificate for an API Management service. This operation will be - * deprecated in future releases. - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param parameters Parameters supplied to the Upload SSL certificate for an API Management - * service operation. - * @param [options] The optional parameters - * @returns Promise - */ - uploadCertificate(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUploadCertificateParameters, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param parameters Parameters supplied to the Upload SSL certificate for an API Management - * service operation. - * @param callback The callback - */ - uploadCertificate(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUploadCertificateParameters, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param parameters Parameters supplied to the Upload SSL certificate for an API Management - * service operation. - * @param options The optional parameters - * @param callback The callback - */ - uploadCertificate(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUploadCertificateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - uploadCertificate(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUploadCertificateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - parameters, - options - }, - uploadCertificateOperationSpec, - callback) as Promise; - } - - /** - * Creates, updates, or deletes the custom hostnames for an API Management service. The custom - * hostname can be applied to the Proxy and Portal endpoint. This is a long running operation and - * could take several minutes to complete. This operation will be deprecated in the next version - * update. - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param parameters Parameters supplied to the UpdateHostname operation. - * @param [options] The optional parameters - * @returns Promise - */ - updateHostname(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUpdateHostnameParameters, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdateHostname(resourceGroupName,serviceName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - /** * Restores a backup of an API Management service created using the ApiManagementService_Backup * operation on the current service. This is a long running operation and could take several @@ -415,44 +339,39 @@ export class ApiManagementService { } /** - * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated - * network settings. + * Deletes an existing API Management service. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters * @returns Promise */ - beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: Models.ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams): Promise { + beginDeleteMethod(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, serviceName, options }, - beginApplyNetworkConfigurationUpdatesOperationSpec, + beginDeleteMethodOperationSpec, options); } /** - * Creates, updates, or deletes the custom hostnames for an API Management service. The custom - * hostname can be applied to the Proxy and Portal endpoint. This is a long running operation and - * could take several minutes to complete. This operation will be deprecated in the next version - * update. + * Updates the Microsoft.ApiManagement resource running in the Virtual network to pick the updated + * network settings. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param parameters Parameters supplied to the UpdateHostname operation. * @param [options] The optional parameters * @returns Promise */ - beginUpdateHostname(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUpdateHostnameParameters, options?: msRest.RequestOptionsBase): Promise { + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: Models.ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams): Promise { return this.client.sendLRORequest( { resourceGroupName, serviceName, - parameters, options }, - beginUpdateHostnameOperationSpec, + beginApplyNetworkConfigurationUpdatesOperationSpec, options); } @@ -540,30 +459,6 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", @@ -666,38 +561,6 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { serializer }; -const uploadCertificateOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/updatecertificate", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ApiManagementServiceUploadCertificateParameters, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.CertificateInformation - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginRestoreOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", @@ -835,9 +698,9 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const beginApplyNetworkConfigurationUpdatesOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, @@ -849,18 +712,12 @@ const beginApplyNetworkConfigurationUpdatesOperationSpec: msRest.OperationSpec = headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: [ - "options", - "parameters" - ], - mapper: Mappers.ApiManagementServiceApplyNetworkConfigurationParameters - }, responses: { - 200: { + 200: {}, + 202: { bodyMapper: Mappers.ApiManagementServiceResource }, - 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } @@ -868,9 +725,9 @@ const beginApplyNetworkConfigurationUpdatesOperationSpec: msRest.OperationSpec = serializer }; -const beginUpdateHostnameOperationSpec: msRest.OperationSpec = { +const beginApplyNetworkConfigurationUpdatesOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/updatehostname", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, @@ -883,19 +740,17 @@ const beginUpdateHostnameOperationSpec: msRest.OperationSpec = { Parameters.acceptLanguage ], requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.ApiManagementServiceUpdateHostnameParameters, - required: true - } + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.ApiManagementServiceApplyNetworkConfigurationParameters }, responses: { 200: { bodyMapper: Mappers.ApiManagementServiceResource }, - 202: { - bodyMapper: Mappers.ApiManagementServiceResource - }, + 202: {}, default: { bodyMapper: Mappers.CloudError } diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiManagementServiceSkus.ts b/packages/@azure/arm-apimanagement/lib/operations/apiManagementServiceSkus.ts new file mode 100644 index 000000000000..4ed93c82e480 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/apiManagementServiceSkus.ts @@ -0,0 +1,138 @@ +/* + * 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/apiManagementServiceSkusMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiManagementServiceSkus. */ +export class ApiManagementServiceSkus { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiManagementServiceSkus. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets all available SKU for a given API Management service + * @summary Gets available SKUs for API Management service + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableServiceSkus(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 + */ + listAvailableServiceSkus(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 + */ + listAvailableServiceSkus(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableServiceSkus(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listAvailableServiceSkusOperationSpec, + callback) as Promise; + } + + /** + * Gets all available SKU for a given API Management service + * @summary Gets available SKUs for API Management service + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableServiceSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listAvailableServiceSkusNext(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 + */ + listAvailableServiceSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableServiceSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listAvailableServiceSkusNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listAvailableServiceSkusOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceSkuResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listAvailableServiceSkusNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ResourceSkuResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiOperation.ts b/packages/@azure/arm-apimanagement/lib/operations/apiOperation.ts index 58cc70177acb..02d3a4495eeb 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiOperation.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiOperation.ts @@ -361,6 +361,7 @@ const listByApiOperationSpec: msRest.OperationSpec = { Parameters.filter0, Parameters.top, Parameters.skip, + Parameters.tags, Parameters.apiVersion ], headerParameters: [ @@ -446,7 +447,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -458,10 +459,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.OperationContract + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.OperationContract + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -484,7 +487,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -517,7 +520,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiOperationPolicy.ts b/packages/@azure/arm-apimanagement/lib/operations/apiOperationPolicy.ts index 5d4dfdc236f7..a4aa64dc1217 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiOperationPolicy.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiOperationPolicy.ts @@ -369,7 +369,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -381,10 +381,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -408,7 +410,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiPolicy.ts b/packages/@azure/arm-apimanagement/lib/operations/apiPolicy.ts index 99afd7d71df7..6b2575be784b 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiPolicy.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiPolicy.ts @@ -252,8 +252,7 @@ const listByApiOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PolicyCollection, - headersMapper: Mappers.ApiPolicyListByApiHeaders + bodyMapper: Mappers.PolicyCollection }, default: { bodyMapper: Mappers.ErrorResponse @@ -331,7 +330,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -343,10 +342,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -369,7 +370,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiRelease.ts b/packages/@azure/arm-apimanagement/lib/operations/apiRelease.ts index 88ecd2f53a2d..f0d3cedeb6d3 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiRelease.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiRelease.ts @@ -34,16 +34,16 @@ export class ApiRelease { * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - list(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiReleaseListOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiReleaseListByServiceOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param apiId API identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, apiId: string, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -51,8 +51,8 @@ export class ApiRelease { * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, apiId: string, options: Models.ApiReleaseListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiReleaseListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByService(resourceGroupName: string, serviceName: string, apiId: string, options: Models.ApiReleaseListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiReleaseListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -60,8 +60,8 @@ export class ApiRelease { apiId, options }, - listOperationSpec, - callback) as Promise; + listByServiceOperationSpec, + callback) as Promise; } /** @@ -159,9 +159,9 @@ export class ApiRelease { * service instance. * @param parameters Create parameters. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - create(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, options?: Models.ApiReleaseCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -171,7 +171,7 @@ export class ApiRelease { * @param parameters Create parameters. * @param callback The callback */ - create(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -182,8 +182,8 @@ export class ApiRelease { * @param options The optional parameters * @param callback The callback */ - create(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, options: Models.ApiReleaseCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, options?: Models.ApiReleaseCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -193,8 +193,8 @@ export class ApiRelease { parameters, options }, - createOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec, + callback) as Promise; } /** @@ -307,34 +307,34 @@ export class ApiRelease { * constrained by the $top and $skip parameters. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listNext(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 */ - listNext(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 */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(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 }, - listNextOperationSpec, - callback) as Promise; + listByServiceNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { +const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases", urlParameters: [ @@ -344,10 +344,10 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, Parameters.filter0, Parameters.top, - Parameters.skip + Parameters.skip, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -369,9 +369,9 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -396,9 +396,9 @@ const getOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -408,7 +408,8 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.ApiReleaseContract + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.ApiReleaseGetHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -417,20 +418,21 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOperationSpec: msRest.OperationSpec = { +const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -442,10 +444,12 @@ const createOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.ApiReleaseContract + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.ApiReleaseContract + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -460,15 +464,15 @@ const updateOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -493,15 +497,15 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, Parameters.apiId1, - Parameters.releaseId + Parameters.releaseId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -514,7 +518,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const listNextOperationSpec: msRest.OperationSpec = { +const listByServiceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiRevision.ts b/packages/@azure/arm-apimanagement/lib/operations/apiRevision.ts new file mode 100644 index 000000000000..837ccbc609f9 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/apiRevision.ts @@ -0,0 +1,144 @@ +/* + * 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/apiRevisionMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiRevision. */ +export class ApiRevision { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiRevision. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all revisions of an API. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiRevisionListByServiceOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: 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 apiId API identifier. Must be unique in the current API Management service instance. + * @param options The optional parameters + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, apiId: string, options: Models.ApiRevisionListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiRevisionListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Lists all revisions of an API. + * @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}/apis/{apiId}/revisions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiRevisionCollection + }, + 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.ApiRevisionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiSchema.ts b/packages/@azure/arm-apimanagement/lib/operations/apiSchema.ts index 5e8ae8bfbb0a..01f7dcf1b4bd 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiSchema.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiSchema.ts @@ -35,7 +35,7 @@ export class ApiSchema { * @param [options] The optional parameters * @returns Promise */ - listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiSchemaListByApiOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -52,8 +52,8 @@ export class ApiSchema { * @param options The optional parameters * @param callback The callback */ - listByApi(resourceGroupName: string, serviceName: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options: Models.ApiSchemaListByApiOptionalParams, callback: msRest.ServiceCallback): void; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiSchemaListByApiOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -220,7 +220,7 @@ export class ApiSchema { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options?: Models.ApiSchemaDeleteMethodOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -245,8 +245,8 @@ export class ApiSchema { * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options: Models.ApiSchemaDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, ifMatch: string, options?: Models.ApiSchemaDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -264,9 +264,9 @@ export class ApiSchema { * Get the schema configuration at the API level. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -278,14 +278,14 @@ export class ApiSchema { * @param callback The callback */ listByApiNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, listByApiNextOperationSpec, - callback) as Promise; + callback) as Promise; } } @@ -301,6 +301,9 @@ const listByApiOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, Parameters.apiVersion ], headerParameters: [ @@ -308,8 +311,7 @@ const listByApiOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SchemaCollection, - headersMapper: Mappers.ApiSchemaListByApiHeaders + bodyMapper: Mappers.SchemaCollection }, default: { bodyMapper: Mappers.ErrorResponse @@ -387,7 +389,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -399,10 +401,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.SchemaContract + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.SchemaContract + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -422,10 +426,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.force, Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -450,8 +455,7 @@ const listByApiNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.SchemaCollection, - headersMapper: Mappers.ApiSchemaListByApiHeaders + bodyMapper: Mappers.SchemaCollection }, default: { bodyMapper: Mappers.ErrorResponse diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiTagDescription.ts b/packages/@azure/arm-apimanagement/lib/operations/apiTagDescription.ts new file mode 100644 index 000000000000..dd13e851c706 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/apiTagDescription.ts @@ -0,0 +1,454 @@ +/* + * 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/apiTagDescriptionMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiTagDescription. */ +export class ApiTagDescription { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiTagDescription. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is + * defined on API level but tag may be assigned to the Operations + * @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 [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiTagDescriptionListByServiceOptionalParams): 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 callback The callback + */ + listByService(resourceGroupName: string, serviceName: 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 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 options The optional parameters + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, apiId: string, options: Models.ApiTagDescriptionListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiTagDescriptionListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state version of the tag specified by its identifier. + * @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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagId: 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 callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, tagId: 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + tagId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Get Tag description in scope of 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 tagId Tag identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, tagId: 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 callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, tagId: 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + tagId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Create/Update tag description in scope of 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 tagId Tag identifier. Must be unique in the current API Management service instance. + * @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; + /** + * @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 parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, tagId: 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + tagId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete tag description 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 tagId Tag identifier. Must be unique in the current API Management service instance. + * @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; + /** + * @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 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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + tagId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is + * defined on API level but tag may be assigned to the Operations + * @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}/apis/{apiId}/tagDescriptions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagDescriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiTagDescriptionGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagDescriptionContract, + headersMapper: Mappers.ApiTagDescriptionGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagDescriptionCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.TagDescriptionContract, + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.TagDescriptionContract, + headersMapper: Mappers.ApiTagDescriptionCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + 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.TagDescriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/apiVersionSet.ts b/packages/@azure/arm-apimanagement/lib/operations/apiVersionSet.ts index 6d60a7661a9b..5f6861172541 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/apiVersionSet.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/apiVersionSet.ts @@ -308,17 +308,17 @@ export class ApiVersionSet { const serializer = new msRest.Serializer(Mappers); const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, Parameters.filter0, Parameters.top, - Parameters.skip + Parameters.skip, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -336,12 +336,12 @@ const listByServiceOperationSpec: msRest.OperationSpec = { const getEntityTagOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -362,12 +362,12 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -389,18 +389,18 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -412,10 +412,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.ApiVersionSetContract + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.ApiVersionSetContract + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -426,18 +428,18 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -458,18 +460,18 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/api-version-sets/{versionSetId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, - Parameters.versionSetId + Parameters.versionSetId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/authorizationServer.ts b/packages/@azure/arm-apimanagement/lib/operations/authorizationServer.ts index 2801bdc9987e..8a3182d35653 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/authorizationServer.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/authorizationServer.ts @@ -313,7 +313,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.AuthorizationServerCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -385,7 +385,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -397,10 +397,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.AuthorizationServerContract + bodyMapper: Mappers.AuthorizationServerContract, + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.AuthorizationServerContract + bodyMapper: Mappers.AuthorizationServerContract, + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -422,7 +424,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -454,7 +456,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -482,7 +484,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.AuthorizationServerCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/backend.ts b/packages/@azure/arm-apimanagement/lib/operations/backend.ts index d1286f8203cd..660d0124c797 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/backend.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/backend.ts @@ -62,35 +62,35 @@ export class Backend { * Gets the entity state (Etag) version of the backend specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param [options] The optional parameters * @returns Promise */ - getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, options?: msRest.RequestOptionsBase): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param options The optional parameters * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, backendId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - backendid, + backendId, options }, getEntityTagOperationSpec, @@ -101,35 +101,35 @@ export class Backend { * Gets the details of the backend specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, serviceName: string, backendid: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serviceName: string, backendId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, backendid: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, backendId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, backendid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, backendid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serviceName: string, backendId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, backendId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - backendid, + backendId, options }, getOperationSpec, @@ -140,38 +140,38 @@ export class Backend { * Creates or Updates a backend. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param parameters Create parameters. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendContract, options?: Models.BackendCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendContract, options?: Models.BackendCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param parameters Create parameters. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendContract, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendContract, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param parameters Create parameters. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendContract, options: Models.BackendCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendContract, options?: Models.BackendCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendContract, options: Models.BackendCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendContract, options?: Models.BackendCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - backendid, + backendId, parameters, options }, @@ -183,7 +183,7 @@ export class Backend { * Updates an existing backend. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param parameters Update parameters. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -191,22 +191,22 @@ export class Backend { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @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 callback The callback */ - update(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param parameters Update parameters. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header @@ -214,13 +214,13 @@ export class Backend { * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, backendid: string, parameters: Models.BackendUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, backendId: string, parameters: Models.BackendUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - backendid, + backendId, parameters, ifMatch, options @@ -233,41 +233,41 @@ export class Backend { * Deletes the specified backend. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @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, backendid: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, backendId: 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 backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @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, backendid: string, ifMatch: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, backendId: 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 backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @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, backendid: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, backendid: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, backendId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - backendid, + backendId, ifMatch, options }, @@ -280,35 +280,35 @@ export class Backend { * If no timeout was specified, timeout of 2 minutes is used. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param [options] The optional parameters * @returns Promise */ - reconnect(resourceGroupName: string, serviceName: string, backendid: string, options?: Models.BackendReconnectOptionalParams): Promise; + reconnect(resourceGroupName: string, serviceName: string, backendId: string, options?: Models.BackendReconnectOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param callback The callback */ - reconnect(resourceGroupName: string, serviceName: string, backendid: string, callback: msRest.ServiceCallback): void; + reconnect(resourceGroupName: string, serviceName: string, backendId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param backendid Identifier of the Backend entity. Must be unique in the current API Management + * @param backendId Identifier of the Backend entity. Must be unique in the current API Management * service instance. * @param options The optional parameters * @param callback The callback */ - reconnect(resourceGroupName: string, serviceName: string, backendid: string, options: Models.BackendReconnectOptionalParams, callback: msRest.ServiceCallback): void; - reconnect(resourceGroupName: string, serviceName: string, backendid: string, options?: Models.BackendReconnectOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + reconnect(resourceGroupName: string, serviceName: string, backendId: string, options: Models.BackendReconnectOptionalParams, callback: msRest.ServiceCallback): void; + reconnect(resourceGroupName: string, serviceName: string, backendId: string, options?: Models.BackendReconnectOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - backendid, + backendId, options }, reconnectOperationSpec, @@ -376,11 +376,11 @@ const listByServiceOperationSpec: msRest.OperationSpec = { const getEntityTagOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.backendid, + Parameters.backendId, Parameters.subscriptionId ], queryParameters: [ @@ -402,11 +402,11 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.backendid, + Parameters.backendId, Parameters.subscriptionId ], queryParameters: [ @@ -429,18 +429,18 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.backendid, + Parameters.backendId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -452,10 +452,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.BackendContract + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.BackendCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.BackendContract + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.BackendCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -466,18 +468,18 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.backendid, + Parameters.backendId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -498,18 +500,18 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.backendid, + Parameters.backendId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -524,11 +526,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const reconnectOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendid}/reconnect", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.backendid, + Parameters.backendId, Parameters.subscriptionId ], queryParameters: [ diff --git a/packages/@azure/arm-apimanagement/lib/operations/cache.ts b/packages/@azure/arm-apimanagement/lib/operations/cache.ts new file mode 100644 index 000000000000..3cb264df2e6a --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/cache.ts @@ -0,0 +1,505 @@ +/* + * 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/cacheMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Cache. */ +export class Cache { + private readonly client: ApiManagementClientContext; + + /** + * Create a Cache. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of all external Caches in the specified 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.CacheListByServiceOptionalParams): 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.CacheListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.CacheListByServiceOptionalParams | 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 Cache specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, cacheId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, cacheId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, cacheId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, cacheId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + cacheId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Cache specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, cacheId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, cacheId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, cacheId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, cacheId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + cacheId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an External Cache 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 cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param parameters Create or Update parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheContract, options?: Models.CacheCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param parameters Create or Update parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param parameters Create or Update parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheContract, options: Models.CacheCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheContract, options?: Models.CacheCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + cacheId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the cache specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @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 + */ + update(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @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 callback The callback + */ + update(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @param parameters Update parameters. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, cacheId: string, parameters: Models.CacheUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + cacheId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific Cache. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @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, cacheId: 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 cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @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, cacheId: 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 cacheId Identifier of the Cache entity. Cache identifier (should be either 'default' or + * valid Azure region identifier). + * @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, cacheId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, cacheId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + cacheId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of all external Caches in the specified 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}/caches", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CacheCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.cacheId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.CacheGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.cacheId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CacheContract, + headersMapper: Mappers.CacheGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.cacheId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CacheContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CacheContract, + headersMapper: Mappers.CacheCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.CacheContract, + headersMapper: Mappers.CacheCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/caches/{cacheId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.cacheId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CacheUpdateParameters, + 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}/caches/{cacheId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.cacheId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + 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.CacheCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/certificate.ts b/packages/@azure/arm-apimanagement/lib/operations/certificate.ts index 521f7aab176f..f47a28ce34f4 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/certificate.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/certificate.ts @@ -350,7 +350,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -362,10 +362,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.CertificateContract + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.CertificateCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.CertificateContract + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.CertificateCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -387,7 +389,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/delegationSettings.ts b/packages/@azure/arm-apimanagement/lib/operations/delegationSettings.ts index 8e404c9e19d5..e1289ca3ddd1 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/delegationSettings.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/delegationSettings.ts @@ -59,7 +59,7 @@ export class DelegationSettings { } /** - * Get Delegation settings. + * Get Delegation Settings for the Portal. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -141,7 +141,7 @@ export class DelegationSettings { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, options?: Models.DelegationSettingsCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -156,8 +156,8 @@ export class DelegationSettings { * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, options: Models.DelegationSettingsCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, options?: Models.DelegationSettingsCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -217,7 +217,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.DelegationSettingsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -235,7 +235,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -266,6 +266,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/diagnostic.ts b/packages/@azure/arm-apimanagement/lib/operations/diagnostic.ts index 6ee7a54228dd..e4b86f89bc26 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/diagnostic.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/diagnostic.ts @@ -315,10 +315,10 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion, Parameters.filter0, Parameters.top, - Parameters.skip + Parameters.skip, + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -400,7 +400,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -412,10 +412,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.DiagnosticContract + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.DiagnosticContract + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -437,7 +439,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -469,7 +471,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/emailTemplate.ts b/packages/@azure/arm-apimanagement/lib/operations/emailTemplate.ts index 4cccc75122fa..fb6ba47d4b55 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/emailTemplate.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/emailTemplate.ts @@ -246,10 +246,12 @@ export class EmailTemplate { * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', * 'requestDeveloperNotificationMessage' * @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 */ - update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -262,9 +264,11 @@ export class EmailTemplate { * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', * 'requestDeveloperNotificationMessage' * @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 callback The callback */ - update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -277,17 +281,20 @@ export class EmailTemplate { * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', * 'requestDeveloperNotificationMessage' * @param parameters Update parameters. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, templateName, parameters, + ifMatch, options }, updateOperationSpec, @@ -398,6 +405,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ + Parameters.filter0, Parameters.top, Parameters.skip, Parameters.apiVersion @@ -410,7 +418,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.EmailTemplateCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -482,7 +490,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -519,6 +527,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -550,7 +559,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -578,7 +587,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.EmailTemplateCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/group.ts b/packages/@azure/arm-apimanagement/lib/operations/group.ts index 42c98f894d4c..13b9fec30dbe 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/group.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/group.ts @@ -313,7 +313,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.GroupCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -385,7 +385,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -397,10 +397,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.GroupCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.GroupContract + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.GroupCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -422,7 +424,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -454,7 +456,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -482,7 +484,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.GroupCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/groupUser.ts b/packages/@azure/arm-apimanagement/lib/operations/groupUser.ts index 412693bf63cb..819dff540d27 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/groupUser.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/groupUser.ts @@ -27,7 +27,7 @@ export class GroupUser { } /** - * Lists a collection of the members of the group, specified by its identifier. + * Lists a collection of user entities associated with the group. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. @@ -67,35 +67,35 @@ export class GroupUser { * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options?: msRest.RequestOptionsBase): Promise; + checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, uid: string, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, - uid, + userId, options }, checkEntityExistsOperationSpec, @@ -103,39 +103,39 @@ export class GroupUser { } /** - * Adds a user to the specified group. + * Add existing user to existing group * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - create(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options?: msRest.RequestOptionsBase): Promise; + create(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - create(resourceGroupName: string, serviceName: string, groupId: string, uid: string, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, serviceName: string, groupId: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - create(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + create(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + create(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, - uid, + userId, options }, createOperationSpec, @@ -147,35 +147,35 @@ export class GroupUser { * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, uid: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param groupId Group identifier. Must be unique in the current API Management service instance. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User 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, groupId: string, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, groupId, - uid, + userId, options }, deleteMethodOperationSpec, @@ -183,7 +183,7 @@ export class GroupUser { } /** - * Lists a collection of the members of the group, specified by its identifier. + * Lists a collection of user entities associated with the group. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -244,12 +244,12 @@ const listOperationSpec: msRest.OperationSpec = { const checkEntityExistsOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.groupId, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -270,12 +270,12 @@ const checkEntityExistsOperationSpec: msRest.OperationSpec = { const createOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.groupId, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -300,12 +300,12 @@ const createOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.groupId, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ diff --git a/packages/@azure/arm-apimanagement/lib/operations/identityProvider.ts b/packages/@azure/arm-apimanagement/lib/operations/identityProvider.ts index 7315c2b4b443..a9dc72ce8502 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/identityProvider.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/identityProvider.ts @@ -311,9 +311,9 @@ const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.serviceName + Parameters.serviceName, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -336,10 +336,10 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.identityProviderName + Parameters.identityProviderName, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -362,10 +362,10 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.identityProviderName + Parameters.identityProviderName, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -398,7 +398,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -410,10 +410,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.IdentityProviderContract + bodyMapper: Mappers.IdentityProviderContract, + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.IdentityProviderContract + bodyMapper: Mappers.IdentityProviderContract, + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -435,7 +437,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -467,7 +469,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/index.ts b/packages/@azure/arm-apimanagement/lib/operations/index.ts index a50144467427..bce8caa2814e 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/index.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/index.ts @@ -8,39 +8,43 @@ * regenerated. */ -export * from "./policy"; -export * from "./policySnippets"; -export * from "./regions"; export * from "./api"; -export * from "./apiRevisions"; +export * from "./apiRevision"; export * from "./apiRelease"; export * from "./apiOperation"; export * from "./apiOperationPolicy"; +export * from "./tag"; export * from "./apiProduct"; export * from "./apiPolicy"; export * from "./apiSchema"; export * from "./apiDiagnostic"; -export * from "./apiDiagnosticLogger"; export * from "./apiIssue"; export * from "./apiIssueComment"; export * from "./apiIssueAttachment"; +export * from "./apiTagDescription"; +export * from "./operationOperations"; +export * from "./apiVersionSet"; export * from "./authorizationServer"; export * from "./backend"; +export * from "./cache"; export * from "./certificate"; export * from "./apiManagementOperations"; +export * from "./apiManagementServiceSkus"; export * from "./apiManagementService"; export * from "./diagnostic"; -export * from "./diagnosticLogger"; export * from "./emailTemplate"; export * from "./group"; export * from "./groupUser"; export * from "./identityProvider"; +export * from "./issue"; export * from "./logger"; +export * from "./networkStatus"; export * from "./notification"; export * from "./notificationRecipientUser"; export * from "./notificationRecipientEmail"; -export * from "./networkStatus"; export * from "./openIdConnectProvider"; +export * from "./policy"; +export * from "./policySnippet"; export * from "./signInSettings"; export * from "./signUpSettings"; export * from "./delegationSettings"; @@ -52,12 +56,10 @@ export * from "./productPolicy"; export * from "./property"; export * from "./quotaByCounterKeys"; export * from "./quotaByPeriodKeys"; +export * from "./region"; export * from "./reports"; export * from "./subscription"; export * from "./tagResource"; -export * from "./tag"; -export * from "./tagDescription"; -export * from "./operationOperations"; export * from "./tenantAccess"; export * from "./tenantAccessGit"; export * from "./tenantConfiguration"; @@ -65,5 +67,5 @@ export * from "./user"; export * from "./userGroup"; export * from "./userSubscription"; export * from "./userIdentities"; -export * from "./apiVersionSet"; +export * from "./userConfirmationPassword"; export * from "./apiExport"; diff --git a/packages/@azure/arm-apimanagement/lib/operations/issue.ts b/packages/@azure/arm-apimanagement/lib/operations/issue.ts new file mode 100644 index 000000000000..74263bc8328b --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/issue.ts @@ -0,0 +1,202 @@ +/* + * 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/issueMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Issue. */ +export class Issue { + private readonly client: ApiManagementClientContext; + + /** + * Create a Issue. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of issues in the specified 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.IssueListByServiceOptionalParams): 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.IssueListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.IssueListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets API Management issue details + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param issueId Issue identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, issueId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param issueId Issue identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, issueId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param issueId Issue identifier. Must be unique in the current API Management service instance. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, issueId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, issueId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + issueId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Lists a collection of issues in the specified 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}/issues", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/issues/{issueId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.issueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueContract, + headersMapper: Mappers.IssueGetHeaders + }, + 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.IssueCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/logger.ts b/packages/@azure/arm-apimanagement/lib/operations/logger.ts index a3d3152d0b98..ceea06065217 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/logger.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/logger.ts @@ -62,32 +62,32 @@ export class Logger { * Gets the entity state (Etag) version of the logger specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param [options] The optional parameters * @returns Promise */ - getEntityTag(resourceGroupName: string, serviceName: string, loggerid: string, options?: msRest.RequestOptionsBase): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, loggerId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, loggerid: string, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, loggerId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The optional parameters * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, loggerid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, loggerid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityTag(resourceGroupName: string, serviceName: string, loggerId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, loggerId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - loggerid, + loggerId, options }, getEntityTagOperationSpec, @@ -98,32 +98,32 @@ export class Logger { * Gets the details of the logger specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, serviceName: string, loggerid: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serviceName: string, loggerId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, loggerid: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, loggerId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, loggerid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, loggerid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serviceName: string, loggerId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, loggerId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - loggerid, + loggerId, options }, getOperationSpec, @@ -134,35 +134,35 @@ export class Logger { * Creates or Updates a logger. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerContract, options?: Models.LoggerCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerContract, options?: Models.LoggerCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerContract, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerContract, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Create parameters. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerContract, options: Models.LoggerCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerContract, options?: Models.LoggerCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerContract, options: Models.LoggerCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerContract, options?: Models.LoggerCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - loggerid, + loggerId, parameters, options }, @@ -174,41 +174,41 @@ export class Logger { * Updates an existing logger. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @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 */ - update(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @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 callback The callback */ - update(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerUpdateContract, ifMatch: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerUpdateContract, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @param parameters Update parameters. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerUpdateContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, loggerid: string, parameters: Models.LoggerUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerUpdateContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, loggerId: string, parameters: Models.LoggerUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - loggerid, + loggerId, parameters, ifMatch, options @@ -221,38 +221,38 @@ export class Logger { * Deletes the specified logger. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @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, loggerid: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, options?: Models.LoggerDeleteMethodOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @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, loggerid: string, ifMatch: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, loggerId: 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 loggerid Logger identifier. Must be unique in the API Management service instance. + * @param loggerId Logger identifier. Must be unique in the API Management service instance. * @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, loggerid: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, loggerid: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, options: Models.LoggerDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, loggerId: string, ifMatch: string, options?: Models.LoggerDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - loggerid, + loggerId, ifMatch, options }, @@ -321,11 +321,11 @@ const listByServiceOperationSpec: msRest.OperationSpec = { const getEntityTagOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.loggerid, + Parameters.loggerId, Parameters.subscriptionId ], queryParameters: [ @@ -347,11 +347,11 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.loggerid, + Parameters.loggerId, Parameters.subscriptionId ], queryParameters: [ @@ -374,18 +374,18 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.loggerid, + Parameters.loggerId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -397,10 +397,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.LoggerContract + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.LoggerCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.LoggerContract + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.LoggerCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -411,18 +413,18 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.loggerid, + Parameters.loggerId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -443,18 +445,19 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.loggerid, + Parameters.loggerId, Parameters.subscriptionId ], queryParameters: [ + Parameters.force, Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/notification.ts b/packages/@azure/arm-apimanagement/lib/operations/notification.ts index 9e13a6be9e80..ee40ffce7f34 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/notification.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/notification.ts @@ -104,7 +104,7 @@ export class Notification { } /** - * Updates an Notification. + * Create or Update API Management publisher notification. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param notificationName Notification Name Identifier. Possible values include: @@ -200,7 +200,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NotificationCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -245,7 +245,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], responses: { @@ -274,7 +274,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.NotificationCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientEmail.ts b/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientEmail.ts index 33904e45df9c..585f631721f6 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientEmail.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientEmail.ts @@ -81,9 +81,9 @@ export class NotificationRecipientEmail { * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' * @param email Email identifier. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options?: msRest.RequestOptionsBase): Promise; + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -94,7 +94,7 @@ export class NotificationRecipientEmail { * @param email Email identifier. * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -106,8 +106,8 @@ export class NotificationRecipientEmail { * @param options The optional parameters * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -117,7 +117,7 @@ export class NotificationRecipientEmail { options }, checkEntityExistsOperationSpec, - callback) as Promise; + callback); } /** @@ -265,7 +265,6 @@ const checkEntityExistsOperationSpec: msRest.OperationSpec = { ], responses: { 204: {}, - 404: {}, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientUser.ts b/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientUser.ts index 4c31b4a7c006..72d486c911ce 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientUser.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/notificationRecipientUser.ts @@ -79,11 +79,11 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, options?: msRest.RequestOptionsBase): Promise; + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -91,10 +91,10 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -102,22 +102,22 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, - uid, + userId, options }, checkEntityExistsOperationSpec, - callback) as Promise; + callback); } /** @@ -128,11 +128,11 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -140,10 +140,10 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -151,18 +151,18 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User 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, notificationName: Models.NotificationName, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, - uid, + userId, options }, createOrUpdateOperationSpec, @@ -177,11 +177,11 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -189,10 +189,10 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -200,18 +200,18 @@ export class NotificationRecipientUser { * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User 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, notificationName: Models.NotificationName, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, notificationName, - uid, + userId, options }, deleteMethodOperationSpec, @@ -249,12 +249,12 @@ const listByNotificationOperationSpec: msRest.OperationSpec = { const checkEntityExistsOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.notificationName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -265,7 +265,6 @@ const checkEntityExistsOperationSpec: msRest.OperationSpec = { ], responses: { 204: {}, - 404: {}, default: { bodyMapper: Mappers.ErrorResponse } @@ -275,12 +274,12 @@ const checkEntityExistsOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.notificationName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -305,12 +304,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, Parameters.notificationName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ diff --git a/packages/@azure/arm-apimanagement/lib/operations/openIdConnectProvider.ts b/packages/@azure/arm-apimanagement/lib/operations/openIdConnectProvider.ts index c1e28b94d4f2..6b7772a13ea3 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/openIdConnectProvider.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/openIdConnectProvider.ts @@ -27,7 +27,7 @@ export class OpenIdConnectProvider { } /** - * Lists all OpenID Connect Providers. + * Lists of all the OpenId Connect Providers. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -261,7 +261,7 @@ export class OpenIdConnectProvider { } /** - * Lists all OpenID Connect Providers. + * Lists of all the OpenId Connect Providers. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -313,7 +313,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OpenIdConnectProviderCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -385,7 +385,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -397,10 +397,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.OpenidConnectProviderContract + bodyMapper: Mappers.OpenidConnectProviderContract, + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.OpenidConnectProviderContract + bodyMapper: Mappers.OpenidConnectProviderContract, + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -422,7 +424,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -454,7 +456,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -482,7 +484,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.OpenIdConnectProviderCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/operationOperations.ts b/packages/@azure/arm-apimanagement/lib/operations/operationOperations.ts index 01178fa35181..770b86b58870 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/operationOperations.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/operationOperations.ts @@ -109,6 +109,7 @@ const listByTagsOperationSpec: msRest.OperationSpec = { Parameters.filter0, Parameters.top, Parameters.skip, + Parameters.includeNotTaggedOperations, Parameters.apiVersion ], headerParameters: [ diff --git a/packages/@azure/arm-apimanagement/lib/operations/policy.ts b/packages/@azure/arm-apimanagement/lib/operations/policy.ts index d4c19458e251..805c64699d46 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/policy.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/policy.ts @@ -33,7 +33,7 @@ export class Policy { * @param [options] The optional parameters * @returns Promise */ - listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicyListByServiceOptionalParams): Promise; + listByService(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. @@ -46,8 +46,8 @@ export class Policy { * @param options The optional parameters * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, options: Models.PolicyListByServiceOptionalParams, callback: msRest.ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicyListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByService(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -131,7 +131,7 @@ export class Policy { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PolicyContract, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PolicyContract, options?: Models.PolicyCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -146,8 +146,8 @@ export class Policy { * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PolicyContract, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PolicyContract, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PolicyContract, options: Models.PolicyCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PolicyContract, options?: Models.PolicyCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -210,7 +210,6 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.scope, Parameters.apiVersion ], headerParameters: [ @@ -221,7 +220,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PolicyCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -293,6 +292,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -304,10 +304,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.PolicyCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.PolicyCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -329,7 +331,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/policySnippet.ts b/packages/@azure/arm-apimanagement/lib/operations/policySnippet.ts new file mode 100644 index 000000000000..d0ba7845bb1f --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/policySnippet.ts @@ -0,0 +1,88 @@ +/* + * 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/policySnippetMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a PolicySnippet. */ +export class PolicySnippet { + private readonly client: ApiManagementClientContext; + + /** + * Create a PolicySnippet. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all policy snippets. + * @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.PolicySnippetListByServiceOptionalParams): 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.PolicySnippetListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.PolicySnippetListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByServiceOperationSpec, + 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}/policySnippets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.scope1, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicySnippetsCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/product.ts b/packages/@azure/arm-apimanagement/lib/operations/product.ts index 4e40412fcb4d..31904c098334 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/product.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/product.ts @@ -180,7 +180,7 @@ export class Product { } /** - * Update product. + * Update existing product details. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param productId Product identifier. Must be unique in the current API Management service @@ -275,6 +275,38 @@ export class Product { callback); } + /** + * Lists a collection of products associated with tags. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listByTags(resourceGroupName: string, serviceName: string, options?: Models.ProductListByTagsOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param callback The callback + */ + listByTags(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 + */ + listByTags(resourceGroupName: string, serviceName: string, options: Models.ProductListByTagsOptionalParams, callback: msRest.ServiceCallback): void; + listByTags(resourceGroupName: string, serviceName: string, options?: Models.ProductListByTagsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByTagsOperationSpec, + callback) as Promise; + } + /** * Lists a collection of products in the specified service instance. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -302,6 +334,34 @@ export class Product { listByServiceNextOperationSpec, callback) as Promise; } + + /** + * Lists a collection of products associated with tags. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByTagsNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByTagsNext(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 + */ + listByTagsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByTagsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByTagsNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -319,6 +379,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.top, Parameters.skip, Parameters.expandGroups, + Parameters.tags, Parameters.apiVersion ], headerParameters: [ @@ -401,7 +462,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -413,10 +474,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.ProductContract + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.ProductCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.ProductContract + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.ProductCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -438,7 +501,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -471,7 +534,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -484,6 +547,35 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; +const listByTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/productsByTags", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.includeNotTaggedProducts, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const listByServiceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -504,3 +596,24 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByTagsNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/productApi.ts b/packages/@azure/arm-apimanagement/lib/operations/productApi.ts index c39c7d214ce7..c3bad7380501 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/productApi.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/productApi.ts @@ -74,9 +74,9 @@ export class ProductApi { * @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 [options] The optional parameters - * @returns Promise + * @returns Promise */ - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -86,7 +86,7 @@ export class ProductApi { * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -97,8 +97,8 @@ export class ProductApi { * @param options The optional parameters * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -108,7 +108,7 @@ export class ProductApi { options }, checkEntityExistsOperationSpec, - callback) as Promise; + callback); } /** @@ -281,7 +281,6 @@ const checkEntityExistsOperationSpec: msRest.OperationSpec = { ], responses: { 204: {}, - 404: {}, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/packages/@azure/arm-apimanagement/lib/operations/productGroup.ts b/packages/@azure/arm-apimanagement/lib/operations/productGroup.ts index ff880b0d9053..d40911e555c8 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/productGroup.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/productGroup.ts @@ -73,9 +73,9 @@ export class ProductGroup { * instance. * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: msRest.RequestOptionsBase): Promise; + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -84,7 +84,7 @@ export class ProductGroup { * @param groupId Group identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -94,8 +94,8 @@ export class ProductGroup { * @param options The optional parameters * @param callback The callback */ - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -105,7 +105,7 @@ export class ProductGroup { options }, checkEntityExistsOperationSpec, - callback) as Promise; + callback); } /** @@ -272,7 +272,6 @@ const checkEntityExistsOperationSpec: msRest.OperationSpec = { ], responses: { 204: {}, - 404: {}, default: { bodyMapper: Mappers.ErrorResponse } diff --git a/packages/@azure/arm-apimanagement/lib/operations/productPolicy.ts b/packages/@azure/arm-apimanagement/lib/operations/productPolicy.ts index ba45132a2d2d..aea5fbd081a1 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/productPolicy.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/productPolicy.ts @@ -241,8 +241,8 @@ const listByProductOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, - Parameters.productId + Parameters.productId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -252,8 +252,7 @@ const listByProductOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.PolicyCollection, - headersMapper: Mappers.ProductPolicyListByProductHeaders + bodyMapper: Mappers.PolicyCollection }, default: { bodyMapper: Mappers.ErrorResponse @@ -268,9 +267,9 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, Parameters.productId, - Parameters.policyId + Parameters.policyId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -295,9 +294,9 @@ const getOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.subscriptionId, Parameters.productId, - Parameters.policyId + Parameters.policyId, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion @@ -331,7 +330,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -343,10 +342,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.PolicyContract + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -369,7 +370,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/property.ts b/packages/@azure/arm-apimanagement/lib/operations/property.ts index 5358544f679e..af83fe7a925d 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/property.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/property.ts @@ -218,7 +218,7 @@ export class Property { } /** - * Deletes specific property from the the API Management service instance. + * Deletes specific property 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. @@ -313,7 +313,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PropertyCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -385,7 +385,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -397,10 +397,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.PropertyContract + bodyMapper: Mappers.PropertyContract, + headersMapper: Mappers.PropertyCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.PropertyContract + bodyMapper: Mappers.PropertyContract, + headersMapper: Mappers.PropertyCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -422,7 +424,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -454,7 +456,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -482,7 +484,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.PropertyCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/quotaByCounterKeys.ts b/packages/@azure/arm-apimanagement/lib/operations/quotaByCounterKeys.ts index 91c0b1fc90b7..e4976fa216f6 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/quotaByCounterKeys.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/quotaByCounterKeys.ts @@ -129,10 +129,10 @@ const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, - Parameters.quotaCounterKey + Parameters.quotaCounterKey, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion diff --git a/packages/@azure/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts b/packages/@azure/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts index 4a1335bf50f4..c7bf3dfa545a 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts @@ -136,11 +136,11 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", urlParameters: [ - Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serviceName, Parameters.quotaCounterKey, - Parameters.quotaPeriodKey + Parameters.quotaPeriodKey, + Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion diff --git a/packages/@azure/arm-apimanagement/lib/operations/region.ts b/packages/@azure/arm-apimanagement/lib/operations/region.ts new file mode 100644 index 000000000000..a563773df876 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/region.ts @@ -0,0 +1,136 @@ +/* + * 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/regionMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Region. */ +export class Region { + private readonly client: ApiManagementClientContext; + + /** + * Create a Region. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all azure regions in which the service exists. + * @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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Lists all azure regions in which the service exists. + * @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}/regions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RegionListResult + }, + 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.RegionListResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/reports.ts b/packages/@azure/arm-apimanagement/lib/operations/reports.ts index e02b15b6da63..328d1f592dab 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/reports.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/reports.ts @@ -66,7 +66,19 @@ export class Reports { * Lists report records by User. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| userId | + * select, filter | eq | |
| apiRegion | filter | eq | |
| productId | filter | + * eq | |
| subscriptionId | filter | eq | |
| apiId | filter | eq | |
| + * operationId | filter | eq | |
| callCountSuccess | select, orderBy | | |
| + * callCountBlocked | select, orderBy | | |
| callCountFailed | select, orderBy | + * | |
| callCountOther | select, orderBy | | |
| callCountTotal | select, + * orderBy | | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | + * select | | |
| cacheMissCount | select | | |
| apiTimeAvg | select, + * orderBy | | |
| apiTimeMin | select | | |
| apiTimeMax | select | + * | |
| serviceTimeAvg | select | | |
| serviceTimeMin | select | | + * |
| serviceTimeMax | select | | |
* @param [options] The optional parameters * @returns Promise */ @@ -74,14 +86,38 @@ export class Reports { /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| userId | + * select, filter | eq | |
| apiRegion | filter | eq | |
| productId | filter | + * eq | |
| subscriptionId | filter | eq | |
| apiId | filter | eq | |
| + * operationId | filter | eq | |
| callCountSuccess | select, orderBy | | |
| + * callCountBlocked | select, orderBy | | |
| callCountFailed | select, orderBy | + * | |
| callCountOther | select, orderBy | | |
| callCountTotal | select, + * orderBy | | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | + * select | | |
| cacheMissCount | select | | |
| apiTimeAvg | select, + * orderBy | | |
| apiTimeMin | select | | |
| apiTimeMax | select | + * | |
| serviceTimeAvg | select | | |
| serviceTimeMin | select | | + * |
| serviceTimeMax | select | | |
* @param callback The callback */ listByUser(resourceGroupName: string, serviceName: string, filter: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| userId | + * select, filter | eq | |
| apiRegion | filter | eq | |
| productId | filter | + * eq | |
| subscriptionId | filter | eq | |
| apiId | filter | eq | |
| + * operationId | filter | eq | |
| callCountSuccess | select, orderBy | | |
| + * callCountBlocked | select, orderBy | | |
| callCountFailed | select, orderBy | + * | |
| callCountOther | select, orderBy | | |
| callCountTotal | select, + * orderBy | | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | + * select | | |
| cacheMissCount | select | | |
| apiTimeAvg | select, + * orderBy | | |
| apiTimeMin | select | | |
| apiTimeMax | select | + * | |
| serviceTimeAvg | select | | |
| serviceTimeMin | select | | + * |
| serviceTimeMax | select | | |
* @param options The optional parameters * @param callback The callback */ @@ -102,7 +138,19 @@ export class Reports { * Lists report records by API Operations. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | filter | eq | |
| productId | filter | eq | | + *
| subscriptionId | filter | eq | |
| apiId | filter | eq | |
| + * operationId | select, filter | eq | |
| callCountSuccess | select, orderBy | | + * |
| callCountBlocked | select, orderBy | | |
| callCountFailed | select, + * orderBy | | |
| callCountOther | select, orderBy | | |
| + * callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | | | + *
| cacheHitsCount | select | | |
| cacheMissCount | select | | |
| + * apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | |
| + * apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param [options] The optional parameters * @returns Promise */ @@ -110,14 +158,38 @@ export class Reports { /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | filter | eq | |
| productId | filter | eq | | + *
| subscriptionId | filter | eq | |
| apiId | filter | eq | |
| + * operationId | select, filter | eq | |
| callCountSuccess | select, orderBy | | + * |
| callCountBlocked | select, orderBy | | |
| callCountFailed | select, + * orderBy | | |
| callCountOther | select, orderBy | | |
| + * callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | | | + *
| cacheHitsCount | select | | |
| cacheMissCount | select | | |
| + * apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | |
| + * apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param callback The callback */ listByOperation(resourceGroupName: string, serviceName: string, filter: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | filter | eq | |
| productId | filter | eq | | + *
| subscriptionId | filter | eq | |
| apiId | filter | eq | |
| + * operationId | select, filter | eq | |
| callCountSuccess | select, orderBy | | + * |
| callCountBlocked | select, orderBy | | |
| callCountFailed | select, + * orderBy | | |
| callCountOther | select, orderBy | | |
| + * callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | | | + *
| cacheHitsCount | select | | |
| cacheMissCount | select | | |
| + * apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | |
| + * apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param options The optional parameters * @param callback The callback */ @@ -138,7 +210,18 @@ export class Reports { * Lists report records by Product. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | filter | eq | |
| productId | select, filter | eq | + * |
| subscriptionId | filter | eq | |
| callCountSuccess | select, orderBy | | + * |
| callCountBlocked | select, orderBy | | |
| callCountFailed | select, + * orderBy | | |
| callCountOther | select, orderBy | | |
| + * callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | | | + *
| cacheHitsCount | select | | |
| cacheMissCount | select | | |
| + * apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | |
| + * apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param [options] The optional parameters * @returns Promise */ @@ -146,14 +229,36 @@ export class Reports { /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | filter | eq | |
| productId | select, filter | eq | + * |
| subscriptionId | filter | eq | |
| callCountSuccess | select, orderBy | | + * |
| callCountBlocked | select, orderBy | | |
| callCountFailed | select, + * orderBy | | |
| callCountOther | select, orderBy | | |
| + * callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | | | + *
| cacheHitsCount | select | | |
| cacheMissCount | select | | |
| + * apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | |
| + * apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param callback The callback */ listByProduct(resourceGroupName: string, serviceName: string, filter: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | filter | eq | |
| productId | select, filter | eq | + * |
| subscriptionId | filter | eq | |
| callCountSuccess | select, orderBy | | + * |
| callCountBlocked | select, orderBy | | |
| callCountFailed | select, + * orderBy | | |
| callCountOther | select, orderBy | | |
| + * callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | | | + *
| cacheHitsCount | select | | |
| cacheMissCount | select | | |
| + * apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | |
| + * apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param options The optional parameters * @param callback The callback */ @@ -171,31 +276,71 @@ export class Reports { } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| country | select | | |
| region | select | | + * |
| zip | select | | |
| apiRegion | filter | eq | |
| userId | + * filter | eq | |
| productId | filter | eq | |
| subscriptionId | filter | eq | + * |
| apiId | filter | eq | |
| operationId | filter | eq | |
| + * callCountSuccess | select | | |
| callCountBlocked | select | | |
| + * callCountFailed | select | | |
| callCountOther | select | | |
| + * bandwidth | select, orderBy | | |
| cacheHitsCount | select | | |
| + * cacheMissCount | select | | |
| apiTimeAvg | select | | |
| apiTimeMin + * | select | | |
| apiTimeMax | select | | |
| serviceTimeAvg | select | + * | |
| serviceTimeMin | select | | |
| serviceTimeMax | select | | + * |
* @param [options] The optional parameters * @returns Promise */ - listByGeo(resourceGroupName: string, serviceName: string, options?: Models.ReportsListByGeoOptionalParams): Promise; + listByGeo(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByGeoOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| country | select | | |
| region | select | | + * |
| zip | select | | |
| apiRegion | filter | eq | |
| userId | + * filter | eq | |
| productId | filter | eq | |
| subscriptionId | filter | eq | + * |
| apiId | filter | eq | |
| operationId | filter | eq | |
| + * callCountSuccess | select | | |
| callCountBlocked | select | | |
| + * callCountFailed | select | | |
| callCountOther | select | | |
| + * bandwidth | select, orderBy | | |
| cacheHitsCount | select | | |
| + * cacheMissCount | select | | |
| apiTimeAvg | select | | |
| apiTimeMin + * | select | | |
| apiTimeMax | select | | |
| serviceTimeAvg | select | + * | |
| serviceTimeMin | select | | |
| serviceTimeMax | select | | + * |
* @param callback The callback */ - listByGeo(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + listByGeo(resourceGroupName: string, serviceName: string, filter: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| country | select | | |
| region | select | | + * |
| zip | select | | |
| apiRegion | filter | eq | |
| userId | + * filter | eq | |
| productId | filter | eq | |
| subscriptionId | filter | eq | + * |
| apiId | filter | eq | |
| operationId | filter | eq | |
| + * callCountSuccess | select | | |
| callCountBlocked | select | | |
| + * callCountFailed | select | | |
| callCountOther | select | | |
| + * bandwidth | select, orderBy | | |
| cacheHitsCount | select | | |
| + * cacheMissCount | select | | |
| apiTimeAvg | select | | |
| apiTimeMin + * | select | | |
| apiTimeMax | select | | |
| serviceTimeAvg | select | + * | |
| serviceTimeMin | select | | |
| serviceTimeMax | select | | + * |
* @param options The optional parameters * @param callback The callback */ - listByGeo(resourceGroupName: string, serviceName: string, options: Models.ReportsListByGeoOptionalParams, callback: msRest.ServiceCallback): void; - listByGeo(resourceGroupName: string, serviceName: string, options?: Models.ReportsListByGeoOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByGeo(resourceGroupName: string, serviceName: string, filter: string, options: Models.ReportsListByGeoOptionalParams, callback: msRest.ServiceCallback): void; + listByGeo(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByGeoOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + filter, options }, listByGeoOperationSpec, @@ -206,28 +351,65 @@ export class Reports { * Lists report records by subscription. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | select, filter | eq | |
| productId | select, + * filter | eq | |
| subscriptionId | select, filter | eq | |
| callCountSuccess + * | select, orderBy | | |
| callCountBlocked | select, orderBy | | |
| + * callCountFailed | select, orderBy | | |
| callCountOther | select, orderBy | | + * |
| callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | + * | |
| cacheHitsCount | select | | |
| cacheMissCount | select | | + * |
| apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | | + *
| apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param [options] The optional parameters * @returns Promise */ - listBySubscription(resourceGroupName: string, serviceName: string, options?: Models.ReportsListBySubscriptionOptionalParams): Promise; + listBySubscription(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListBySubscriptionOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | select, filter | eq | |
| productId | select, + * filter | eq | |
| subscriptionId | select, filter | eq | |
| callCountSuccess + * | select, orderBy | | |
| callCountBlocked | select, orderBy | | |
| + * callCountFailed | select, orderBy | | |
| callCountOther | select, orderBy | | + * |
| callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | + * | |
| cacheHitsCount | select | | |
| cacheMissCount | select | | + * |
| apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | | + *
| apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param callback The callback */ - listBySubscription(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + listBySubscription(resourceGroupName: string, serviceName: string, filter: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| displayName | select, orderBy | | |
| apiRegion | + * filter | eq | |
| userId | select, filter | eq | |
| productId | select, + * filter | eq | |
| subscriptionId | select, filter | eq | |
| callCountSuccess + * | select, orderBy | | |
| callCountBlocked | select, orderBy | | |
| + * callCountFailed | select, orderBy | | |
| callCountOther | select, orderBy | | + * |
| callCountTotal | select, orderBy | | |
| bandwidth | select, orderBy | + * | |
| cacheHitsCount | select | | |
| cacheMissCount | select | | + * |
| apiTimeAvg | select, orderBy | | |
| apiTimeMin | select | | | + *
| apiTimeMax | select | | |
| serviceTimeAvg | select | | |
| + * serviceTimeMin | select | | |
| serviceTimeMax | select | | |
* @param options The optional parameters * @param callback The callback */ - listBySubscription(resourceGroupName: string, serviceName: string, options: Models.ReportsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; - listBySubscription(resourceGroupName: string, serviceName: string, options?: Models.ReportsListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscription(resourceGroupName: string, serviceName: string, filter: string, options: Models.ReportsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + filter, options }, listBySubscriptionOperationSpec, @@ -238,40 +420,77 @@ export class Reports { * Lists report records by Time. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter, select | ge, le | |
| interval | select | | |
| apiRegion | filter + * | eq | |
| userId | filter | eq | |
| productId | filter | eq | |
| + * subscriptionId | filter | eq | |
| apiId | filter | eq | |
| operationId | + * filter | eq | |
| callCountSuccess | select | | |
| callCountBlocked | + * select | | |
| callCountFailed | select | | |
| callCountOther | + * select | | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | + * select | | |
| cacheMissCount | select | | |
| apiTimeAvg | select | + * | |
| apiTimeMin | select | | |
| apiTimeMax | select | | |
| + * serviceTimeAvg | select | | |
| serviceTimeMin | select | | |
| + * serviceTimeMax | select | | |
* @param interval By time interval. Interval must be multiple of 15 minutes and may not be zero. * The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This * code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)). * @param [options] The optional parameters * @returns Promise */ - listByTime(resourceGroupName: string, serviceName: string, interval: string, options?: Models.ReportsListByTimeOptionalParams): Promise; + listByTime(resourceGroupName: string, serviceName: string, filter: string, interval: string, options?: Models.ReportsListByTimeOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter, select | ge, le | |
| interval | select | | |
| apiRegion | filter + * | eq | |
| userId | filter | eq | |
| productId | filter | eq | |
| + * subscriptionId | filter | eq | |
| apiId | filter | eq | |
| operationId | + * filter | eq | |
| callCountSuccess | select | | |
| callCountBlocked | + * select | | |
| callCountFailed | select | | |
| callCountOther | + * select | | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | + * select | | |
| cacheMissCount | select | | |
| apiTimeAvg | select | + * | |
| apiTimeMin | select | | |
| apiTimeMax | select | | |
| + * serviceTimeAvg | select | | |
| serviceTimeMin | select | | |
| + * serviceTimeMax | select | | |
* @param interval By time interval. Interval must be multiple of 15 minutes and may not be zero. * The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This * code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)). * @param callback The callback */ - listByTime(resourceGroupName: string, serviceName: string, interval: string, callback: msRest.ServiceCallback): void; + listByTime(resourceGroupName: string, serviceName: string, filter: string, interval: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter, select | ge, le | |
| interval | select | | |
| apiRegion | filter + * | eq | |
| userId | filter | eq | |
| productId | filter | eq | |
| + * subscriptionId | filter | eq | |
| apiId | filter | eq | |
| operationId | + * filter | eq | |
| callCountSuccess | select | | |
| callCountBlocked | + * select | | |
| callCountFailed | select | | |
| callCountOther | + * select | | |
| bandwidth | select, orderBy | | |
| cacheHitsCount | + * select | | |
| cacheMissCount | select | | |
| apiTimeAvg | select | + * | |
| apiTimeMin | select | | |
| apiTimeMax | select | | |
| + * serviceTimeAvg | select | | |
| serviceTimeMin | select | | |
| + * serviceTimeMax | select | | |
* @param interval By time interval. Interval must be multiple of 15 minutes and may not be zero. * The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This * code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new - * TimeSpan(hours, minutes, secconds)) + * TimeSpan(hours, minutes, seconds)). * @param options The optional parameters * @param callback The callback */ - listByTime(resourceGroupName: string, serviceName: string, interval: string, options: Models.ReportsListByTimeOptionalParams, callback: msRest.ServiceCallback): void; - listByTime(resourceGroupName: string, serviceName: string, interval: string, options?: Models.ReportsListByTimeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByTime(resourceGroupName: string, serviceName: string, filter: string, interval: string, options: Models.ReportsListByTimeOptionalParams, callback: msRest.ServiceCallback): void; + listByTime(resourceGroupName: string, serviceName: string, filter: string, interval: string, options?: Models.ReportsListByTimeOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + filter, interval, options }, @@ -283,7 +502,11 @@ export class Reports { * Lists report records by Request. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| apiId | filter | eq | |
| operationId | filter | eq | + * |
| productId | filter | eq | |
| userId | filter | eq | |
| apiRegion | + * filter | eq | |
| subscriptionId | filter | eq | |
* @param [options] The optional parameters * @returns Promise */ @@ -291,14 +514,22 @@ export class Reports { /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| apiId | filter | eq | |
| operationId | filter | eq | + * |
| productId | filter | eq | |
| userId | filter | eq | |
| apiRegion | + * filter | eq | |
| subscriptionId | filter | eq | |
* @param callback The callback */ listByRequest(resourceGroupName: string, serviceName: string, filter: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param filter The filter to apply on the operation. + * @param filter | Field | Usage | Supported operators | Supported + * functions |
|-------------|-------------|-------------|-------------|
| timestamp | + * filter | ge, le | |
| apiId | filter | eq | |
| operationId | filter | eq | + * |
| productId | filter | eq | |
| userId | filter | eq | |
| apiRegion | + * filter | eq | |
| subscriptionId | filter | eq | |
* @param options The optional parameters * @param callback The callback */ @@ -428,7 +659,7 @@ export class Reports { } /** - * Lists report records by GeoGraphy. + * Lists report records by geography. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -526,6 +757,7 @@ const listByApiOperationSpec: msRest.OperationSpec = { Parameters.filter1, Parameters.top, Parameters.skip, + Parameters.orderby, Parameters.apiVersion ], headerParameters: [ @@ -554,6 +786,7 @@ const listByUserOperationSpec: msRest.OperationSpec = { Parameters.filter1, Parameters.top, Parameters.skip, + Parameters.orderby, Parameters.apiVersion ], headerParameters: [ @@ -582,6 +815,7 @@ const listByOperationOperationSpec: msRest.OperationSpec = { Parameters.filter1, Parameters.top, Parameters.skip, + Parameters.orderby, Parameters.apiVersion ], headerParameters: [ @@ -610,6 +844,7 @@ const listByProductOperationSpec: msRest.OperationSpec = { Parameters.filter1, Parameters.top, Parameters.skip, + Parameters.orderby, Parameters.apiVersion ], headerParameters: [ @@ -635,7 +870,7 @@ const listByGeoOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.filter0, + Parameters.filter1, Parameters.top, Parameters.skip, Parameters.apiVersion @@ -663,9 +898,10 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.filter0, + Parameters.filter1, Parameters.top, Parameters.skip, + Parameters.orderby, Parameters.apiVersion ], headerParameters: [ @@ -691,9 +927,10 @@ const listByTimeOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.filter0, + Parameters.filter1, Parameters.top, Parameters.skip, + Parameters.orderby, Parameters.interval, Parameters.apiVersion ], diff --git a/packages/@azure/arm-apimanagement/lib/operations/signInSettings.ts b/packages/@azure/arm-apimanagement/lib/operations/signInSettings.ts index 999120606d3a..dd971ea317b3 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/signInSettings.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/signInSettings.ts @@ -59,7 +59,7 @@ export class SignInSettings { } /** - * Get Sign-In settings. + * Get Sign In Settings for the Portal * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -141,7 +141,7 @@ export class SignInSettings { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, options?: Models.SignInSettingsCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -156,8 +156,8 @@ export class SignInSettings { * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, options: Models.SignInSettingsCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, options?: Models.SignInSettingsCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -217,7 +217,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.SignInSettingsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -235,7 +235,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -266,6 +266,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/signUpSettings.ts b/packages/@azure/arm-apimanagement/lib/operations/signUpSettings.ts index 2e1d7021ba7d..bd3214a4dffd 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/signUpSettings.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/signUpSettings.ts @@ -59,7 +59,7 @@ export class SignUpSettings { } /** - * Get Sign-Up settings. + * Get Sign Up Settings for the Portal * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -141,7 +141,7 @@ export class SignUpSettings { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, options?: msRest.RequestOptionsBase): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, options?: Models.SignUpSettingsCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -156,8 +156,8 @@ export class SignUpSettings { * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, options: Models.SignUpSettingsCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, options?: Models.SignUpSettingsCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -217,7 +217,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.SignUpSettingsGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -235,7 +235,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -266,6 +266,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/subscription.ts b/packages/@azure/arm-apimanagement/lib/operations/subscription.ts index 3341301d7a95..630cfbf109fc 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/subscription.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/subscription.ts @@ -181,7 +181,7 @@ export class Subscription { } /** - * Updates the details of a subscription specificied by its identifier. + * Updates the details of a subscription specified by its identifier. * @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 @@ -480,7 +480,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -492,10 +492,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.SubscriptionContract + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.SubscriptionContract + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -518,7 +520,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -550,7 +552,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/tag.ts b/packages/@azure/arm-apimanagement/lib/operations/tag.ts index 91f200efe1ef..78a9e2742d66 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/tag.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/tag.ts @@ -27,236 +27,248 @@ export class Tag { } /** - * Lists a collection of tags defined within a service instance. + * Lists all Tags associated with the Operation. * @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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByService(resourceGroupName: string, serviceName: string, options?: Models.TagListByServiceOptionalParams): Promise; + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: Models.TagListByOperationOptionalParams): 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, callback: msRest.ServiceCallback): void; + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param options The optional parameters * @param callback The callback */ - listByService(resourceGroupName: string, serviceName: string, options: Models.TagListByServiceOptionalParams, callback: msRest.ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options?: Models.TagListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options: Models.TagListByOperationOptionalParams, callback: msRest.ServiceCallback): void; + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: Models.TagListByOperationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + apiId, + operationId, options }, - listByServiceOperationSpec, - callback) as Promise; + listByOperationOperationSpec, + callback) as Promise; } /** * Gets the entity state version of the tag specified by its identifier. * @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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise - */ - getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @param callback The callback - */ - getEntityState(resourceGroupName: string, serviceName: string, tagId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @param options The optional parameters - * @param callback The callback - */ - getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - tagId, - options - }, - getEntityStateOperationSpec, - callback) as Promise; - } - - /** - * Gets the details of the tag specified by its identifier. - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; + getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, tagId: string, callback: msRest.ServiceCallback): void; + getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + apiId, + operationId, tagId, options }, - getOperationSpec, - callback) as Promise; + getEntityStateByOperationOperationSpec, + callback) as Promise; } /** - * Creates a tag. + * Get tag associated with the Operation. * @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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @param parameters Create parameters. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @param parameters Create parameters. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, callback: msRest.ServiceCallback): void; + getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @param parameters Create parameters. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + apiId, + operationId, tagId, - parameters, options }, - createOrUpdateOperationSpec, - callback) as Promise; + getByOperationOperationSpec, + callback) as Promise; } /** - * Updates the details of the tag specified by its identifier. + * Assign tag to the Operation. * @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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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 + * @returns Promise */ - update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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 callback The callback */ - update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @param parameters Update parameters. - * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header - * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + apiId, + operationId, tagId, - parameters, - ifMatch, options }, - updateOperationSpec, - callback); + assignToOperationOperationSpec, + callback) as Promise; } /** - * Deletes specific tag of the API Management service instance. + * Detach the tag from the Operation. * @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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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, tagId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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, tagId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, + apiId, + operationId, tagId, - ifMatch, options }, - deleteMethodOperationSpec, + detachFromOperationOperationSpec, callback); } @@ -395,7 +407,7 @@ export class Tag { * @param [options] The optional parameters * @returns Promise */ - assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: Models.TagAssignToApiOptionalParams): Promise; + assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. @@ -414,8 +426,8 @@ export class Tag { * @param options The optional parameters * @param callback The callback */ - assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options: Models.TagAssignToApiOptionalParams, callback: msRest.ServiceCallback): void; - assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: Models.TagAssignToApiOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + assignToApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -435,43 +447,36 @@ export class Tag { * @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 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 */ - detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: 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 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 */ - detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: 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 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 */ - detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + detachFromApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, apiId, tagId, - ifMatch, options }, detachFromApiOperationSpec, @@ -479,502 +484,476 @@ export class Tag { } /** - * Lists all Tags associated with the Operation. + * Lists all Tags associated with the Product. * @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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: Models.TagListByOperationOptionalParams): Promise; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.TagListByProductOptionalParams): 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param callback The callback */ - listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, callback: msRest.ServiceCallback): void; + listByProduct(resourceGroupName: string, serviceName: string, productId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param options The optional parameters * @param callback The callback */ - listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options: Models.TagListByOperationOptionalParams, callback: msRest.ServiceCallback): void; - listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: Models.TagListByOperationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options: Models.TagListByProductOptionalParams, callback: msRest.ServiceCallback): void; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.TagListByProductOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - apiId, - operationId, + productId, options }, - listByOperationOperationSpec, - callback) as Promise; + listByProductOperationSpec, + callback) as Promise; } /** * Gets the entity state version of the tag specified by its identifier. * @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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; + getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, callback: msRest.ServiceCallback): void; + getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityStateByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - apiId, - operationId, + productId, tagId, options }, - getEntityStateByOperationOperationSpec, - callback) as Promise; + getEntityStateByProductOperationSpec, + callback) as Promise; } /** - * Get tag associated with the Operation. + * Get tag associated with the Product. * @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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; + getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, callback: msRest.ServiceCallback): void; + getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - apiId, - operationId, + productId, tagId, options }, - getByOperationOperationSpec, - callback) as Promise; + getByProductOperationSpec, + callback) as Promise; } /** - * Assign tag to the Operation. + * Assign tag to the Product. * @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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: Models.TagAssignToOperationOptionalParams): Promise; + assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, callback: msRest.ServiceCallback): void; + assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options: Models.TagAssignToOperationOptionalParams, callback: msRest.ServiceCallback): void; - assignToOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, options?: Models.TagAssignToOperationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - apiId, - operationId, + productId, tagId, options }, - assignToOperationOperationSpec, - callback) as Promise; + assignToProductOperationSpec, + callback) as Promise; } /** - * Detach the tag from the Operation. + * Detach the tag from the Product. * @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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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 */ - detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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 */ - detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: 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 operationId Operation identifier within an API. Must be unique in the current API - * Management service instance. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. - * @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 */ - detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - detachFromOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - apiId, - operationId, + productId, tagId, - ifMatch, options }, - detachFromOperationOperationSpec, + detachFromProductOperationSpec, callback); } /** - * Lists all Tags associated with the Product. + * Lists a collection of tags defined within a service instance. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.TagListByProductOptionalParams): Promise; + listByService(resourceGroupName: string, serviceName: string, options?: Models.TagListByServiceOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param callback The callback */ - listByProduct(resourceGroupName: string, serviceName: string, productId: 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 productId Product identifier. Must be unique in the current API Management service - * instance. * @param options The optional parameters * @param callback The callback */ - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options: Models.TagListByProductOptionalParams, callback: msRest.ServiceCallback): void; - listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.TagListByProductOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByService(resourceGroupName: string, serviceName: string, options: Models.TagListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.TagListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - productId, options }, - listByProductOperationSpec, - callback) as Promise; + listByServiceOperationSpec, + callback) as Promise; } /** * Gets the entity state version of the tag specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; + getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, callback: msRest.ServiceCallback): void; + getEntityState(resourceGroupName: string, serviceName: string, tagId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityStateByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityState(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - productId, tagId, options }, - getEntityStateByProductOperationSpec, - callback) as Promise; + getEntityStateOperationSpec, + callback) as Promise; } /** - * Get tag associated with the Product. + * Gets the details of the tag specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, tagId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serviceName: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, tagId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - productId, tagId, options }, - getByProductOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** - * Assign tag to the Product. + * Creates a tag. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: Models.TagAssignToProductOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, options?: Models.TagCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. * @param callback The callback */ - assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Create parameters. * @param options The optional parameters * @param callback The callback */ - assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options: Models.TagAssignToProductOptionalParams, callback: msRest.ServiceCallback): void; - assignToProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, options?: Models.TagAssignToProductOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, options: Models.TagCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, options?: Models.TagCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - productId, tagId, + parameters, options }, - assignToProductOperationSpec, - callback) as Promise; + createOrUpdateOperationSpec, + callback) as Promise; } /** - * Detach the tag from the Product. + * Updates the details of the tag specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @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 */ - detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @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 callback The callback */ - detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param productId Product identifier. Must be unique in the current API Management service - * instance. * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @param parameters Update parameters. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - detachFromProduct(resourceGroupName: string, serviceName: string, productId: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, tagId: string, parameters: Models.TagCreateUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + tagId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific tag of the API Management service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param tagId Tag identifier. Must be unique in the current API Management service instance. + * @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, tagId: 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 tagId Tag identifier. Must be unique in the current API Management service instance. + * @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, tagId: 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 tagId Tag identifier. Must be unique in the current API Management service instance. + * @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, tagId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, tagId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - productId, tagId, ifMatch, options }, - detachFromProductOperationSpec, + deleteMethodOperationSpec, callback); } /** - * Lists a collection of tags defined within a service instance. + * Lists all Tags associated with the Operation. * @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; + listByOperationNext(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; + listByOperationNext(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 { + listByOperationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByOperationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByServiceNextOperationSpec, - callback) as Promise; + listByOperationNextOperationSpec, + callback) as Promise; } /** @@ -1006,70 +985,72 @@ export class Tag { } /** - * Lists all Tags associated with the Operation. + * Lists all Tags associated with the Product. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByOperationNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByProductNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listByOperationNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listByProductNext(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 */ - listByOperationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByOperationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByProductNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProductNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, options }, - listByOperationNextOperationSpec, - callback) as Promise; + listByProductNextOperationSpec, + callback) as Promise; } /** - * Lists all Tags associated with the Product. + * Lists a collection of tags 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 */ - listByProductNext(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 */ - listByProductNext(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 */ - listByProductNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByProductNext(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 }, - listByProductNextOperationSpec, - callback) as Promise; + listByServiceNextOperationSpec, + callback) as Promise; } } // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const listByServiceOperationSpec: msRest.OperationSpec = { +const listByOperationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, Parameters.subscriptionId ], queryParameters: [ @@ -1086,18 +1067,20 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.TagCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer }; -const getEntityStateOperationSpec: msRest.OperationSpec = { +const getEntityStateByOperationOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, Parameters.tagId, Parameters.subscriptionId ], @@ -1109,7 +1092,7 @@ const getEntityStateOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - headersMapper: Mappers.TagGetEntityStateHeaders + headersMapper: Mappers.TagGetEntityStateByOperationHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1118,12 +1101,14 @@ const getEntityStateOperationSpec: msRest.OperationSpec = { serializer }; -const getOperationSpec: msRest.OperationSpec = { +const getByOperationOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, Parameters.tagId, Parameters.subscriptionId ], @@ -1136,7 +1121,7 @@ const getOperationSpec: msRest.OperationSpec = { responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetHeaders + headersMapper: Mappers.TagGetByOperationHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1145,12 +1130,14 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const createOrUpdateOperationSpec: msRest.OperationSpec = { +const assignToOperationOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, Parameters.tagId, Parameters.subscriptionId ], @@ -1160,13 +1147,6 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.TagCreateUpdateParameters, - required: true - } - }, responses: { 200: { bodyMapper: Mappers.TagContract @@ -1181,44 +1161,14 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.tagId, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.ifMatch0, - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.TagCreateUpdateParameters, - required: true - } - }, - responses: { - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { +const detachFromOperationOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, Parameters.tagId, Parameters.subscriptionId ], @@ -1226,7 +1176,6 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, Parameters.acceptLanguage ], responses: { @@ -1337,15 +1286,16 @@ const assignToApiOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagAssignToApiHeaders }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagAssignToApiHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1368,7 +1318,6 @@ const detachFromApiOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, Parameters.acceptLanguage ], responses: { @@ -1381,14 +1330,13 @@ const detachFromApiOperationSpec: msRest.OperationSpec = { serializer }; -const listByOperationOperationSpec: msRest.OperationSpec = { +const listByProductOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiId0, - Parameters.operationId, + Parameters.productId, Parameters.subscriptionId ], queryParameters: [ @@ -1411,14 +1359,13 @@ const listByOperationOperationSpec: msRest.OperationSpec = { serializer }; -const getEntityStateByOperationOperationSpec: msRest.OperationSpec = { +const getEntityStateByProductOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiId0, - Parameters.operationId, + Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1430,7 +1377,7 @@ const getEntityStateByOperationOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByOperationHeaders + headersMapper: Mappers.TagGetEntityStateByProductHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1439,14 +1386,13 @@ const getEntityStateByOperationOperationSpec: msRest.OperationSpec = { serializer }; -const getByOperationOperationSpec: msRest.OperationSpec = { +const getByProductOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiId0, - Parameters.operationId, + Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1459,7 +1405,7 @@ const getByOperationOperationSpec: msRest.OperationSpec = { responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByOperationHeaders + headersMapper: Mappers.TagGetByProductHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1468,14 +1414,13 @@ const getByOperationOperationSpec: msRest.OperationSpec = { serializer }; -const assignToOperationOperationSpec: msRest.OperationSpec = { +const assignToProductOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiId0, - Parameters.operationId, + Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1483,7 +1428,6 @@ const assignToOperationOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -1500,14 +1444,13 @@ const assignToOperationOperationSpec: msRest.OperationSpec = { serializer }; -const detachFromOperationOperationSpec: msRest.OperationSpec = { +const detachFromProductOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.apiId0, - Parameters.operationId, + Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1515,7 +1458,6 @@ const detachFromOperationOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, Parameters.acceptLanguage ], responses: { @@ -1528,19 +1470,19 @@ const detachFromOperationOperationSpec: msRest.OperationSpec = { serializer }; -const listByProductOperationSpec: msRest.OperationSpec = { +const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.productId, Parameters.subscriptionId ], queryParameters: [ Parameters.filter0, Parameters.top, Parameters.skip, + Parameters.scope0, Parameters.apiVersion ], headerParameters: [ @@ -1557,13 +1499,12 @@ const listByProductOperationSpec: msRest.OperationSpec = { serializer }; -const getEntityStateByProductOperationSpec: msRest.OperationSpec = { +const getEntityStateOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1575,7 +1516,7 @@ const getEntityStateByProductOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - headersMapper: Mappers.TagGetEntityStateByProductHeaders + headersMapper: Mappers.TagGetEntityStateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1584,13 +1525,12 @@ const getEntityStateByProductOperationSpec: msRest.OperationSpec = { serializer }; -const getByProductOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1603,7 +1543,7 @@ const getByProductOperationSpec: msRest.OperationSpec = { responses: { 200: { bodyMapper: Mappers.TagContract, - headersMapper: Mappers.TagGetByProductHeaders + headersMapper: Mappers.TagGetHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1612,13 +1552,12 @@ const getByProductOperationSpec: msRest.OperationSpec = { serializer }; -const assignToProductOperationSpec: msRest.OperationSpec = { +const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1626,15 +1565,24 @@ const assignToProductOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagCreateUpdateParameters, + required: true + } + }, responses: { 200: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.TagContract + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -1643,13 +1591,44 @@ const assignToProductOperationSpec: msRest.OperationSpec = { serializer }; -const detachFromProductOperationSpec: msRest.OperationSpec = { +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagCreateUpdateParameters, + 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}/products/{productId}/tags/{tagId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.productId, Parameters.tagId, Parameters.subscriptionId ], @@ -1657,7 +1636,7 @@ const detachFromProductOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -1670,7 +1649,7 @@ const detachFromProductOperationSpec: msRest.OperationSpec = { serializer }; -const listByServiceNextOperationSpec: msRest.OperationSpec = { +const listByOperationNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", @@ -1685,7 +1664,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.TagCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -1712,7 +1691,7 @@ const listByApiNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByOperationNextOperationSpec: msRest.OperationSpec = { +const listByProductNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", @@ -1733,7 +1712,7 @@ const listByOperationNextOperationSpec: msRest.OperationSpec = { serializer }; -const listByProductNextOperationSpec: msRest.OperationSpec = { +const listByServiceNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", path: "{nextLink}", diff --git a/packages/@azure/arm-apimanagement/lib/operations/tagResource.ts b/packages/@azure/arm-apimanagement/lib/operations/tagResource.ts index b7f4204d6d20..b662081c7fcb 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/tagResource.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/tagResource.ts @@ -111,7 +111,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.TagResourceCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -132,7 +132,7 @@ const listByServiceNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.TagResourceCollection }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/packages/@azure/arm-apimanagement/lib/operations/tenantAccess.ts b/packages/@azure/arm-apimanagement/lib/operations/tenantAccess.ts index de2168d3aff9..79018f752dfd 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/tenantAccess.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/tenantAccess.ts @@ -27,7 +27,39 @@ export class TenantAccess { } /** - * Get tenant access information details. + * Tenant access metadata + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(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 + */ + getEntityTag(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 + */ + getEntityTag(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * 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 @@ -102,7 +134,7 @@ export class TenantAccess { } /** - * Regenerate primary access key. + * Regenerate primary access key * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -134,7 +166,7 @@ export class TenantAccess { } /** - * Regenerate secondary access key. + * Regenerate secondary access key * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * @param [options] The optional parameters @@ -168,6 +200,32 @@ export class TenantAccess { // Operation Specifications const serializer = new msRest.Serializer(Mappers); +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.TenantAccessGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", @@ -189,7 +247,7 @@ const getOperationSpec: msRest.OperationSpec = { headersMapper: Mappers.TenantAccessGetHeaders }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -208,7 +266,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { diff --git a/packages/@azure/arm-apimanagement/lib/operations/user.ts b/packages/@azure/arm-apimanagement/lib/operations/user.ts index f734a2925dc9..43a8c279ccc7 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/user.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/user.ts @@ -26,38 +26,6 @@ export class User { this.client = client; } - /** - * Returns calling user identity information. - * @param resourceGroupName The name of the resource group. - * @param serviceName The name of the API Management service. - * @param [options] The optional parameters - * @returns Promise - */ - getIdentity(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 - */ - getIdentity(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 - */ - getIdentity(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getIdentity(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serviceName, - options - }, - getIdentityOperationSpec, - callback) as Promise; - } - /** * Lists a collection of registered users in the specified service instance. * @param resourceGroupName The name of the resource group. @@ -94,32 +62,32 @@ export class User { * Gets the entity state (Etag) version of the user specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - getEntityTag(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - getEntityTag(resourceGroupName: string, serviceName: string, uid: string, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User 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, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getEntityTag(resourceGroupName: string, serviceName: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, options }, getEntityTagOperationSpec, @@ -130,32 +98,32 @@ export class User { * Gets the details of the user specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - get(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, uid: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serviceName: string, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serviceName: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, options }, getOperationSpec, @@ -166,35 +134,35 @@ export class User { * Creates or Updates a user. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserCreateParameters, options?: Models.UserCreateOrUpdateOptionalParams): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserCreateParameters, options?: Models.UserCreateOrUpdateOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserCreateParameters, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserCreateParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create or update parameters. * @param options The optional parameters * @param callback The callback */ - createOrUpdate(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserCreateParameters, options: Models.UserCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserCreateParameters, options?: Models.UserCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserCreateParameters, options: Models.UserCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserCreateParameters, options?: Models.UserCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, parameters, options }, @@ -206,41 +174,41 @@ export class User { * Updates the details of the user specified by its identifier. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @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 */ - update(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @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 callback The callback */ - update(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Update parameters. * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header * response of the GET request or it should be * for unconditional update. * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, parameters, ifMatch, options @@ -253,38 +221,38 @@ export class User { * Deletes specific user. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @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, uid: string, ifMatch: string, options?: Models.UserDeleteMethodOptionalParams): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: Models.UserDeleteMethodOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @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, uid: string, ifMatch: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, userId: 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 uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @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, uid: string, ifMatch: string, options: Models.UserDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, uid: string, ifMatch: string, options?: Models.UserDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options: Models.UserDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, userId: string, ifMatch: string, options?: Models.UserDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, ifMatch, options }, @@ -297,32 +265,32 @@ export class User { * developer portal. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - generateSsoUrl(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase): Promise; + generateSsoUrl(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - generateSsoUrl(resourceGroupName: string, serviceName: string, uid: string, callback: msRest.ServiceCallback): void; + generateSsoUrl(resourceGroupName: string, serviceName: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - generateSsoUrl(resourceGroupName: string, serviceName: string, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - generateSsoUrl(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + generateSsoUrl(resourceGroupName: string, serviceName: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + generateSsoUrl(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, options }, generateSsoUrlOperationSpec, @@ -333,35 +301,35 @@ export class User { * Gets the Shared Access Authorization Token for the User. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. * @param [options] The optional parameters * @returns Promise */ - getSharedAccessToken(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserTokenParameters, options?: msRest.RequestOptionsBase): Promise; + getSharedAccessToken(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserTokenParameters, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. * @param callback The callback */ - getSharedAccessToken(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserTokenParameters, callback: msRest.ServiceCallback): void; + getSharedAccessToken(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserTokenParameters, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param parameters Create Authorization Token parameters. * @param options The optional parameters * @param callback The callback */ - getSharedAccessToken(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserTokenParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getSharedAccessToken(resourceGroupName: string, serviceName: string, uid: string, parameters: Models.UserTokenParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + getSharedAccessToken(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserTokenParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSharedAccessToken(resourceGroupName: string, serviceName: string, userId: string, parameters: Models.UserTokenParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, parameters, options }, @@ -400,31 +368,6 @@ export class User { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getIdentityOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identity", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serviceName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.CurrentUserIdentity - }, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - const listByServiceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users", @@ -437,6 +380,7 @@ const listByServiceOperationSpec: msRest.OperationSpec = { Parameters.filter0, Parameters.top, Parameters.skip, + Parameters.expandGroups, Parameters.apiVersion ], headerParameters: [ @@ -455,11 +399,11 @@ const listByServiceOperationSpec: msRest.OperationSpec = { const getEntityTagOperationSpec: msRest.OperationSpec = { httpMethod: "HEAD", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -481,11 +425,11 @@ const getEntityTagOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -508,18 +452,18 @@ const getOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch1, + Parameters.ifMatch0, Parameters.acceptLanguage ], requestBody: { @@ -531,10 +475,12 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { }, responses: { 200: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, + headersMapper: Mappers.UserCreateOrUpdateHeaders }, 201: { - bodyMapper: Mappers.UserContract + bodyMapper: Mappers.UserContract, + headersMapper: Mappers.UserCreateOrUpdateHeaders }, default: { bodyMapper: Mappers.ErrorResponse @@ -545,18 +491,18 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], requestBody: { @@ -577,11 +523,11 @@ const updateOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -590,7 +536,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.apiVersion ], headerParameters: [ - Parameters.ifMatch0, + Parameters.ifMatch1, Parameters.acceptLanguage ], responses: { @@ -605,11 +551,11 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const generateSsoUrlOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/generateSsoUrl", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ @@ -631,11 +577,11 @@ const generateSsoUrlOperationSpec: msRest.OperationSpec = { const getSharedAccessTokenOperationSpec: msRest.OperationSpec = { httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/token", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ diff --git a/packages/@azure/arm-apimanagement/lib/operations/userConfirmationPassword.ts b/packages/@azure/arm-apimanagement/lib/operations/userConfirmationPassword.ts new file mode 100644 index 000000000000..d9e3dbdaf146 --- /dev/null +++ b/packages/@azure/arm-apimanagement/lib/operations/userConfirmationPassword.ts @@ -0,0 +1,89 @@ +/* + * 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 Mappers from "../models/userConfirmationPasswordMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a UserConfirmationPassword. */ +export class UserConfirmationPassword { + private readonly client: ApiManagementClientContext; + + /** + * Create a UserConfirmationPassword. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Sends confirmation + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + send(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + send(resourceGroupName: string, serviceName: string, userId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param userId User identifier. Must be unique in the current API Management service instance. + * @param options The optional parameters + * @param callback The callback + */ + send(resourceGroupName: string, serviceName: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + send(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + userId, + options + }, + sendOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const sendOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/confirmations/password/send", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/packages/@azure/arm-apimanagement/lib/operations/userGroup.ts b/packages/@azure/arm-apimanagement/lib/operations/userGroup.ts index 847877be2284..0387dbc52c58 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/userGroup.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/userGroup.ts @@ -30,32 +30,32 @@ export class UserGroup { * Lists all user groups. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, serviceName: string, uid: string, options?: Models.UserGroupListOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, userId: string, options?: Models.UserGroupListOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, uid: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, uid: string, options: Models.UserGroupListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, serviceName: string, uid: string, options?: Models.UserGroupListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, serviceName: string, userId: string, options: Models.UserGroupListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, userId: string, options?: Models.UserGroupListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, options }, listOperationSpec, @@ -95,11 +95,11 @@ export class UserGroup { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/groups", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ diff --git a/packages/@azure/arm-apimanagement/lib/operations/userIdentities.ts b/packages/@azure/arm-apimanagement/lib/operations/userIdentities.ts index 0eccd89f7ed1..e84a1e21f620 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/userIdentities.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/userIdentities.ts @@ -27,35 +27,35 @@ export class UserIdentities { } /** - * Lists all user identities. + * List of all user identities. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase): Promise; + list(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, uid: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, uid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, serviceName: string, uid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, serviceName: string, userId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, userId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, options }, listOperationSpec, @@ -63,7 +63,7 @@ export class UserIdentities { } /** - * Lists all user identities. + * List of all user identities. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -95,11 +95,11 @@ export class UserIdentities { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/identities", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ diff --git a/packages/@azure/arm-apimanagement/lib/operations/userSubscription.ts b/packages/@azure/arm-apimanagement/lib/operations/userSubscription.ts index e55dc4a90e42..bf8816577ff9 100644 --- a/packages/@azure/arm-apimanagement/lib/operations/userSubscription.ts +++ b/packages/@azure/arm-apimanagement/lib/operations/userSubscription.ts @@ -30,32 +30,32 @@ export class UserSubscription { * Lists the collection of subscriptions of the specified user. * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param [options] The optional parameters * @returns Promise */ - list(resourceGroupName: string, serviceName: string, uid: string, options?: Models.UserSubscriptionListOptionalParams): Promise; + list(resourceGroupName: string, serviceName: string, userId: string, options?: Models.UserSubscriptionListOptionalParams): Promise; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, uid: string, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, userId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. - * @param uid User identifier. Must be unique in the current API Management service instance. + * @param userId User identifier. Must be unique in the current API Management service instance. * @param options The optional parameters * @param callback The callback */ - list(resourceGroupName: string, serviceName: string, uid: string, options: Models.UserSubscriptionListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, serviceName: string, uid: string, options?: Models.UserSubscriptionListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(resourceGroupName: string, serviceName: string, userId: string, options: Models.UserSubscriptionListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, userId: string, options?: Models.UserSubscriptionListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serviceName, - uid, + userId, options }, listOperationSpec, @@ -95,11 +95,11 @@ export class UserSubscription { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{uid}/subscriptions", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", urlParameters: [ Parameters.resourceGroupName, Parameters.serviceName, - Parameters.uid, + Parameters.userId, Parameters.subscriptionId ], queryParameters: [ diff --git a/packages/@azure/arm-apimanagement/package.json b/packages/@azure/arm-apimanagement/package.json index 0e78f1e608e0..35f9033324b6 100644 --- a/packages/@azure/arm-apimanagement/package.json +++ b/packages/@azure/arm-apimanagement/package.json @@ -4,8 +4,8 @@ "description": "ApiManagementClient Library with typescript type definitions for node.js and browser.", "version": "4.4.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-apimanagement", @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-apimanagement.js.map'\" -o ./dist/arm-apimanagement.min.js ./dist/arm-apimanagement.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/packages/@azure/arm-apimanagement/rollup.config.js b/packages/@azure/arm-apimanagement/rollup.config.js index a55a7153ed92..dc0dc5622703 100644 --- a/packages/@azure/arm-apimanagement/rollup.config.js +++ b/packages/@azure/arm-apimanagement/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/apiManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/apiManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-apimanagement.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;