From 3027094733c07698c7fd237dfb882bc341765528 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 11 Apr 2019 16:28:49 +0000 Subject: [PATCH 1/2] Generated from ab0feb1a7675accf399edbf5a4c378d844dcb8fa fix edits --- .../arm-apimanagement/LICENSE.txt | 2 +- sdk/apimanagement/arm-apimanagement/README.md | 31 +- .../lib/apiManagementClient.ts | 163 + .../lib/apiManagementClientContext.ts | 63 + .../lib/models/apiDiagnosticMappers.ts | 92 + .../lib/models/apiExportMappers.ts | 17 + .../lib/models/apiIssueAttachmentMappers.ts | 92 + .../lib/models/apiIssueCommentMappers.ts | 92 + .../lib/models/apiIssueMappers.ts | 93 + .../models/apiManagementOperationsMappers.ts | 17 + .../lib/models/apiManagementServiceMappers.ts | 93 + .../models/apiManagementServiceSkusMappers.ts | 18 + .../lib/models/apiMappers.ts | 104 + .../lib/models/apiOperationMappers.ts | 93 + .../lib/models/apiOperationPolicyMappers.ts | 92 + .../lib/models/apiPolicyMappers.ts | 92 + .../lib/models/apiProductMappers.ts | 89 + .../lib/models/apiReleaseMappers.ts | 92 + .../lib/models/apiRevisionMappers.ts | 17 + .../lib/models/apiSchemaMappers.ts | 92 + .../lib/models/apiTagDescriptionMappers.ts | 93 + .../lib/models/apiVersionSetMappers.ts | 93 + .../lib/models/authorizationServerMappers.ts | 92 + .../lib/models/backendMappers.ts | 93 + .../lib/models/cacheMappers.ts | 93 + .../lib/models/certificateMappers.ts | 93 + .../lib/models/delegationSettingsMappers.ts | 90 + .../lib/models/diagnosticMappers.ts | 92 + .../lib/models/emailTemplateMappers.ts | 92 + .../lib/models/groupMappers.ts | 94 + .../lib/models/groupUserMappers.ts | 89 + .../lib/models/identityProviderMappers.ts | 93 + .../arm-apimanagement/lib/models/index.ts | 15011 ++++++++++++++++ .../lib/models/issueMappers.ts | 90 + .../lib/models/loggerMappers.ts | 93 + .../arm-apimanagement/lib/models/mappers.ts | 10250 +++++++++++ .../lib/models/networkStatusMappers.ts | 18 + .../lib/models/notificationMappers.ts | 89 + .../notificationRecipientEmailMappers.ts | 89 + .../notificationRecipientUserMappers.ts | 89 + .../models/openIdConnectProviderMappers.ts | 93 + .../lib/models/operationOperationsMappers.ts | 28 + .../lib/models/parameters.ts | 794 + .../lib/models/policyMappers.ts | 92 + .../lib/models/policySnippetMappers.ts | 17 + .../lib/models/productApiMappers.ts | 89 + .../lib/models/productGroupMappers.ts | 89 + .../lib/models/productMappers.ts | 102 + .../lib/models/productPolicyMappers.ts | 92 + .../lib/models/productSubscriptionsMappers.ts | 89 + .../lib/models/propertyMappers.ts | 93 + .../lib/models/quotaByCounterKeysMappers.ts | 18 + .../lib/models/quotaByPeriodKeysMappers.ts | 17 + .../lib/models/regionMappers.ts | 17 + .../lib/models/reportsMappers.ts | 18 + .../lib/models/signInSettingsMappers.ts | 90 + .../lib/models/signUpSettingsMappers.ts | 90 + .../lib/models/subscriptionMappers.ts | 94 + .../lib/models/tagMappers.ts | 100 + .../lib/models/tagResourceMappers.ts | 29 + .../lib/models/tenantAccessGitMappers.ts | 17 + .../lib/models/tenantAccessMappers.ts | 19 + .../lib/models/tenantConfigurationMappers.ts | 22 + .../models/userConfirmationPasswordMappers.ts | 15 + .../lib/models/userGroupMappers.ts | 89 + .../lib/models/userIdentitiesMappers.ts | 17 + .../lib/models/userMappers.ts | 97 + .../lib/models/userSubscriptionMappers.ts | 89 + .../arm-apimanagement/lib/operations/api.ts | 618 + .../lib/operations/apiDiagnostic.ts | 536 + .../lib/operations/apiExport.ts | 105 + .../lib/operations/apiIssue.ts | 523 + .../lib/operations/apiIssueAttachment.ts | 463 + .../lib/operations/apiIssueComment.ts | 463 + .../lib/operations/apiManagementOperations.ts | 123 + .../lib/operations/apiManagementService.ts | 801 + .../operations/apiManagementServiceSkus.ts | 138 + .../lib/operations/apiOperation.ts | 555 + .../lib/operations/apiOperationPolicy.ts | 424 + .../lib/operations/apiPolicy.ts | 384 + .../lib/operations/apiProduct.ts | 144 + .../lib/operations/apiRelease.ts | 540 + .../lib/operations/apiRevision.ts | 144 + .../lib/operations/apiSchema.ts | 465 + .../lib/operations/apiTagDescription.ts | 454 + .../lib/operations/apiVersionSet.ts | 506 + .../lib/operations/authorizationServer.ts | 491 + .../lib/operations/backend.ts | 577 + .../arm-apimanagement/lib/operations/cache.ts | 505 + .../lib/operations/certificate.ts | 424 + .../lib/operations/delegationSettings.ts | 288 + .../lib/operations/diagnostic.ts | 506 + .../lib/operations/emailTemplate.ts | 594 + .../arm-apimanagement/lib/operations/group.ts | 491 + .../lib/operations/groupUser.ts | 346 + .../lib/operations/identityProvider.ts | 504 + .../arm-apimanagement/lib/operations/index.ts | 71 + .../arm-apimanagement/lib/operations/issue.ts | 202 + .../lib/operations/logger.ts | 492 + .../lib/operations/networkStatus.ts | 167 + .../lib/operations/notification.ts | 281 + .../operations/notificationRecipientEmail.ts | 330 + .../operations/notificationRecipientUser.ts | 330 + .../lib/operations/openIdConnectProvider.ts | 491 + .../lib/operations/operationOperations.ts | 148 + .../lib/operations/policy.ts | 345 + .../lib/operations/policySnippet.ts | 88 + .../lib/operations/product.ts | 619 + .../lib/operations/productApi.ts | 366 + .../lib/operations/productGroup.ts | 357 + .../lib/operations/productPolicy.ts | 384 + .../lib/operations/productSubscriptions.ts | 147 + .../lib/operations/property.ts | 491 + .../lib/operations/quotaByCounterKeys.ts | 183 + .../lib/operations/quotaByPeriodKeys.ts | 192 + .../lib/operations/region.ts | 136 + .../lib/operations/reports.ts | 1124 ++ .../lib/operations/signInSettings.ts | 288 + .../lib/operations/signUpSettings.ts | 288 + .../lib/operations/subscription.ts | 635 + .../arm-apimanagement/lib/operations/tag.ts | 1734 ++ .../lib/operations/tagResource.ts | 139 + .../lib/operations/tenantAccess.ts | 334 + .../lib/operations/tenantAccessGit.ts | 201 + .../lib/operations/tenantConfiguration.ts | 297 + .../arm-apimanagement/lib/operations/user.ts | 630 + .../operations/userConfirmationPassword.ts | 89 + .../lib/operations/userGroup.ts | 144 + .../lib/operations/userIdentities.ts | 141 + .../lib/operations/userSubscription.ts | 144 + .../arm-apimanagement/package.json | 12 +- .../arm-apimanagement/rollup.config.js | 22 +- .../arm-apimanagement/tsconfig.json | 2 +- 133 files changed, 54823 insertions(+), 29 deletions(-) create mode 100644 sdk/apimanagement/arm-apimanagement/lib/apiManagementClient.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/apiManagementClientContext.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiDiagnosticMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiExportMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiIssueCommentMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiIssueMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiManagementOperationsMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiManagementServiceMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiManagementServiceSkusMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiOperationMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiPolicyMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiProductMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiReleaseMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiRevisionMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiSchemaMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiTagDescriptionMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/apiVersionSetMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/authorizationServerMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/backendMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/cacheMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/certificateMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/delegationSettingsMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/diagnosticMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/emailTemplateMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/groupMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/groupUserMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/identityProviderMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/index.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/issueMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/loggerMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/mappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/networkStatusMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/notificationMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientEmailMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientUserMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/openIdConnectProviderMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/operationOperationsMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/parameters.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/policyMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/policySnippetMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/productApiMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/productGroupMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/productMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/productPolicyMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/productSubscriptionsMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/propertyMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/quotaByCounterKeysMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/quotaByPeriodKeysMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/regionMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/reportsMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/signInSettingsMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/signUpSettingsMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/subscriptionMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/tagMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/tagResourceMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessGitMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/tenantConfigurationMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/userConfirmationPasswordMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/userGroupMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/userIdentitiesMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/userMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/models/userSubscriptionMappers.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/api.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiDiagnostic.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiExport.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiIssue.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueAttachment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueComment.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementOperations.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementServiceSkus.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiOperation.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiOperationPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiProduct.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiRelease.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiRevision.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiSchema.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiTagDescription.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/apiVersionSet.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/authorizationServer.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/backend.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/cache.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/certificate.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/delegationSettings.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/diagnostic.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/emailTemplate.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/group.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/groupUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/identityProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/index.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/issue.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/logger.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/networkStatus.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/notification.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientEmail.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientUser.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/openIdConnectProvider.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/operationOperations.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/policy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/policySnippet.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/product.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/productApi.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/productGroup.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/productPolicy.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/productSubscriptions.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/property.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/quotaByCounterKeys.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/region.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/reports.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/signInSettings.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/signUpSettings.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/subscription.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/tag.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/tagResource.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccess.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccessGit.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/tenantConfiguration.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/user.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/userConfirmationPassword.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/userGroup.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/userIdentities.ts create mode 100644 sdk/apimanagement/arm-apimanagement/lib/operations/userSubscription.ts diff --git a/sdk/apimanagement/arm-apimanagement/LICENSE.txt b/sdk/apimanagement/arm-apimanagement/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/apimanagement/arm-apimanagement/LICENSE.txt +++ b/sdk/apimanagement/arm-apimanagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 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/sdk/apimanagement/arm-apimanagement/README.md b/sdk/apimanagement/arm-apimanagement/README.md index c880a599686f..862f3d10a47b 100644 --- a/sdk/apimanagement/arm-apimanagement/README.md +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/README.png) diff --git a/sdk/apimanagement/arm-apimanagement/lib/apiManagementClient.ts b/sdk/apimanagement/arm-apimanagement/lib/apiManagementClient.ts new file mode 100644 index 000000000000..454cda6b424c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/apiManagementClient.ts @@ -0,0 +1,163 @@ +/* + * 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/mappers"; +import * as operations from "./operations"; +import { ApiManagementClientContext } from "./apiManagementClientContext"; + + +class ApiManagementClient extends ApiManagementClientContext { + // Operation groups + api: operations.Api; + 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; + 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; + 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; + openIdConnectProvider: operations.OpenIdConnectProvider; + policy: operations.Policy; + policySnippet: operations.PolicySnippet; + signInSettings: operations.SignInSettings; + signUpSettings: operations.SignUpSettings; + delegationSettings: operations.DelegationSettings; + product: operations.Product; + productApi: operations.ProductApi; + productGroup: operations.ProductGroup; + productSubscriptions: operations.ProductSubscriptions; + productPolicy: operations.ProductPolicy; + property: operations.Property; + quotaByCounterKeys: operations.QuotaByCounterKeys; + quotaByPeriodKeys: operations.QuotaByPeriodKeys; + region: operations.Region; + reports: operations.Reports; + subscription: operations.Subscription; + tagResource: operations.TagResource; + tenantAccess: operations.TenantAccess; + tenantAccessGit: operations.TenantAccessGit; + tenantConfiguration: operations.TenantConfiguration; + user: operations.User; + userGroup: operations.UserGroup; + userSubscription: operations.UserSubscription; + userIdentities: operations.UserIdentities; + userConfirmationPassword: operations.UserConfirmationPassword; + apiExport: operations.ApiExport; + + /** + * Initializes a new instance of the ApiManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ApiManagementClientOptions) { + super(credentials, subscriptionId, options); + this.api = new operations.Api(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.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.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.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); + this.product = new operations.Product(this); + this.productApi = new operations.ProductApi(this); + this.productGroup = new operations.ProductGroup(this); + this.productSubscriptions = new operations.ProductSubscriptions(this); + this.productPolicy = new operations.ProductPolicy(this); + this.property = new operations.Property(this); + this.quotaByCounterKeys = new operations.QuotaByCounterKeys(this); + this.quotaByPeriodKeys = new operations.QuotaByPeriodKeys(this); + this.region = new operations.Region(this); + this.reports = new operations.Reports(this); + this.subscription = new operations.Subscription(this); + this.tagResource = new operations.TagResource(this); + this.tenantAccess = new operations.TenantAccess(this); + this.tenantAccessGit = new operations.TenantAccessGit(this); + this.tenantConfiguration = new operations.TenantConfiguration(this); + this.user = new operations.User(this); + this.userGroup = new operations.UserGroup(this); + this.userSubscription = new operations.UserSubscription(this); + this.userIdentities = new operations.UserIdentities(this); + this.userConfirmationPassword = new operations.UserConfirmationPassword(this); + this.apiExport = new operations.ApiExport(this); + } +} + +// Operation Specifications + +export { + ApiManagementClient, + ApiManagementClientContext, + Models as ApiManagementModels, + Mappers as ApiManagementMappers +}; +export * from "./operations"; diff --git a/sdk/apimanagement/arm-apimanagement/lib/apiManagementClientContext.ts b/sdk/apimanagement/arm-apimanagement/lib/apiManagementClientContext.ts new file mode 100644 index 000000000000..75256df48149 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/apiManagementClientContext.ts @@ -0,0 +1,63 @@ +/* + * 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 Models from "./models"; +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; + +const packageName = "@azure/arm-apimanagement"; +const packageVersion = "4.4.0"; + +export class ApiManagementClientContext extends msRestAzure.AzureServiceClient { + credentials: msRest.ServiceClientCredentials; + apiVersion?: string; + subscriptionId: string; + + /** + * Initializes a new instance of the ApiManagementClient class. + * @param credentials Credentials needed for the client to connect to Azure. + * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure + * subscription. The subscription ID forms part of the URI for every service call. + * @param [options] The parameter options + */ + constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ApiManagementClientOptions) { + if (credentials == undefined) { + throw new Error('\'credentials\' cannot be null.'); + } + if (subscriptionId == undefined) { + throw new Error('\'subscriptionId\' cannot be null.'); + } + + if (!options) { + options = {}; + } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + + super(credentials, options); + + this.apiVersion = '2019-01-01'; + this.acceptLanguage = 'en-US'; + this.longRunningOperationRetryTimeout = 30; + this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; + this.requestContentType = "application/json; charset=utf-8"; + this.credentials = credentials; + this.subscriptionId = subscriptionId; + + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + this.acceptLanguage = options.acceptLanguage; + } + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; + } + } +} diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/apiDiagnosticMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiDiagnosticMappers.ts new file mode 100644 index 000000000000..eacc7da2f1c9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiDiagnosticMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + DiagnosticCollection, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiExportMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiExportMappers.ts new file mode 100644 index 000000000000..15da5288a37b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiExportMappers.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 { + ApiExportResult, + ApiExportResultValue, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts new file mode 100644 index 000000000000..926c4dcb53a4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueAttachmentMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + IssueAttachmentCollection, + IssueAttachmentContract, + Resource, + BaseResource, + ErrorResponse, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueCommentMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueCommentMappers.ts new file mode 100644 index 000000000000..6735b688f3cb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueCommentMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + IssueCommentCollection, + IssueCommentContract, + Resource, + BaseResource, + ErrorResponse, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueMappers.ts new file mode 100644 index 000000000000..ecae5c3b0e66 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiIssueMappers.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 { + IssueCollection, + IssueContract, + Resource, + BaseResource, + ErrorResponse, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementOperationsMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementOperationsMappers.ts new file mode 100644 index 000000000000..2edcc577920e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementOperationsMappers.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 { + OperationListResult, + Operation, + OperationDisplay, + CloudError +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementServiceMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementServiceMappers.ts new file mode 100644 index 000000000000..a2b71d1b40e9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementServiceMappers.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 { + ApiManagementServiceBackupRestoreParameters, + ApiManagementServiceResource, + ApimResource, + BaseResource, + HostnameConfiguration, + CertificateInformation, + VirtualNetworkConfiguration, + AdditionalLocation, + ApiManagementServiceSkuProperties, + CertificateConfiguration, + ApiManagementServiceIdentity, + CloudError, + ApiManagementServiceUpdateParameters, + ApiManagementServiceListResult, + ApiManagementServiceGetSsoTokenResult, + ApiManagementServiceCheckNameAvailabilityParameters, + ApiManagementServiceNameAvailabilityResult, + ApiManagementServiceApplyNetworkConfigurationParameters, + 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, + ApiVersionSetContract, + AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, + BackendContract, + BackendProperties, + BackendServiceFabricClusterProperties, + X509CertificateName, + BackendCredentialsContract, + BackendAuthorizationHeaderCredentials, + BackendProxyContract, + BackendTlsProperties, + CacheContract, + CertificateContract, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + UserContract, + UserIdentityContract, + GroupContractProperties, + GroupContract, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementServiceSkusMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiManagementServiceSkusMappers.ts new file mode 100644 index 000000000000..41b68c6abb39 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/apiMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiMappers.ts new file mode 100644 index 000000000000..6ec21f8d3a38 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiMappers.ts @@ -0,0 +1,104 @@ +/* + * 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 { + ApiCollection, + ApiContract, + Resource, + BaseResource, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + ApiVersionSetContractDetails, + ErrorResponse, + ErrorFieldContract, + ApiGetEntityTagHeaders, + ApiGetHeaders, + ApiCreateOrUpdateParameter, + ApiCreateOrUpdatePropertiesWsdlSelector, + ApiCreateOrUpdateHeaders, + ApiUpdateContract, + TagResourceCollection, + TagResourceContract, + TagTagResourceContractProperties, + ApiTagResourceContractProperties, + ApiEntityBaseContract, + OperationTagResourceContractProperties, + ProductTagResourceContractProperties, + ProductEntityBaseParameters, + ApiContractProperties, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiOperationMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiOperationMappers.ts new file mode 100644 index 000000000000..5da6846d0b69 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiOperationMappers.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 { + OperationCollection, + OperationContract, + Resource, + BaseResource, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ErrorResponse, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts new file mode 100644 index 000000000000..be16355253aa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiOperationPolicyMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + PolicyCollection, + PolicyContract, + Resource, + BaseResource, + ErrorResponse, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiPolicyMappers.ts new file mode 100644 index 000000000000..e9632a947090 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiPolicyMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + PolicyCollection, + PolicyContract, + Resource, + BaseResource, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiProductMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiProductMappers.ts new file mode 100644 index 000000000000..ccec44a86cba --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiProductMappers.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. + */ + +export { + ProductCollection, + ProductContract, + Resource, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiReleaseMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiReleaseMappers.ts new file mode 100644 index 000000000000..4281efeb7846 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiReleaseMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + ApiReleaseCollection, + ApiReleaseContract, + Resource, + BaseResource, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiRevisionMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiRevisionMappers.ts new file mode 100644 index 000000000000..4ba5fea5c158 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/apiSchemaMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiSchemaMappers.ts new file mode 100644 index 000000000000..9a05facaef86 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiSchemaMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + SchemaCollection, + SchemaContract, + Resource, + BaseResource, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/apiTagDescriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiTagDescriptionMappers.ts new file mode 100644 index 000000000000..03562168e8bf --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/apiVersionSetMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/apiVersionSetMappers.ts new file mode 100644 index 000000000000..04df7c4be7a8 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/apiVersionSetMappers.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 { + ApiVersionSetCollection, + ApiVersionSetContract, + Resource, + BaseResource, + ErrorResponse, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/authorizationServerMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/authorizationServerMappers.ts new file mode 100644 index 000000000000..ed7e01299745 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/authorizationServerMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + AuthorizationServerCollection, + AuthorizationServerContract, + Resource, + BaseResource, + TokenBodyParameterContract, + 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, + ApiVersionSetContract, + 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/sdk/apimanagement/arm-apimanagement/lib/models/backendMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/backendMappers.ts new file mode 100644 index 000000000000..2fb437cc95c4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/backendMappers.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 { + BackendCollection, + BackendContract, + Resource, + BaseResource, + BackendProperties, + BackendServiceFabricClusterProperties, + X509CertificateName, + BackendCredentialsContract, + BackendAuthorizationHeaderCredentials, + BackendProxyContract, + BackendTlsProperties, + ErrorResponse, + 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, + ApiVersionSetContract, + AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + 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/sdk/apimanagement/arm-apimanagement/lib/models/cacheMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/cacheMappers.ts new file mode 100644 index 000000000000..53ee58c94f2b --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/certificateMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/certificateMappers.ts new file mode 100644 index 000000000000..01876f9cbd3f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/certificateMappers.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 { + CertificateCollection, + CertificateContract, + Resource, + BaseResource, + ErrorResponse, + ErrorFieldContract, + 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, + ApiVersionSetContract, + AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, + BackendContract, + BackendProperties, + BackendServiceFabricClusterProperties, + X509CertificateName, + BackendCredentialsContract, + BackendAuthorizationHeaderCredentials, + BackendProxyContract, + BackendTlsProperties, + CacheContract, + 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/sdk/apimanagement/arm-apimanagement/lib/models/delegationSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/delegationSettingsMappers.ts new file mode 100644 index 000000000000..b7d0bee12d4e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/delegationSettingsMappers.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 { + DelegationSettingsGetEntityTagHeaders, + ErrorResponse, + ErrorFieldContract, + PortalDelegationSettings, + Resource, + BaseResource, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + DelegationSettingsGetHeaders, + 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, + CacheContract, + CertificateContract, + ApimResource, + ApiManagementServiceUpdateParameters, + HostnameConfiguration, + CertificateInformation, + VirtualNetworkConfiguration, + AdditionalLocation, + ApiManagementServiceSkuProperties, + CertificateConfiguration, + ApiManagementServiceIdentity, + EmailTemplateContract, + EmailTemplateParametersContractProperties, + UserContract, + UserIdentityContract, + GroupContractProperties, + GroupContract, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/diagnosticMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/diagnosticMappers.ts new file mode 100644 index 000000000000..f307ca1360a0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/diagnosticMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + DiagnosticCollection, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/emailTemplateMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/emailTemplateMappers.ts new file mode 100644 index 000000000000..7a6a461ac5aa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/emailTemplateMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + EmailTemplateCollection, + EmailTemplateContract, + Resource, + BaseResource, + EmailTemplateParametersContractProperties, + 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, + ApiVersionSetContract, + AuthorizationServerUpdateContract, + TokenBodyParameterContract, + AuthorizationServerContract, + BackendReconnectContract, + BackendContract, + BackendProperties, + BackendServiceFabricClusterProperties, + X509CertificateName, + BackendCredentialsContract, + BackendAuthorizationHeaderCredentials, + BackendProxyContract, + BackendTlsProperties, + CacheContract, + CertificateContract, + ApimResource, + ApiManagementServiceUpdateParameters, + HostnameConfiguration, + CertificateInformation, + VirtualNetworkConfiguration, + AdditionalLocation, + ApiManagementServiceSkuProperties, + CertificateConfiguration, + ApiManagementServiceIdentity, + 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/sdk/apimanagement/arm-apimanagement/lib/models/groupMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/groupMappers.ts new file mode 100644 index 000000000000..c034d6354b75 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/groupMappers.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + GroupCollection, + GroupContract, + Resource, + BaseResource, + 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, + 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, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/groupUserMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/groupUserMappers.ts new file mode 100644 index 000000000000..edcab03e39dc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/groupUserMappers.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. + */ + +export { + UserCollection, + UserContract, + Resource, + BaseResource, + UserIdentityContract, + 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, + 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, + GroupContract, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/identityProviderMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/identityProviderMappers.ts new file mode 100644 index 000000000000..3c2fc61a9de7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/identityProviderMappers.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 { + IdentityProviderList, + IdentityProviderContract, + Resource, + BaseResource, + ErrorResponse, + 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, + 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, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/index.ts b/sdk/apimanagement/arm-apimanagement/lib/models/index.ts new file mode 100644 index 000000000000..22d412a45af5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/index.ts @@ -0,0 +1,15011 @@ +/* + * 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 { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export { BaseResource, CloudError }; + + +/** + * @interface + * An interface representing ErrorFieldContract. + * Error Field contract. + * + */ +export interface ErrorFieldContract { + /** + * @member {string} [code] Property level error code. + */ + code?: string; + /** + * @member {string} [message] Human-readable representation of property-level + * error. + */ + message?: string; + /** + * @member {string} [target] Property name. + */ + target?: string; +} + +/** + * @interface + * An interface representing ErrorResponseBody. + * Error Body contract. + * + */ +export interface ErrorResponseBody { + /** + * @member {string} [code] Service-defined error code. This code serves as a + * sub-status for the HTTP error code specified in the response. + */ + code?: string; + /** + * @member {string} [message] Human-readable representation of the error. + */ + message?: string; + /** + * @member {ErrorFieldContract[]} [details] The list of invalid fields send + * in request, in case of validation error. + */ + details?: ErrorFieldContract[]; +} + +/** + * @interface + * An interface representing ErrorResponse. + * Error Response. + * + */ +export interface ErrorResponse { + /** + * @member {string} [code] Service-defined error code. This code serves as a + * sub-status for the HTTP error code specified in the response. + */ + code?: string; + /** + * @member {string} [message] Human-readable representation of the error. + */ + message?: string; + /** + * @member {ErrorFieldContract[]} [details] The list of invalid fields send + * in request, in case of validation error. + */ + 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. + * The Resource definition. + * + * @extends BaseResource + */ +export interface Resource 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; + /** + * @member {string} [type] Resource type for API Management resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly type?: string; +} + +/** + * @interface + * An interface representing ApiExportResultValue. + * The object defining the schema of the exported Api Detail + * + */ +export interface ApiExportResultValue { + /** + * @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 ApiExportResult. + * API Export result. + * + */ +export interface ApiExportResult { + /** + * @member {string} [id] ResourceId of the API which was exported. + */ + id?: string; + /** + * @member {ExportResultFormat} [exportResultFormat] Format in which the Api + * Details are exported to the Storage Blob with Sas Key valid for 5 minutes. + * Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi' + */ + exportResultFormat?: ExportResultFormat; + /** + * @member {ApiExportResultValue} [value] The object defining the schema of + * the exported Api Detail + */ + value?: ApiExportResultValue; +} + +/** + * @interface + * An interface representing ProductEntityBaseParameters. + * Product Entity Base Parameters + * + */ +export interface ProductEntityBaseParameters { + /** + * @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; +} + +/** + * @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} + */ + id?: string; + /** + * @member {string} name Product name. + */ + name: string; +} + +/** + * @interface + * An interface representing OperationTagResourceContractProperties. + * Operation Entity contract Properties. + * + */ +export interface OperationTagResourceContractProperties { + /** + * @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} [apiName] Api Name. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly apiName?: string; + /** + * @member {string} [apiRevision] Api Revision. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly apiRevision?: string; + /** + * @member {string} [apiVersion] Api Version. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + 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 SubscriptionKeyParameterNamesContract. + * Subscription key parameter names details. + * + */ +export interface SubscriptionKeyParameterNamesContract { + /** + * @member {string} [header] Subscription key header name. + */ + header?: string; + /** + * @member {string} [query] Subscription key query string parameter name. + */ + query?: string; +} + +/** + * @interface + * An interface representing OpenIdAuthenticationSettingsContract. + * API OAuth2 Authentication settings details. + * + */ +export interface OpenIdAuthenticationSettingsContract { + /** + * @member {string} [openidProviderId] OAuth authorization server identifier. + */ + openidProviderId?: string; + /** + * @member {BearerTokenSendingMethods[]} [bearerTokenSendingMethods] How to + * send token to the server. + */ + bearerTokenSendingMethods?: BearerTokenSendingMethods[]; +} + +/** + * @interface + * An interface representing OAuth2AuthenticationSettingsContract. + * API OAuth2 Authentication settings details. + * + */ +export interface OAuth2AuthenticationSettingsContract { + /** + * @member {string} [authorizationServerId] OAuth authorization server + * identifier. + */ + authorizationServerId?: string; + /** + * @member {string} [scope] operations scope. + */ + scope?: string; +} + +/** + * @interface + * An interface representing AuthenticationSettingsContract. + * API Authentication Settings. + * + */ +export interface AuthenticationSettingsContract { + /** + * @member {OAuth2AuthenticationSettingsContract} [oAuth2] OAuth2 + * Authentication settings + */ + 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; +} + +/** + * @interface + * An interface representing ApiVersionSetContractDetails. + * An API Version Set contains the common configuration for a set of API + * Versions relating + * + */ +export interface ApiVersionSetContractDetails { + /** + * @member {string} [id] Identifier for existing API Version Set. Omit this + * 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. + */ + description?: string; + /** + * @member {VersioningScheme1} [versioningScheme] An value that determines + * where the API Version identifer will be located in a HTTP request. + * Possible values include: 'Segment', 'Query', 'Header' + */ + versioningScheme?: VersioningScheme1; + /** + * @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; +} + +/** + * @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. + * API base contract details. + * + */ +export interface ApiEntityBaseContract { + /** + * @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. + */ + 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; + /** + * @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; +} + +/** + * @interface + * An interface representing ApiContractProperties. + * Api Entity Properties + * + * @extends ApiEntityBaseContract + */ +export interface ApiContractProperties extends ApiEntityBaseContract { + /** + * @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. Cannot be more than 2000 characters long. + */ + 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. + */ + protocols?: Protocol[]; + /** + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details + */ + apiVersionSet?: ApiVersionSetContractDetails; +} + +/** + * @interface + * An interface representing ApiTagResourceContractProperties. + * API contract properties for the Tag Resources. + * + * @extends ApiEntityBaseContract + */ +export interface ApiTagResourceContractProperties extends ApiEntityBaseContract { + /** + * @member {string} [id] API identifier in the form /apis/{apiId}. + */ + id?: string; + /** + * @member {string} [name] API name. + */ + 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 + * 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. + */ + protocols?: Protocol[]; +} + +/** + * @interface + * An interface representing TagTagResourceContractProperties. + * Contract defining the Tag property in the Tag Resource Contract + * + */ +export interface TagTagResourceContractProperties { + /** + * @member {string} [id] Tag identifier + */ + id?: string; + /** + * @member {string} [name] Tag Name + */ + name?: string; +} + +/** + * @interface + * An interface representing TagResourceContract. + * TagResource contract properties. + * + */ +export interface TagResourceContract { + /** + * @member {TagTagResourceContractProperties} tag Tag associated with the + * resource. + */ + tag: TagTagResourceContractProperties; + /** + * @member {ApiTagResourceContractProperties} [api] Api associated with the + * tag. + */ + api?: ApiTagResourceContractProperties; + /** + * @member {OperationTagResourceContractProperties} [operation] Operation + * associated with the tag. + */ + operation?: OperationTagResourceContractProperties; + /** + * @member {ProductTagResourceContractProperties} [product] Product + * associated with the tag. + */ + product?: ProductTagResourceContractProperties; +} + +/** + * @interface + * An interface representing TagContract. + * Tag Contract details. + * + * @extends Resource + */ +export interface TagContract extends Resource { + /** + * @member {string} displayName Tag name. + */ + displayName: string; +} + +/** + * @interface + * An interface representing TagDescriptionContract. + * Contract details. + * + * @extends Resource + */ +export interface TagDescriptionContract extends Resource { + /** + * @member {string} [description] Description of the Tag. + */ + description?: string; + /** + * @member {string} [externalDocsUrl] Absolute URL of external resources + * describing the tag. + */ + externalDocsUrl?: string; + /** + * @member {string} [externalDocsDescription] Description of the external + * resources describing the tag. + */ + externalDocsDescription?: string; + /** + * @member {string} [displayName] Tag name. + */ + displayName?: string; +} + +/** + * @interface + * An interface representing TagDescriptionCreateParameters. + * Parameters supplied to the Create TagDescription operation. + * + */ +export interface TagDescriptionCreateParameters { + /** + * @member {string} [description] Description of the Tag. + */ + description?: string; + /** + * @member {string} [externalDocsUrl] Absolute URL of external resources + * describing the tag. + */ + externalDocsUrl?: string; + /** + * @member {string} [externalDocsDescription] Description of the external + * resources describing the tag. + */ + externalDocsDescription?: 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 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 IssueContractBaseProperties. + * Issue contract Base Properties. + * + */ +export interface IssueContractBaseProperties { + /** + * @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; + /** + * @member {string} [apiId] A resource identifier for the API the issue was + * created for. + */ + apiId?: string; +} + +/** + * @interface + * An interface representing IssueUpdateContract. + * Issue update Parameters. + * + */ +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; + /** + * @member {string} [apiId] A resource identifier for the API the issue was + * created for. + */ + 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 IssueContract. + * Issue Contract details. + * + * @extends Resource + */ +export interface IssueContract extends Resource { + /** + * @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; + /** + * @member {string} [apiId] A resource identifier for the API the issue was + * created for. + */ + 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 BodyDiagnosticSettings. + * Body logging settings. + * + */ +export interface BodyDiagnosticSettings { + /** + * @member {number} [bytes] Number of request body bytes to log. + */ + bytes?: number; +} + +/** + * @interface + * An interface representing HttpMessageDiagnostic. + * Http message diagnostic settings. + * + */ +export interface HttpMessageDiagnostic { + /** + * @member {string[]} [headers] Array of HTTP Headers to log. + */ + headers?: string[]; + /** + * @member {BodyDiagnosticSettings} [body] Body logging settings. + */ + body?: BodyDiagnosticSettings; +} + +/** + * @interface + * An interface representing PipelineDiagnosticSettings. + * Diagnostic settings for incoming/outgoing HTTP messages to the Gateway. + * + */ +export interface PipelineDiagnosticSettings { + /** + * @member {HttpMessageDiagnostic} [request] Diagnostic settings for request. + */ + request?: HttpMessageDiagnostic; + /** + * @member {HttpMessageDiagnostic} [response] Diagnostic settings for + * response. + */ + response?: HttpMessageDiagnostic; +} + +/** + * @interface + * An interface representing SamplingSettings. + * Sampling settings for Diagnostic. + * + */ +export interface SamplingSettings { + /** + * @member {SamplingType} [samplingType] Sampling type. Possible values + * include: 'fixed' + */ + samplingType?: SamplingType; + /** + * @member {number} [percentage] Rate of sampling for fixed-rate sampling. + */ + percentage?: number; +} + +/** + * @interface + * An interface representing DiagnosticContract. + * Diagnostic details. + * + * @extends Resource + */ +export interface DiagnosticContract extends Resource { + /** + * @member {AlwaysLog} [alwaysLog] Specifies for what type of messages + * sampling settings should not apply. Possible values include: 'allErrors' + */ + alwaysLog?: AlwaysLog; + /** + * @member {string} loggerId Resource Id of a target logger. + */ + loggerId: string; + /** + * @member {SamplingSettings} [sampling] Sampling settings for Diagnostic. + */ + sampling?: SamplingSettings; + /** + * @member {PipelineDiagnosticSettings} [frontend] Diagnostic settings for + * incoming/outgoing HTTP messages to the Gateway. + */ + frontend?: PipelineDiagnosticSettings; + /** + * @member {PipelineDiagnosticSettings} [backend] Diagnostic settings for + * incoming/outgoing HTTP messages to the Backend + */ + backend?: PipelineDiagnosticSettings; + /** + * @member {boolean} [enableHttpCorrelationHeaders] Whether to process + * Correlation Headers coming to Api Management Service. Only applicable to + * Application Insights diagnostics. Default is true. + */ + enableHttpCorrelationHeaders?: boolean; +} + +/** + * @interface + * An interface representing SchemaContract. + * Schema Contract details. + * + * @extends Resource + */ +export interface SchemaContract 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). + */ + contentType: string; + /** + * @member {string} [value] Json escaped string defining the document + * representing the Schema. + */ + value?: string; +} + +/** + * @interface + * An interface representing PolicyContract. + * Policy Contract details. + * + * @extends Resource + */ +export interface PolicyContract extends Resource { + /** + * @member {string} value Contents of the Policy as defined by the format. + */ + value: string; + /** + * @member {PolicyContentFormat} [format] Format of the policyContent. + * Possible values include: 'xml', 'xml-link', 'rawxml', 'rawxml-link'. + * Default value: 'xml' . + */ + format?: PolicyContentFormat; +} + +/** + * @interface + * An interface representing PolicyCollection. + * The response of the list policy operation. + * + */ +export interface PolicyCollection { + /** + * @member {PolicyContract[]} [value] Policy Contract value. + */ + value?: PolicyContract[]; + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing ProductContract. + * Product details. + * + * @extends Resource + */ +export interface ProductContract extends Resource { + /** + * @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 ParameterContract. + * Operation parameters details. + * + */ +export interface ParameterContract { + /** + * @member {string} name Parameter name. + */ + name: string; + /** + * @member {string} [description] Parameter description. + */ + description?: string; + /** + * @member {string} type Parameter type. + */ + type: string; + /** + * @member {string} [defaultValue] Default parameter value. + */ + defaultValue?: string; + /** + * @member {boolean} [required] Specifies whether parameter is required or + * not. + */ + required?: boolean; + /** + * @member {string[]} [values] Parameter values. + */ + values?: string[]; +} + +/** + * @interface + * An interface representing RepresentationContract. + * Operation request/response representation details. + * + */ +export interface RepresentationContract { + /** + * @member {string} contentType Specifies a registered or custom content type + * for this representation, e.g. application/xml. + */ + contentType: string; + /** + * @member {string} [sample] An example of the representation. + */ + sample?: string; + /** + * @member {string} [schemaId] Schema identifier. Applicable only if + * 'contentType' value is neither 'application/x-www-form-urlencoded' nor + * 'multipart/form-data'. + */ + schemaId?: string; + /** + * @member {string} [typeName] Type name defined by the schema. Applicable + * only if 'contentType' value is neither 'application/x-www-form-urlencoded' + * nor 'multipart/form-data'. + */ + typeName?: string; + /** + * @member {ParameterContract[]} [formParameters] Collection of form + * parameters. Required if 'contentType' value is either + * 'application/x-www-form-urlencoded' or 'multipart/form-data'.. + */ + formParameters?: ParameterContract[]; +} + +/** + * @interface + * An interface representing ResponseContract. + * Operation response details. + * + */ +export interface ResponseContract { + /** + * @member {number} statusCode Operation response HTTP status code. + */ + statusCode: number; + /** + * @member {string} [description] Operation response description. + */ + description?: string; + /** + * @member {RepresentationContract[]} [representations] Collection of + * operation response representations. + */ + representations?: RepresentationContract[]; + /** + * @member {ParameterContract[]} [headers] Collection of operation response + * headers. + */ + headers?: ParameterContract[]; +} + +/** + * @interface + * An interface representing RequestContract. + * Operation request details. + * + */ +export interface RequestContract { + /** + * @member {string} [description] Operation request description. + */ + description?: string; + /** + * @member {ParameterContract[]} [queryParameters] Collection of operation + * request query parameters. + */ + queryParameters?: ParameterContract[]; + /** + * @member {ParameterContract[]} [headers] Collection of operation request + * headers. + */ + headers?: ParameterContract[]; + /** + * @member {RepresentationContract[]} [representations] Collection of + * operation request representations. + */ + representations?: RepresentationContract[]; +} + +/** + * @interface + * An interface representing OperationEntityBaseContract. + * Api Operation Entity Base Contract details. + * + */ +export interface OperationEntityBaseContract { + /** + * @member {ParameterContract[]} [templateParameters] Collection of URL + * template parameters. + */ + templateParameters?: ParameterContract[]; + /** + * @member {string} [description] Description of the operation. May include + * HTML formatting tags. + */ + description?: string; + /** + * @member {RequestContract} [request] An entity containing request details. + */ + request?: RequestContract; + /** + * @member {ResponseContract[]} [responses] Array of Operation responses. + */ + responses?: ResponseContract[]; + /** + * @member {string} [policies] Operation Policies + */ + policies?: string; +} + +/** + * @interface + * An interface representing OperationUpdateContract. + * Api Operation Update Contract details. + * + */ +export interface OperationUpdateContract { + /** + * @member {ParameterContract[]} [templateParameters] Collection of URL + * template parameters. + */ + templateParameters?: ParameterContract[]; + /** + * @member {string} [description] Description of the operation. May include + * HTML formatting tags. + */ + description?: string; + /** + * @member {RequestContract} [request] An entity containing request details. + */ + request?: RequestContract; + /** + * @member {ResponseContract[]} [responses] Array of Operation responses. + */ + responses?: ResponseContract[]; + /** + * @member {string} [policies] Operation Policies + */ + policies?: string; + /** + * @member {string} [displayName] Operation Name. + */ + displayName?: string; + /** + * @member {string} [method] A Valid HTTP Operation Method. Typical Http + * Methods like GET, PUT, POST but not limited by only them. + */ + 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} + */ + urlTemplate?: string; +} + +/** + * @interface + * An interface representing OperationContract. + * Api Operation details. + * + * @extends Resource + */ +export interface OperationContract extends Resource { + /** + * @member {ParameterContract[]} [templateParameters] Collection of URL + * template parameters. + */ + templateParameters?: ParameterContract[]; + /** + * @member {string} [description] Description of the operation. May include + * HTML formatting tags. + */ + description?: string; + /** + * @member {RequestContract} [request] An entity containing request details. + */ + request?: RequestContract; + /** + * @member {ResponseContract[]} [responses] Array of Operation responses. + */ + responses?: ResponseContract[]; + /** + * @member {string} [policies] Operation Policies + */ + policies?: string; + /** + * @member {string} displayName Operation Name. + */ + displayName: string; + /** + * @member {string} method A Valid HTTP Operation Method. Typical Http + * Methods like GET, PUT, POST but not limited by only them. + */ + 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} + */ + urlTemplate: string; +} + +/** + * @interface + * An interface representing ApiReleaseContract. + * ApiRelease details. + * + * @extends Resource + */ +export interface ApiReleaseContract extends Resource { + /** + * @member {string} [apiId] Identifier of the API the release belongs to. + */ + 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; + /** + * @member {string} [notes] Release Notes + */ + notes?: string; +} + +/** + * @interface + * An interface representing ApiRevisionContract. + * Summary of revision metadata. + * + */ +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; + /** + * @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.** + */ + readonly createdDateTime?: Date; + /** + * @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.** + */ + readonly updatedDateTime?: Date; + /** + * @member {string} [description] Description of the API Revision. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly description?: string; + /** + * @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.** + */ + readonly privateUrl?: string; + /** + * @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.** + */ + readonly isOnline?: boolean; + /** + * @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.** + */ + readonly isCurrent?: boolean; +} + +/** + * @interface + * An interface representing ApiUpdateContract. + * API update contract details. + * + */ +export interface ApiUpdateContract { + /** + * @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. + */ + 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; + /** + * @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 {string} [displayName] API name. + */ + displayName?: 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 + * 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. + */ + protocols?: Protocol[]; +} + +/** + * @interface + * An interface representing ApiContract. + * Api details. + * + * @extends Resource + */ +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. + */ + 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; + /** + * @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 {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. Cannot be more than 2000 characters long. + */ + 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. + */ + protocols?: Protocol[]; + /** + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details + */ + apiVersionSet?: ApiVersionSetContractDetails; +} + +/** + * @interface + * An interface representing ApiCreateOrUpdateParameter. + * API Create or Update Parameters. + * + */ +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; + /** + * @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. + */ + 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; + /** + * @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 {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. Cannot be more than 2000 characters long. + */ + 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. + */ + protocols?: Protocol[]; + /** + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details + */ + apiVersionSet?: ApiVersionSetContractDetails; + /** + * @member {string} [value] Content value when Importing an API. + */ + value?: string; + /** + * @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' + */ + format?: ContentFormat; + /** + * @member {ApiCreateOrUpdatePropertiesWsdlSelector} [wsdlSelector] Criteria + * to limit import of WSDL to a subset of the document. + */ + wsdlSelector?: ApiCreateOrUpdatePropertiesWsdlSelector; + /** + * @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' + */ + soapApiType?: SoapApiType; +} + +/** + * @interface + * An interface representing ApiVersionSetEntityBase. + * Api Version set base parameters + * + */ +export interface ApiVersionSetEntityBase { + /** + * @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; +} + +/** + * @interface + * An interface representing ApiVersionSetUpdateParameters. + * Parameters to update or create an Api Version Set Contract. + * + */ +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; + /** + * @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; +} + +/** + * @interface + * An interface representing ApiVersionSetContract. + * Api Version Set Contract details. + * + * @extends Resource + */ +export interface ApiVersionSetContract extends Resource { + /** + * @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; + /** + * @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; +} + +/** + * @interface + * An interface representing TokenBodyParameterContract. + * OAuth acquire token request body parameter (www-url-form-encoded). + * + */ +export interface TokenBodyParameterContract { + /** + * @member {string} name body parameter name. + */ + name: string; + /** + * @member {string} value body parameter value. + */ + value: string; +} + +/** + * @interface + * An interface representing AuthorizationServerContractBaseProperties. + * External OAuth authorization server Update settings contract. + * + */ +export interface AuthorizationServerContractBaseProperties { + /** + * @member {string} [description] Description of the authorization server. + * Can contain HTML formatting tags. + */ + description?: string; + /** + * @member {AuthorizationMethod[]} [authorizationMethods] HTTP verbs + * supported by the authorization endpoint. GET must be always present. POST + * is optional. + */ + authorizationMethods?: AuthorizationMethod[]; + /** + * @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. + */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** + * @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"}. + */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** + * @member {string} [tokenEndpoint] OAuth token endpoint. Contains absolute + * URI to entity being referenced. + */ + tokenEndpoint?: 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. + */ + supportState?: boolean; + /** + * @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. + */ + defaultScope?: string; + /** + * @member {BearerTokenSendingMethod[]} [bearerTokenSendingMethods] Specifies + * the mechanism by which access token is passed to the API. + */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** + * @member {string} [clientSecret] Client or app secret registered with this + * authorization server. + */ + clientSecret?: string; + /** + * @member {string} [resourceOwnerUsername] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner username. + */ + resourceOwnerUsername?: string; + /** + * @member {string} [resourceOwnerPassword] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner password. + */ + resourceOwnerPassword?: string; +} + +/** + * @interface + * An interface representing AuthorizationServerUpdateContract. + * External OAuth authorization server settings. + * + * @extends Resource + */ +export interface AuthorizationServerUpdateContract extends Resource { + /** + * @member {string} [description] Description of the authorization server. + * Can contain HTML formatting tags. + */ + description?: string; + /** + * @member {AuthorizationMethod[]} [authorizationMethods] HTTP verbs + * supported by the authorization endpoint. GET must be always present. POST + * is optional. + */ + authorizationMethods?: AuthorizationMethod[]; + /** + * @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. + */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** + * @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"}. + */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** + * @member {string} [tokenEndpoint] OAuth token endpoint. Contains absolute + * URI to entity being referenced. + */ + tokenEndpoint?: 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. + */ + supportState?: boolean; + /** + * @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. + */ + defaultScope?: string; + /** + * @member {BearerTokenSendingMethod[]} [bearerTokenSendingMethods] Specifies + * the mechanism by which access token is passed to the API. + */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** + * @member {string} [clientSecret] Client or app secret registered with this + * authorization server. + */ + clientSecret?: string; + /** + * @member {string} [resourceOwnerUsername] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner username. + */ + resourceOwnerUsername?: string; + /** + * @member {string} [resourceOwnerPassword] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner password. + */ + resourceOwnerPassword?: string; + /** + * @member {string} [displayName] User-friendly authorization server name. + */ + 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. + */ + clientRegistrationEndpoint?: string; + /** + * @member {string} [authorizationEndpoint] OAuth authorization endpoint. See + * http://tools.ietf.org/html/rfc6749#section-3.2. + */ + authorizationEndpoint?: string; + /** + * @member {GrantType[]} [grantTypes] Form of an authorization grant, which + * the client uses to request the access token. + */ + grantTypes?: GrantType[]; + /** + * @member {string} [clientId] Client or app id registered with this + * authorization server. + */ + clientId?: string; +} + +/** + * @interface + * An interface representing AuthorizationServerContract. + * External OAuth authorization server settings. + * + * @extends Resource + */ +export interface AuthorizationServerContract extends Resource { + /** + * @member {string} [description] Description of the authorization server. + * Can contain HTML formatting tags. + */ + description?: string; + /** + * @member {AuthorizationMethod[]} [authorizationMethods] HTTP verbs + * supported by the authorization endpoint. GET must be always present. POST + * is optional. + */ + authorizationMethods?: AuthorizationMethod[]; + /** + * @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. + */ + clientAuthenticationMethod?: ClientAuthenticationMethod[]; + /** + * @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"}. + */ + tokenBodyParameters?: TokenBodyParameterContract[]; + /** + * @member {string} [tokenEndpoint] OAuth token endpoint. Contains absolute + * URI to entity being referenced. + */ + tokenEndpoint?: 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. + */ + supportState?: boolean; + /** + * @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. + */ + defaultScope?: string; + /** + * @member {BearerTokenSendingMethod[]} [bearerTokenSendingMethods] Specifies + * the mechanism by which access token is passed to the API. + */ + bearerTokenSendingMethods?: BearerTokenSendingMethod[]; + /** + * @member {string} [clientSecret] Client or app secret registered with this + * authorization server. + */ + clientSecret?: string; + /** + * @member {string} [resourceOwnerUsername] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner username. + */ + resourceOwnerUsername?: string; + /** + * @member {string} [resourceOwnerPassword] Can be optionally specified when + * resource owner password grant type is supported by this authorization + * server. Default resource owner password. + */ + resourceOwnerPassword?: string; + /** + * @member {string} displayName User-friendly authorization server name. + */ + 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. + */ + clientRegistrationEndpoint: string; + /** + * @member {string} authorizationEndpoint OAuth authorization endpoint. See + * http://tools.ietf.org/html/rfc6749#section-3.2. + */ + authorizationEndpoint: string; + /** + * @member {GrantType[]} grantTypes Form of an authorization grant, which the + * client uses to request the access token. + */ + grantTypes: GrantType[]; + /** + * @member {string} clientId Client or app id registered with this + * authorization server. + */ + clientId: string; +} + +/** + * @interface + * An interface representing BackendReconnectContract. + * Reconnect request parameters. + * + * @extends Resource + */ +export interface BackendReconnectContract extends Resource { + /** + * @member {string} [after] Duration in ISO8601 format after which reconnect + * will be initiated. Minimum duration of the Reconnect is PT2M. + */ + after?: 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 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 BackendAuthorizationHeaderCredentials. + * Authorization header information. + * + */ +export interface BackendAuthorizationHeaderCredentials { + /** + * @member {string} scheme Authentication Scheme name. + */ + scheme: string; + /** + * @member {string} parameter Authentication Parameter value. + */ + parameter: string; +} + +/** + * @interface + * An interface representing BackendCredentialsContract. + * Details of the Credentials used to connect to Backend. + * + */ +export interface BackendCredentialsContract { + /** + * @member {string[]} [certificate] List of Client Certificate Thumbprint. + */ + certificate?: string[]; + /** + * @member {{ [propertyName: string]: string[] }} [query] Query Parameter + * description. + */ + query?: { [propertyName: string]: string[] }; + /** + * @member {{ [propertyName: string]: string[] }} [header] Header Parameter + * description. + */ + header?: { [propertyName: string]: string[] }; + /** + * @member {BackendAuthorizationHeaderCredentials} [authorization] + * Authorization header authentication + */ + authorization?: BackendAuthorizationHeaderCredentials; +} + +/** + * @interface + * An interface representing X509CertificateName. + * Properties of server X509Names. + * + */ +export interface X509CertificateName { + /** + * @member {string} [name] Common Name of the Certificate. + */ + name?: string; + /** + * @member {string} [issuerCertificateThumbprint] Thumbprint for the Issuer + * of the Certificate. + */ + issuerCertificateThumbprint?: string; +} + +/** + * @interface + * An interface representing BackendServiceFabricClusterProperties. + * Properties of the Service Fabric Type Backend. + * + */ +export interface BackendServiceFabricClusterProperties { + /** + * @member {string} clientCertificatethumbprint The client certificate + * thumbprint for the management endpoint. + */ + clientCertificatethumbprint: string; + /** + * @member {number} [maxPartitionResolutionRetries] Maximum number of retries + * while attempting resolve the partition. + */ + maxPartitionResolutionRetries?: number; + /** + * @member {string[]} managementEndpoints The cluster management endpoint. + */ + 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 BackendProperties. + * Properties specific to the Backend Type. + * + */ +export interface BackendProperties { + /** + * @member {BackendServiceFabricClusterProperties} [serviceFabricCluster] + * Backend Service Fabric Cluster Properties + */ + serviceFabricCluster?: BackendServiceFabricClusterProperties; +} + +/** + * @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; + /** + * @member {BackendProxyContract} [proxy] Backend Proxy Contract Properties + */ + proxy?: BackendProxyContract; + /** + * @member {BackendTlsProperties} [tls] Backend TLS Properties + */ + tls?: BackendTlsProperties; +} + +/** + * @interface + * An interface representing BackendUpdateParameters. + * Backend update parameters. + * + */ +export interface BackendUpdateParameters { + /** + * @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; + /** + * @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 BackendContract. + * Backend details. + * + * @extends Resource + */ +export interface BackendContract extends Resource { + /** + * @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; + /** + * @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 CacheUpdateParameters. + * Cache update details. + * + */ +export interface CacheUpdateParameters { + /** + * @member {string} [description] Cache description + */ + description?: string; + /** + * @member {string} [connectionString] Runtime connection string to cache + */ + connectionString?: string; + /** + * @member {string} [resourceId] Original uri of entity in external system + * cache points to + */ + resourceId?: string; +} + +/** + * @interface + * An interface representing CacheContract. + * Cache details. + * + * @extends Resource + */ +export interface CacheContract extends Resource { + /** + * @member {string} [description] Cache description + */ + description?: string; + /** + * @member {string} connectionString Runtime connection string to cache + */ + connectionString: string; + /** + * @member {string} [resourceId] Original uri of entity in external system + * cache points to + */ + resourceId?: string; +} + +/** + * @interface + * An interface representing CertificateContract. + * Certificate details. + * + * @extends Resource + */ +export interface CertificateContract extends Resource { + /** + * @member {string} subject Subject attribute of the certificate. + */ + subject: string; + /** + * @member {string} thumbprint Thumbprint of the certificate. + */ + 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 CertificateCreateOrUpdateParameters. + * Certificate create or update details. + * + */ +export interface CertificateCreateOrUpdateParameters { + /** + * @member {string} data Base 64 encoded certificate using the + * application/x-pkcs12 representation. + */ + data: string; + /** + * @member {string} password Password for the Certificate + */ + password: string; +} + +/** + * @interface + * An interface representing ResourceSku. + * Describes an available API Management SKU. + * + */ +export interface ResourceSku { + /** + * @member {SkuType} [name] Name of the Sku. Possible values include: + * 'Developer', 'Standard', 'Premium', 'Basic', 'Consumption' + */ + name?: SkuType; +} + +/** + * @interface + * An interface representing ResourceSkuCapacity. + * Describes scaling information of a SKU. + * + */ +export interface ResourceSkuCapacity { + /** + * @member {number} [minimum] The minimum capacity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly minimum?: number; + /** + * @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 maximum?: number; + /** + * @member {number} [default] The default capacity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly default?: number; + /** + * @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 scaleType?: ResourceSkuCapacityScaleType; +} + +/** + * @interface + * An interface representing ResourceSkuResult. + * Describes an available API Management service SKU. + * + */ +export interface ResourceSkuResult { + /** + * @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 resourceType?: string; + /** + * @member {ResourceSku} [sku] Specifies API Management SKU. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sku?: ResourceSku; + /** + * @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 capacity?: ResourceSkuCapacity; +} + +/** + * @interface + * An interface representing CertificateInformation. + * SSL certificate information. + * + */ +export interface CertificateInformation { + /** + * @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. + */ + thumbprint: string; + /** + * @member {string} subject Subject of the certificate. + */ + subject: string; +} + +/** + * @interface + * An interface representing CertificateConfiguration. + * Certificate configuration which consist of non-trusted intermediates and + * root certificates. + * + */ +export interface CertificateConfiguration { + /** + * @member {string} [encodedCertificate] Base64 Encoded certificate. + */ + encodedCertificate?: string; + /** + * @member {string} [certificatePassword] Certificate Password. + */ + certificatePassword?: 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' + */ + storeName: StoreName; + /** + * @member {CertificateInformation} [certificate] Certificate information. + */ + certificate?: CertificateInformation; +} + +/** + * @interface + * An interface representing HostnameConfiguration. + * Custom hostname configuration. + * + */ +export interface HostnameConfiguration { + /** + * @member {HostnameType} type Hostname type. Possible values include: + * 'Proxy', 'Portal', 'Management', 'Scm', 'DeveloperPortal' + */ + 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; + /** + * @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 {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.** + */ + readonly publicIPAddresses?: 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.** + */ + readonly privateIPAddresses?: string[]; + /** + * @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 gatewayRegionalUrl?: string; +} + +/** + * @interface + * An interface representing ApiManagementServiceBackupRestoreParameters. + * Parameters supplied to the Backup/Restore of an API Management service + * operation. + * + */ +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. + */ + 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.** + */ + readonly targetProvisioningState?: 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.** + */ + readonly createdAtUtc?: Date; + /** + * @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.** + */ + readonly gatewayUrl?: 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.** + */ + readonly gatewayRegionalUrl?: string; + /** + * @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.** + */ + readonly portalUrl?: string; + /** + * @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.** + */ + readonly managementApiUrl?: string; + /** + * @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.** + */ + readonly scmUrl?: string; + /** + * @member {HostnameConfiguration[]} [hostnameConfigurations] Custom hostname + * configuration of the API Management service. + */ + hostnameConfigurations?: HostnameConfiguration[]; + /** + * @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.** + */ + readonly publicIPAddresses?: string[]; + /** + * @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 privateIPAddresses?: string[]; + /** + * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] + * Virtual network configuration of the API Management service. + */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** + * @member {AdditionalLocation[]} [additionalLocations] Additional datacenter + * locations of the API Management service. + */ + additionalLocations?: AdditionalLocation[]; + /** + * @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. + */ + customProperties?: { [propertyName: string]: 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. + */ + 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. This also enables the ability to + * authenticate the certificate in the policy on the gateway. Default value: + * false . + */ + enableClientCertificate?: boolean; + /** + * @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' . + */ + virtualNetworkType?: VirtualNetworkType; +} + +/** + * @interface + * An interface representing ApiManagementServiceIdentity. + * Identity properties of the Api Management service resource. + * + */ +export interface ApiManagementServiceIdentity { + /** + * @member {string} [principalId] The principal id of the identity. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly principalId?: 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.** + */ + 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.** + */ + 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; + /** + * @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 type?: string; + /** + * @member {{ [propertyName: string]: string }} [tags] Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * An interface representing ApiManagementServiceResource. + * A single API Management service resource in List or Get response. + * + * @extends ApimResource + */ +export interface ApiManagementServiceResource extends ApimResource { + /** + * @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.** + */ + readonly targetProvisioningState?: 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.** + */ + readonly createdAtUtc?: Date; + /** + * @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.** + */ + readonly gatewayUrl?: 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.** + */ + readonly gatewayRegionalUrl?: string; + /** + * @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.** + */ + readonly portalUrl?: string; + /** + * @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.** + */ + readonly managementApiUrl?: string; + /** + * @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.** + */ + readonly scmUrl?: string; + /** + * @member {HostnameConfiguration[]} [hostnameConfigurations] Custom hostname + * configuration of the API Management service. + */ + hostnameConfigurations?: HostnameConfiguration[]; + /** + * @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.** + */ + readonly publicIPAddresses?: string[]; + /** + * @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 privateIPAddresses?: string[]; + /** + * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] + * Virtual network configuration of the API Management service. + */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** + * @member {AdditionalLocation[]} [additionalLocations] Additional datacenter + * locations of the API Management service. + */ + additionalLocations?: AdditionalLocation[]; + /** + * @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. + */ + customProperties?: { [propertyName: string]: 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. + */ + 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. This also enables the ability to + * authenticate the certificate in the policy on the gateway. Default value: + * false . + */ + enableClientCertificate?: boolean; + /** + * @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' . + */ + virtualNetworkType?: VirtualNetworkType; + /** + * @member {string} publisherEmail Publisher email. + */ + publisherEmail: string; + /** + * @member {string} publisherName Publisher name. + */ + publisherName: string; + /** + * @member {ApiManagementServiceSkuProperties} sku SKU properties of the API + * Management service. + */ + sku: ApiManagementServiceSkuProperties; + /** + * @member {ApiManagementServiceIdentity} [identity] Managed service identity + * of the Api Management service. + */ + identity?: ApiManagementServiceIdentity; + /** + * @member {string} location Resource location. + */ + location: string; + /** + * @member {string} [etag] ETag of the resource. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly etag?: string; +} + +/** + * @interface + * An interface representing ApiManagementServiceUpdateParameters. + * Parameter supplied to Update Api Management Service. + * + * @extends ApimResource + */ +export interface ApiManagementServiceUpdateParameters extends ApimResource { + /** + * @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.** + */ + readonly targetProvisioningState?: 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.** + */ + readonly createdAtUtc?: Date; + /** + * @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.** + */ + readonly gatewayUrl?: 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.** + */ + readonly gatewayRegionalUrl?: string; + /** + * @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.** + */ + readonly portalUrl?: string; + /** + * @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.** + */ + readonly managementApiUrl?: string; + /** + * @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.** + */ + readonly scmUrl?: string; + /** + * @member {HostnameConfiguration[]} [hostnameConfigurations] Custom hostname + * configuration of the API Management service. + */ + hostnameConfigurations?: HostnameConfiguration[]; + /** + * @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.** + */ + readonly publicIPAddresses?: string[]; + /** + * @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 privateIPAddresses?: string[]; + /** + * @member {VirtualNetworkConfiguration} [virtualNetworkConfiguration] + * Virtual network configuration of the API Management service. + */ + virtualNetworkConfiguration?: VirtualNetworkConfiguration; + /** + * @member {AdditionalLocation[]} [additionalLocations] Additional datacenter + * locations of the API Management service. + */ + additionalLocations?: AdditionalLocation[]; + /** + * @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. + */ + customProperties?: { [propertyName: string]: 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. + */ + 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. This also enables the ability to + * authenticate the certificate in the policy on the gateway. Default value: + * false . + */ + enableClientCertificate?: boolean; + /** + * @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' . + */ + virtualNetworkType?: VirtualNetworkType; + /** + * @member {string} [publisherEmail] Publisher email. + */ + publisherEmail?: string; + /** + * @member {string} [publisherName] Publisher name. + */ + publisherName?: string; + /** + * @member {ApiManagementServiceSkuProperties} [sku] SKU properties of the + * API Management service. + */ + sku?: ApiManagementServiceSkuProperties; + /** + * @member {ApiManagementServiceIdentity} [identity] Managed service identity + * of the Api Management service. + */ + identity?: ApiManagementServiceIdentity; + /** + * @member {string} [etag] ETag of the resource. + * **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 { + /** + * @member {string} [redirectUri] Redirect URL to the Publisher Portal + * containing the SSO token. + */ + redirectUri?: string; +} + +/** + * @interface + * An interface representing ApiManagementServiceCheckNameAvailabilityParameters. + * Parameters supplied to the CheckNameAvailability operation. + * + */ +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. + */ + provider?: string; + /** + * @member {string} [id] Identifier value within provider. + */ + id?: string; +} + +/** + * @interface + * An interface representing UserEntityBaseParameters. + * User Entity Base Parameters set. + * + */ +export interface UserEntityBaseParameters { + /** + * @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; + /** + * @member {UserIdentityContract[]} [identities] Collection of user + * identities. + */ + 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. + * User details. + * + * @extends Resource + */ +export interface UserContract extends Resource { + /** + * @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; + /** + * @member {UserIdentityContract[]} [identities] Collection of user + * identities. + */ + identities?: UserIdentityContract[]; + /** + * @member {string} [firstName] First name. + */ + firstName?: string; + /** + * @member {string} [lastName] Last name. + */ + lastName?: string; + /** + * @member {string} [email] Email address. + */ + email?: string; + /** + * @member {Date} [registrationDate] Date of user registration. The date + * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. + */ + registrationDate?: Date; + /** + * @member {GroupContractProperties[]} [groups] Collection of groups user is + * part of. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly groups?: GroupContractProperties[]; +} + +/** + * @interface + * An interface representing GroupUpdateParameters. + * Parameters supplied to the Update Group 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; + /** + * @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. + */ + signupPolicyName?: string; + /** + * @member {string} [signinPolicyName] Signin Policy Name. Only applies to + * AAD B2C Identity Provider. + */ + signinPolicyName?: string; + /** + * @member {string} [profileEditingPolicyName] Profile Editing Policy Name. + * Only applies to AAD B2C Identity Provider. + */ + profileEditingPolicyName?: string; + /** + * @member {string} [passwordResetPolicyName] Password Reset Policy Name. + * Only applies to AAD B2C Identity Provider. + */ + passwordResetPolicyName?: string; +} + +/** + * @interface + * An interface representing IdentityProviderUpdateParameters. + * Parameters supplied to update Identity Provider + * + */ +export interface IdentityProviderUpdateParameters { + /** + * @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. + */ + signupPolicyName?: string; + /** + * @member {string} [signinPolicyName] Signin Policy Name. Only applies to + * AAD B2C Identity Provider. + */ + signinPolicyName?: string; + /** + * @member {string} [profileEditingPolicyName] Profile Editing Policy Name. + * Only applies to AAD B2C Identity Provider. + */ + profileEditingPolicyName?: string; + /** + * @member {string} [passwordResetPolicyName] Password Reset Policy Name. + * 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; +} + +/** + * @interface + * An interface representing IdentityProviderContract. + * Identity Provider details. + * + * @extends Resource + */ +export interface IdentityProviderContract extends Resource { + /** + * @member {IdentityProviderType} [identityProviderContractType] Identity + * Provider Type identifier. Possible values include: 'facebook', 'google', + * 'microsoft', 'twitter', 'aad', 'aadB2C' + */ + 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. + */ + signupPolicyName?: string; + /** + * @member {string} [signinPolicyName] Signin Policy Name. Only applies to + * AAD B2C Identity Provider. + */ + signinPolicyName?: string; + /** + * @member {string} [profileEditingPolicyName] Profile Editing Policy Name. + * Only applies to AAD B2C Identity Provider. + */ + profileEditingPolicyName?: string; + /** + * @member {string} [passwordResetPolicyName] Password Reset Policy Name. + * 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; +} + +/** + * @interface + * An interface representing LoggerUpdateContract. + * Logger update contract. + * + */ +export interface LoggerUpdateContract { + /** + * @member {LoggerType} [loggerType] Logger type. Possible values include: + * 'azureEventHub', 'applicationInsights' + */ + loggerType?: LoggerType; + /** + * @member {string} [description] Logger description. + */ + description?: string; + /** + * @member {{ [propertyName: string]: string }} [credentials] Logger + * credentials. + */ + credentials?: { [propertyName: string]: string }; + /** + * @member {boolean} [isBuffered] Whether records are buffered in the logger + * before publishing. Default is assumed to be true. + */ + isBuffered?: boolean; +} + +/** + * @interface + * An interface representing LoggerContract. + * Logger details. + * + * @extends Resource + */ +export interface LoggerContract extends Resource { + /** + * @member {LoggerType} loggerType Logger type. Possible values include: + * 'azureEventHub', 'applicationInsights' + */ + loggerType: LoggerType; + /** + * @member {string} [description] Logger description. + */ + 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. + */ + credentials: { [propertyName: string]: string }; + /** + * @member {boolean} [isBuffered] Whether records are buffered in the logger + * before publishing. Default is assumed to be true. + */ + isBuffered?: boolean; + /** + * @member {string} [resourceId] Azure Resource Id of a log target (either + * Azure Event Hub resource or Azure Application Insights resource). + */ + resourceId?: string; +} + +/** + * @interface + * An interface representing ConnectivityStatusContract. + * Details about connectivity to a resource. + * + */ +export interface ConnectivityStatusContract { + /** + * @member {string} name The hostname of the resource which the service + * depends on. This can be the database, storage or any other azure resource + * on which the service depends upon. + */ + name: string; + /** + * @member {ConnectivityStatusType} status Resource Connectivity Status Type + * identifier. Possible values include: 'initializing', 'success', 'failure' + */ + status: ConnectivityStatusType; + /** + * @member {string} [error] Error details of the connectivity to the + * resource. + */ + error?: string; + /** + * @member {Date} lastUpdated The date when the resource connectivity status + * was last updated. This status should be updated every 15 minutes. If this + * status has not been updated, then it means that the service has lost + * network connectivity to the resource, from inside the Virtual Network.The + * date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified + * by the ISO 8601 standard. + */ + lastUpdated: Date; + /** + * @member {Date} lastStatusChange The date when the resource connectivity + * status last Changed from success to failure or vice-versa. The date + * conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by + * the ISO 8601 standard. + */ + lastStatusChange: Date; +} + +/** + * @interface + * An interface representing NetworkStatusContract. + * Network Status details. + * + */ +export interface NetworkStatusContract { + /** + * @member {string[]} dnsServers Gets the list of DNS servers IPV4 addresses. + */ + dnsServers: string[]; + /** + * @member {ConnectivityStatusContract[]} connectivityStatus Gets the list of + * Connectivity Status to the Resources on which the service depends upon. + */ + connectivityStatus: ConnectivityStatusContract[]; +} + +/** + * @interface + * An interface representing NetworkStatusContractByLocation. + * Network Status in the Location + * + */ +export interface NetworkStatusContractByLocation { + /** + * @member {string} [location] Location of service + */ + location?: string; + /** + * @member {NetworkStatusContract} [networkStatus] Network status in Location + */ + networkStatus?: NetworkStatusContract; +} + +/** + * @interface + * An interface representing RecipientEmailContract. + * Recipient Email details. + * + * @extends Resource + */ +export interface RecipientEmailContract extends Resource { + /** + * @member {string} [email] User Email subscribed to notification. + */ + email?: string; +} + +/** + * @interface + * An interface representing RecipientEmailCollection. + * Paged Recipient User list representation. + * + */ +export interface RecipientEmailCollection { + /** + * @member {RecipientEmailContract[]} [value] Page values. + */ + value?: RecipientEmailContract[]; + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @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 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; +} + +/** + * @interface + * An interface representing OpenidConnectProviderUpdateContract. + * Parameters supplied to the Update OpenID Connect Provider operation. + * + */ +export interface OpenidConnectProviderUpdateContract { + /** + * @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 OpenidConnectProviderContract. + * OpenId Connect Provider details. + * + * @extends Resource + */ +export interface OpenidConnectProviderContract extends Resource { + /** + * @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. + * Terms of service contract properties. + * + */ +export interface TermsOfServiceProperties { + /** + * @member {string} [text] A terms of service text. + */ + text?: string; + /** + * @member {boolean} [enabled] Display terms of service during a sign-up + * process. + */ + 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 {number} [serviceTimeMax] Maximum time it took to process request + * on backend. + */ + serviceTimeMax?: number; +} + +/** + * @interface + * An interface representing SubscriptionUpdateParameters. + * Subscription update details. + * + */ +export interface SubscriptionUpdateParameters { + /** + * @member {string} [ownerId] User identifier path: /users/{userId} + */ + ownerId?: string; + /** + * @member {string} [scope] Scope like /products/{productId} or /apis or + * /apis/{apiId} + */ + scope?: string; + /** + * @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 {string} [displayName] Subscription name. + */ + displayName?: string; + /** + * @member {string} [primaryKey] Primary subscription key. + */ + primaryKey?: string; + /** + * @member {string} [secondaryKey] Secondary subscription key. + */ + secondaryKey?: 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 {string} [stateComment] Comments describing subscription state + * change by the administrator. + */ + stateComment?: string; + /** + * @member {boolean} [allowTracing] Determines whether tracing can be enabled + */ + allowTracing?: boolean; +} + +/** + * @interface + * An interface representing SubscriptionCreateParameters. + * Subscription create details. + * + */ +export interface SubscriptionCreateParameters { + /** + * @member {string} [ownerId] User (user id path) for whom subscription is + * being created in form /users/{userId} + */ + ownerId?: string; + /** + * @member {string} scope Scope like /products/{productId} or /apis or + * /apis/{apiId}. + */ + scope: string; + /** + * @member {string} displayName Subscription name. + */ + displayName: string; + /** + * @member {string} [primaryKey] Primary subscription key. If not specified + * during request key will be generated automatically. + */ + primaryKey?: string; + /** + * @member {string} [secondaryKey] Secondary subscription key. If not + * specified during request key will be generated automatically. + */ + secondaryKey?: string; + /** + * @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?: SubscriptionState; + /** + * @member {boolean} [allowTracing] Determines whether tracing can be enabled + */ + allowTracing?: boolean; +} + +/** + * @interface + * An interface representing TagCreateUpdateParameters. + * Parameters supplied to Create/Update Tag operations. + * + */ +export interface TagCreateUpdateParameters { + /** + * @member {string} displayName Tag name. + */ + displayName: string; +} + +/** + * @interface + * An interface representing TenantConfigurationSyncStateContract. + * Tenant Configuration Synchronization State. + * + */ +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; + /** + * @member {boolean} [isGitEnabled] value indicating whether Git + * configuration access is enabled. + */ + isGitEnabled?: boolean; + /** + * @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. + */ + syncDate?: Date; + /** + * @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. + */ + configurationChangeDate?: Date; +} + +/** + * @interface + * An interface representing OperationResultLogItemContract. + * Log of the entity being created, updated or deleted. + * + */ +export interface OperationResultLogItemContract { + /** + * @member {string} [objectType] The type of entity contract. + */ + objectType?: string; + /** + * @member {string} [action] Action like create/update/delete. + */ + action?: string; + /** + * @member {string} [objectKey] Identifier of the entity being + * created/updated/deleted. + */ + objectKey?: string; +} + +/** + * @interface + * An interface representing OperationResultContract. + * Operation Result. + * + */ +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; + /** + * @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 DeployConfigurationParameters. + * Deploy Tenant Configuration Contract. + * + */ +export interface DeployConfigurationParameters { + /** + * @member {string} branch The name of the Git branch from which the + * configuration is to be deployed to the configuration database. + */ + branch: string; + /** + * @member {boolean} [force] The value enforcing deleting subscriptions to + * products that are deleted in this update. + */ + force?: boolean; +} + +/** + * @interface + * An interface representing SaveConfigurationParameter. + * Save Tenant Configuration Contract details. + * + */ +export interface SaveConfigurationParameter { + /** + * @member {string} branch The name of the Git branch in which to commit the + * current configuration snapshot. + */ + branch: string; + /** + * @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. + */ + force?: boolean; +} + +/** + * @interface + * An interface representing AccessInformationContract. + * Tenant access information contract of the API Management service. + * + */ +export interface AccessInformationContract { + /** + * @member {string} [id] Identifier. + */ + id?: string; + /** + * @member {string} [primaryKey] Primary access key. + */ + primaryKey?: string; + /** + * @member {string} [secondaryKey] Secondary access key. + */ + secondaryKey?: string; + /** + * @member {boolean} [enabled] Determines whether direct access is enabled. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing AccessInformationUpdateParameters. + * Tenant access information update parameters. + * + */ +export interface AccessInformationUpdateParameters { + /** + * @member {boolean} [enabled] Determines whether direct access is enabled. + */ + enabled?: boolean; +} + +/** + * @interface + * An interface representing UserTokenResult. + * Get User Token response details. + * + */ +export interface UserTokenResult { + /** + * @member {string} [value] Shared Access Authorization token for the User. + */ + value?: string; +} + +/** + * @interface + * An interface representing UserTokenParameters. + * Get User Token parameters. + * + */ +export interface UserTokenParameters { + /** + * @member {KeyType} keyType The Key to be used to generate token for user. + * Possible values include: 'primary', 'secondary'. Default value: 'primary' + * . + */ + keyType: KeyType; + /** + * @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. + */ + expiry: Date; +} + +/** + * @interface + * An interface representing GenerateSsoUrlResult. + * Generate SSO Url operations response details. + * + */ +export interface GenerateSsoUrlResult { + /** + * @member {string} [value] Redirect Url containing the SSO URL value. + */ + value?: string; +} + +/** + * @interface + * An interface representing UserUpdateParameters. + * User update parameters. + * + */ +export interface UserUpdateParameters { + /** + * @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; + /** + * @member {UserIdentityContract[]} [identities] Collection of user + * identities. + */ + identities?: UserIdentityContract[]; + /** + * @member {string} [email] Email address. Must not be empty and must be + * unique within the service instance. + */ + email?: string; + /** + * @member {string} [password] User Password. + */ + password?: string; + /** + * @member {string} [firstName] First name. + */ + firstName?: string; + /** + * @member {string} [lastName] Last name. + */ + lastName?: string; +} + +/** + * @interface + * An interface representing UserCreateParameters. + * User create details. + * + */ +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; + /** + * @member {UserIdentityContract[]} [identities] Collection of user + * identities. + */ + identities?: UserIdentityContract[]; + /** + * @member {string} email Email address. Must not be empty and must be unique + * within the service instance. + */ + email: string; + /** + * @member {string} firstName First name. + */ + firstName: string; + /** + * @member {string} lastName Last name. + */ + lastName: string; + /** + * @member {string} [password] User Password. If no value is provided, a + * default password is generated. + */ + password?: string; + /** + * @member {Confirmation} [confirmation] Determines the type of confirmation + * e-mail that will be sent to the newly created user. Possible values + * include: 'signup', 'invite' + */ + confirmation?: Confirmation; +} + +/** + * @interface + * An interface representing ApiRevisionInfoContract. + * Object used to create an API Revision or Version based on an existing API + * Revision + * + */ +export interface ApiRevisionInfoContract { + /** + * @member {string} [sourceApiId] Resource identifier of API to be used to + * create the revision from. + */ + sourceApiId?: string; + /** + * @member {string} [apiVersionName] Version identifier for the new API + * Version. + */ + apiVersionName?: string; + /** + * @member {string} [apiRevisionDescription] Description of new API Revision. + */ + apiRevisionDescription?: string; + /** + * @member {ApiVersionSetContractDetails} [apiVersionSet] Version set details + */ + apiVersionSet?: ApiVersionSetContractDetails; +} + +/** + * @interface + * An interface representing QuotaCounterValueContract. + * Quota counter value details. + * + */ +export interface QuotaCounterValueContract { + /** + * @member {number} [callsCount] Number of times Counter was called. + */ + callsCount?: number; + /** + * @member {number} [kbTransferred] Data Transferred in KiloBytes. + */ + kbTransferred?: number; +} + +/** + * @interface + * An interface representing ApiListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiListByServiceOptionalParams 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 | + *
| 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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {string} [tags] Include tags in the response. + */ + tags?: string; + /** + * @member {boolean} [expandApiVersionSet] Include full ApiVersionSet + * resource in response + */ + expandApiVersionSet?: boolean; +} + +/** + * @interface + * An interface representing ApiCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiCreateOrUpdateOptionalParams 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 ApiDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [deleteRevisions] Delete all revisions of the Api. + */ + deleteRevisions?: boolean; +} + +/** + * @interface + * An interface representing ApiListByTagsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiListByTagsOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 | | + */ + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {boolean} [includeNotTaggedApis] Include not tagged APIs. + */ + includeNotTaggedApis?: boolean; +} + +/** + * @interface + * An interface representing ApiBeginCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiBeginCreateOrUpdateOptionalParams 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 ApiRevisionListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiRevisionListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * apiRevision | filter | 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. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ApiReleaseListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiReleaseListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * notes | filter | 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. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ApiReleaseCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiReleaseCreateOrUpdateOptionalParams 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 ApiOperationListByApiOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiOperationListByApiOptionalParams 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 |
| 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 |
+ */ + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {string} [tags] Include tags in the response. + */ + tags?: string; +} + +/** + * @interface + * An interface representing ApiOperationCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiOperationCreateOrUpdateOptionalParams 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 ApiOperationPolicyCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiOperationPolicyCreateOrUpdateOptionalParams 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 TagListByOperationOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TagListByOperationOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 |
+ */ + 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 TagListByApiOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TagListByApiOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 |
+ */ + 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 TagListByProductOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TagListByProductOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 |
+ */ + 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 TagListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TagListByServiceOptionalParams 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 |
+ */ + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {string} [scope] Scope like 'apis', 'products' or 'apis/{apiId} + */ + scope?: string; +} + +/** + * @interface + * An interface representing TagCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TagCreateOrUpdateOptionalParams 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 ApiProductListByApisOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiProductListByApisOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * displayName | filter | 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. + */ + skip?: number; +} + +/** + * @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 ApiSchemaListByApiOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiSchemaListByApiOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| + * contentType | filter | 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. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ApiSchemaCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiSchemaCreateOrUpdateOptionalParams 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 ApiSchemaDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiSchemaDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [force] If true removes all references to the schema + * before deleting it. + */ + force?: boolean; +} + +/** + * @interface + * An interface representing ApiDiagnosticListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiDiagnosticListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | 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. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ApiDiagnosticCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiDiagnosticCreateOrUpdateOptionalParams 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 ApiIssueListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 | |
+ */ + filter?: string; + /** + * @member {boolean} [expandCommentsAttachments] Expand the comment + * attachments. + */ + expandCommentsAttachments?: boolean; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ApiIssueGetOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueGetOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [expandCommentsAttachments] Expand the comment + * attachments. + */ + expandCommentsAttachments?: boolean; +} + +/** + * @interface + * An interface representing ApiIssueCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueCreateOrUpdateOptionalParams 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 ApiIssueCommentListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueCommentListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 |
+ */ + 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 ApiIssueCommentCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueCommentCreateOrUpdateOptionalParams 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 ApiIssueAttachmentListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueAttachmentListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 |
+ */ + 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 ApiIssueAttachmentCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiIssueAttachmentCreateOrUpdateOptionalParams 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 ApiTagDescriptionListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiTagDescriptionListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 |
+ */ + 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 ApiTagDescriptionCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiTagDescriptionCreateOrUpdateOptionalParams 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 OperationListByTagsOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface OperationListByTagsOptionalParams 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 |
| 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 |
+ */ + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {boolean} [includeNotTaggedOperations] Include not tagged + * Operations. + */ + includeNotTaggedOperations?: boolean; +} + +/** + * @interface + * An interface representing ApiVersionSetListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiVersionSetListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
+ */ + 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 ApiVersionSetCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiVersionSetCreateOrUpdateOptionalParams 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 AuthorizationServerListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AuthorizationServerListByServiceOptionalParams 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 |
+ */ + 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 AuthorizationServerCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface AuthorizationServerCreateOrUpdateOptionalParams 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 BackendListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface BackendListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing BackendCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing BackendReconnectOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface BackendReconnectOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {BackendReconnectContract} [parameters] Reconnect request + * parameters. + */ + parameters?: BackendReconnectContract; +} + +/** + * @interface + * An interface representing CacheListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CacheListByServiceOptionalParams 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 CacheCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CacheCreateOrUpdateOptionalParams 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 CertificateListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing CertificateCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface CertificateCreateOrUpdateOptionalParams 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 ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams 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. + */ + parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; +} + +/** + * @interface + * An interface representing ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams 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. + */ + parameters?: ApiManagementServiceApplyNetworkConfigurationParameters; +} + +/** + * @interface + * An interface representing DiagnosticListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DiagnosticListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | 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. + */ + skip?: number; +} + +/** + * @interface + * An interface representing DiagnosticCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing EmailTemplateListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface EmailTemplateListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] | Field | Usage | Supported + * operators | Supported functions + * |
|-------------|-------------|-------------|-------------|
| name + * | filter | 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. + */ + 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing GroupListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface GroupListByServiceOptionalParams 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 | + *
| aadObjectId | filter | eq | |
+ */ + 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 GroupCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface GroupCreateOrUpdateOptionalParams 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 GroupUserListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface GroupUserListOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 |
+ */ + 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 IdentityProviderCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface IdentityProviderCreateOrUpdateOptionalParams 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 IssueListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface IssueListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing LoggerListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface LoggerListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing LoggerCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface LoggerCreateOrUpdateOptionalParams 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 LoggerDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface LoggerDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [force] Force deletion even if diagnostic is attached. + */ + 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. + */ + 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 { + /** + * @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 OpenIdConnectProviderListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface OpenIdConnectProviderListByServiceOptionalParams 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 |
+ */ + 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 OpenIdConnectProviderCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing PolicyCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PolicyCreateOrUpdateOptionalParams 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 PolicySnippetListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PolicySnippetListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {PolicyScopeContract} [scope] Policy scope. Possible values + * include: 'Tenant', 'Product', 'Api', 'Operation', 'All' + */ + scope?: PolicyScopeContract; +} + +/** + * @interface + * An interface representing SignInSettingsCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing SignUpSettingsCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SignUpSettingsCreateOrUpdateOptionalParams 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 DelegationSettingsCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface DelegationSettingsCreateOrUpdateOptionalParams 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 ProductListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ProductListByServiceOptionalParams 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 | |
| groups | + * expand | | |
+ */ + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @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 ProductCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing ProductDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ProductDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [deleteSubscriptions] Delete existing subscriptions + * associated with the product or not. + */ + deleteSubscriptions?: boolean; +} + +/** + * @interface + * An interface representing ProductListByTagsOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {boolean} [includeNotTaggedProducts] Include not tagged Products. + */ + includeNotTaggedProducts?: boolean; +} + +/** + * @interface + * An interface representing ProductApiListByProductOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ProductApiListByProductOptionalParams 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 | + *
| 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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ProductGroupListByProductOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ProductGroupListByProductOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 | |
+ */ + 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 ProductSubscriptionsListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ProductSubscriptionsListOptionalParams 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 |
| 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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ProductPolicyCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing PropertyListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface PropertyListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing PropertyCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + ifMatch?: string; +} + +/** + * @interface + * An interface representing ReportsListByApiOptionalParams. + * Optional Parameters. + * + * @extends 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; + /** + * @member {string} [orderby] OData order by query option. + */ + orderby?: string; +} + +/** + * @interface + * An interface representing ReportsListByUserOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ReportsListByUserOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [top] Number of records to return. + */ + 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 ReportsListByOperationOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ReportsListByOperationOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [top] Number of records to return. + */ + 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 ReportsListByProductOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ReportsListByProductOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [top] Number of records to return. + */ + 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 ReportsListByGeoOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ReportsListByGeoOptionalParams 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 ReportsListBySubscriptionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ReportsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [top] Number of records to return. + */ + 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 ReportsListByTimeOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ReportsListByTimeOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {number} [top] Number of records to return. + */ + 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 ReportsListByRequestOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface ReportsListByRequestOptionalParams 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 SubscriptionListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface SubscriptionListOptionalParams 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 |
| 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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing SubscriptionCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @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; + /** + * @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 SubscriptionUpdateOptionalParams. + * Optional Parameters. + * + * @extends 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 | 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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing UserListByServiceOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface UserListByServiceOptionalParams extends msRest.RequestOptionsBase { + /** + * @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 | | |
+ */ + filter?: string; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; + /** + * @member {boolean} [expandGroups] Detailed Group in response. + */ + expandGroups?: boolean; +} + +/** + * @interface + * An interface representing UserCreateOrUpdateOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface UserCreateOrUpdateOptionalParams 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 UserDeleteMethodOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface UserDeleteMethodOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {boolean} [deleteSubscriptions] Whether to delete user's + * subscription or not. + */ + deleteSubscriptions?: boolean; + /** + * @member {boolean} [notify] Send an Account Closed Email notification to + * the User. + */ + notify?: boolean; +} + +/** + * @interface + * An interface representing UserGroupListOptionalParams. + * Optional Parameters. + * + * @extends 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. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing UserSubscriptionListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface UserSubscriptionListOptionalParams 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 |
| 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; + /** + * @member {number} [top] Number of records to return. + */ + top?: number; + /** + * @member {number} [skip] Number of records to skip. + */ + skip?: number; +} + +/** + * @interface + * An interface representing ApiManagementClientOptions. + * @extends AzureServiceClientOptions + */ +export interface ApiManagementClientOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; +} + +/** + * @interface + * An interface representing ApiGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiGetEntityTagHeaders { + /** + * @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 ApiGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiGetHeaders { + /** + * @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 ApiCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiCreateOrUpdateHeaders { + /** + * @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 ApiReleaseGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiReleaseGetEntityTagHeaders { + /** + * @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 ApiReleaseGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiReleaseGetHeaders { + /** + * @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 ApiReleaseCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiReleaseCreateOrUpdateHeaders { + /** + * @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 ApiOperationGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiOperationGetEntityTagHeaders { + /** + * @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 ApiOperationGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiOperationGetHeaders { + /** + * @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 ApiOperationCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiOperationCreateOrUpdateHeaders { + /** + * @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 ApiOperationPolicyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiOperationPolicyGetEntityTagHeaders { + /** + * @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 ApiOperationPolicyGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiOperationPolicyGetHeaders { + /** + * @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 ApiOperationPolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiOperationPolicyCreateOrUpdateHeaders { + /** + * @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 TagGetEntityStateByOperationHeaders. + * Defines headers for GetEntityStateByOperation operation. + * + */ +export interface TagGetEntityStateByOperationHeaders { + /** + * @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 TagGetByOperationHeaders. + * Defines headers for GetByOperation operation. + * + */ +export interface TagGetByOperationHeaders { + /** + * @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 ApiPolicyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiPolicyGetEntityTagHeaders { + /** + * @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 ApiPolicyGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiPolicyGetHeaders { + /** + * @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 ApiPolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiPolicyCreateOrUpdateHeaders { + /** + * @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 ApiSchemaGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiSchemaGetEntityTagHeaders { + /** + * @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 ApiSchemaGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiSchemaGetHeaders { + /** + * @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 ApiSchemaCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiSchemaCreateOrUpdateHeaders { + /** + * @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 ApiDiagnosticGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiDiagnosticGetEntityTagHeaders { + /** + * @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 ApiDiagnosticGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiDiagnosticGetHeaders { + /** + * @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 ApiDiagnosticCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiDiagnosticCreateOrUpdateHeaders { + /** + * @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 ApiIssueGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiIssueGetEntityTagHeaders { + /** + * @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 ApiIssueGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiIssueGetHeaders { + /** + * @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 ApiIssueCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiIssueCreateOrUpdateHeaders { + /** + * @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 ApiIssueCommentGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiIssueCommentGetEntityTagHeaders { + /** + * @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 ApiIssueCommentGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiIssueCommentGetHeaders { + /** + * @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 ApiIssueCommentCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiIssueCommentCreateOrUpdateHeaders { + /** + * @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 ApiIssueAttachmentGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiIssueAttachmentGetEntityTagHeaders { + /** + * @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 ApiIssueAttachmentGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiIssueAttachmentGetHeaders { + /** + * @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 ApiIssueAttachmentCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiIssueAttachmentCreateOrUpdateHeaders { + /** + * @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 ApiTagDescriptionGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ApiTagDescriptionGetEntityTagHeaders { + /** + * @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 ApiTagDescriptionGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ApiTagDescriptionGetHeaders { + /** + * @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 ApiTagDescriptionCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiTagDescriptionCreateOrUpdateHeaders { + /** + * @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 TagGetEntityStateByApiHeaders. + * Defines headers for GetEntityStateByApi operation. + * + */ +export interface TagGetEntityStateByApiHeaders { + /** + * @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 TagGetByApiHeaders. + * Defines headers for GetByApi operation. + * + */ +export interface TagGetByApiHeaders { + /** + * @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 TagAssignToApiHeaders. + * Defines headers for AssignToApi operation. + * + */ +export interface TagAssignToApiHeaders { + /** + * @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 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. + * + */ +export interface ApiVersionSetGetHeaders { + /** + * @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 ApiVersionSetCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ApiVersionSetCreateOrUpdateHeaders { + /** + * @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 AuthorizationServerGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface AuthorizationServerGetEntityTagHeaders { + /** + * @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 AuthorizationServerGetHeaders. + * Defines headers for Get operation. + * + */ +export interface AuthorizationServerGetHeaders { + /** + * @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 AuthorizationServerCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface AuthorizationServerCreateOrUpdateHeaders { + /** + * @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 BackendGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface BackendGetEntityTagHeaders { + /** + * @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 BackendGetHeaders. + * Defines headers for Get operation. + * + */ +export interface BackendGetHeaders { + /** + * @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 BackendCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface BackendCreateOrUpdateHeaders { + /** + * @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 CacheGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface CacheGetEntityTagHeaders { + /** + * @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 CacheGetHeaders. + * Defines headers for Get operation. + * + */ +export interface CacheGetHeaders { + /** + * @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 CacheCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface CacheCreateOrUpdateHeaders { + /** + * @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 CertificateGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface CertificateGetEntityTagHeaders { + /** + * @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 CertificateGetHeaders. + * Defines headers for Get operation. + * + */ +export interface CertificateGetHeaders { + /** + * @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 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 DiagnosticGetEntityTagHeaders { + /** + * @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 DiagnosticGetHeaders. + * Defines headers for Get operation. + * + */ +export interface DiagnosticGetHeaders { + /** + * @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 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 EmailTemplateGetEntityTagHeaders { + /** + * @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 EmailTemplateGetHeaders. + * Defines headers for Get operation. + * + */ +export interface EmailTemplateGetHeaders { + /** + * @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 GroupGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface GroupGetEntityTagHeaders { + /** + * @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 GroupGetHeaders. + * Defines headers for Get operation. + * + */ +export interface GroupGetHeaders { + /** + * @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 GroupCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface GroupCreateOrUpdateHeaders { + /** + * @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 IdentityProviderGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface IdentityProviderGetEntityTagHeaders { + /** + * @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 IdentityProviderGetHeaders. + * Defines headers for Get operation. + * + */ +export interface IdentityProviderGetHeaders { + /** + * @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 IdentityProviderCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface IdentityProviderCreateOrUpdateHeaders { + /** + * @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 IssueGetHeaders. + * Defines headers for Get operation. + * + */ +export interface IssueGetHeaders { + /** + * @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 LoggerGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface LoggerGetEntityTagHeaders { + /** + * @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 LoggerGetHeaders. + * Defines headers for Get operation. + * + */ +export interface LoggerGetHeaders { + /** + * @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 LoggerCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface LoggerCreateOrUpdateHeaders { + /** + * @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 OpenIdConnectProviderGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface OpenIdConnectProviderGetEntityTagHeaders { + /** + * @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 OpenIdConnectProviderGetHeaders. + * Defines headers for Get operation. + * + */ +export interface OpenIdConnectProviderGetHeaders { + /** + * @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 OpenIdConnectProviderCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface OpenIdConnectProviderCreateOrUpdateHeaders { + /** + * @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 PolicyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface PolicyGetEntityTagHeaders { + /** + * @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 PolicyGetHeaders. + * Defines headers for Get operation. + * + */ +export interface PolicyGetHeaders { + /** + * @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 PolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface PolicyCreateOrUpdateHeaders { + /** + * @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 SignInSettingsGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface SignInSettingsGetEntityTagHeaders { + /** + * @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 SignInSettingsGetHeaders. + * Defines headers for Get operation. + * + */ +export interface SignInSettingsGetHeaders { + /** + * @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 SignUpSettingsGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface SignUpSettingsGetEntityTagHeaders { + /** + * @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 SignUpSettingsGetHeaders. + * Defines headers for Get operation. + * + */ +export interface SignUpSettingsGetHeaders { + /** + * @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 DelegationSettingsGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface DelegationSettingsGetEntityTagHeaders { + /** + * @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 DelegationSettingsGetHeaders. + * Defines headers for Get operation. + * + */ +export interface DelegationSettingsGetHeaders { + /** + * @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 ProductGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ProductGetEntityTagHeaders { + /** + * @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 ProductGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ProductGetHeaders { + /** + * @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 ProductCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ProductCreateOrUpdateHeaders { + /** + * @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 ProductPolicyGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface ProductPolicyGetEntityTagHeaders { + /** + * @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 ProductPolicyGetHeaders. + * Defines headers for Get operation. + * + */ +export interface ProductPolicyGetHeaders { + /** + * @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 ProductPolicyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface ProductPolicyCreateOrUpdateHeaders { + /** + * @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 TagGetEntityStateByProductHeaders. + * Defines headers for GetEntityStateByProduct operation. + * + */ +export interface TagGetEntityStateByProductHeaders { + /** + * @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 TagGetByProductHeaders. + * Defines headers for GetByProduct operation. + * + */ +export interface TagGetByProductHeaders { + /** + * @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 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. + * + */ +export interface PropertyGetHeaders { + /** + * @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 PropertyCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface PropertyCreateOrUpdateHeaders { + /** + * @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 SubscriptionGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface SubscriptionGetEntityTagHeaders { + /** + * @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 SubscriptionGetHeaders. + * Defines headers for Get operation. + * + */ +export interface SubscriptionGetHeaders { + /** + * @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 SubscriptionCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface SubscriptionCreateOrUpdateHeaders { + /** + * @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 TagGetEntityStateHeaders. + * Defines headers for GetEntityState operation. + * + */ +export interface TagGetEntityStateHeaders { + /** + * @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 TagGetHeaders. + * Defines headers for Get operation. + * + */ +export interface TagGetHeaders { + /** + * @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 TagCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface TagCreateOrUpdateHeaders { + /** + * @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 TenantAccessGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface TenantAccessGetEntityTagHeaders { + /** + * @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 TenantAccessGetHeaders. + * Defines headers for Get operation. + * + */ +export interface TenantAccessGetHeaders { + /** + * @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 TenantAccessGitGetHeaders. + * Defines headers for Get operation. + * + */ +export interface TenantAccessGitGetHeaders { + /** + * @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 UserGetEntityTagHeaders. + * Defines headers for GetEntityTag operation. + * + */ +export interface UserGetEntityTagHeaders { + /** + * @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 UserGetHeaders. + * Defines headers for Get operation. + * + */ +export interface UserGetHeaders { + /** + * @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 UserCreateOrUpdateHeaders. + * Defines headers for CreateOrUpdate operation. + * + */ +export interface UserCreateOrUpdateHeaders { + /** + * @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 the ApiCollection. + * Paged Api list representation. + * + * @extends Array + */ +export interface ApiCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TagResourceCollection. + * Paged Tag list representation. + * + * @extends Array + */ +export interface TagResourceCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the ApiRevisionCollection. + * Paged Api Revision list representation. + * + * @extends Array + */ +export interface ApiRevisionCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the ApiReleaseCollection. + * Paged ApiRelease list representation. + * + * @extends Array + */ +export interface ApiReleaseCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the OperationCollection. + * Paged Operation list representation. + * + * @extends Array + */ +export interface OperationCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + 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. + * Paged Products list representation. + * + * @extends Array + */ +export interface ProductCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the SchemaCollection. + * The response of the list schema operation. + * + * @extends Array + */ +export interface SchemaCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the DiagnosticCollection. + * Paged Diagnostic list representation. + * + * @extends Array + */ +export interface DiagnosticCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the IssueCollection. + * Paged Issue list representation. + * + * @extends Array + */ +export interface IssueCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the IssueCommentCollection. + * Paged Issue Comment list representation. + * + * @extends Array + */ +export interface IssueCommentCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the IssueAttachmentCollection. + * Paged Issue Attachment list representation. + * + * @extends Array + */ +export interface IssueAttachmentCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly nextLink?: string; +} + +/** + * @interface + * An interface representing the TagDescriptionCollection. + * Paged TagDescription list representation. + * + * @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. + * Paged OAuth2 Authorization Servers list representation. + * + * @extends Array + */ +export interface AuthorizationServerCollection 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 BackendCollection. + * Paged Backend list representation. + * + * @extends Array + */ +export interface BackendCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + 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. + * Paged Certificates list representation. + * + * @extends Array + */ +export interface CertificateCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the OperationListResult. + * Result of the request to list REST API operations. It contains a list of + * operations and a URL nextLink to get the next set of results. + * + * @extends Array + */ +export interface OperationListResult extends Array { + /** + * @member {string} [nextLink] URL to get the next set of operation list + * results if there are any. + */ + 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. + * The response of the List API Management services operation. + * + * @extends Array + */ +export interface ApiManagementServiceListResult extends Array { + /** + * @member {string} [nextLink] Link to the next set of results. Not empty if + * Value contains incomplete list of API Management services. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the EmailTemplateCollection. + * Paged email template list representation. + * + * @extends Array + */ +export interface EmailTemplateCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the GroupCollection. + * Paged Group list representation. + * + * @extends Array + */ +export interface GroupCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the UserCollection. + * Paged Users list representation. + * + * @extends Array + */ +export interface UserCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the IdentityProviderList. + * List of all the Identity Providers configured on the service instance. + * + * @extends Array + */ +export interface IdentityProviderList extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + 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. + * Paged Notification list representation. + * + * @extends Array + */ +export interface NotificationCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the OpenIdConnectProviderCollection. + * Paged OpenIdProviders list representation. + * + * @extends Array + */ +export interface OpenIdConnectProviderCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the SubscriptionCollection. + * Paged Subscriptions list representation. + * + * @extends Array + */ +export interface SubscriptionCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @interface + * An interface representing the PropertyCollection. + * Paged Property list representation. + * + * @extends Array + */ +export interface PropertyCollection extends Array { + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * @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 ReportCollection. + * Paged Report records list representation. + * + * @extends Array + */ +export interface ReportCollection 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 RequestReportCollection. + * Paged Report records list representation. + * + * @extends Array + */ +export interface RequestReportCollection extends Array { + /** + * @member {number} [count] Total record count number across all pages. + */ + count?: number; +} + +/** + * @interface + * An interface representing the UserIdentityCollection. + * List of Users Identity list representation. + * + * @extends Array + */ +export interface UserIdentityCollection extends Array { + /** + * @member {number} [count] Total record count number across all pages. + */ + count?: number; + /** + * @member {string} [nextLink] Next page link if any. + */ + nextLink?: string; +} + +/** + * Defines values for ExportResultFormat. + * Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'OpenApi' + * @readonly + * @enum {string} + */ +export type ExportResultFormat = 'swagger-link-json' | 'wsdl-link+xml' | 'wadl-link-json' | 'openapi-link'; + +/** + * Defines values for ProductState. + * Possible values include: 'notPublished', 'published' + * @readonly + * @enum {string} + */ +export type ProductState = 'notPublished' | 'published'; + +/** + * Defines values for BearerTokenSendingMethods. + * Possible values include: 'authorizationHeader', 'query' + * @readonly + * @enum {string} + */ +export type BearerTokenSendingMethods = 'authorizationHeader' | 'query'; + +/** + * Defines values for Protocol. + * Possible values include: 'http', 'https' + * @readonly + * @enum {string} + */ +export type Protocol = 'http' | 'https'; + +/** + * Defines values for ContentFormat. + * Possible values include: 'wadl-xml', 'wadl-link-json', 'swagger-json', 'swagger-link-json', + * 'wsdl', 'wsdl-link', 'openapi', 'openapi+json', 'openapi-link' + * @readonly + * @enum {string} + */ +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. + * Possible values include: 'SoapToRest', 'SoapPassThrough' + * @readonly + * @enum {string} + */ +export type SoapApiType = 'http' | 'soap'; + +/** + * Defines values for ApiType. + * Possible values include: 'http', 'soap' + * @readonly + * @enum {string} + */ +export type ApiType = 'http' | 'soap'; + +/** + * Defines values for State. + * Possible values include: 'proposed', 'open', 'removed', 'resolved', 'closed' + * @readonly + * @enum {string} + */ +export type State = 'proposed' | 'open' | 'removed' | 'resolved' | 'closed'; + +/** + * Defines values for SamplingType. + * Possible values include: 'fixed' + * @readonly + * @enum {string} + */ +export type SamplingType = 'fixed'; + +/** + * Defines values for AlwaysLog. + * Possible values include: 'allErrors' + * @readonly + * @enum {string} + */ +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. + * Possible values include: 'authorizationCode', 'implicit', 'resourceOwnerPassword', + * 'clientCredentials' + * @readonly + * @enum {string} + */ +export type GrantType = 'authorizationCode' | 'implicit' | 'resourceOwnerPassword' | 'clientCredentials'; + +/** + * Defines values for AuthorizationMethod. + * Possible values include: 'HEAD', 'OPTIONS', 'TRACE', 'GET', 'POST', 'PUT', 'PATCH', 'DELETE' + * @readonly + * @enum {string} + */ +export type AuthorizationMethod = 'HEAD' | 'OPTIONS' | 'TRACE' | 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'; + +/** + * Defines values for ClientAuthenticationMethod. + * Possible values include: 'Basic', 'Body' + * @readonly + * @enum {string} + */ +export type ClientAuthenticationMethod = 'Basic' | 'Body'; + +/** + * Defines values for BearerTokenSendingMethod. + * Possible values include: 'authorizationHeader', 'query' + * @readonly + * @enum {string} + */ +export type BearerTokenSendingMethod = 'authorizationHeader' | 'query'; + +/** + * Defines values for BackendProtocol. + * Possible values include: 'http', 'soap' + * @readonly + * @enum {string} + */ +export type BackendProtocol = 'http' | 'soap'; + +/** + * Defines values for SkuType. + * Possible values include: 'Developer', 'Standard', 'Premium', 'Basic', 'Consumption' + * @readonly + * @enum {string} + */ +export type SkuType = 'Developer' | 'Standard' | 'Premium' | 'Basic' | 'Consumption'; + +/** + * Defines values for ResourceSkuCapacityScaleType. + * Possible values include: 'automatic', 'manual', 'none' + * @readonly + * @enum {string} + */ +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. + * Possible values include: 'None', 'External', 'Internal' + * @readonly + * @enum {string} + */ +export type VirtualNetworkType = 'None' | 'External' | 'Internal'; + +/** + * Defines values for NameAvailabilityReason. + * Possible values include: 'Valid', 'Invalid', 'AlreadyExists' + * @readonly + * @enum {string} + */ +export type NameAvailabilityReason = 'Valid' | 'Invalid' | 'AlreadyExists'; + +/** + * Defines values for Confirmation. + * Possible values include: 'signup', 'invite' + * @readonly + * @enum {string} + */ +export type Confirmation = 'signup' | 'invite'; + +/** + * Defines values for UserState. + * Possible values include: 'active', 'blocked', 'pending', 'deleted' + * @readonly + * @enum {string} + */ +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' + * @readonly + * @enum {string} + */ +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' + * @readonly + * @enum {string} + */ +export type ConnectivityStatusType = 'initializing' | 'success' | 'failure'; + +/** + * Defines values for SubscriptionState. + * Possible values include: 'suspended', 'active', 'expired', 'submitted', 'rejected', 'cancelled' + * @readonly + * @enum {string} + */ +export type SubscriptionState = 'suspended' | 'active' | 'expired' | 'submitted' | 'rejected' | 'cancelled'; + +/** + * Defines values for AsyncOperationStatus. + * Possible values include: 'Started', 'InProgress', 'Succeeded', 'Failed' + * @readonly + * @enum {string} + */ +export type AsyncOperationStatus = 'Started' | 'InProgress' | 'Succeeded' | 'Failed'; + +/** + * Defines values for KeyType. + * Possible values include: 'primary', 'secondary' + * @readonly + * @enum {string} + */ +export type KeyType = 'primary' | 'secondary'; + +/** + * Defines values for NotificationName. + * Possible values include: 'RequestPublisherNotificationMessage', + * 'PurchasePublisherNotificationMessage', 'NewApplicationNotificationMessage', 'BCC', + * 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', + * 'QuotaLimitApproachingPublisherNotificationMessage' + * @readonly + * @enum {string} + */ +export type NotificationName = 'RequestPublisherNotificationMessage' | 'PurchasePublisherNotificationMessage' | 'NewApplicationNotificationMessage' | 'BCC' | 'NewIssuePublisherNotificationMessage' | 'AccountClosedPublisher' | 'QuotaLimitApproachingPublisherNotificationMessage'; + +/** + * Defines values for TemplateName. + * Possible values include: 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @readonly + * @enum {string} + */ +export type TemplateName = 'applicationApprovedNotificationMessage' | 'accountClosedDeveloper' | 'quotaLimitApproachingDeveloperNotificationMessage' | 'newDeveloperNotificationMessage' | 'emailChangeIdentityDefault' | 'inviteUserNotificationMessage' | 'newCommentNotificationMessage' | 'confirmSignUpIdentityDefault' | 'newIssueNotificationMessage' | 'purchaseDeveloperNotificationMessage' | 'passwordResetIdentityDefault' | 'passwordResetByAdminNotificationMessage' | 'rejectDeveloperNotificationMessage' | 'requestDeveloperNotificationMessage'; + +/** + * Defines values for PolicyScopeContract. + * Possible values include: 'Tenant', 'Product', 'Api', 'Operation', 'All' + * @readonly + * @enum {string} + */ +export type PolicyScopeContract = 'Tenant' | 'Product' | 'Api' | 'Operation' | 'All'; + +/** + * Defines values for ExportFormat. + * Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * @readonly + * @enum {string} + */ +export type ExportFormat = 'swagger-link' | 'wsdl-link' | 'wadl-link' | 'openapi-link'; + +/** + * Defines values for VersioningScheme1. + * Possible values include: 'Segment', 'Query', 'Header' + * @readonly + * @enum {string} + */ +export type VersioningScheme1 = 'Segment' | 'Query' | 'Header'; + +/** + * Defines values for StoreName. + * Possible values include: 'CertificateAuthority', 'Root' + * @readonly + * @enum {string} + */ +export type StoreName = 'CertificateAuthority' | 'Root'; + +/** + * 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 ApiListByTagsResponse = TagResourceCollection & { + /** + * 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: TagResourceCollection; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ApiListByServiceNextResponse = 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 listByTagsNext operation. + */ +export type ApiListByTagsNextResponse = TagResourceCollection & { + /** + * 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: 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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApiRevisionCollection; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ApiRevisionListByServiceNextResponse = ApiRevisionCollection & { + /** + * 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: ApiRevisionCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ApiReleaseListByServiceResponse = ApiReleaseCollection & { + /** + * 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: ApiReleaseCollection; + }; +}; + +/** + * 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 ApiReleaseGetResponse = ApiReleaseContract & ApiReleaseGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiReleaseGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + 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 ApiReleaseListByServiceNextResponse = ApiReleaseCollection & { + /** + * 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: ApiReleaseCollection; + }; +}; + +/** + * Contains response data for the listByApi operation. + */ +export type ApiOperationListByApiResponse = OperationCollection & { + /** + * 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: OperationCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiOperationGetEntityTagResponse = ApiOperationGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiOperationGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiOperationGetResponse = OperationContract & ApiOperationGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiOperationGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ApiOperationCreateOrUpdateResponse = OperationContract & ApiOperationCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiOperationCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationContract; + }; +}; + +/** + * Contains response data for the listByApiNext operation. + */ +export type ApiOperationListByApiNextResponse = OperationCollection & { + /** + * 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: OperationCollection; + }; +}; + +/** + * Contains response data for the listByOperation operation. + */ +export type ApiOperationPolicyListByOperationResponse = PolicyCollection & { + /** + * 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: PolicyCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiOperationPolicyGetEntityTagResponse = ApiOperationPolicyGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiOperationPolicyGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; + }; +}; + +/** + * Contains response data for the listByOperation operation. + */ +export type TagListByOperationResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * Contains response data for the getEntityStateByOperation operation. + */ +export type TagGetEntityStateByOperationResponse = TagGetEntityStateByOperationHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetEntityStateByOperationHeaders; + }; +}; + +/** + * Contains response data for the getByOperation operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagContract; + }; +}; + +/** + * Contains response data for the assignToOperation operation. + */ +export type TagAssignToOperationResponse = TagContract & { + /** + * 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: TagContract; + }; +}; + +/** + * Contains response data for the listByApi operation. + */ +export type TagListByApiResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * Contains response data for the getEntityStateByApi operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagContract; + }; +}; + +/** + * Contains response data for the assignToApi operation. + */ +export type TagAssignToApiResponse = TagContract & TagAssignToApiHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + 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 listByProduct operation. + */ +export type TagListByProductResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * 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 TagGetByProductResponse = TagContract & TagGetByProductHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetByProductHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagContract; + }; +}; + +/** + * Contains response data for the assignToProduct operation. + */ +export type TagAssignToProductResponse = TagContract & { + /** + * 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: TagContract; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type TagListByServiceResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * Contains response data for the getEntityState operation. + */ +export type TagGetEntityStateResponse = TagGetEntityStateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetEntityStateHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type TagGetResponse = TagContract & TagGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TagGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagContract; + }; +}; + +/** + * Contains response data for the listByOperationNext operation. + */ +export type TagListByOperationNextResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * Contains response data for the listByApiNext operation. + */ +export type TagListByApiNextResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * Contains response data for the listByProductNext operation. + */ +export type TagListByProductNextResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type TagListByServiceNextResponse = TagCollection & { + /** + * 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: TagCollection; + }; +}; + +/** + * Contains response data for the listByApis operation. + */ +export type ApiProductListByApisResponse = ProductCollection & { + /** + * 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: ProductCollection; + }; +}; + +/** + * Contains response data for the listByApisNext operation. + */ +export type ApiProductListByApisNextResponse = ProductCollection & { + /** + * 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: ProductCollection; + }; +}; + +/** + * Contains response data for the listByApi operation. + */ +export type ApiPolicyListByApiResponse = PolicyCollection & { + /** + * 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: PolicyCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiPolicyGetEntityTagResponse = ApiPolicyGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiPolicyGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiPolicyGetResponse = PolicyContract & ApiPolicyGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiPolicyGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; + }; +}; + +/** + * Contains response data for the listByApi operation. + */ +export type ApiSchemaListByApiResponse = SchemaCollection & { + /** + * 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: SchemaCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiSchemaGetEntityTagResponse = ApiSchemaGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiSchemaGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiSchemaGetResponse = SchemaContract & ApiSchemaGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiSchemaGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SchemaContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SchemaContract; + }; +}; + +/** + * Contains response data for the listByApiNext operation. + */ +export type ApiSchemaListByApiNextResponse = SchemaCollection & { + /** + * 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: SchemaCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ApiDiagnosticListByServiceResponse = DiagnosticCollection & { + /** + * 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: DiagnosticCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiDiagnosticGetEntityTagResponse = ApiDiagnosticGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ApiDiagnosticListByServiceNextResponse = DiagnosticCollection & { + /** + * 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: DiagnosticCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ApiIssueListByServiceResponse = IssueCollection & { + /** + * 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: IssueCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiIssueGetEntityTagResponse = ApiIssueGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiIssueGetResponse = IssueContract & ApiIssueGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IssueContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IssueContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ApiIssueListByServiceNextResponse = IssueCollection & { + /** + * 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: IssueCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ApiIssueCommentListByServiceResponse = IssueCommentCollection & { + /** + * 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: IssueCommentCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiIssueCommentGetEntityTagResponse = ApiIssueCommentGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueCommentGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiIssueCommentGetResponse = IssueCommentContract & ApiIssueCommentGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueCommentGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IssueCommentContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IssueCommentContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ApiIssueCommentListByServiceNextResponse = IssueCommentCollection & { + /** + * 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: IssueCommentCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ApiIssueAttachmentListByServiceResponse = IssueAttachmentCollection & { + /** + * 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: IssueAttachmentCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiIssueAttachmentGetEntityTagResponse = ApiIssueAttachmentGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueAttachmentGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiIssueAttachmentGetResponse = IssueAttachmentContract & ApiIssueAttachmentGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiIssueAttachmentGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IssueAttachmentContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IssueAttachmentContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ApiIssueAttachmentListByServiceNextResponse = IssueAttachmentCollection & { + /** + * 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: IssueAttachmentCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ApiTagDescriptionListByServiceResponse = TagDescriptionCollection & { + /** + * 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: TagDescriptionCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ApiTagDescriptionGetEntityTagResponse = ApiTagDescriptionGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiTagDescriptionGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiTagDescriptionGetResponse = TagDescriptionContract & ApiTagDescriptionGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiTagDescriptionGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagDescriptionContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ApiTagDescriptionCreateOrUpdateResponse = TagDescriptionContract & ApiTagDescriptionCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiTagDescriptionCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: TagDescriptionContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ApiTagDescriptionListByServiceNextResponse = TagDescriptionCollection & { + /** + * 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: TagDescriptionCollection; + }; +}; + +/** + * Contains response data for the listByTags operation. + */ +export type OperationListByTagsResponse = TagResourceCollection & { + /** + * 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: TagResourceCollection; + }; +}; + +/** + * Contains response data for the listByTagsNext operation. + */ +export type OperationListByTagsNextResponse = TagResourceCollection & { + /** + * 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: TagResourceCollection; + }; +}; + +/** + * 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 & ApiVersionSetCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ApiVersionSetCreateOrUpdateHeaders; + /** + * 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 listByService operation. + */ +export type AuthorizationServerListByServiceResponse = AuthorizationServerCollection & { + /** + * 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: AuthorizationServerCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type AuthorizationServerGetEntityTagResponse = AuthorizationServerGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: AuthorizationServerGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AuthorizationServerContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AuthorizationServerContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type AuthorizationServerListByServiceNextResponse = AuthorizationServerCollection & { + /** + * 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: AuthorizationServerCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type BackendListByServiceResponse = BackendCollection & { + /** + * 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: 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; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackendContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: BackendContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type BackendListByServiceNextResponse = BackendCollection & { + /** + * 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: BackendCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type CacheListByServiceResponse = CacheCollection & { + /** + * 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: CacheCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type CacheGetEntityTagResponse = CacheGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CacheGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CacheContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CacheContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type CacheListByServiceNextResponse = CacheCollection & { + /** + * 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: CacheCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type CertificateListByServiceResponse = CertificateCollection & { + /** + * 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: CertificateCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type CertificateGetEntityTagResponse = CertificateGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: CertificateGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: CertificateContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type CertificateListByServiceNextResponse = CertificateCollection & { + /** + * 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: CertificateCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ApiManagementOperationsListResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ApiManagementOperationsListNextResponse = OperationListResult & { + /** + * 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: OperationListResult; + }; +}; + +/** + * Contains response data for the listAvailableServiceSkus operation. + */ +export type ApiManagementServiceSkusListAvailableServiceSkusResponse = ResourceSkuResults & { + /** + * 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: ResourceSkuResults; + }; +}; + +/** + * Contains response data for the listAvailableServiceSkusNext operation. + */ +export type ApiManagementServiceSkusListAvailableServiceSkusNextResponse = ResourceSkuResults & { + /** + * 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: ResourceSkuResults; + }; +}; + +/** + * Contains response data for the restore operation. + */ +export type ApiManagementServiceRestoreResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the backup operation. + */ +export type ApiManagementServiceBackupResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ApiManagementServiceCreateOrUpdateResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type ApiManagementServiceUpdateResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiManagementServiceGetResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the deleteMethod operation. + */ +export type ApiManagementServiceDeleteMethodResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type ApiManagementServiceListByResourceGroupResponse = ApiManagementServiceListResult & { + /** + * 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: ApiManagementServiceListResult; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ApiManagementServiceListResponse = ApiManagementServiceListResult & { + /** + * 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: ApiManagementServiceListResult; + }; +}; + +/** + * Contains response data for the getSsoToken operation. + */ +export type ApiManagementServiceGetSsoTokenResponse = ApiManagementServiceGetSsoTokenResult & { + /** + * 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: ApiManagementServiceGetSsoTokenResult; + }; +}; + +/** + * Contains response data for the checkNameAvailability operation. + */ +export type ApiManagementServiceCheckNameAvailabilityResponse = ApiManagementServiceNameAvailabilityResult & { + /** + * 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: ApiManagementServiceNameAvailabilityResult; + }; +}; + +/** + * Contains response data for the applyNetworkConfigurationUpdates operation. + */ +export type ApiManagementServiceApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the beginRestore operation. + */ +export type ApiManagementServiceBeginRestoreResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the beginBackup operation. + */ +export type ApiManagementServiceBeginBackupResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ApiManagementServiceBeginCreateOrUpdateResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type ApiManagementServiceBeginUpdateResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the beginDeleteMethod operation. + */ +export type ApiManagementServiceBeginDeleteMethodResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the beginApplyNetworkConfigurationUpdates operation. + */ +export type ApiManagementServiceBeginApplyNetworkConfigurationUpdatesResponse = ApiManagementServiceResource & { + /** + * 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: ApiManagementServiceResource; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type ApiManagementServiceListByResourceGroupNextResponse = ApiManagementServiceListResult & { + /** + * 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: ApiManagementServiceListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ApiManagementServiceListNextResponse = ApiManagementServiceListResult & { + /** + * 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: ApiManagementServiceListResult; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type DiagnosticListByServiceResponse = DiagnosticCollection & { + /** + * 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: 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; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DiagnosticGetResponse = DiagnosticContract & DiagnosticGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DiagnosticGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiagnosticContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type DiagnosticListByServiceNextResponse = DiagnosticCollection & { + /** + * 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: DiagnosticCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type EmailTemplateListByServiceResponse = EmailTemplateCollection & { + /** + * 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: 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; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type EmailTemplateGetResponse = EmailTemplateContract & EmailTemplateGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: EmailTemplateGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EmailTemplateContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type EmailTemplateCreateOrUpdateResponse = EmailTemplateContract & { + /** + * 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: EmailTemplateContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type EmailTemplateListByServiceNextResponse = EmailTemplateCollection & { + /** + * 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: EmailTemplateCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type GroupListByServiceResponse = GroupCollection & { + /** + * 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: GroupCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type GroupGetEntityTagResponse = GroupGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type GroupGetResponse = GroupContract & GroupGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GroupContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type GroupCreateOrUpdateResponse = GroupContract & GroupCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: GroupCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GroupContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type GroupListByServiceNextResponse = GroupCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: GroupCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type GroupUserListResponse = UserCollection & { + /** + * 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: UserCollection; + }; +}; + +/** + * Contains response data for the checkEntityExists operation. + */ +export type GroupUserCheckEntityExistsResponse = { + /** + * The parsed response body. + */ + body: boolean; + /** + * 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: boolean; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type GroupUserCreateResponse = UserContract & { + /** + * 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: UserContract; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type GroupUserListNextResponse = UserCollection & { + /** + * 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: UserCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type IdentityProviderListByServiceResponse = IdentityProviderList & { + /** + * 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: IdentityProviderList; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type IdentityProviderGetEntityTagResponse = IdentityProviderGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: IdentityProviderGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type IdentityProviderGetResponse = IdentityProviderContract & IdentityProviderGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: IdentityProviderGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentityProviderContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type IdentityProviderCreateOrUpdateResponse = IdentityProviderContract & IdentityProviderCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: IdentityProviderCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IdentityProviderContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type IdentityProviderListByServiceNextResponse = IdentityProviderList & { + /** + * 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: IdentityProviderList; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type IssueListByServiceResponse = IssueCollection & { + /** + * 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: IssueCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type IssueGetResponse = IssueContract & IssueGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: IssueGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: IssueContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type IssueListByServiceNextResponse = IssueCollection & { + /** + * 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: IssueCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type LoggerListByServiceResponse = LoggerCollection & { + /** + * 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: LoggerCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type LoggerGetEntityTagResponse = LoggerGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LoggerGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type LoggerGetResponse = LoggerContract & LoggerGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LoggerGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoggerContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type LoggerCreateOrUpdateResponse = LoggerContract & LoggerCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: LoggerCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: LoggerContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type LoggerListByServiceNextResponse = LoggerCollection & { + /** + * 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: LoggerCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type NetworkStatusListByServiceResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkStatusContractByLocation[]; + }; +}; + +/** + * Contains response data for the listByLocation operation. + */ +export type NetworkStatusListByLocationResponse = NetworkStatusContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NetworkStatusContract; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type NotificationListByServiceResponse = NotificationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotificationCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type NotificationGetResponse = NotificationContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotificationContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type NotificationCreateOrUpdateResponse = NotificationContract & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotificationContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type NotificationListByServiceNextResponse = NotificationCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: NotificationCollection; + }; +}; + +/** + * Contains response data for the listByNotification operation. + */ +export type NotificationRecipientUserListByNotificationResponse = RecipientUserCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: RecipientUserCollection; + }; +}; + +/** + * Contains response data for the checkEntityExists operation. + */ +export type NotificationRecipientUserCheckEntityExistsResponse = { + /** + * The parsed response body. + */ + body: boolean; + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: boolean; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type NotificationRecipientUserCreateOrUpdateResponse = RecipientUserContract & { + /** + * 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: RecipientUserContract; + }; +}; + +/** + * Contains response data for the listByNotification operation. + */ +export type NotificationRecipientEmailListByNotificationResponse = RecipientEmailCollection & { + /** + * 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: RecipientEmailCollection; + }; +}; + +/** + * Contains response data for the checkEntityExists operation. + */ +export type NotificationRecipientEmailCheckEntityExistsResponse = { + /** + * The parsed response body. + */ + body: boolean; + /** + * 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: boolean; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type NotificationRecipientEmailCreateOrUpdateResponse = RecipientEmailContract & { + /** + * 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: RecipientEmailContract; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type OpenIdConnectProviderListByServiceResponse = OpenIdConnectProviderCollection & { + /** + * 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: OpenIdConnectProviderCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type OpenIdConnectProviderGetEntityTagResponse = OpenIdConnectProviderGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: OpenIdConnectProviderGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OpenidConnectProviderContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: OpenidConnectProviderContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type OpenIdConnectProviderListByServiceNextResponse = OpenIdConnectProviderCollection & { + /** + * 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: OpenIdConnectProviderCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type PolicyListByServiceResponse = PolicyCollection & { + /** + * 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: PolicyCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type PolicyGetEntityTagResponse = PolicyGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PolicyGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PolicyGetResponse = PolicyContract & PolicyGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PolicyGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PolicyCreateOrUpdateResponse = PolicyContract & PolicyCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + 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 listByService operation. + */ +export type PolicySnippetListByServiceResponse = PolicySnippetsCollection & { + /** + * 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: PolicySnippetsCollection; + }; +}; + +/** + * 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 SignInSettingsGetResponse = PortalSigninSettings & SignInSettingsGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SignInSettingsGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PortalSigninSettings; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SignInSettingsCreateOrUpdateResponse = PortalSigninSettings & { + /** + * 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: PortalSigninSettings; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type SignUpSettingsGetEntityTagResponse = SignUpSettingsGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SignUpSettingsGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SignUpSettingsGetResponse = PortalSignupSettings & SignUpSettingsGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SignUpSettingsGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PortalSignupSettings; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SignUpSettingsCreateOrUpdateResponse = PortalSignupSettings & { + /** + * 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: PortalSignupSettings; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type DelegationSettingsGetEntityTagResponse = DelegationSettingsGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: DelegationSettingsGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PortalDelegationSettings; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DelegationSettingsCreateOrUpdateResponse = PortalDelegationSettings & { + /** + * 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: PortalDelegationSettings; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type ProductListByServiceResponse = ProductCollection & { + /** + * 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: ProductCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ProductGetEntityTagResponse = ProductGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProductGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProductContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ProductContract; + }; +}; + +/** + * Contains response data for the listByTags operation. + */ +export type ProductListByTagsResponse = TagResourceCollection & { + /** + * 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: TagResourceCollection; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type ProductListByServiceNextResponse = ProductCollection & { + /** + * 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: ProductCollection; + }; +}; + +/** + * Contains response data for the listByTagsNext operation. + */ +export type ProductListByTagsNextResponse = TagResourceCollection & { + /** + * 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: TagResourceCollection; + }; +}; + +/** + * Contains response data for the listByProduct operation. + */ +export type ProductApiListByProductResponse = 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 createOrUpdate operation. + */ +export type ProductApiCreateOrUpdateResponse = ApiContract & { + /** + * 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: ApiContract; + }; +}; + +/** + * Contains response data for the listByProductNext operation. + */ +export type ProductApiListByProductNextResponse = 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 listByProduct operation. + */ +export type ProductGroupListByProductResponse = GroupCollection & { + /** + * 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: GroupCollection; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ProductGroupCreateOrUpdateResponse = GroupContract & { + /** + * 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: GroupContract; + }; +}; + +/** + * Contains response data for the listByProductNext operation. + */ +export type ProductGroupListByProductNextResponse = GroupCollection & { + /** + * 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: GroupCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type ProductSubscriptionsListResponse = SubscriptionCollection & { + /** + * 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: SubscriptionCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type ProductSubscriptionsListNextResponse = SubscriptionCollection & { + /** + * 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: SubscriptionCollection; + }; +}; + +/** + * Contains response data for the listByProduct operation. + */ +export type ProductPolicyListByProductResponse = PolicyCollection & { + /** + * 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: PolicyCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type ProductPolicyGetEntityTagResponse = ProductPolicyGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProductPolicyGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ProductPolicyGetResponse = PolicyContract & ProductPolicyGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ProductPolicyGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PolicyContract; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type PropertyListByServiceResponse = PropertyCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PropertyCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type PropertyGetEntityTagResponse = PropertyGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PropertyGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type PropertyGetResponse = PropertyContract & PropertyGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PropertyGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PropertyContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type PropertyCreateOrUpdateResponse = PropertyContract & PropertyCreateOrUpdateHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: PropertyCreateOrUpdateHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PropertyContract; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type PropertyListByServiceNextResponse = PropertyCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PropertyCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type QuotaByCounterKeysListByServiceResponse = QuotaCounterCollection & { + /** + * 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: QuotaCounterCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type QuotaByPeriodKeysGetResponse = QuotaCounterContract & { + /** + * 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: QuotaCounterContract; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type RegionListByServiceResponse = RegionListResult & { + /** + * 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: RegionListResult; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type RegionListByServiceNextResponse = RegionListResult & { + /** + * 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: RegionListResult; + }; +}; + +/** + * Contains response data for the listByApi operation. + */ +export type ReportsListByApiResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByUser operation. + */ +export type ReportsListByUserResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByOperation operation. + */ +export type ReportsListByOperationResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByProduct operation. + */ +export type ReportsListByProductResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByGeo operation. + */ +export type ReportsListByGeoResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type ReportsListBySubscriptionResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByTime operation. + */ +export type ReportsListByTimeResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByRequest operation. + */ +export type ReportsListByRequestResponse = RequestReportCollection & { + /** + * 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: RequestReportCollection; + }; +}; + +/** + * Contains response data for the listByApiNext operation. + */ +export type ReportsListByApiNextResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByUserNext operation. + */ +export type ReportsListByUserNextResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByOperationNext operation. + */ +export type ReportsListByOperationNextResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByProductNext operation. + */ +export type ReportsListByProductNextResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByGeoNext operation. + */ +export type ReportsListByGeoNextResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type ReportsListBySubscriptionNextResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the listByTimeNext operation. + */ +export type ReportsListByTimeNextResponse = ReportCollection & { + /** + * 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: ReportCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type SubscriptionListResponse = SubscriptionCollection & { + /** + * 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: SubscriptionCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type SubscriptionGetEntityTagResponse = SubscriptionGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SubscriptionGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SubscriptionGetResponse = SubscriptionContract & SubscriptionGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: SubscriptionGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SubscriptionContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SubscriptionContract; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type SubscriptionListNextResponse = SubscriptionCollection & { + /** + * 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: SubscriptionCollection; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type TagResourceListByServiceResponse = TagResourceCollection & { + /** + * 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: TagResourceCollection; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type TagResourceListByServiceNextResponse = TagResourceCollection & { + /** + * 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: 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. + */ +export type TenantAccessGetResponse = AccessInformationContract & TenantAccessGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TenantAccessGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccessInformationContract; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type TenantAccessGitGetResponse = AccessInformationContract & TenantAccessGitGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: TenantAccessGitGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AccessInformationContract; + }; +}; + +/** + * Contains response data for the deploy operation. + */ +export type TenantConfigurationDeployResponse = OperationResultContract & { + /** + * 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: OperationResultContract; + }; +}; + +/** + * Contains response data for the save operation. + */ +export type TenantConfigurationSaveResponse = OperationResultContract & { + /** + * 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: OperationResultContract; + }; +}; + +/** + * Contains response data for the validate operation. + */ +export type TenantConfigurationValidateResponse = OperationResultContract & { + /** + * 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: OperationResultContract; + }; +}; + +/** + * Contains response data for the getSyncState operation. + */ +export type TenantConfigurationGetSyncStateResponse = TenantConfigurationSyncStateContract & { + /** + * 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: TenantConfigurationSyncStateContract; + }; +}; + +/** + * Contains response data for the beginDeploy operation. + */ +export type TenantConfigurationBeginDeployResponse = OperationResultContract & { + /** + * 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: OperationResultContract; + }; +}; + +/** + * Contains response data for the beginSave operation. + */ +export type TenantConfigurationBeginSaveResponse = OperationResultContract & { + /** + * 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: OperationResultContract; + }; +}; + +/** + * Contains response data for the beginValidate operation. + */ +export type TenantConfigurationBeginValidateResponse = OperationResultContract & { + /** + * 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: OperationResultContract; + }; +}; + +/** + * Contains response data for the listByService operation. + */ +export type UserListByServiceResponse = UserCollection & { + /** + * 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: UserCollection; + }; +}; + +/** + * Contains response data for the getEntityTag operation. + */ +export type UserGetEntityTagResponse = UserGetEntityTagHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: UserGetEntityTagHeaders; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type UserGetResponse = UserContract & UserGetHeaders & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: UserGetHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UserContract; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +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) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: UserContract; + }; +}; + +/** + * Contains response data for the generateSsoUrl operation. + */ +export type UserGenerateSsoUrlResponse = GenerateSsoUrlResult & { + /** + * 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: GenerateSsoUrlResult; + }; +}; + +/** + * Contains response data for the getSharedAccessToken operation. + */ +export type UserGetSharedAccessTokenResponse = UserTokenResult & { + /** + * 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: UserTokenResult; + }; +}; + +/** + * Contains response data for the listByServiceNext operation. + */ +export type UserListByServiceNextResponse = UserCollection & { + /** + * 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: UserCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type UserGroupListResponse = GroupCollection & { + /** + * 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: GroupCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type UserGroupListNextResponse = GroupCollection & { + /** + * 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: GroupCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type UserSubscriptionListResponse = SubscriptionCollection & { + /** + * 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: SubscriptionCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type UserSubscriptionListNextResponse = SubscriptionCollection & { + /** + * 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: SubscriptionCollection; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type UserIdentitiesListResponse = UserIdentityCollection & { + /** + * 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: UserIdentityCollection; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type UserIdentitiesListNextResponse = UserIdentityCollection & { + /** + * 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: UserIdentityCollection; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ApiExportGetResponse = ApiExportResult & { + /** + * 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: ApiExportResult; + }; +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/issueMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/issueMappers.ts new file mode 100644 index 000000000000..58da7fce6a15 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/loggerMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/loggerMappers.ts new file mode 100644 index 000000000000..759bf43d95fc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/loggerMappers.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 { + LoggerCollection, + LoggerContract, + Resource, + BaseResource, + ErrorResponse, + 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, + 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, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/mappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/mappers.ts new file mode 100644 index 000000000000..37f4d9f4de9e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/mappers.ts @@ -0,0 +1,10250 @@ +/* + * 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 { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; +import * as msRest from "@azure/ms-rest-js"; + +export const CloudError = CloudErrorMapper; +export const BaseResource = BaseResourceMapper; + +export const ErrorFieldContract: msRest.CompositeMapper = { + serializedName: "ErrorFieldContract", + type: { + name: "Composite", + className: "ErrorFieldContract", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorResponseBody: msRest.CompositeMapper = { + serializedName: "ErrorResponseBody", + type: { + name: "Composite", + className: "ErrorResponseBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorFieldContract" + } + } + } + } + } + } +}; + +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + code: { + serializedName: "error.code", + type: { + name: "String" + } + }, + message: { + serializedName: "error.message", + type: { + name: "String" + } + }, + details: { + serializedName: "error.details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorFieldContract" + } + } + } + } + } + } +}; + +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: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ApiExportResultValue: msRest.CompositeMapper = { + serializedName: "ApiExportResult_value", + type: { + name: "Composite", + className: "ApiExportResultValue", + modelProperties: { + link: { + serializedName: "link", + type: { + name: "String" + } + } + } + } +}; + +export const ApiExportResult: msRest.CompositeMapper = { + serializedName: "ApiExportResult", + type: { + name: "Composite", + className: "ApiExportResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + exportResultFormat: { + serializedName: "format", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "Composite", + className: "ApiExportResultValue" + } + } + } + } +}; + +export const ProductEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "ProductEntityBaseParameters", + type: { + name: "Composite", + className: "ProductEntityBaseParameters", + modelProperties: { + description: { + serializedName: "description", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + 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 ProductTagResourceContractProperties: msRest.CompositeMapper = { + serializedName: "ProductTagResourceContractProperties", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties", + modelProperties: { + ...ProductEntityBaseParameters.type.modelProperties, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + required: true, + serializedName: "name", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const OperationTagResourceContractProperties: msRest.CompositeMapper = { + serializedName: "OperationTagResourceContractProperties", + type: { + name: "Composite", + className: "OperationTagResourceContractProperties", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + apiName: { + readOnly: true, + serializedName: "apiName", + type: { + name: "String" + } + }, + apiRevision: { + readOnly: true, + serializedName: "apiRevision", + type: { + name: "String" + } + }, + apiVersion: { + readOnly: true, + serializedName: "apiVersion", + type: { + 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 SubscriptionKeyParameterNamesContract: msRest.CompositeMapper = { + serializedName: "SubscriptionKeyParameterNamesContract", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract", + modelProperties: { + header: { + serializedName: "header", + type: { + name: "String" + } + }, + query: { + serializedName: "query", + type: { + name: "String" + } + } + } + } +}; + +export const OpenIdAuthenticationSettingsContract: msRest.CompositeMapper = { + serializedName: "OpenIdAuthenticationSettingsContract", + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract", + modelProperties: { + openidProviderId: { + serializedName: "openidProviderId", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const OAuth2AuthenticationSettingsContract: msRest.CompositeMapper = { + serializedName: "OAuth2AuthenticationSettingsContract", + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract", + modelProperties: { + authorizationServerId: { + serializedName: "authorizationServerId", + type: { + name: "String" + } + }, + scope: { + serializedName: "scope", + type: { + name: "String" + } + } + } + } +}; + +export const AuthenticationSettingsContract: msRest.CompositeMapper = { + serializedName: "AuthenticationSettingsContract", + type: { + name: "Composite", + className: "AuthenticationSettingsContract", + modelProperties: { + oAuth2: { + serializedName: "oAuth2", + type: { + name: "Composite", + className: "OAuth2AuthenticationSettingsContract" + } + }, + openid: { + serializedName: "openid", + type: { + name: "Composite", + className: "OpenIdAuthenticationSettingsContract" + } + }, + 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" + } + }, + versionQueryName: { + serializedName: "versionQueryName", + type: { + name: "String" + } + }, + versionHeaderName: { + serializedName: "versionHeaderName", + type: { + name: "String" + } + } + } + } +}; + +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: { + name: "Composite", + className: "ApiEntityBaseContract", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + authenticationSettings: { + serializedName: "authenticationSettings", + type: { + name: "Composite", + className: "AuthenticationSettingsContract" + } + }, + subscriptionKeyParameterNames: { + serializedName: "subscriptionKeyParameterNames", + type: { + name: "Composite", + className: "SubscriptionKeyParameterNamesContract" + } + }, + apiType: { + serializedName: "type", + type: { + name: "String" + } + }, + apiRevision: { + serializedName: "apiRevision", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + }, + apiVersion: { + serializedName: "apiVersion", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + isCurrent: { + serializedName: "isCurrent", + type: { + name: "Boolean" + } + }, + isOnline: { + readOnly: true, + serializedName: "isOnline", + type: { + name: "Boolean" + } + }, + apiRevisionDescription: { + serializedName: "apiRevisionDescription", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + apiVersionDescription: { + serializedName: "apiVersionDescription", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + apiVersionSetId: { + serializedName: "apiVersionSetId", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "subscriptionRequired", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ApiContractProperties: msRest.CompositeMapper = { + serializedName: "ApiContractProperties", + type: { + name: "Composite", + className: "ApiContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + sourceApiId: { + serializedName: "sourceApiId", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + serviceUrl: { + serializedName: "serviceUrl", + constraints: { + MaxLength: 2000, + MinLength: 0 + }, + type: { + name: "String" + } + }, + path: { + required: true, + serializedName: "path", + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: "String" + } + }, + protocols: { + serializedName: "protocols", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "http", + "https" + ] + } + } + } + }, + apiVersionSet: { + serializedName: "apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails" + } + } + } + } +}; + +export const ApiTagResourceContractProperties: msRest.CompositeMapper = { + serializedName: "ApiTagResourceContractProperties", + type: { + name: "Composite", + className: "ApiTagResourceContractProperties", + modelProperties: { + ...ApiEntityBaseContract.type.modelProperties, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + serviceUrl: { + serializedName: "serviceUrl", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + path: { + serializedName: "path", + constraints: { + MaxLength: 400, + MinLength: 0 + }, + type: { + name: "String" + } + }, + protocols: { + serializedName: "protocols", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "http", + "https" + ] + } + } + } + } + } + } +}; + +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 + }, + type: { + name: "String" + } + } + } + } +}; + +export const TagResourceContract: msRest.CompositeMapper = { + serializedName: "TagResourceContract", + type: { + name: "Composite", + className: "TagResourceContract", + modelProperties: { + tag: { + required: true, + serializedName: "tag", + type: { + name: "Composite", + className: "TagTagResourceContractProperties" + } + }, + api: { + serializedName: "api", + type: { + name: "Composite", + className: "ApiTagResourceContractProperties" + } + }, + operation: { + serializedName: "operation", + type: { + name: "Composite", + className: "OperationTagResourceContractProperties" + } + }, + product: { + serializedName: "product", + type: { + name: "Composite", + className: "ProductTagResourceContractProperties" + } + } + } + } +}; + +export const TagContract: msRest.CompositeMapper = { + serializedName: "TagContract", + type: { + name: "Composite", + className: "TagContract", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 160, + 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", + constraints: { + MaxLength: 2000 + }, + type: { + name: "String" + } + }, + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 160, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const TagDescriptionCreateParameters: msRest.CompositeMapper = { + serializedName: "TagDescriptionCreateParameters", + type: { + name: "Composite", + className: "TagDescriptionCreateParameters", + modelProperties: { + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + externalDocsUrl: { + serializedName: "properties.externalDocsUrl", + constraints: { + MaxLength: 2000 + }, + type: { + name: "String" + } + }, + externalDocsDescription: { + serializedName: "properties.externalDocsDescription", + 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", + type: { + name: "String" + } + }, + contentFormat: { + required: true, + serializedName: "properties.contentFormat", + type: { + name: "String" + } + }, + content: { + required: true, + serializedName: "properties.content", + 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", + type: { + name: "String" + } + }, + createdDate: { + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + userId: { + required: true, + serializedName: "properties.userId", + type: { + name: "String" + } + } + } + } +}; + +export const IssueContractBaseProperties: msRest.CompositeMapper = { + serializedName: "IssueContractBaseProperties", + type: { + name: "Composite", + className: "IssueContractBaseProperties", + modelProperties: { + createdDate: { + serializedName: "createdDate", + type: { + name: "DateTime" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + apiId: { + serializedName: "apiId", + type: { + name: "String" + } + } + } + } +}; + +export const IssueUpdateContract: msRest.CompositeMapper = { + serializedName: "IssueUpdateContract", + type: { + name: "Composite", + className: "IssueUpdateContract", + modelProperties: { + createdDate: { + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + apiId: { + serializedName: "properties.apiId", + type: { + name: "String" + } + }, + title: { + serializedName: "properties.title", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + userId: { + serializedName: "properties.userId", + type: { + name: "String" + } + } + } + } +}; + +export const IssueContract: msRest.CompositeMapper = { + serializedName: "IssueContract", + type: { + name: "Composite", + className: "IssueContract", + modelProperties: { + ...Resource.type.modelProperties, + createdDate: { + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "String" + } + }, + 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" + } + } + } + } +}; + +export const BodyDiagnosticSettings: msRest.CompositeMapper = { + serializedName: "BodyDiagnosticSettings", + type: { + name: "Composite", + className: "BodyDiagnosticSettings", + modelProperties: { + bytes: { + serializedName: "bytes", + constraints: { + InclusiveMaximum: 8192 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const HttpMessageDiagnostic: msRest.CompositeMapper = { + serializedName: "HttpMessageDiagnostic", + type: { + name: "Composite", + className: "HttpMessageDiagnostic", + modelProperties: { + headers: { + serializedName: "headers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + body: { + serializedName: "body", + type: { + name: "Composite", + className: "BodyDiagnosticSettings" + } + } + } + } +}; + +export const PipelineDiagnosticSettings: msRest.CompositeMapper = { + serializedName: "PipelineDiagnosticSettings", + type: { + name: "Composite", + className: "PipelineDiagnosticSettings", + modelProperties: { + request: { + serializedName: "request", + type: { + name: "Composite", + className: "HttpMessageDiagnostic" + } + }, + response: { + serializedName: "response", + type: { + name: "Composite", + className: "HttpMessageDiagnostic" + } + } + } + } +}; + +export const SamplingSettings: msRest.CompositeMapper = { + serializedName: "SamplingSettings", + type: { + name: "Composite", + className: "SamplingSettings", + modelProperties: { + samplingType: { + serializedName: "samplingType", + type: { + name: "String" + } + }, + percentage: { + serializedName: "percentage", + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const DiagnosticContract: msRest.CompositeMapper = { + serializedName: "DiagnosticContract", + type: { + name: "Composite", + className: "DiagnosticContract", + modelProperties: { + ...Resource.type.modelProperties, + alwaysLog: { + serializedName: "properties.alwaysLog", + type: { + name: "String" + } + }, + loggerId: { + required: true, + serializedName: "properties.loggerId", + type: { + name: "String" + } + }, + sampling: { + serializedName: "properties.sampling", + type: { + name: "Composite", + className: "SamplingSettings" + } + }, + frontend: { + serializedName: "properties.frontend", + type: { + name: "Composite", + className: "PipelineDiagnosticSettings" + } + }, + backend: { + serializedName: "properties.backend", + type: { + name: "Composite", + className: "PipelineDiagnosticSettings" + } + }, + enableHttpCorrelationHeaders: { + serializedName: "properties.enableHttpCorrelationHeaders", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SchemaContract: msRest.CompositeMapper = { + serializedName: "SchemaContract", + type: { + name: "Composite", + className: "SchemaContract", + modelProperties: { + ...Resource.type.modelProperties, + contentType: { + required: true, + serializedName: "properties.contentType", + type: { + name: "String" + } + }, + value: { + serializedName: "properties.document.value", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyContract: msRest.CompositeMapper = { + serializedName: "PolicyContract", + type: { + name: "Composite", + className: "PolicyContract", + modelProperties: { + ...Resource.type.modelProperties, + value: { + required: true, + serializedName: "properties.value", + type: { + name: "String" + } + }, + format: { + serializedName: "properties.format", + defaultValue: 'xml', + type: { + name: "String" + } + } + } + } +}; + +export const PolicyCollection: msRest.CompositeMapper = { + serializedName: "PolicyCollection", + type: { + name: "Composite", + className: "PolicyCollection", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PolicyContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +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" + } + }, + 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: 300, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const ParameterContract: msRest.CompositeMapper = { + serializedName: "ParameterContract", + type: { + name: "Composite", + className: "ParameterContract", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String" + } + }, + required: { + serializedName: "required", + type: { + name: "Boolean" + } + }, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const RepresentationContract: msRest.CompositeMapper = { + serializedName: "RepresentationContract", + type: { + name: "Composite", + className: "RepresentationContract", + modelProperties: { + contentType: { + required: true, + serializedName: "contentType", + type: { + name: "String" + } + }, + sample: { + serializedName: "sample", + type: { + name: "String" + } + }, + schemaId: { + serializedName: "schemaId", + type: { + name: "String" + } + }, + typeName: { + serializedName: "typeName", + type: { + name: "String" + } + }, + formParameters: { + serializedName: "formParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + } + } + } +}; + +export const ResponseContract: msRest.CompositeMapper = { + serializedName: "ResponseContract", + type: { + name: "Composite", + className: "ResponseContract", + modelProperties: { + statusCode: { + required: true, + serializedName: "statusCode", + type: { + name: "Number" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + representations: { + serializedName: "representations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RepresentationContract" + } + } + } + }, + headers: { + serializedName: "headers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + } + } + } +}; + +export const RequestContract: msRest.CompositeMapper = { + serializedName: "RequestContract", + type: { + name: "Composite", + className: "RequestContract", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + queryParameters: { + serializedName: "queryParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + }, + headers: { + serializedName: "headers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + }, + representations: { + serializedName: "representations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RepresentationContract" + } + } + } + } + } + } +}; + +export const OperationEntityBaseContract: msRest.CompositeMapper = { + serializedName: "OperationEntityBaseContract", + type: { + name: "Composite", + className: "OperationEntityBaseContract", + modelProperties: { + templateParameters: { + serializedName: "templateParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + }, + description: { + serializedName: "description", + constraints: { + MaxLength: 1000 + }, + type: { + name: "String" + } + }, + request: { + serializedName: "request", + type: { + name: "Composite", + className: "RequestContract" + } + }, + responses: { + serializedName: "responses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResponseContract" + } + } + } + }, + policies: { + serializedName: "policies", + type: { + name: "String" + } + } + } + } +}; + +export const OperationUpdateContract: msRest.CompositeMapper = { + serializedName: "OperationUpdateContract", + type: { + name: "Composite", + className: "OperationUpdateContract", + modelProperties: { + templateParameters: { + serializedName: "properties.templateParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 1000 + }, + type: { + name: "String" + } + }, + request: { + serializedName: "properties.request", + type: { + name: "Composite", + className: "RequestContract" + } + }, + responses: { + serializedName: "properties.responses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResponseContract" + } + } + } + }, + policies: { + serializedName: "properties.policies", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + method: { + serializedName: "properties.method", + type: { + name: "String" + } + }, + urlTemplate: { + serializedName: "properties.urlTemplate", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const OperationContract: msRest.CompositeMapper = { + serializedName: "OperationContract", + type: { + name: "Composite", + className: "OperationContract", + modelProperties: { + ...Resource.type.modelProperties, + templateParameters: { + serializedName: "properties.templateParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ParameterContract" + } + } + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 1000 + }, + type: { + name: "String" + } + }, + request: { + serializedName: "properties.request", + type: { + name: "Composite", + className: "RequestContract" + } + }, + responses: { + serializedName: "properties.responses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ResponseContract" + } + } + } + }, + policies: { + serializedName: "properties.policies", + type: { + name: "String" + } + }, + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + method: { + required: true, + serializedName: "properties.method", + type: { + name: "String" + } + }, + urlTemplate: { + required: true, + serializedName: "properties.urlTemplate", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseContract: msRest.CompositeMapper = { + serializedName: "ApiReleaseContract", + type: { + name: "Composite", + className: "ApiReleaseContract", + modelProperties: { + ...Resource.type.modelProperties, + apiId: { + serializedName: "properties.apiId", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const ApiRevisionContract: msRest.CompositeMapper = { + serializedName: "ApiRevisionContract", + type: { + name: "Composite", + className: "ApiRevisionContract", + modelProperties: { + apiId: { + readOnly: true, + serializedName: "apiId", + type: { + name: "String" + } + }, + apiRevision: { + readOnly: true, + serializedName: "apiRevision", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + 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 + }, + type: { + name: "String" + } + }, + privateUrl: { + readOnly: true, + serializedName: "privateUrl", + type: { + name: "String" + } + }, + isOnline: { + readOnly: true, + serializedName: "isOnline", + type: { + name: "Boolean" + } + }, + isCurrent: { + readOnly: true, + serializedName: "isCurrent", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ApiUpdateContract: msRest.CompositeMapper = { + serializedName: "ApiUpdateContract", + type: { + name: "Composite", + className: "ApiUpdateContract", + 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: { + 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", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + serviceUrl: { + serializedName: "properties.serviceUrl", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + 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 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: { + serializedName: "properties.apiRevision", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + }, + apiVersion: { + serializedName: "properties.apiVersion", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + isCurrent: { + 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", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + serviceUrl: { + serializedName: "properties.serviceUrl", + constraints: { + MaxLength: 2000, + MinLength: 0 + }, + type: { + name: "String" + } + }, + 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: [ + "http", + "https" + ] + } + } + } + }, + apiVersionSet: { + serializedName: "properties.apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails" + } + } + } + } +}; + +export const ApiCreateOrUpdateParameter: msRest.CompositeMapper = { + serializedName: "ApiCreateOrUpdateParameter", + type: { + name: "Composite", + className: "ApiCreateOrUpdateParameter", + 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: { + 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", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + sourceApiId: { + serializedName: "properties.sourceApiId", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + serviceUrl: { + serializedName: "properties.serviceUrl", + constraints: { + MaxLength: 2000, + MinLength: 0 + }, + type: { + name: "String" + } + }, + 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: [ + "http", + "https" + ] + } + } + } + }, + apiVersionSet: { + serializedName: "properties.apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails" + } + }, + value: { + serializedName: "properties.value", + type: { + name: "String" + } + }, + format: { + serializedName: "properties.format", + type: { + name: "String" + } + }, + wsdlSelector: { + serializedName: "properties.wsdlSelector", + type: { + name: "Composite", + className: "ApiCreateOrUpdatePropertiesWsdlSelector" + } + }, + soapApiType: { + serializedName: "properties.apiType", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetEntityBase: msRest.CompositeMapper = { + serializedName: "ApiVersionSetEntityBase", + type: { + name: "Composite", + className: "ApiVersionSetEntityBase", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + versionQueryName: { + serializedName: "versionQueryName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + }, + versionHeaderName: { + serializedName: "versionHeaderName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetUpdateParameters: msRest.CompositeMapper = { + serializedName: "ApiVersionSetUpdateParameters", + type: { + name: "Composite", + className: "ApiVersionSetUpdateParameters", + 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: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + }, + versioningScheme: { + serializedName: "properties.versioningScheme", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetContract: msRest.CompositeMapper = { + serializedName: "ApiVersionSetContract", + type: { + name: "Composite", + className: "ApiVersionSetContract", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const TokenBodyParameterContract: msRest.CompositeMapper = { + serializedName: "TokenBodyParameterContract", + type: { + name: "Composite", + className: "TokenBodyParameterContract", + modelProperties: { + name: { + required: true, + serializedName: "name", + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerContractBaseProperties: msRest.CompositeMapper = { + serializedName: "AuthorizationServerContractBaseProperties", + type: { + name: "Composite", + className: "AuthorizationServerContractBaseProperties", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + authorizationMethods: { + serializedName: "authorizationMethods", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "clientAuthenticationMethod", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + tokenBodyParameters: { + serializedName: "tokenBodyParameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TokenBodyParameterContract" + } + } + } + }, + tokenEndpoint: { + serializedName: "tokenEndpoint", + type: { + name: "String" + } + }, + supportState: { + serializedName: "supportState", + type: { + name: "Boolean" + } + }, + defaultScope: { + serializedName: "defaultScope", + type: { + name: "String" + } + }, + bearerTokenSendingMethods: { + serializedName: "bearerTokenSendingMethods", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientSecret: { + serializedName: "clientSecret", + type: { + name: "String" + } + }, + resourceOwnerUsername: { + serializedName: "resourceOwnerUsername", + type: { + name: "String" + } + }, + resourceOwnerPassword: { + serializedName: "resourceOwnerPassword", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerUpdateContract: msRest.CompositeMapper = { + serializedName: "AuthorizationServerUpdateContract", + type: { + name: "Composite", + className: "AuthorizationServerUpdateContract", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + authorizationMethods: { + serializedName: "properties.authorizationMethods", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + type: { + name: "Sequence", + element: { + type: { + 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", + type: { + name: "String" + } + }, + grantTypes: { + serializedName: "properties.grantTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + serializedName: "properties.clientId", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerContract: msRest.CompositeMapper = { + serializedName: "AuthorizationServerContract", + type: { + name: "Composite", + className: "AuthorizationServerContract", + modelProperties: { + ...Resource.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + authorizationMethods: { + serializedName: "properties.authorizationMethods", + type: { + name: "Sequence", + element: { + type: { + name: "Enum", + allowedValues: [ + "HEAD", + "OPTIONS", + "TRACE", + "GET", + "POST", + "PUT", + "PATCH", + "DELETE" + ] + } + } + } + }, + clientAuthenticationMethod: { + serializedName: "properties.clientAuthenticationMethod", + type: { + name: "Sequence", + element: { + type: { + 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: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 50, + MinLength: 1 + }, + type: { + name: "String" + } + }, + clientRegistrationEndpoint: { + required: true, + serializedName: "properties.clientRegistrationEndpoint", + type: { + name: "String" + } + }, + authorizationEndpoint: { + required: true, + serializedName: "properties.authorizationEndpoint", + type: { + name: "String" + } + }, + grantTypes: { + required: true, + serializedName: "properties.grantTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + clientId: { + required: true, + serializedName: "properties.clientId", + type: { + name: "String" + } + } + } + } +}; + +export const BackendReconnectContract: msRest.CompositeMapper = { + serializedName: "BackendReconnectContract", + type: { + name: "Composite", + className: "BackendReconnectContract", + modelProperties: { + ...Resource.type.modelProperties, + after: { + serializedName: "properties.after", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const BackendTlsProperties: msRest.CompositeMapper = { + serializedName: "BackendTlsProperties", + type: { + name: "Composite", + className: "BackendTlsProperties", + modelProperties: { + validateCertificateChain: { + serializedName: "validateCertificateChain", + defaultValue: true, + type: { + name: "Boolean" + } + }, + validateCertificateName: { + serializedName: "validateCertificateName", + defaultValue: true, + type: { + name: "Boolean" + } + } + } + } +}; + +export const BackendProxyContract: msRest.CompositeMapper = { + serializedName: "BackendProxyContract", + type: { + name: "Composite", + className: "BackendProxyContract", + modelProperties: { + url: { + required: true, + serializedName: "url", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + username: { + serializedName: "username", + type: { + name: "String" + } + }, + password: { + serializedName: "password", + type: { + name: "String" + } + } + } + } +}; + +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 BackendCredentialsContract: msRest.CompositeMapper = { + serializedName: "BackendCredentialsContract", + type: { + name: "Composite", + className: "BackendCredentialsContract", + modelProperties: { + certificate: { + serializedName: "certificate", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + query: { + serializedName: "query", + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + header: { + serializedName: "header", + type: { + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + authorization: { + serializedName: "authorization", + type: { + name: "Composite", + className: "BackendAuthorizationHeaderCredentials" + } + } + } + } +}; + +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", + type: { + name: "Composite", + className: "BackendServiceFabricClusterProperties", + modelProperties: { + clientCertificatethumbprint: { + required: true, + serializedName: "clientCertificatethumbprint", + type: { + name: "String" + } + }, + maxPartitionResolutionRetries: { + serializedName: "maxPartitionResolutionRetries", + type: { + name: "Number" + } + }, + managementEndpoints: { + required: true, + serializedName: "managementEndpoints", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + serverCertificateThumbprints: { + serializedName: "serverCertificateThumbprints", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + serverX509Names: { + serializedName: "serverX509Names", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "X509CertificateName" + } + } + } + } + } + } +}; + +export const BackendProperties: msRest.CompositeMapper = { + serializedName: "BackendProperties", + type: { + name: "Composite", + className: "BackendProperties", + modelProperties: { + serviceFabricCluster: { + serializedName: "serviceFabricCluster", + type: { + name: "Composite", + className: "BackendServiceFabricClusterProperties" + } + } + } + } +}; + +export const BackendBaseParameters: msRest.CompositeMapper = { + serializedName: "BackendBaseParameters", + type: { + name: "Composite", + className: "BackendBaseParameters", + modelProperties: { + title: { + serializedName: "title", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + resourceId: { + serializedName: "resourceId", + constraints: { + 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 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 + }, + type: { + name: "String" + } + }, + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + 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 + }, + type: { + name: "String" + } + }, + protocol: { + serializedName: "properties.protocol", + type: { + name: "String" + } + } + } + } +}; + +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 + }, + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + 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: { + required: true, + serializedName: "properties.url", + constraints: { + MaxLength: 2000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + protocol: { + required: true, + serializedName: "properties.protocol", + type: { + name: "String" + } + } + } + } +}; + +export const CacheUpdateParameters: msRest.CompositeMapper = { + serializedName: "CacheUpdateParameters", + type: { + name: "Composite", + className: "CacheUpdateParameters", + modelProperties: { + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 2000 + }, + type: { + name: "String" + } + }, + connectionString: { + serializedName: "properties.connectionString", + constraints: { + MaxLength: 300 + }, + type: { + name: "String" + } + }, + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000 + }, + type: { + name: "String" + } + } + } + } +}; + +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" + } + }, + connectionString: { + required: true, + serializedName: "properties.connectionString", + constraints: { + MaxLength: 300 + }, + type: { + name: "String" + } + }, + resourceId: { + serializedName: "properties.resourceId", + constraints: { + MaxLength: 2000 + }, + type: { + name: "String" + } + } + } + } +}; + +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" + } + }, + thumbprint: { + required: true, + serializedName: "properties.thumbprint", + type: { + name: "String" + } + }, + expirationDate: { + required: true, + serializedName: "properties.expirationDate", + type: { + name: "DateTime" + } + } + } + } +}; + +export const CertificateCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "CertificateCreateOrUpdateParameters", + type: { + name: "Composite", + className: "CertificateCreateOrUpdateParameters", + modelProperties: { + data: { + required: true, + serializedName: "properties.data", + type: { + name: "String" + } + }, + password: { + required: true, + serializedName: "properties.password", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSku: msRest.CompositeMapper = { + serializedName: "ResourceSku", + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuCapacity: msRest.CompositeMapper = { + serializedName: "ResourceSkuCapacity", + type: { + name: "Composite", + className: "ResourceSkuCapacity", + modelProperties: { + minimum: { + readOnly: true, + serializedName: "minimum", + type: { + name: "Number" + } + }, + maximum: { + readOnly: true, + serializedName: "maximum", + type: { + name: "Number" + } + }, + default: { + readOnly: true, + serializedName: "default", + type: { + name: "Number" + } + }, + scaleType: { + readOnly: true, + serializedName: "scaleType", + type: { + name: "String" + } + } + } + } +}; + +export const ResourceSkuResult: msRest.CompositeMapper = { + serializedName: "ResourceSkuResult", + type: { + name: "Composite", + className: "ResourceSkuResult", + modelProperties: { + resourceType: { + readOnly: true, + serializedName: "resourceType", + type: { + name: "String" + } + }, + sku: { + readOnly: true, + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceSku" + } + }, + capacity: { + readOnly: true, + serializedName: "capacity", + type: { + name: "Composite", + className: "ResourceSkuCapacity" + } + } + } + } +}; + +export const CertificateInformation: msRest.CompositeMapper = { + serializedName: "CertificateInformation", + type: { + name: "Composite", + className: "CertificateInformation", + modelProperties: { + expiry: { + required: true, + serializedName: "expiry", + type: { + name: "DateTime" + } + }, + thumbprint: { + required: true, + serializedName: "thumbprint", + type: { + name: "String" + } + }, + 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" + } + }, + certificatePassword: { + serializedName: "certificatePassword", + type: { + name: "String" + } + }, + storeName: { + required: true, + serializedName: "storeName", + type: { + name: "String" + } + }, + certificate: { + serializedName: "certificate", + type: { + name: "Composite", + className: "CertificateInformation" + } + } + } + } +}; + +export const HostnameConfiguration: msRest.CompositeMapper = { + serializedName: "HostnameConfiguration", + type: { + name: "Composite", + className: "HostnameConfiguration", + modelProperties: { + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + }, + hostName: { + required: true, + serializedName: "hostName", + type: { + name: "String" + } + }, + keyVaultId: { + serializedName: "keyVaultId", + type: { + name: "String" + } + }, + encodedCertificate: { + serializedName: "encodedCertificate", + type: { + name: "String" + } + }, + certificatePassword: { + serializedName: "certificatePassword", + type: { + name: "String" + } + }, + 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: "vnetid", + type: { + name: "String" + } + }, + subnetname: { + readOnly: true, + serializedName: "subnetname", + type: { + name: "String" + } + }, + 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" + } + }, + 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" + } + }, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties" + } + }, + publicIPAddresses: { + readOnly: true, + serializedName: "publicIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privateIPAddresses: { + readOnly: true, + serializedName: "privateIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + virtualNetworkConfiguration: { + serializedName: "virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration" + } + }, + gatewayRegionalUrl: { + readOnly: true, + serializedName: "gatewayRegionalUrl", + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementServiceBackupRestoreParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceBackupRestoreParameters", + type: { + name: "Composite", + className: "ApiManagementServiceBackupRestoreParameters", + modelProperties: { + storageAccount: { + required: true, + serializedName: "storageAccount", + type: { + name: "String" + } + }, + accessKey: { + required: true, + serializedName: "accessKey", + type: { + name: "String" + } + }, + containerName: { + required: true, + serializedName: "containerName", + type: { + name: "String" + } + }, + backupName: { + required: true, + serializedName: "backupName", + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementServiceBaseProperties: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceBaseProperties", + type: { + name: "Composite", + className: "ApiManagementServiceBaseProperties", + modelProperties: { + notificationSenderEmail: { + serializedName: "notificationSenderEmail", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "provisioningState", + type: { + name: "String" + } + }, + targetProvisioningState: { + readOnly: true, + serializedName: "targetProvisioningState", + type: { + name: "String" + } + }, + createdAtUtc: { + readOnly: true, + serializedName: "createdAtUtc", + type: { + name: "DateTime" + } + }, + gatewayUrl: { + readOnly: true, + serializedName: "gatewayUrl", + type: { + name: "String" + } + }, + gatewayRegionalUrl: { + readOnly: true, + serializedName: "gatewayRegionalUrl", + type: { + name: "String" + } + }, + portalUrl: { + readOnly: true, + serializedName: "portalUrl", + type: { + name: "String" + } + }, + managementApiUrl: { + readOnly: true, + serializedName: "managementApiUrl", + type: { + name: "String" + } + }, + scmUrl: { + readOnly: true, + serializedName: "scmUrl", + type: { + name: "String" + } + }, + hostnameConfigurations: { + serializedName: "hostnameConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HostnameConfiguration" + } + } + } + }, + publicIPAddresses: { + readOnly: true, + serializedName: "publicIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privateIPAddresses: { + readOnly: true, + serializedName: "privateIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + virtualNetworkConfiguration: { + serializedName: "virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration" + } + }, + additionalLocations: { + serializedName: "additionalLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation" + } + } + } + }, + customProperties: { + serializedName: "customProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + certificates: { + serializedName: "certificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } + } + }, + enableClientCertificate: { + serializedName: "enableClientCertificate", + defaultValue: false, + type: { + name: "Boolean" + } + }, + virtualNetworkType: { + serializedName: "virtualNetworkType", + defaultValue: 'None', + type: { + name: "String" + } + } + } + } +}; + +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" + } + }, + principalId: { + readOnly: true, + serializedName: "principalId", + type: { + name: "Uuid" + } + }, + tenantId: { + readOnly: true, + serializedName: "tenantId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const ApimResource: msRest.CompositeMapper = { + serializedName: "ApimResource", + type: { + name: "Composite", + className: "ApimResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ApiManagementServiceResource: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceResource", + type: { + name: "Composite", + className: "ApiManagementServiceResource", + modelProperties: { + ...ApimResource.type.modelProperties, + notificationSenderEmail: { + serializedName: "properties.notificationSenderEmail", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + targetProvisioningState: { + readOnly: true, + serializedName: "properties.targetProvisioningState", + type: { + name: "String" + } + }, + createdAtUtc: { + readOnly: true, + serializedName: "properties.createdAtUtc", + type: { + name: "DateTime" + } + }, + gatewayUrl: { + readOnly: true, + serializedName: "properties.gatewayUrl", + type: { + name: "String" + } + }, + gatewayRegionalUrl: { + readOnly: true, + serializedName: "properties.gatewayRegionalUrl", + type: { + name: "String" + } + }, + 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: "HostnameConfiguration" + } + } + } + }, + publicIPAddresses: { + readOnly: true, + serializedName: "properties.publicIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privateIPAddresses: { + readOnly: true, + serializedName: "properties.privateIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration" + } + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation" + } + } + } + }, + customProperties: { + serializedName: "properties.customProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + certificates: { + serializedName: "properties.certificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } + } + }, + enableClientCertificate: { + serializedName: "properties.enableClientCertificate", + defaultValue: false, + type: { + name: "Boolean" + } + }, + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + defaultValue: 'None', + type: { + name: "String" + } + }, + publisherEmail: { + required: true, + serializedName: "properties.publisherEmail", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + publisherName: { + required: true, + serializedName: "properties.publisherName", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + 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" + } + } + } + } +}; + +export const ApiManagementServiceUpdateParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceUpdateParameters", + type: { + name: "Composite", + className: "ApiManagementServiceUpdateParameters", + modelProperties: { + ...ApimResource.type.modelProperties, + notificationSenderEmail: { + serializedName: "properties.notificationSenderEmail", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + targetProvisioningState: { + readOnly: true, + serializedName: "properties.targetProvisioningState", + type: { + name: "String" + } + }, + createdAtUtc: { + readOnly: true, + serializedName: "properties.createdAtUtc", + type: { + name: "DateTime" + } + }, + gatewayUrl: { + readOnly: true, + serializedName: "properties.gatewayUrl", + type: { + name: "String" + } + }, + gatewayRegionalUrl: { + readOnly: true, + serializedName: "properties.gatewayRegionalUrl", + type: { + name: "String" + } + }, + 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: "HostnameConfiguration" + } + } + } + }, + publicIPAddresses: { + readOnly: true, + serializedName: "properties.publicIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + privateIPAddresses: { + readOnly: true, + serializedName: "properties.privateIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + virtualNetworkConfiguration: { + serializedName: "properties.virtualNetworkConfiguration", + type: { + name: "Composite", + className: "VirtualNetworkConfiguration" + } + }, + additionalLocations: { + serializedName: "properties.additionalLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdditionalLocation" + } + } + } + }, + customProperties: { + serializedName: "properties.customProperties", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + certificates: { + serializedName: "properties.certificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateConfiguration" + } + } + } + }, + enableClientCertificate: { + serializedName: "properties.enableClientCertificate", + defaultValue: false, + type: { + name: "Boolean" + } + }, + virtualNetworkType: { + serializedName: "properties.virtualNetworkType", + defaultValue: 'None', + type: { + name: "String" + } + }, + publisherEmail: { + serializedName: "properties.publisherEmail", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + publisherName: { + serializedName: "properties.publisherName", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ApiManagementServiceSkuProperties" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ApiManagementServiceIdentity" + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementServiceGetSsoTokenResult: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceGetSsoTokenResult", + type: { + name: "Composite", + className: "ApiManagementServiceGetSsoTokenResult", + modelProperties: { + redirectUri: { + serializedName: "redirectUri", + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementServiceCheckNameAvailabilityParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceCheckNameAvailabilityParameters", + type: { + name: "Composite", + className: "ApiManagementServiceCheckNameAvailabilityParameters", + modelProperties: { + 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" + } + }, + message: { + readOnly: true, + serializedName: "message", + type: { + name: "String" + } + }, + reason: { + serializedName: "reason", + type: { + name: "Enum", + allowedValues: [ + "Valid", + "Invalid", + "AlreadyExists" + ] + } + } + } + } +}; + +export const ApiManagementServiceApplyNetworkConfigurationParameters: msRest.CompositeMapper = { + serializedName: "ApiManagementServiceApplyNetworkConfigurationParameters", + type: { + name: "Composite", + className: "ApiManagementServiceApplyNetworkConfigurationParameters", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "Operation_display", + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" + } + }, + origin: { + serializedName: "origin", + 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", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, + type: { + name: "String" + } + }, + title: { + serializedName: "title", + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, + type: { + name: "String" + } + } + } + } +}; + +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", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + body: { + serializedName: "properties.body", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + parameters: { + serializedName: "properties.parameters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EmailTemplateParametersContractProperties" + } + } + } + } + } + } +}; + +export const EmailTemplateContract: msRest.CompositeMapper = { + serializedName: "EmailTemplateContract", + type: { + name: "Composite", + className: "EmailTemplateContract", + modelProperties: { + ...Resource.type.modelProperties, + subject: { + required: true, + serializedName: "properties.subject", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + body: { + required: true, + serializedName: "properties.body", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + title: { + serializedName: "properties.title", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + 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" + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + } + } + } +}; + +export const UserEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "UserEntityBaseParameters", + type: { + name: "Composite", + className: "UserEntityBaseParameters", + modelProperties: { + state: { + serializedName: "state", + defaultValue: 'active', + type: { + name: "String" + } + }, + note: { + serializedName: "note", + type: { + name: "String" + } + }, + identities: { + serializedName: "identities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract" + } + } + } + } + } + } +}; + +export const GroupContractProperties: msRest.CompositeMapper = { + serializedName: "GroupContractProperties", + type: { + name: "Composite", + className: "GroupContractProperties", + modelProperties: { + displayName: { + required: true, + serializedName: "displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + constraints: { + MaxLength: 1000 + }, + type: { + name: "String" + } + }, + builtIn: { + readOnly: true, + serializedName: "builtIn", + type: { + name: "Boolean" + } + }, + type: { + serializedName: "type", + type: { + name: "Enum", + allowedValues: [ + "custom", + "system", + "external" + ] + } + }, + externalId: { + serializedName: "externalId", + type: { + name: "String" + } + } + } + } +}; + +export const UserContract: msRest.CompositeMapper = { + serializedName: "UserContract", + type: { + name: "Composite", + className: "UserContract", + modelProperties: { + ...Resource.type.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" + } + } + } + }, + firstName: { + serializedName: "properties.firstName", + type: { + name: "String" + } + }, + lastName: { + serializedName: "properties.lastName", + type: { + name: "String" + } + }, + email: { + serializedName: "properties.email", + type: { + name: "String" + } + }, + registrationDate: { + serializedName: "properties.registrationDate", + type: { + name: "DateTime" + } + }, + groups: { + readOnly: true, + serializedName: "properties.groups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContractProperties" + } + } + } + } + } + } +}; + +export const GroupUpdateParameters: msRest.CompositeMapper = { + serializedName: "GroupUpdateParameters", + type: { + name: "Composite", + className: "GroupUpdateParameters", + modelProperties: { + displayName: { + 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", + 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", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 1000 + }, + type: { + name: "String" + } + }, + builtIn: { + readOnly: true, + serializedName: "properties.builtIn", + type: { + name: "Boolean" + } + }, + groupContractType: { + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: [ + "custom", + "system", + "external" + ] + } + }, + externalId: { + serializedName: "properties.externalId", + type: { + name: "String" + } + } + } + } +}; + +export const GroupCreateParameters: msRest.CompositeMapper = { + serializedName: "GroupCreateParameters", + type: { + name: "Composite", + className: "GroupCreateParameters", + 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", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderBaseParameters: msRest.CompositeMapper = { + serializedName: "IdentityProviderBaseParameters", + type: { + name: "Composite", + className: "IdentityProviderBaseParameters", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + allowedTenants: { + serializedName: "allowedTenants", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + authority: { + serializedName: "authority", + type: { + name: "String" + } + }, + signupPolicyName: { + serializedName: "signupPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + signinPolicyName: { + serializedName: "signinPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + profileEditingPolicyName: { + serializedName: "profileEditingPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + passwordResetPolicyName: { + serializedName: "passwordResetPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderUpdateParameters: msRest.CompositeMapper = { + serializedName: "IdentityProviderUpdateParameters", + type: { + name: "Composite", + className: "IdentityProviderUpdateParameters", + modelProperties: { + type: { + serializedName: "properties.type", + type: { + name: "String" + } + }, + allowedTenants: { + serializedName: "properties.allowedTenants", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + authority: { + serializedName: "properties.authority", + type: { + name: "String" + } + }, + signupPolicyName: { + serializedName: "properties.signupPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + signinPolicyName: { + serializedName: "properties.signinPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + profileEditingPolicyName: { + serializedName: "properties.profileEditingPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + passwordResetPolicyName: { + serializedName: "properties.passwordResetPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + clientId: { + serializedName: "properties.clientId", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + clientSecret: { + serializedName: "properties.clientSecret", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderContract: msRest.CompositeMapper = { + serializedName: "IdentityProviderContract", + type: { + name: "Composite", + className: "IdentityProviderContract", + 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" + } + } + } + }, + authority: { + serializedName: "properties.authority", + type: { + name: "String" + } + }, + signupPolicyName: { + serializedName: "properties.signupPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + signinPolicyName: { + serializedName: "properties.signinPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + profileEditingPolicyName: { + serializedName: "properties.profileEditingPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + passwordResetPolicyName: { + serializedName: "properties.passwordResetPolicyName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + clientId: { + required: true, + serializedName: "properties.clientId", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + clientSecret: { + required: true, + serializedName: "properties.clientSecret", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const LoggerUpdateContract: msRest.CompositeMapper = { + serializedName: "LoggerUpdateContract", + type: { + name: "Composite", + className: "LoggerUpdateContract", + modelProperties: { + loggerType: { + serializedName: "properties.loggerType", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + credentials: { + serializedName: "properties.credentials", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + isBuffered: { + serializedName: "properties.isBuffered", + type: { + name: "Boolean" + } + } + } + } +}; + +export const LoggerContract: msRest.CompositeMapper = { + serializedName: "LoggerContract", + type: { + name: "Composite", + className: "LoggerContract", + modelProperties: { + ...Resource.type.modelProperties, + loggerType: { + required: true, + serializedName: "properties.loggerType", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + credentials: { + required: true, + serializedName: "properties.credentials", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + isBuffered: { + serializedName: "properties.isBuffered", + type: { + name: "Boolean" + } + }, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + } + } + } +}; + +export const ConnectivityStatusContract: msRest.CompositeMapper = { + serializedName: "ConnectivityStatusContract", + type: { + name: "Composite", + className: "ConnectivityStatusContract", + modelProperties: { + name: { + required: true, + serializedName: "name", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + status: { + required: true, + serializedName: "status", + type: { + name: "String" + } + }, + error: { + serializedName: "error", + type: { + name: "String" + } + }, + lastUpdated: { + required: true, + serializedName: "lastUpdated", + type: { + name: "DateTime" + } + }, + lastStatusChange: { + required: true, + serializedName: "lastStatusChange", + type: { + name: "DateTime" + } + } + } + } +}; + +export const NetworkStatusContract: msRest.CompositeMapper = { + serializedName: "NetworkStatusContract", + type: { + name: "Composite", + className: "NetworkStatusContract", + modelProperties: { + 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 + }, + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + recipients: { + serializedName: "properties.recipients", + type: { + 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" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + metadataEndpoint: { + serializedName: "properties.metadataEndpoint", + type: { + name: "String" + } + }, + clientId: { + serializedName: "properties.clientId", + type: { + 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: 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" + } + } + } + } +}; + +export const SubscriptionContract: msRest.CompositeMapper = { + serializedName: "SubscriptionContract", + type: { + name: "Composite", + className: "SubscriptionContract", + modelProperties: { + ...Resource.type.modelProperties, + ownerId: { + serializedName: "properties.ownerId", + type: { + name: "String" + } + }, + scope: { + required: true, + serializedName: "properties.scope", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 100, + MinLength: 0 + }, + type: { + name: "String" + } + }, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "suspended", + "active", + "expired", + "submitted", + "rejected", + "cancelled" + ] + } + }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "DateTime" + } + }, + startDate: { + serializedName: "properties.startDate", + type: { + name: "DateTime" + } + }, + expirationDate: { + serializedName: "properties.expirationDate", + type: { + name: "DateTime" + } + }, + endDate: { + serializedName: "properties.endDate", + type: { + name: "DateTime" + } + }, + notificationDate: { + serializedName: "properties.notificationDate", + type: { + name: "DateTime" + } + }, + primaryKey: { + required: true, + serializedName: "properties.primaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + }, + secondaryKey: { + required: true, + serializedName: "properties.secondaryKey", + constraints: { + MaxLength: 256, + MinLength: 1 + }, + type: { + name: "String" + } + }, + stateComment: { + serializedName: "properties.stateComment", + type: { + name: "String" + } + }, + allowTracing: { + serializedName: "properties.allowTracing", + type: { + name: "Boolean" + } + } + } + } +}; + +export const ProductUpdateParameters: msRest.CompositeMapper = { + serializedName: "ProductUpdateParameters", + type: { + name: "Composite", + className: "ProductUpdateParameters", + modelProperties: { + description: { + serializedName: "properties.description", + constraints: { + MaxLength: 1000, + MinLength: 1 + }, + type: { + name: "String" + } + }, + terms: { + serializedName: "properties.terms", + type: { + name: "String" + } + }, + subscriptionRequired: { + serializedName: "properties.subscriptionRequired", + type: { + name: "Boolean" + } + }, + approvalRequired: { + serializedName: "properties.approvalRequired", + type: { + name: "Boolean" + } + }, + subscriptionsLimit: { + serializedName: "properties.subscriptionsLimit", + type: { + name: "Number" + } + }, + state: { + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "notPublished", + "published" + ] + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 300, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const PropertyEntityBaseParameters: msRest.CompositeMapper = { + serializedName: "PropertyEntityBaseParameters", + type: { + name: "Composite", + className: "PropertyEntityBaseParameters", + modelProperties: { + tags: { + serializedName: "tags", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + secret: { + serializedName: "secret", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PropertyUpdateParameters: msRest.CompositeMapper = { + serializedName: "PropertyUpdateParameters", + type: { + name: "Composite", + className: "PropertyUpdateParameters", + modelProperties: { + tags: { + serializedName: "properties.tags", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + secret: { + serializedName: "properties.secret", + type: { + name: "Boolean" + } + }, + displayName: { + serializedName: "properties.displayName", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, + type: { + name: "String" + } + }, + value: { + serializedName: "properties.value", + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const PropertyContract: msRest.CompositeMapper = { + serializedName: "PropertyContract", + type: { + name: "Composite", + className: "PropertyContract", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "properties.tags", + constraints: { + MaxItems: 32 + }, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + secret: { + serializedName: "properties.secret", + type: { + name: "Boolean" + } + }, + displayName: { + required: true, + serializedName: "properties.displayName", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[A-Za-z0-9-._]+$/ + }, + type: { + name: "String" + } + }, + value: { + required: true, + serializedName: "properties.value", + constraints: { + MaxLength: 4096, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const QuotaCounterValueContractProperties: msRest.CompositeMapper = { + serializedName: "QuotaCounterValueContractProperties", + type: { + name: "Composite", + className: "QuotaCounterValueContractProperties", + modelProperties: { + callsCount: { + serializedName: "callsCount", + type: { + name: "Number" + } + }, + kbTransferred: { + serializedName: "kbTransferred", + type: { + name: "Number" + } + } + } + } +}; + +export const QuotaCounterContract: msRest.CompositeMapper = { + serializedName: "QuotaCounterContract", + type: { + name: "Composite", + className: "QuotaCounterContract", + modelProperties: { + counterKey: { + required: true, + serializedName: "counterKey", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + periodKey: { + required: true, + serializedName: "periodKey", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + }, + periodStartTime: { + required: true, + serializedName: "periodStartTime", + type: { + name: "DateTime" + } + }, + periodEndTime: { + required: true, + serializedName: "periodEndTime", + type: { + name: "DateTime" + } + }, + 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: "Number" + } + }, + serviceTime: { + serializedName: "serviceTime", + type: { + name: "Number" + } + }, + apiRegion: { + serializedName: "apiRegion", + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + requestId: { + serializedName: "requestId", + type: { + name: "String" + } + }, + requestSize: { + serializedName: "requestSize", + type: { + name: "Number" + } + } + } + } +}; + +export const ReportRecordContract: msRest.CompositeMapper = { + serializedName: "ReportRecordContract", + type: { + name: "Composite", + className: "ReportRecordContract", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + }, + interval: { + serializedName: "interval", + type: { + name: "String" + } + }, + country: { + serializedName: "country", + type: { + name: "String" + } + }, + region: { + serializedName: "region", + type: { + name: "String" + } + }, + zip: { + serializedName: "zip", + type: { + name: "String" + } + }, + userId: { + readOnly: true, + serializedName: "userId", + type: { + name: "String" + } + }, + productId: { + readOnly: true, + serializedName: "productId", + type: { + name: "String" + } + }, + apiId: { + serializedName: "apiId", + type: { + name: "String" + } + }, + operationId: { + serializedName: "operationId", + type: { + name: "String" + } + }, + apiRegion: { + serializedName: "apiRegion", + type: { + name: "String" + } + }, + subscriptionId: { + serializedName: "subscriptionId", + type: { + name: "String" + } + }, + callCountSuccess: { + serializedName: "callCountSuccess", + type: { + name: "Number" + } + }, + callCountBlocked: { + serializedName: "callCountBlocked", + type: { + name: "Number" + } + }, + callCountFailed: { + serializedName: "callCountFailed", + type: { + name: "Number" + } + }, + callCountOther: { + serializedName: "callCountOther", + type: { + name: "Number" + } + }, + callCountTotal: { + serializedName: "callCountTotal", + type: { + name: "Number" + } + }, + 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: "Boolean" + } + } + } + } +}; + +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: "String" + } + } + } + } +}; + +export const TenantConfigurationSyncStateContract: msRest.CompositeMapper = { + serializedName: "TenantConfigurationSyncStateContract", + type: { + name: "Composite", + className: "TenantConfigurationSyncStateContract", + modelProperties: { + branch: { + serializedName: "branch", + type: { + name: "String" + } + }, + commitId: { + serializedName: "commitId", + 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", + type: { + name: "DateTime" + } + } + } + } +}; + +export const OperationResultLogItemContract: msRest.CompositeMapper = { + serializedName: "OperationResultLogItemContract", + type: { + name: "Composite", + className: "OperationResultLogItemContract", + modelProperties: { + objectType: { + serializedName: "objectType", + type: { + name: "String" + } + }, + action: { + serializedName: "action", + type: { + name: "String" + } + }, + objectKey: { + serializedName: "objectKey", + type: { + name: "String" + } + } + } + } +}; + +export const OperationResultContract: msRest.CompositeMapper = { + serializedName: "OperationResultContract", + type: { + name: "Composite", + className: "OperationResultContract", + modelProperties: { + id: { + serializedName: "id", + 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", + 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 DeployConfigurationParameters: msRest.CompositeMapper = { + serializedName: "DeployConfigurationParameters", + type: { + name: "Composite", + className: "DeployConfigurationParameters", + modelProperties: { + branch: { + required: true, + serializedName: "properties.branch", + type: { + name: "String" + } + }, + force: { + serializedName: "properties.force", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SaveConfigurationParameter: msRest.CompositeMapper = { + serializedName: "SaveConfigurationParameter", + type: { + name: "Composite", + className: "SaveConfigurationParameter", + modelProperties: { + branch: { + required: true, + serializedName: "properties.branch", + type: { + name: "String" + } + }, + force: { + serializedName: "properties.force", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AccessInformationContract: msRest.CompositeMapper = { + serializedName: "AccessInformationContract", + type: { + name: "Composite", + className: "AccessInformationContract", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + primaryKey: { + serializedName: "primaryKey", + type: { + name: "String" + } + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "String" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const AccessInformationUpdateParameters: msRest.CompositeMapper = { + serializedName: "AccessInformationUpdateParameters", + type: { + name: "Composite", + className: "AccessInformationUpdateParameters", + modelProperties: { + enabled: { + serializedName: "properties.enabled", + type: { + name: "Boolean" + } + } + } + } +}; + +export const UserTokenResult: msRest.CompositeMapper = { + serializedName: "UserTokenResult", + type: { + name: "Composite", + className: "UserTokenResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const UserTokenParameters: msRest.CompositeMapper = { + serializedName: "UserTokenParameters", + type: { + name: "Composite", + className: "UserTokenParameters", + modelProperties: { + keyType: { + required: true, + serializedName: "properties.keyType", + defaultValue: 'primary', + type: { + name: "Enum", + allowedValues: [ + "primary", + "secondary" + ] + } + }, + expiry: { + required: true, + serializedName: "properties.expiry", + type: { + name: "DateTime" + } + } + } + } +}; + +export const GenerateSsoUrlResult: msRest.CompositeMapper = { + serializedName: "GenerateSsoUrlResult", + type: { + name: "Composite", + className: "GenerateSsoUrlResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "String" + } + } + } + } +}; + +export const UserUpdateParameters: msRest.CompositeMapper = { + serializedName: "UserUpdateParameters", + type: { + name: "Composite", + className: "UserUpdateParameters", + 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: { + serializedName: "properties.email", + constraints: { + MaxLength: 254, + MinLength: 1 + }, + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", + type: { + name: "String" + } + }, + firstName: { + serializedName: "properties.firstName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + }, + lastName: { + serializedName: "properties.lastName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + } + } + } +}; + +export const UserCreateParameters: msRest.CompositeMapper = { + serializedName: "UserCreateParameters", + type: { + name: "Composite", + className: "UserCreateParameters", + 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 + }, + type: { + name: "String" + } + }, + lastName: { + required: true, + serializedName: "properties.lastName", + constraints: { + MaxLength: 100, + MinLength: 1 + }, + type: { + name: "String" + } + }, + password: { + serializedName: "properties.password", + type: { + name: "String" + } + }, + confirmation: { + serializedName: "properties.confirmation", + type: { + name: "String" + } + } + } + } +}; + +export const ApiRevisionInfoContract: msRest.CompositeMapper = { + serializedName: "ApiRevisionInfoContract", + type: { + name: "Composite", + className: "ApiRevisionInfoContract", + modelProperties: { + sourceApiId: { + serializedName: "sourceApiId", + type: { + name: "String" + } + }, + apiVersionName: { + serializedName: "apiVersionName", + constraints: { + MaxLength: 100 + }, + type: { + name: "String" + } + }, + apiRevisionDescription: { + serializedName: "apiRevisionDescription", + constraints: { + MaxLength: 256 + }, + type: { + name: "String" + } + }, + apiVersionSet: { + serializedName: "apiVersionSet", + type: { + name: "Composite", + className: "ApiVersionSetContractDetails" + } + } + } + } +}; + +export const QuotaCounterValueContract: msRest.CompositeMapper = { + serializedName: "QuotaCounterValueContract", + type: { + name: "Composite", + className: "QuotaCounterValueContract", + modelProperties: { + callsCount: { + serializedName: "value.callsCount", + type: { + name: "Number" + } + }, + kbTransferred: { + serializedName: "value.kbTransferred", + type: { + name: "Number" + } + } + } + } +}; + +export const ApiGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "api-getentitytag-headers", + type: { + name: "Composite", + className: "ApiGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiGetHeaders: msRest.CompositeMapper = { + serializedName: "api-get-headers", + type: { + name: "Composite", + className: "ApiGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "api-createorupdate-headers", + type: { + name: "Composite", + className: "ApiCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apirelease-getentitytag-headers", + type: { + name: "Composite", + className: "ApiReleaseGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseGetHeaders: msRest.CompositeMapper = { + serializedName: "apirelease-get-headers", + type: { + name: "Composite", + className: "ApiReleaseGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apirelease-createorupdate-headers", + type: { + name: "Composite", + className: "ApiReleaseCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apioperation-getentitytag-headers", + type: { + name: "Composite", + className: "ApiOperationGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationGetHeaders: msRest.CompositeMapper = { + serializedName: "apioperation-get-headers", + type: { + name: "Composite", + className: "ApiOperationGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apioperation-createorupdate-headers", + type: { + name: "Composite", + className: "ApiOperationCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apioperationpolicy-getentitytag-headers", + type: { + name: "Composite", + className: "ApiOperationPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyGetHeaders: msRest.CompositeMapper = { + serializedName: "apioperationpolicy-get-headers", + type: { + name: "Composite", + className: "ApiOperationPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiOperationPolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apioperationpolicy-createorupdate-headers", + type: { + name: "Composite", + className: "ApiOperationPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByOperationHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystatebyoperation-headers", + type: { + name: "Composite", + className: "TagGetEntityStateByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByOperationHeaders: msRest.CompositeMapper = { + serializedName: "tag-getbyoperation-headers", + type: { + name: "Composite", + className: "TagGetByOperationHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apipolicy-getentitytag-headers", + type: { + name: "Composite", + className: "ApiPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyGetHeaders: msRest.CompositeMapper = { + serializedName: "apipolicy-get-headers", + type: { + name: "Composite", + className: "ApiPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiPolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apipolicy-createorupdate-headers", + type: { + name: "Composite", + className: "ApiPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apischema-getentitytag-headers", + type: { + name: "Composite", + className: "ApiSchemaGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaGetHeaders: msRest.CompositeMapper = { + serializedName: "apischema-get-headers", + type: { + name: "Composite", + className: "ApiSchemaGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiSchemaCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apischema-createorupdate-headers", + type: { + name: "Composite", + className: "ApiSchemaCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apidiagnostic-getentitytag-headers", + type: { + name: "Composite", + className: "ApiDiagnosticGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticGetHeaders: msRest.CompositeMapper = { + serializedName: "apidiagnostic-get-headers", + type: { + name: "Composite", + className: "ApiDiagnosticGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiDiagnosticCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apidiagnostic-createorupdate-headers", + type: { + name: "Composite", + className: "ApiDiagnosticCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apiissue-getentitytag-headers", + type: { + name: "Composite", + className: "ApiIssueGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueGetHeaders: msRest.CompositeMapper = { + serializedName: "apiissue-get-headers", + type: { + name: "Composite", + className: "ApiIssueGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiissue-createorupdate-headers", + type: { + name: "Composite", + className: "ApiIssueCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apiissuecomment-getentitytag-headers", + type: { + name: "Composite", + className: "ApiIssueCommentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentGetHeaders: msRest.CompositeMapper = { + serializedName: "apiissuecomment-get-headers", + type: { + name: "Composite", + className: "ApiIssueCommentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueCommentCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiissuecomment-createorupdate-headers", + type: { + name: "Composite", + className: "ApiIssueCommentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueAttachmentGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apiissueattachment-getentitytag-headers", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueAttachmentGetHeaders: msRest.CompositeMapper = { + serializedName: "apiissueattachment-get-headers", + type: { + name: "Composite", + className: "ApiIssueAttachmentGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiIssueAttachmentCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiissueattachment-createorupdate-headers", + type: { + name: "Composite", + className: "ApiIssueAttachmentCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiTagDescriptionGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "apitagdescription-getentitytag-headers", + type: { + name: "Composite", + className: "ApiTagDescriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiTagDescriptionGetHeaders: msRest.CompositeMapper = { + serializedName: "apitagdescription-get-headers", + type: { + name: "Composite", + className: "ApiTagDescriptionGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiTagDescriptionCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apitagdescription-createorupdate-headers", + type: { + name: "Composite", + className: "ApiTagDescriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByApiHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystatebyapi-headers", + type: { + name: "Composite", + className: "TagGetEntityStateByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByApiHeaders: msRest.CompositeMapper = { + serializedName: "tag-getbyapi-headers", + type: { + name: "Composite", + className: "TagGetByApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagAssignToApiHeaders: msRest.CompositeMapper = { + serializedName: "tag-assigntoapi-headers", + type: { + name: "Composite", + className: "TagAssignToApiHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +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", + type: { + name: "Composite", + className: "ApiVersionSetGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiVersionSetCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "apiversionset-createorupdate-headers", + type: { + name: "Composite", + className: "ApiVersionSetCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "authorizationserver-getentitytag-headers", + type: { + name: "Composite", + className: "AuthorizationServerGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerGetHeaders: msRest.CompositeMapper = { + serializedName: "authorizationserver-get-headers", + type: { + name: "Composite", + className: "AuthorizationServerGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const AuthorizationServerCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "authorizationserver-createorupdate-headers", + type: { + name: "Composite", + className: "AuthorizationServerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "backend-getentitytag-headers", + type: { + name: "Composite", + className: "BackendGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendGetHeaders: msRest.CompositeMapper = { + serializedName: "backend-get-headers", + type: { + name: "Composite", + className: "BackendGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "backend-createorupdate-headers", + type: { + name: "Composite", + className: "BackendCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "cache-getentitytag-headers", + type: { + name: "Composite", + className: "CacheGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheGetHeaders: msRest.CompositeMapper = { + serializedName: "cache-get-headers", + type: { + name: "Composite", + className: "CacheGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CacheCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "cache-createorupdate-headers", + type: { + name: "Composite", + className: "CacheCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "certificate-getentitytag-headers", + type: { + name: "Composite", + className: "CertificateGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateGetHeaders: msRest.CompositeMapper = { + serializedName: "certificate-get-headers", + type: { + name: "Composite", + className: "CertificateGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const CertificateCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "certificate-createorupdate-headers", + type: { + name: "Composite", + className: "CertificateCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-getentitytag-headers", + type: { + name: "Composite", + className: "DiagnosticGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticGetHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-get-headers", + type: { + name: "Composite", + className: "DiagnosticGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "diagnostic-createorupdate-headers", + type: { + name: "Composite", + className: "DiagnosticCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const EmailTemplateGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "emailtemplate-getentitytag-headers", + type: { + name: "Composite", + className: "EmailTemplateGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const EmailTemplateGetHeaders: msRest.CompositeMapper = { + serializedName: "emailtemplate-get-headers", + type: { + name: "Composite", + className: "EmailTemplateGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GroupGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "group-getentitytag-headers", + type: { + name: "Composite", + className: "GroupGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GroupGetHeaders: msRest.CompositeMapper = { + serializedName: "group-get-headers", + type: { + name: "Composite", + className: "GroupGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const GroupCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "group-createorupdate-headers", + type: { + name: "Composite", + className: "GroupCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "identityprovider-getentitytag-headers", + type: { + name: "Composite", + className: "IdentityProviderGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderGetHeaders: msRest.CompositeMapper = { + serializedName: "identityprovider-get-headers", + type: { + name: "Composite", + className: "IdentityProviderGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "identityprovider-createorupdate-headers", + type: { + name: "Composite", + className: "IdentityProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const IssueGetHeaders: msRest.CompositeMapper = { + serializedName: "issue-get-headers", + type: { + name: "Composite", + className: "IssueGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const LoggerGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "logger-getentitytag-headers", + type: { + name: "Composite", + className: "LoggerGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const LoggerGetHeaders: msRest.CompositeMapper = { + serializedName: "logger-get-headers", + type: { + name: "Composite", + className: "LoggerGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const LoggerCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "logger-createorupdate-headers", + type: { + name: "Composite", + className: "LoggerCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const OpenIdConnectProviderGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "openidconnectprovider-getentitytag-headers", + type: { + name: "Composite", + className: "OpenIdConnectProviderGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const OpenIdConnectProviderGetHeaders: msRest.CompositeMapper = { + serializedName: "openidconnectprovider-get-headers", + type: { + name: "Composite", + className: "OpenIdConnectProviderGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const OpenIdConnectProviderCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "openidconnectprovider-createorupdate-headers", + type: { + name: "Composite", + className: "OpenIdConnectProviderCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "policy-getentitytag-headers", + type: { + name: "Composite", + className: "PolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyGetHeaders: msRest.CompositeMapper = { + serializedName: "policy-get-headers", + type: { + name: "Composite", + className: "PolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "policy-createorupdate-headers", + type: { + name: "Composite", + className: "PolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SignInSettingsGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "signinsettings-getentitytag-headers", + type: { + name: "Composite", + className: "SignInSettingsGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SignInSettingsGetHeaders: msRest.CompositeMapper = { + serializedName: "signinsettings-get-headers", + type: { + name: "Composite", + className: "SignInSettingsGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SignUpSettingsGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "signupsettings-getentitytag-headers", + type: { + name: "Composite", + className: "SignUpSettingsGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SignUpSettingsGetHeaders: msRest.CompositeMapper = { + serializedName: "signupsettings-get-headers", + type: { + name: "Composite", + className: "SignUpSettingsGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DelegationSettingsGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "delegationsettings-getentitytag-headers", + type: { + name: "Composite", + className: "DelegationSettingsGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const DelegationSettingsGetHeaders: msRest.CompositeMapper = { + serializedName: "delegationsettings-get-headers", + type: { + name: "Composite", + className: "DelegationSettingsGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "product-getentitytag-headers", + type: { + name: "Composite", + className: "ProductGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductGetHeaders: msRest.CompositeMapper = { + serializedName: "product-get-headers", + type: { + name: "Composite", + className: "ProductGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "product-createorupdate-headers", + type: { + name: "Composite", + className: "ProductCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductPolicyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "productpolicy-getentitytag-headers", + type: { + name: "Composite", + className: "ProductPolicyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductPolicyGetHeaders: msRest.CompositeMapper = { + serializedName: "productpolicy-get-headers", + type: { + name: "Composite", + className: "ProductPolicyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProductPolicyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "productpolicy-createorupdate-headers", + type: { + name: "Composite", + className: "ProductPolicyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateByProductHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystatebyproduct-headers", + type: { + name: "Composite", + className: "TagGetEntityStateByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetByProductHeaders: msRest.CompositeMapper = { + serializedName: "tag-getbyproduct-headers", + type: { + name: "Composite", + className: "TagGetByProductHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PropertyGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "property-getentitytag-headers", + type: { + name: "Composite", + className: "PropertyGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PropertyGetHeaders: msRest.CompositeMapper = { + serializedName: "property-get-headers", + type: { + name: "Composite", + className: "PropertyGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const PropertyCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "property-createorupdate-headers", + type: { + name: "Composite", + className: "PropertyCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SubscriptionGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "subscription-getentitytag-headers", + type: { + name: "Composite", + className: "SubscriptionGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SubscriptionGetHeaders: msRest.CompositeMapper = { + serializedName: "subscription-get-headers", + type: { + name: "Composite", + className: "SubscriptionGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const SubscriptionCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "subscription-createorupdate-headers", + type: { + name: "Composite", + className: "SubscriptionCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetEntityStateHeaders: msRest.CompositeMapper = { + serializedName: "tag-getentitystate-headers", + type: { + name: "Composite", + className: "TagGetEntityStateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagGetHeaders: msRest.CompositeMapper = { + serializedName: "tag-get-headers", + type: { + name: "Composite", + className: "TagGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TagCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "tag-createorupdate-headers", + type: { + name: "Composite", + className: "TagCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TenantAccessGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "tenantaccess-getentitytag-headers", + type: { + name: "Composite", + className: "TenantAccessGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TenantAccessGetHeaders: msRest.CompositeMapper = { + serializedName: "tenantaccess-get-headers", + type: { + name: "Composite", + className: "TenantAccessGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const TenantAccessGitGetHeaders: msRest.CompositeMapper = { + serializedName: "tenantaccessgit-get-headers", + type: { + name: "Composite", + className: "TenantAccessGitGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const UserGetEntityTagHeaders: msRest.CompositeMapper = { + serializedName: "user-getentitytag-headers", + type: { + name: "Composite", + className: "UserGetEntityTagHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const UserGetHeaders: msRest.CompositeMapper = { + serializedName: "user-get-headers", + type: { + name: "Composite", + className: "UserGetHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const UserCreateOrUpdateHeaders: msRest.CompositeMapper = { + serializedName: "user-createorupdate-headers", + type: { + name: "Composite", + className: "UserCreateOrUpdateHeaders", + modelProperties: { + eTag: { + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ApiCollection: msRest.CompositeMapper = { + serializedName: "ApiCollection", + type: { + name: "Composite", + className: "ApiCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TagResourceCollection: msRest.CompositeMapper = { + serializedName: "TagResourceCollection", + type: { + name: "Composite", + className: "TagResourceCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagResourceContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApiRevisionCollection: msRest.CompositeMapper = { + serializedName: "ApiRevisionCollection", + type: { + name: "Composite", + className: "ApiRevisionCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiRevisionContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ApiReleaseCollection: msRest.CompositeMapper = { + serializedName: "ApiReleaseCollection", + type: { + name: "Composite", + className: "ApiReleaseCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiReleaseContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationCollection: msRest.CompositeMapper = { + serializedName: "OperationCollection", + type: { + name: "Composite", + className: "OperationCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +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", + type: { + name: "String" + } + } + } + } +}; + +export const ProductCollection: msRest.CompositeMapper = { + serializedName: "ProductCollection", + type: { + name: "Composite", + className: "ProductCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProductContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SchemaCollection: msRest.CompositeMapper = { + serializedName: "SchemaCollection", + type: { + name: "Composite", + className: "SchemaCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SchemaContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const DiagnosticCollection: msRest.CompositeMapper = { + serializedName: "DiagnosticCollection", + type: { + name: "Composite", + className: "DiagnosticCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiagnosticContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IssueCollection: msRest.CompositeMapper = { + serializedName: "IssueCollection", + type: { + name: "Composite", + className: "IssueCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IssueContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + 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" + } + } + } + } +}; + +export const IssueAttachmentCollection: msRest.CompositeMapper = { + serializedName: "IssueAttachmentCollection", + type: { + name: "Composite", + className: "IssueAttachmentCollection", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IssueAttachmentContract" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TagDescriptionCollection: msRest.CompositeMapper = { + serializedName: "TagDescriptionCollection", + type: { + name: "Composite", + className: "TagDescriptionCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TagDescriptionContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +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" + } + } + } + } +}; + +export const AuthorizationServerCollection: msRest.CompositeMapper = { + serializedName: "AuthorizationServerCollection", + type: { + name: "Composite", + className: "AuthorizationServerCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AuthorizationServerContract" + } + } + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const BackendCollection: msRest.CompositeMapper = { + serializedName: "BackendCollection", + type: { + name: "Composite", + className: "BackendCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackendContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +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: { + name: "Composite", + className: "CertificateCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CertificateContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OperationListResult: msRest.CompositeMapper = { + serializedName: "OperationListResult", + type: { + name: "Composite", + className: "OperationListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Operation" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +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: { + name: "Composite", + className: "ApiManagementServiceListResult", + modelProperties: { + value: { + required: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiManagementServiceResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EmailTemplateCollection: msRest.CompositeMapper = { + serializedName: "EmailTemplateCollection", + type: { + name: "Composite", + className: "EmailTemplateCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EmailTemplateContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const GroupCollection: msRest.CompositeMapper = { + serializedName: "GroupCollection", + type: { + name: "Composite", + className: "GroupCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GroupContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const UserCollection: msRest.CompositeMapper = { + serializedName: "UserCollection", + type: { + name: "Composite", + className: "UserCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityProviderList: msRest.CompositeMapper = { + serializedName: "IdentityProviderList", + type: { + name: "Composite", + className: "IdentityProviderList", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IdentityProviderContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +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: { + name: "Composite", + className: "NotificationCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NotificationContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const OpenIdConnectProviderCollection: msRest.CompositeMapper = { + serializedName: "OpenIdConnectProviderCollection", + type: { + name: "Composite", + className: "OpenIdConnectProviderCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OpenidConnectProviderContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const SubscriptionCollection: msRest.CompositeMapper = { + serializedName: "SubscriptionCollection", + type: { + name: "Composite", + className: "SubscriptionCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubscriptionContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PropertyCollection: msRest.CompositeMapper = { + serializedName: "PropertyCollection", + type: { + name: "Composite", + className: "PropertyCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PropertyContract" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RegionListResult: msRest.CompositeMapper = { + serializedName: "RegionListResult", + type: { + name: "Composite", + className: "RegionListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegionContract" + } + } + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const ReportCollection: msRest.CompositeMapper = { + serializedName: "ReportCollection", + type: { + name: "Composite", + className: "ReportCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportRecordContract" + } + } + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const RequestReportCollection: msRest.CompositeMapper = { + serializedName: "RequestReportCollection", + type: { + name: "Composite", + className: "RequestReportCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RequestReportRecordContract" + } + } + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + } + } + } +}; + +export const UserIdentityCollection: msRest.CompositeMapper = { + serializedName: "UserIdentityCollection", + type: { + name: "Composite", + className: "UserIdentityCollection", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserIdentityContract" + } + } + } + }, + count: { + serializedName: "count", + type: { + name: "Number" + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/networkStatusMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/networkStatusMappers.ts new file mode 100644 index 000000000000..3187ee2f1971 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/networkStatusMappers.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 { + NetworkStatusContractByLocation, + NetworkStatusContract, + ConnectivityStatusContract, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/notificationMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/notificationMappers.ts new file mode 100644 index 000000000000..948d8db5e93d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/notificationMappers.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. + */ + +export { + NotificationCollection, + NotificationContract, + Resource, + BaseResource, + RecipientsContractProperties, + 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, + 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, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientEmailMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientEmailMappers.ts new file mode 100644 index 000000000000..84fcdcee08e2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientEmailMappers.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. + */ + +export { + RecipientEmailCollection, + RecipientEmailContract, + Resource, + 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, + 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, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientUserMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientUserMappers.ts new file mode 100644 index 000000000000..3f171f0907a4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/notificationRecipientUserMappers.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. + */ + +export { + RecipientUserCollection, + RecipientUserContract, + Resource, + 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, + 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, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/openIdConnectProviderMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/openIdConnectProviderMappers.ts new file mode 100644 index 000000000000..df4b452e16eb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/openIdConnectProviderMappers.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 { + OpenIdConnectProviderCollection, + OpenidConnectProviderContract, + Resource, + BaseResource, + 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, + 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, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/operationOperationsMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/operationOperationsMappers.ts new file mode 100644 index 000000000000..6d2f90121239 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/operationOperationsMappers.ts @@ -0,0 +1,28 @@ +/* + * 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 { + TagResourceCollection, + TagResourceContract, + TagTagResourceContractProperties, + ApiTagResourceContractProperties, + ApiEntityBaseContract, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + OperationTagResourceContractProperties, + ProductTagResourceContractProperties, + ProductEntityBaseParameters, + CloudError, + ApiContractProperties, + ApiVersionSetContractDetails +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/parameters.ts b/sdk/apimanagement/arm-apimanagement/lib/models/parameters.ts new file mode 100644 index 000000000000..b0a3f9bf1b2f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/parameters.ts @@ -0,0 +1,794 @@ +/* + * 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"; + +export const acceptLanguage: msRest.OperationParameter = { + parameterPath: "acceptLanguage", + mapper: { + serializedName: "accept-language", + defaultValue: 'en-US', + type: { + name: "String" + } + } +}; +export const accessName: msRest.OperationURLParameter = { + parameterPath: "accessName", + mapper: { + required: true, + isConstant: true, + serializedName: "accessName", + defaultValue: 'access', + type: { + name: "String" + } + } +}; +export const apiId0: msRest.OperationURLParameter = { + parameterPath: "apiId", + mapper: { + required: true, + serializedName: "apiId", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const apiId1: msRest.OperationURLParameter = { + parameterPath: "apiId", + mapper: { + required: true, + serializedName: "apiId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const apiVersion: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; +export const attachmentId: msRest.OperationURLParameter = { + parameterPath: "attachmentId", + mapper: { + required: true, + serializedName: "attachmentId", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const authsid: msRest.OperationURLParameter = { + parameterPath: "authsid", + mapper: { + required: true, + serializedName: "authsid", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const backendId: msRest.OperationURLParameter = { + parameterPath: "backendId", + mapper: { + required: true, + serializedName: "backendId", + constraints: { + MaxLength: 80, + MinLength: 1, + 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" + } + } +}; +export const certificateId: msRest.OperationURLParameter = { + parameterPath: "certificateId", + mapper: { + required: true, + serializedName: "certificateId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const commentId: msRest.OperationURLParameter = { + parameterPath: "commentId", + mapper: { + required: true, + serializedName: "commentId", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const configurationName: msRest.OperationURLParameter = { + parameterPath: "configurationName", + mapper: { + required: true, + isConstant: true, + serializedName: "configurationName", + defaultValue: 'configuration', + type: { + name: "String" + } + } +}; +export const deleteRevisions: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deleteRevisions" + ], + mapper: { + serializedName: "deleteRevisions", + type: { + name: "Boolean" + } + } +}; +export const deleteSubscriptions: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "deleteSubscriptions" + ], + mapper: { + serializedName: "deleteSubscriptions", + type: { + name: "Boolean" + } + } +}; +export const diagnosticId: msRest.OperationURLParameter = { + parameterPath: "diagnosticId", + mapper: { + required: true, + serializedName: "diagnosticId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const email: msRest.OperationURLParameter = { + parameterPath: "email", + mapper: { + required: true, + serializedName: "email", + type: { + name: "String" + } + } +}; +export const expandApiVersionSet: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expandApiVersionSet" + ], + mapper: { + serializedName: "expandApiVersionSet", + type: { + name: "Boolean" + } + } +}; +export const expandCommentsAttachments: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expandCommentsAttachments" + ], + mapper: { + serializedName: "expandCommentsAttachments", + type: { + name: "Boolean" + } + } +}; +export const expandGroups: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "expandGroups" + ], + mapper: { + serializedName: "expandGroups", + type: { + name: "Boolean" + } + } +}; +export const exportParameter: msRest.OperationQueryParameter = { + parameterPath: "exportParameter", + mapper: { + required: true, + isConstant: true, + serializedName: "export", + defaultValue: 'true', + type: { + name: "String" + } + } +}; +export const filter0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "filter" + ], + mapper: { + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const filter1: msRest.OperationQueryParameter = { + parameterPath: "filter", + mapper: { + required: true, + serializedName: "$filter", + type: { + name: "String" + } + } +}; +export const force: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "force" + ], + mapper: { + serializedName: "force", + type: { + name: "Boolean" + } + } +}; +export const format: msRest.OperationQueryParameter = { + parameterPath: "format", + mapper: { + required: true, + serializedName: "format", + type: { + name: "String" + } + } +}; +export const groupId: msRest.OperationURLParameter = { + parameterPath: "groupId", + mapper: { + required: true, + serializedName: "groupId", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const identityProviderName: msRest.OperationURLParameter = { + parameterPath: "identityProviderName", + mapper: { + required: true, + serializedName: "identityProviderName", + type: { + name: "String" + } + } +}; +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, + serializedName: "If-Match", + type: { + name: "String" + } + } +}; +export const includeNotTaggedApis: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "includeNotTaggedApis" + ], + mapper: { + serializedName: "includeNotTaggedApis", + type: { + 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" + } + } +}; +export const interval: msRest.OperationQueryParameter = { + parameterPath: "interval", + mapper: { + required: true, + serializedName: "interval", + type: { + name: "TimeSpan" + } + } +}; +export const issueId: msRest.OperationURLParameter = { + parameterPath: "issueId", + mapper: { + required: true, + serializedName: "issueId", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const locationName: msRest.OperationURLParameter = { + parameterPath: "locationName", + mapper: { + required: true, + serializedName: "locationName", + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; +export const loggerId: msRest.OperationURLParameter = { + parameterPath: "loggerId", + mapper: { + required: true, + serializedName: "loggerId", + constraints: { + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const nextPageLink: msRest.OperationURLParameter = { + parameterPath: "nextPageLink", + mapper: { + required: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, + skipEncoding: true +}; +export const notificationName: msRest.OperationURLParameter = { + parameterPath: "notificationName", + mapper: { + required: true, + serializedName: "notificationName", + type: { + name: "String" + } + } +}; +export const notify: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "notify" + ], + mapper: { + serializedName: "notify", + type: { + name: "Boolean" + } + } +}; +export const operationId: msRest.OperationURLParameter = { + parameterPath: "operationId", + mapper: { + required: true, + serializedName: "operationId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const opid: msRest.OperationURLParameter = { + parameterPath: "opid", + mapper: { + required: true, + serializedName: "opid", + constraints: { + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const orderby: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "orderby" + ], + mapper: { + serializedName: "$orderby", + type: { + name: "String" + } + } +}; +export const policyId: msRest.OperationURLParameter = { + parameterPath: "policyId", + mapper: { + required: true, + isConstant: true, + serializedName: "policyId", + defaultValue: 'policy', + type: { + name: "String" + } + } +}; +export const productId: msRest.OperationURLParameter = { + parameterPath: "productId", + mapper: { + required: true, + serializedName: "productId", + constraints: { + MaxLength: 256, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const propId: msRest.OperationURLParameter = { + parameterPath: "propId", + mapper: { + required: true, + serializedName: "propId", + constraints: { + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const quotaCounterKey: msRest.OperationURLParameter = { + parameterPath: "quotaCounterKey", + mapper: { + required: true, + serializedName: "quotaCounterKey", + type: { + name: "String" + } + } +}; +export const quotaPeriodKey: msRest.OperationURLParameter = { + parameterPath: "quotaPeriodKey", + mapper: { + required: true, + serializedName: "quotaPeriodKey", + type: { + name: "String" + } + } +}; +export const releaseId: msRest.OperationURLParameter = { + parameterPath: "releaseId", + mapper: { + required: true, + serializedName: "releaseId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const resourceGroupName: msRest.OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + required: true, + serializedName: "resourceGroupName", + type: { + name: "String" + } + } +}; +export const schemaId: msRest.OperationURLParameter = { + parameterPath: "schemaId", + mapper: { + required: true, + serializedName: "schemaId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const scope0: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "scope" + ], + mapper: { + serializedName: "scope", + type: { + name: "String" + } + } +}; +export const scope1: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "scope" + ], + mapper: { + serializedName: "scope", + type: { + name: "Enum", + allowedValues: [ + "Tenant", + "Product", + "Api", + "Operation", + "All" + ] + } + } +}; +export const serviceName: msRest.OperationURLParameter = { + parameterPath: "serviceName", + mapper: { + required: true, + serializedName: "serviceName", + constraints: { + MaxLength: 50, + MinLength: 1, + Pattern: /^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$/ + }, + type: { + name: "String" + } + } +}; +export const sid: msRest.OperationURLParameter = { + parameterPath: "sid", + mapper: { + required: true, + serializedName: "sid", + constraints: { + MaxLength: 256, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const skip: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "skip" + ], + mapper: { + serializedName: "$skip", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } +}; +export const subscriptionId: msRest.OperationURLParameter = { + parameterPath: "subscriptionId", + mapper: { + required: true, + serializedName: "subscriptionId", + type: { + name: "String" + } + } +}; +export const tagId: msRest.OperationURLParameter = { + parameterPath: "tagId", + mapper: { + required: true, + serializedName: "tagId", + constraints: { + MaxLength: 80, + MinLength: 1, + 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: { + required: true, + serializedName: "templateName", + type: { + name: "String" + } + } +}; +export const top: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "top" + ], + mapper: { + serializedName: "$top", + constraints: { + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } +}; +export const userId: msRest.OperationURLParameter = { + parameterPath: "userId", + mapper: { + required: true, + serializedName: "userId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; +export const versionSetId: msRest.OperationURLParameter = { + parameterPath: "versionSetId", + mapper: { + required: true, + serializedName: "versionSetId", + constraints: { + MaxLength: 80, + MinLength: 1, + Pattern: /^[^*#&+:<>?]+$/ + }, + type: { + name: "String" + } + } +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/policyMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/policyMappers.ts new file mode 100644 index 000000000000..c1c95ca8028d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/policyMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + PolicyCollection, + PolicyContract, + Resource, + BaseResource, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/policySnippetMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/policySnippetMappers.ts new file mode 100644 index 000000000000..cb73da0cfd56 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/productApiMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/productApiMappers.ts new file mode 100644 index 000000000000..b66dd712987d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/productApiMappers.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. + */ + +export { + ApiCollection, + ApiContract, + Resource, + BaseResource, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + ApiVersionSetContractDetails, + ErrorResponse, + ErrorFieldContract, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + ProductContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, + 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/sdk/apimanagement/arm-apimanagement/lib/models/productGroupMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/productGroupMappers.ts new file mode 100644 index 000000000000..4ae7f02cd090 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/productGroupMappers.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. + */ + +export { + GroupCollection, + GroupContract, + Resource, + 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, + 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, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/productMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/productMappers.ts new file mode 100644 index 000000000000..546e8e20abc9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/productMappers.ts @@ -0,0 +1,102 @@ +/* + * 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 { + ProductCollection, + ProductContract, + Resource, + BaseResource, + ErrorResponse, + ErrorFieldContract, + ProductGetEntityTagHeaders, + ProductGetHeaders, + ProductCreateOrUpdateHeaders, + ProductUpdateParameters, + TagResourceCollection, + TagResourceContract, + TagTagResourceContractProperties, + ApiTagResourceContractProperties, + ApiEntityBaseContract, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + OperationTagResourceContractProperties, + ProductTagResourceContractProperties, + ProductEntityBaseParameters, + ApiContractProperties, + ApiVersionSetContractDetails, + TagContract, + TagDescriptionContract, + IssueAttachmentContract, + IssueCommentContract, + IssueContract, + DiagnosticContract, + SamplingSettings, + PipelineDiagnosticSettings, + HttpMessageDiagnostic, + BodyDiagnosticSettings, + SchemaContract, + PolicyContract, + OperationContract, + ParameterContract, + RequestContract, + RepresentationContract, + ResponseContract, + ApiReleaseContract, + ApiContract, + 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/sdk/apimanagement/arm-apimanagement/lib/models/productPolicyMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/productPolicyMappers.ts new file mode 100644 index 000000000000..5235d969a56e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/productPolicyMappers.ts @@ -0,0 +1,92 @@ +/* + * 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 { + PolicyCollection, + PolicyContract, + Resource, + BaseResource, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/productSubscriptionsMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/productSubscriptionsMappers.ts new file mode 100644 index 000000000000..987102281ef0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/productSubscriptionsMappers.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. + */ + +export { + SubscriptionCollection, + SubscriptionContract, + Resource, + 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, + 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, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/propertyMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/propertyMappers.ts new file mode 100644 index 000000000000..e9b5ea3cc492 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/propertyMappers.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 { + PropertyCollection, + PropertyContract, + Resource, + BaseResource, + 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, + 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, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/quotaByCounterKeysMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/quotaByCounterKeysMappers.ts new file mode 100644 index 000000000000..dbbb152689d1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/quotaByCounterKeysMappers.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 { + QuotaCounterCollection, + QuotaCounterContract, + QuotaCounterValueContractProperties, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/quotaByPeriodKeysMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/quotaByPeriodKeysMappers.ts new file mode 100644 index 000000000000..76b842e3ae84 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/quotaByPeriodKeysMappers.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 { + QuotaCounterContract, + QuotaCounterValueContractProperties, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/regionMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/regionMappers.ts new file mode 100644 index 000000000000..41e6e18673ab --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/reportsMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/reportsMappers.ts new file mode 100644 index 000000000000..1d6bbb92ba5b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/reportsMappers.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 { + ReportCollection, + ReportRecordContract, + CloudError, + RequestReportCollection, + RequestReportRecordContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/signInSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/signInSettingsMappers.ts new file mode 100644 index 000000000000..06a9befcbb23 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/signInSettingsMappers.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 { + SignInSettingsGetEntityTagHeaders, + ErrorResponse, + ErrorFieldContract, + PortalSigninSettings, + Resource, + BaseResource, + SignInSettingsGetHeaders, + 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, + 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, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/signUpSettingsMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/signUpSettingsMappers.ts new file mode 100644 index 000000000000..53f8bfbf4561 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/signUpSettingsMappers.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 { + SignUpSettingsGetEntityTagHeaders, + ErrorResponse, + ErrorFieldContract, + PortalSignupSettings, + Resource, + BaseResource, + TermsOfServiceProperties, + SignUpSettingsGetHeaders, + 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, + 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, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/subscriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/subscriptionMappers.ts new file mode 100644 index 000000000000..1f6b4b4e5aa1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/subscriptionMappers.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + SubscriptionCollection, + SubscriptionContract, + Resource, + BaseResource, + ErrorResponse, + ErrorFieldContract, + 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, + 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, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/tagMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/tagMappers.ts new file mode 100644 index 000000000000..96b898c5f6e6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/tagMappers.ts @@ -0,0 +1,100 @@ +/* + * 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 { + TagCollection, + TagContract, + Resource, + BaseResource, + ErrorResponse, + ErrorFieldContract, + 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, + 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/sdk/apimanagement/arm-apimanagement/lib/models/tagResourceMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/tagResourceMappers.ts new file mode 100644 index 000000000000..64cb8b03cfb6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/tagResourceMappers.ts @@ -0,0 +1,29 @@ +/* + * 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 { + TagResourceCollection, + TagResourceContract, + TagTagResourceContractProperties, + ApiTagResourceContractProperties, + ApiEntityBaseContract, + AuthenticationSettingsContract, + OAuth2AuthenticationSettingsContract, + OpenIdAuthenticationSettingsContract, + SubscriptionKeyParameterNamesContract, + OperationTagResourceContractProperties, + ProductTagResourceContractProperties, + ProductEntityBaseParameters, + ErrorResponse, + ErrorFieldContract, + ApiContractProperties, + ApiVersionSetContractDetails +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessGitMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessGitMappers.ts new file mode 100644 index 000000000000..f8e3336f783e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessGitMappers.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 { + AccessInformationContract, + TenantAccessGitGetHeaders, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessMappers.ts new file mode 100644 index 000000000000..68fc9fa843c5 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/tenantAccessMappers.ts @@ -0,0 +1,19 @@ +/* + * 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 { + TenantAccessGetEntityTagHeaders, + ErrorResponse, + ErrorFieldContract, + AccessInformationContract, + TenantAccessGetHeaders, + AccessInformationUpdateParameters +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/tenantConfigurationMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/tenantConfigurationMappers.ts new file mode 100644 index 000000000000..19e01222acab --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/tenantConfigurationMappers.ts @@ -0,0 +1,22 @@ +/* + * 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 { + DeployConfigurationParameters, + OperationResultContract, + ErrorResponseBody, + ErrorFieldContract, + OperationResultLogItemContract, + ErrorResponse, + SaveConfigurationParameter, + TenantConfigurationSyncStateContract, + CloudError +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/userConfirmationPasswordMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/userConfirmationPasswordMappers.ts new file mode 100644 index 000000000000..59af1e64a75d --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/models/userGroupMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/userGroupMappers.ts new file mode 100644 index 000000000000..4ae7f02cd090 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/userGroupMappers.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. + */ + +export { + GroupCollection, + GroupContract, + Resource, + 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, + 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, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/userIdentitiesMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/userIdentitiesMappers.ts new file mode 100644 index 000000000000..85ef9f7e7ffa --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/userIdentitiesMappers.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 { + UserIdentityCollection, + UserIdentityContract, + ErrorResponse, + ErrorFieldContract +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/userMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/userMappers.ts new file mode 100644 index 000000000000..228f214e2ccd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/userMappers.ts @@ -0,0 +1,97 @@ +/* + * 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 { + 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, + 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, + GroupContract, + IdentityProviderContract, + LoggerContract, + RecipientEmailContract, + RecipientUserContract, + NotificationContract, + RecipientsContractProperties, + OpenidConnectProviderContract, + PortalDelegationSettings, + SubscriptionsDelegationSettingsProperties, + RegistrationDelegationSettingsProperties, + PortalSignupSettings, + TermsOfServiceProperties, + PortalSigninSettings, + SubscriptionContract, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/models/userSubscriptionMappers.ts b/sdk/apimanagement/arm-apimanagement/lib/models/userSubscriptionMappers.ts new file mode 100644 index 000000000000..987102281ef0 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/models/userSubscriptionMappers.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. + */ + +export { + SubscriptionCollection, + SubscriptionContract, + Resource, + 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, + 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, + PropertyContract, + ApiManagementServiceResource +} from "../models/mappers"; + diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/api.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/api.ts new file mode 100644 index 000000000000..7dc3aea4f799 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/api.ts @@ -0,0 +1,618 @@ +/* + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/apiMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Api. */ +export class Api { + private readonly client: ApiManagementClientContext; + + /** + * Create a Api. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all APIs of the API Management 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.ApiListByServiceOptionalParams): 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.ApiListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.ApiListByServiceOptionalParams | 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 API 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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param 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 + */ + getEntityTag(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 + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the API 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 [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param 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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + getOperationSpec, + 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 + */ + 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; + } + + /** + * Updates the 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 API Update Contract 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, parameters: Models.ApiUpdateContract, 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 parameters API Update Contract 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, parameters: Models.ApiUpdateContract, 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 parameters API Update Contract 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, parameters: Models.ApiUpdateContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.ApiUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the 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 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, ifMatch: string, options?: Models.ApiDeleteMethodOptionalParams): 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 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, 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 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, ifMatch: string, options: Models.ApiDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: Models.ApiDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of apis 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.ApiListByTagsOptionalParams): 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.ApiListByTagsOptionalParams, callback: msRest.ServiceCallback): void; + listByTags(resourceGroupName: string, serviceName: string, options?: Models.ApiListByTagsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByTagsOperationSpec, + 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. + * @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; + } + + /** + * Lists a collection of apis 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 +const serializer = new msRest.Serializer(Mappers); +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.expandApiVersionSet, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.ApiGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiUpdateContract, + 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}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.deleteRevisions, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apisByTags", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.includeNotTaggedApis, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +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.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiCreateOrUpdateParameter, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.ApiCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ApiContract, + headersMapper: Mappers.ApiCreateOrUpdateHeaders + }, + 202: { + headersMapper: Mappers.ApiCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByServiceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +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/sdk/apimanagement/arm-apimanagement/lib/operations/apiDiagnostic.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiDiagnostic.ts new file mode 100644 index 000000000000..aac5ab05ff5e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiDiagnostic.ts @@ -0,0 +1,536 @@ +/* + * 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/apiDiagnosticMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiDiagnostic. */ +export class ApiDiagnostic { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiDiagnostic. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all diagnostics 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.ApiDiagnosticListByServiceOptionalParams): 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.ApiDiagnosticListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiDiagnosticListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. + * @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 diagnosticId Diagnostic 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, diagnosticId: 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: 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 diagnosticId Diagnostic 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, diagnosticId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + diagnosticId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Diagnostic for an API specified by its identifier. + * @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 diagnosticId Diagnostic 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, diagnosticId: 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: 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 diagnosticId Diagnostic 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, diagnosticId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + diagnosticId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Diagnostic for an API or updates an existing one. + * @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 diagnosticId Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, options?: Models.ApiDiagnosticCreateOrUpdateOptionalParams): 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 diagnosticId Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, 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 diagnosticId Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, options: Models.ApiDiagnosticCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, parameters: Models.DiagnosticContract, options?: Models.ApiDiagnosticCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + diagnosticId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the Diagnostic for an API specified by its identifier. + * @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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param parameters Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param parameters Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, 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 diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param parameters Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, parameters: Models.DiagnosticContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + diagnosticId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the specified Diagnostic from 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 diagnosticId Diagnostic 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, diagnosticId: 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 identifier. Must be unique in the current API Management service instance. + * @param diagnosticId Diagnostic 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, diagnosticId: 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 identifier. Must be unique in the current API Management service instance. + * @param diagnosticId Diagnostic 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, diagnosticId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + diagnosticId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists all diagnostics 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}/diagnostics", + 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.DiagnosticCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiDiagnosticGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.ApiDiagnosticGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DiagnosticContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.ApiDiagnosticCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DiagnosticContract, + 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}/apis/{apiId}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.diagnosticId, + 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.DiagnosticCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiExport.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiExport.ts new file mode 100644 index 000000000000..06b657ed9e75 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiExport.ts @@ -0,0 +1,105 @@ +/* + * 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/apiExportMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiExport. */ +export class ApiExport { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiExport. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the details of the API specified by its identifier in the format specified to the Storage + * Blob with SAS Key valid for 5 minutes. + * @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 format Format in which to export the Api Details to the Storage Blob with Sas Key valid + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, format: Models.ExportFormat, 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 format Format in which to export the Api Details to the Storage Blob with Sas Key valid + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, format: Models.ExportFormat, 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 format Format in which to export the Api Details to the Storage Blob with Sas Key valid + * for 5 minutes. Possible values include: 'Swagger', 'Wsdl', 'Wadl', 'Openapi' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, format: Models.ExportFormat, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, format: Models.ExportFormat, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + format, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.format, + Parameters.exportParameter, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiExportResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssue.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssue.ts new file mode 100644 index 000000000000..e6bc0634c75f --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssue.ts @@ -0,0 +1,523 @@ +/* + * 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/apiIssueMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiIssue. */ +export class ApiIssue { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiIssue. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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. + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiIssueListByServiceOptionalParams): 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.ApiIssueListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiIssueListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the Issue for an API specified by its identifier. + * @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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: 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 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 callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: 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 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 options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Issue for an API specified by its identifier. + * @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 [options] The optional parameters + * @returns 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. + * @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 callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: 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 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 options The optional parameters + * @param callback The callback + */ + 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, + serviceName, + apiId, + issueId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Issue for an API or updates an existing one. + * @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 Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueContract, options?: Models.ApiIssueCreateOrUpdateOptionalParams): 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 Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueContract, 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 Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueContract, options: Models.ApiIssueCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: Models.IssueContract, options?: Models.ApiIssueCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates an existing issue for 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 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, 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, 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, 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, + serviceName, + apiId, + issueId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the specified Issue from 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 issueId Issue 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, issueId: 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 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 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; + /** + * @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 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, issueId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * 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 + */ + 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}/issues", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.expandCommentsAttachments, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiIssueGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.expandCommentsAttachments, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueContract, + headersMapper: Mappers.ApiIssueGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.IssueContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IssueContract, + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.IssueContract, + headersMapper: Mappers.ApiIssueCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.IssueUpdateContract, + 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}/apis/{apiId}/issues/{issueId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + 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.IssueCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueAttachment.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueAttachment.ts new file mode 100644 index 000000000000..9392f644c44d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueAttachment.ts @@ -0,0 +1,463 @@ +/* + * 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/apiIssueAttachmentMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiIssueAttachment. */ +export class ApiIssueAttachment { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiIssueAttachment. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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. + * @param issueId Issue 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, issueId: string, options?: Models.ApiIssueAttachmentListByServiceOptionalParams): 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 callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, apiId: 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 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 options The optional parameters + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: Models.ApiIssueAttachmentListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: Models.ApiIssueAttachmentListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the issue Attachment for an API specified by its + * identifier. + * @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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: 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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: 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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + attachmentId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the issue Attachment for an API specified by its identifier. + * @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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: 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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: 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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + attachmentId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Attachment for the Issue in an API or updates an existing one. + * @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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: Models.IssueAttachmentContract, options?: Models.ApiIssueAttachmentCreateOrUpdateOptionalParams): 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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: Models.IssueAttachmentContract, 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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @param parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: Models.IssueAttachmentContract, options: Models.ApiIssueAttachmentCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: Models.IssueAttachmentContract, options?: Models.ApiIssueAttachmentCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + attachmentId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified comment from an Issue. + * @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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @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, issueId: string, attachmentId: 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 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 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; + /** + * @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 attachmentId Attachment identifier within an Issue. Must be unique in the current Issue. + * @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, issueId: string, attachmentId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + attachmentId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * 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 + */ + 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}/issues/{issueId}/attachments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueAttachmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.attachmentId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiIssueAttachmentGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.attachmentId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueAttachmentContract, + headersMapper: Mappers.ApiIssueAttachmentGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.attachmentId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.IssueAttachmentContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IssueAttachmentContract, + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.IssueAttachmentContract, + headersMapper: Mappers.ApiIssueAttachmentCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/attachments/{attachmentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.attachmentId, + 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.IssueAttachmentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueComment.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueComment.ts new file mode 100644 index 000000000000..8f4584a711ee --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiIssueComment.ts @@ -0,0 +1,463 @@ +/* + * 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/apiIssueCommentMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiIssueComment. */ +export class ApiIssueComment { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiIssueComment. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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. + * @param issueId Issue 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, issueId: string, options?: Models.ApiIssueCommentListByServiceOptionalParams): 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 callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, apiId: 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 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 options The optional parameters + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: Models.ApiIssueCommentListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: Models.ApiIssueCommentListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the issue Comment for an API specified by its + * identifier. + * @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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: 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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: 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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + commentId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the issue Comment for an API specified by its identifier. + * @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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: 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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: 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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + commentId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Comment for the Issue in an API or updates an existing one. + * @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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: Models.IssueCommentContract, options?: Models.ApiIssueCommentCreateOrUpdateOptionalParams): 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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: Models.IssueCommentContract, 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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @param parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: Models.IssueCommentContract, options: Models.ApiIssueCommentCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: Models.IssueCommentContract, options?: Models.ApiIssueCommentCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + commentId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified comment from an Issue. + * @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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @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, issueId: string, commentId: 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 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 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; + /** + * @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 commentId Comment identifier within an Issue. Must be unique in the current Issue. + * @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, issueId: string, commentId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + issueId, + commentId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * 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 + */ + 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}/issues/{issueId}/comments", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueCommentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.commentId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiIssueCommentGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.commentId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IssueCommentContract, + headersMapper: Mappers.ApiIssueCommentGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.commentId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.IssueCommentContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IssueCommentContract, + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.IssueCommentContract, + headersMapper: Mappers.ApiIssueCommentCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}/comments/{commentId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.issueId, + Parameters.commentId, + 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.IssueCommentCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementOperations.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementOperations.ts new file mode 100644 index 000000000000..043449470e76 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementOperations.ts @@ -0,0 +1,123 @@ +/* + * 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/apiManagementOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiManagementOperations. */ +export class ApiManagementOperations { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiManagementOperations. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all of the available REST API operations of the Microsoft.ApiManagement provider. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all of the available REST API operations of the Microsoft.ApiManagement provider. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.ApiManagement/operations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts new file mode 100644 index 000000000000..109c47ec51f7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts @@ -0,0 +1,801 @@ +/* + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/apiManagementServiceMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiManagementService. */ +export class ApiManagementService { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiManagementService. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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 + * minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the Restore API Management service from backup + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + restore(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceBackupRestoreParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginRestore(resourceGroupName,serviceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Creates a backup of the API Management service to the given Azure Storage Account. This is long + * running operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the ApiManagementService_Backup operation. + * @param [options] The optional parameters + * @returns Promise + */ + backup(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceBackupRestoreParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginBackup(resourceGroupName,serviceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Creates or updates an API Management service. This is long running operation and could take + * several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,serviceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates an existing API Management service. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,serviceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets an API Management service resource description. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + deleteMethod(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,serviceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List all API Management services within a resource group. + * @param resourceGroupName The name of the resource group. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Lists all API Management services within an Azure subscription. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + getSsoToken(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 + */ + getSsoToken(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 + */ + getSsoToken(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSsoToken(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getSsoTokenOperationSpec, + callback) as Promise; + } + + /** + * Checks availability and correctness of a name for an API Management service. + * @param parameters Parameters supplied to the CheckNameAvailability operation. + * @param [options] The optional parameters + * @returns Promise + */ + checkNameAvailability(parameters: Models.ApiManagementServiceCheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param parameters Parameters supplied to the CheckNameAvailability operation. + * @param callback The callback + */ + checkNameAvailability(parameters: Models.ApiManagementServiceCheckNameAvailabilityParameters, callback: msRest.ServiceCallback): void; + /** + * @param parameters Parameters supplied to the CheckNameAvailability operation. + * @param options The optional parameters + * @param callback The callback + */ + checkNameAvailability(parameters: Models.ApiManagementServiceCheckNameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + checkNameAvailability(parameters: Models.ApiManagementServiceCheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + parameters, + options + }, + checkNameAvailabilityOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns Promise + */ + applyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: Models.ApiManagementServiceApplyNetworkConfigurationUpdatesOptionalParams): Promise { + return this.beginApplyNetworkConfigurationUpdates(resourceGroupName,serviceName,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 + * minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the Restore API Management service from backup + * operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginRestore(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceBackupRestoreParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + parameters, + options + }, + beginRestoreOperationSpec, + options); + } + + /** + * Creates a backup of the API Management service to the given Azure Storage Account. This is long + * running operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the ApiManagementService_Backup operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginBackup(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceBackupRestoreParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + parameters, + options + }, + beginBackupOperationSpec, + options); + } + + /** + * Creates or updates an API Management service. This is long running operation and could take + * several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Updates an existing API Management service. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to the CreateOrUpdate API Management service operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, serviceName: string, parameters: Models.ApiManagementServiceUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + parameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * 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 + */ + beginDeleteMethod(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * 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 [options] The optional parameters + * @returns Promise + */ + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: Models.ApiManagementServiceBeginApplyNetworkConfigurationUpdatesOptionalParams): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + options + }, + beginApplyNetworkConfigurationUpdatesOperationSpec, + options); + } + + /** + * List all API Management services within a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(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 + */ + listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all API Management services within an Azure subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + 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: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/service", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSsoTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/getssotoken", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceGetSsoTokenResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const checkNameAvailabilityOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/checkNameAvailability", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiManagementServiceCheckNameAvailabilityParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceNameAvailabilityResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRestoreOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiManagementServiceBackupRestoreParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginBackupOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiManagementServiceBackupRestoreParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiManagementServiceResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 201: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiManagementServiceUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: 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: {}, + 202: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginApplyNetworkConfigurationUpdatesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/applynetworkconfigurationupdates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.ApiManagementServiceApplyNetworkConfigurationParameters + }, + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceResource + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiManagementServiceListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementServiceSkus.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementServiceSkus.ts new file mode 100644 index 000000000000..4ed93c82e480 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/apiOperation.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiOperation.ts new file mode 100644 index 000000000000..02d3a4495eeb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiOperation.ts @@ -0,0 +1,555 @@ +/* + * 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/apiOperationMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiOperation. */ +export class ApiOperation { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiOperation. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of the operations for the specified 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 [options] The optional parameters + * @returns Promise + */ + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiOperationListByApiOptionalParams): 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 + */ + listByApi(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 + */ + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options: Models.ApiOperationListByApiOptionalParams, callback: msRest.ServiceCallback): void; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiOperationListByApiOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByApiOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the API operation 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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, operationId: 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 callback The callback + */ + getEntityTag(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 + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the API Operation 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 [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, operationId: 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 callback The callback + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new operation in the API or updates an existing one. + * @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 parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.OperationContract, options?: Models.ApiOperationCreateOrUpdateOptionalParams): 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 parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.OperationContract, 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 parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.OperationContract, options: Models.ApiOperationCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.OperationContract, options?: Models.ApiOperationCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the operation in the API 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 parameters API Operation 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, operationId: string, parameters: Models.OperationUpdateContract, 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. + * @param parameters API Operation 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, operationId: string, parameters: Models.OperationUpdateContract, 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 operationId Operation identifier within an API. Must be unique in the current API + * Management service instance. + * @param parameters API Operation 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, operationId: string, parameters: Models.OperationUpdateContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.OperationUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the specified operation in 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 operationId Operation identifier within an API. 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, operationId: 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 operationId Operation identifier within an API. 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, operationId: 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 operationId Operation identifier within an API. 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, operationId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of the operations for the specified API. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByApiNext(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 + */ + listByApiNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByApiNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByApiOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.tags, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiOperationGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.ApiOperationGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.OperationContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.OperationContract, + headersMapper: Mappers.ApiOperationCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.OperationUpdateContract, + 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}/apis/{apiId}/operations/{operationId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByApiNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiOperationPolicy.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiOperationPolicy.ts new file mode 100644 index 000000000000..a4aa64dc1217 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiOperationPolicy.ts @@ -0,0 +1,424 @@ +/* + * 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/apiOperationPolicyMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiOperationPolicy. */ +export class ApiOperationPolicy { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiOperationPolicy. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Get the list of policy configuration at the API Operation level. + * @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 + */ + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: 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 callback The callback + */ + 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 + */ + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByOperation(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + options + }, + listByOperationOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the API operation policy 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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, operationId: 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 callback The callback + */ + getEntityTag(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 + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Get the policy configuration at the API Operation level. + * @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 + */ + get(resourceGroupName: string, serviceName: string, apiId: string, operationId: 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 callback The callback + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates policy configuration for the API Operation level. + * @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 parameters The policy contents to apply. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.PolicyContract, options?: Models.ApiOperationPolicyCreateOrUpdateOptionalParams): 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 parameters The policy contents to apply. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.PolicyContract, 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 parameters The policy contents to apply. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.PolicyContract, options: Models.ApiOperationPolicyCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, parameters: Models.PolicyContract, options?: Models.ApiOperationPolicyCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the policy configuration at the Api 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 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, operationId: 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 operationId Operation identifier within an API. 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, operationId: 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 operationId Operation identifier within an API. 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, operationId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, operationId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiOperationPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiOperationPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PolicyContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiOperationPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operations/{operationId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.operationId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiPolicy.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiPolicy.ts new file mode 100644 index 000000000000..6b2575be784b --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiPolicy.ts @@ -0,0 +1,384 @@ +/* + * 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/apiPolicyMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiPolicy. */ +export class ApiPolicy { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiPolicy. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Get the policy configuration at the API level. + * @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 + */ + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param 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 + */ + listByApi(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 + */ + 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByApiOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the API policy 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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param 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 + */ + getEntityTag(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 + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Get the policy configuration at the API level. + * @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 + */ + get(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param 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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates policy configuration for the API. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param parameters The policy contents to apply. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.PolicyContract, options?: Models.ApiPolicyCreateOrUpdateOptionalParams): 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 The policy contents to apply. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.PolicyContract, 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 The policy contents to apply. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.PolicyContract, options: Models.ApiPolicyCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, parameters: Models.PolicyContract, options?: Models.ApiPolicyCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the policy configuration at 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 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, 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 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, 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 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, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByApiOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PolicyContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ApiPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiProduct.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiProduct.ts new file mode 100644 index 000000000000..10e07fb486f2 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiProduct.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/apiProductMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiProduct. */ +export class ApiProduct { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiProduct. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all Products, which the API is part of. + * @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 + */ + listByApis(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiProductListByApisOptionalParams): 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 + */ + listByApis(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 + */ + listByApis(resourceGroupName: string, serviceName: string, apiId: string, options: Models.ApiProductListByApisOptionalParams, callback: msRest.ServiceCallback): void; + listByApis(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.ApiProductListByApisOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByApisOperationSpec, + callback) as Promise; + } + + /** + * Lists all Products, which the API is part of. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByApisNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByApisNext(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 + */ + listByApisNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByApisNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByApisNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByApisOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products", + 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.ProductCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByApisNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProductCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiRelease.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiRelease.ts new file mode 100644 index 000000000000..f0d3cedeb6d3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiRelease.ts @@ -0,0 +1,540 @@ +/* + * 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/apiReleaseMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiRelease. */ +export class ApiRelease { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiRelease. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * constrained by the $top and $skip parameters. + * @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.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 + */ + 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.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, + serviceName, + apiId, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Returns the etag of an API release. + * @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 releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, releaseId: 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 releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, releaseId: 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 releaseId Release identifier within an API. 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, releaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + releaseId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Returns the details of an API release. + * @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 releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, releaseId: 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 releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, releaseId: 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 releaseId Release identifier within an API. 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, releaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + releaseId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Release for the 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 releaseId Release identifier within an API. 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, 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. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. 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, 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. + * @param apiId API identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. 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, 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, + serviceName, + apiId, + releaseId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the release of the API specified by its identifier. + * @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 releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters API Release 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, releaseId: string, parameters: Models.ApiReleaseContract, 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 releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters API Release 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, releaseId: string, parameters: Models.ApiReleaseContract, 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 releaseId Release identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters API Release 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, releaseId: string, parameters: Models.ApiReleaseContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, parameters: Models.ApiReleaseContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + releaseId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the specified release in the 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 releaseId Release identifier within an API. 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, releaseId: 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 identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. 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, releaseId: 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 identifier. Must be unique in the current API Management service instance. + * @param releaseId Release identifier within an API. 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, releaseId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, releaseId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + releaseId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists all releases of an API. An API release is created when making an API Revision current. + * Releases are also used to rollback to previous revisions. Results will be paged and can be + * 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 + */ + 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}/releases", + 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.ApiReleaseCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.releaseId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiReleaseGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.releaseId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.ApiReleaseGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +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.apiId1, + Parameters.releaseId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiReleaseContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ApiReleaseContract, + headersMapper: Mappers.ApiReleaseCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/releases/{releaseId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.releaseId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiReleaseContract, + 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}/apis/{apiId}/releases/{releaseId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId1, + Parameters.releaseId, + 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.ApiReleaseCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiRevision.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiRevision.ts new file mode 100644 index 000000000000..837ccbc609f9 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/apiSchema.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiSchema.ts new file mode 100644 index 000000000000..01f7dcf1b4bd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiSchema.ts @@ -0,0 +1,465 @@ +/* + * 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/apiSchemaMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiSchema. */ +export class ApiSchema { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiSchema. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Get the schema configuration at the API level. + * @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 + */ + 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. + * @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 + */ + listByApi(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 + */ + 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, + serviceName, + apiId, + options + }, + listByApiOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the schema 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 schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, schemaId: 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 schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, schemaId: 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 schemaId Schema identifier within an API. 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, schemaId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + schemaId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Get the schema configuration at the API level. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, apiId: string, schemaId: 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 schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, apiId: string, schemaId: 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 schemaId Schema identifier within an API. 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, schemaId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + schemaId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates schema configuration for the API. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters The schema contents to apply. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaContract, options?: Models.ApiSchemaCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters The schema contents to apply. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param parameters The schema contents to apply. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaContract, options: Models.ApiSchemaCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, schemaId: string, parameters: Models.SchemaContract, options?: Models.ApiSchemaCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + schemaId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the schema configuration at the Api. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param 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, 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. + * @param apiId API revision identifier. Must be unique in the current API Management service + * instance. Non-current revision has ;rev=n as a suffix where n is the revision number. + * @param schemaId Schema identifier within an API. Must be unique in the current API Management + * service instance. + * @param 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, schemaId: 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 schemaId Schema identifier within an API. 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, 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, + serviceName, + apiId, + schemaId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * 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 + */ + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByApiNext(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 + */ + listByApiNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByApiNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByApiOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas", + 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.SchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.schemaId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiSchemaGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.schemaId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.ApiSchemaGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.schemaId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SchemaContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.SchemaContract, + headersMapper: Mappers.ApiSchemaCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/schemas/{schemaId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.schemaId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.force, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByApiNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SchemaCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiTagDescription.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiTagDescription.ts new file mode 100644 index 000000000000..dd13e851c706 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/apiVersionSet.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiVersionSet.ts new file mode 100644 index 000000000000..5f6861172541 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiVersionSet.ts @@ -0,0 +1,506 @@ +/* + * 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/apiVersionSetMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ApiVersionSet. */ +export class ApiVersionSet { + private readonly client: ApiManagementClientContext; + + /** + * Create a ApiVersionSet. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of API Version Sets 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.ApiVersionSetListByServiceOptionalParams): 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.ApiVersionSetListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.ApiVersionSetListByServiceOptionalParams | 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 Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management + * service instance. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, versionSetId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management + * service instance. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, versionSetId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, versionSetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + versionSetId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Api Version Set specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management + * service instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, versionSetId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set identifier. Must be unique in the current API Management + * service instance. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, versionSetId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, versionSetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + versionSetId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or Updates a Api Version Set. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, parameters: Models.ApiVersionSetContract, options?: Models.ApiVersionSetCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, parameters: Models.ApiVersionSetContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, parameters: Models.ApiVersionSetContract, options: Models.ApiVersionSetCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, versionSetId: string, parameters: Models.ApiVersionSetContract, options?: Models.ApiVersionSetCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + versionSetId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the Api VersionSet specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, parameters: Models.ApiVersionSetUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, parameters: Models.ApiVersionSetUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: string, parameters: Models.ApiVersionSetUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, versionSetId: string, parameters: Models.ApiVersionSetUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + versionSetId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific Api Version Set. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param versionSetId Api Version Set 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, versionSetId: 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 versionSetId Api Version Set 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, versionSetId: 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 versionSetId Api Version Set 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, versionSetId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, versionSetId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + versionSetId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of API Version Sets 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}/apiVersionSets", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.versionSetId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ApiVersionSetGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.versionSetId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.ApiVersionSetGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.versionSetId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiVersionSetContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ApiVersionSetContract, + headersMapper: Mappers.ApiVersionSetCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apiVersionSets/{versionSetId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.versionSetId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ApiVersionSetUpdateParameters, + 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}/apiVersionSets/{versionSetId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.versionSetId, + 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.ApiVersionSetCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/authorizationServer.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/authorizationServer.ts new file mode 100644 index 000000000000..8a3182d35653 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/authorizationServer.ts @@ -0,0 +1,491 @@ +/* + * 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/authorizationServerMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a AuthorizationServer. */ +export class AuthorizationServer { + private readonly client: ApiManagementClientContext; + + /** + * Create a AuthorizationServer. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of authorization servers defined within a service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.AuthorizationServerListByServiceOptionalParams): 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.AuthorizationServerListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.AuthorizationServerListByServiceOptionalParams | 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 authorizationServer specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authsid, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the authorization server specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, authsid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, authsid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, authsid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, authsid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authsid, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates new authorization server or updates an existing authorization server. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param parameters Create or update parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: Models.AuthorizationServerContract, options?: Models.AuthorizationServerCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param parameters Create or update parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: Models.AuthorizationServerContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param parameters Create or update parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: Models.AuthorizationServerContract, options: Models.AuthorizationServerCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: Models.AuthorizationServerContract, options?: Models.AuthorizationServerCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authsid, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the authorization server specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param parameters OAuth2 Server settings 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, authsid: string, parameters: Models.AuthorizationServerUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param parameters OAuth2 Server settings 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, authsid: string, parameters: Models.AuthorizationServerUpdateContract, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param parameters OAuth2 Server settings 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, authsid: string, parameters: Models.AuthorizationServerUpdateContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, authsid: string, parameters: Models.AuthorizationServerUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authsid, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific authorization server instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param authsid Identifier of the authorization server. + * @param 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, authsid: 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 authsid Identifier of the authorization server. + * @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, authsid: 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 authsid Identifier of the authorization server. + * @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, authsid: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + authsid, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of authorization servers defined within a 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}/authorizationServers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AuthorizationServerCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.authsid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.AuthorizationServerGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.authsid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AuthorizationServerContract, + headersMapper: Mappers.AuthorizationServerGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.authsid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AuthorizationServerContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.AuthorizationServerContract, + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.AuthorizationServerContract, + headersMapper: Mappers.AuthorizationServerCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationServers/{authsid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.authsid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AuthorizationServerUpdateContract, + 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}/authorizationServers/{authsid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.authsid, + 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.AuthorizationServerCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/backend.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/backend.ts new file mode 100644 index 000000000000..660d0124c797 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/backend.ts @@ -0,0 +1,577 @@ +/* + * 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/backendMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Backend. */ +export class Backend { + private readonly client: ApiManagementClientContext; + + /** + * Create a Backend. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of backends 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.BackendListByServiceOptionalParams): 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.BackendListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.BackendListByServiceOptionalParams | 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 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 + * service instance. + * @param [options] The optional parameters + * @returns 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 + * service instance. + * @param callback The callback + */ + 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 + * 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + backendId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * 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 + * service instance. + * @param [options] The optional parameters + * @returns 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 + * service instance. + * @param callback The callback + */ + 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 + * 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + backendId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * 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 + * 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; + /** + * @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 + * service instance. + * @param parameters Create parameters. + * @param callback The callback + */ + 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 + * 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + backendId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * 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 + * 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, 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 + * 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; + /** + * @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 + * 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, 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, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * 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 + * 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; + /** + * @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 + * 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; + /** + * @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 + * 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + backendId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Notifies the APIM proxy to create a new connection to the backend after the specified timeout. + * 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 + * service instance. + * @param [options] The optional parameters + * @returns 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 + * service instance. + * @param callback The callback + */ + 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 + * 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + backendId, + options + }, + reconnectOperationSpec, + callback); + } + + /** + * Lists a collection of backends 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}/backends", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackendCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.backendId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.BackendGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.backendId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.BackendGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.backendId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackendContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.BackendCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.BackendContract, + headersMapper: Mappers.BackendCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.backendId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.BackendUpdateParameters, + 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}/backends/{backendId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.backendId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const reconnectOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/backends/{backendId}/reconnect", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.backendId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: [ + "options", + "parameters" + ], + mapper: Mappers.BackendReconnectContract + }, + responses: { + 202: {}, + 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.BackendCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/cache.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/cache.ts new file mode 100644 index 000000000000..3cb264df2e6a --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/certificate.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/certificate.ts new file mode 100644 index 000000000000..f47a28ce34f4 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/certificate.ts @@ -0,0 +1,424 @@ +/* + * 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/certificateMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Certificate. */ +export class Certificate { + private readonly client: ApiManagementClientContext; + + /** + * Create a Certificate. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of all certificates 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.CertificateListByServiceOptionalParams): 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.CertificateListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.CertificateListByServiceOptionalParams | 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 certificate specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, certificateId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, certificateId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate 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, certificateId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, certificateId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + certificateId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the certificate specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, certificateId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate entity. Must be unique in the current API + * Management service instance. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, certificateId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate 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, certificateId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, certificateId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + certificateId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the certificate being used for authentication with the backend. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate entity. 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, certificateId: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate entity. 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, certificateId: string, parameters: Models.CertificateCreateOrUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate entity. 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, certificateId: string, parameters: Models.CertificateCreateOrUpdateParameters, options: Models.CertificateCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, certificateId: string, parameters: Models.CertificateCreateOrUpdateParameters, options?: Models.CertificateCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + certificateId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes specific certificate. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param certificateId Identifier of the certificate 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, certificateId: 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 certificateId Identifier of the certificate 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, certificateId: 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 certificateId Identifier of the certificate 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, certificateId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, certificateId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + certificateId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of all certificates 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}/certificates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.certificateId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.CertificateGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.certificateId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.CertificateGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.certificateId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.CertificateCreateOrUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.CertificateCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.CertificateContract, + headersMapper: Mappers.CertificateCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/certificates/{certificateId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.certificateId, + 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.CertificateCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/delegationSettings.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/delegationSettings.ts new file mode 100644 index 000000000000..e1289ca3ddd1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/delegationSettings.ts @@ -0,0 +1,288 @@ +/* + * 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/delegationSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a DelegationSettings. */ +export class DelegationSettings { + private readonly client: ApiManagementClientContext; + + /** + * Create a DelegationSettings. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the DelegationSettings. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + 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 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 + * @returns Promise + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update Delegation settings. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Delegation settings. + * @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, parameters: Models.PortalDelegationSettings, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Delegation settings. + * @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, parameters: Models.PortalDelegationSettings, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Delegation settings. + * @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, parameters: Models.PortalDelegationSettings, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Create or Update Delegation settings. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Create or update parameters. + * @param [options] The optional parameters + * @returns 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. + * @param parameters Create or update parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalDelegationSettings, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Create or update parameters. + * @param options The optional parameters + * @param callback The callback + */ + 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, + serviceName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.DelegationSettingsGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PortalDelegationSettings, + headersMapper: Mappers.DelegationSettingsGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PortalDelegationSettings, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/delegation", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PortalDelegationSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PortalDelegationSettings + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/diagnostic.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/diagnostic.ts new file mode 100644 index 000000000000..e4b86f89bc26 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/diagnostic.ts @@ -0,0 +1,506 @@ +/* + * 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/diagnosticMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Diagnostic. */ +export class Diagnostic { + private readonly client: ApiManagementClientContext; + + /** + * Create a Diagnostic. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all diagnostics of the API Management 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.DiagnosticListByServiceOptionalParams): 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.DiagnosticListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.DiagnosticListByServiceOptionalParams | 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 Diagnostic specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic 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, diagnosticId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + diagnosticId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Diagnostic specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, diagnosticId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic 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, diagnosticId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + diagnosticId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new Diagnostic or updates an existing one. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, options?: Models.DiagnosticCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: Models.DiagnosticContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, options: Models.DiagnosticCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: Models.DiagnosticContract, options?: Models.DiagnosticCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + diagnosticId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the Diagnostic specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param parameters Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param parameters Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic identifier. Must be unique in the current API Management service + * instance. + * @param parameters Diagnostic 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, diagnosticId: string, parameters: Models.DiagnosticContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: Models.DiagnosticContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + diagnosticId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the specified Diagnostic. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param diagnosticId Diagnostic 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, diagnosticId: 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 diagnosticId Diagnostic 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, diagnosticId: 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 diagnosticId Diagnostic 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, diagnosticId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + diagnosticId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists all diagnostics of the API Management 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}/diagnostics", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.DiagnosticGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.DiagnosticGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DiagnosticContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.DiagnosticContract, + headersMapper: Mappers.DiagnosticCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.diagnosticId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DiagnosticContract, + 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}/diagnostics/{diagnosticId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.diagnosticId, + 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.DiagnosticCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/emailTemplate.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/emailTemplate.ts new file mode 100644 index 000000000000..fb6ba47d4b55 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/emailTemplate.ts @@ -0,0 +1,594 @@ +/* + * 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/emailTemplateMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a EmailTemplate. */ +export class EmailTemplate { + private readonly client: ApiManagementClientContext; + + /** + * Create a EmailTemplate. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.EmailTemplateListByServiceOptionalParams): 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.EmailTemplateListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.EmailTemplateListByServiceOptionalParams | 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 email template specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + templateName, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the email template specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + templateName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates an Email Template. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param parameters Email Template update parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, options?: Models.EmailTemplateCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param parameters Email Template update parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @param parameters Email Template update parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, options: Models.EmailTemplateCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, parameters: Models.EmailTemplateUpdateParameters, options?: Models.EmailTemplateCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + templateName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the specific Email Template. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * '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, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * '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, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * '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, 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, + callback); + } + + /** + * Reset the Email Template to default template provided by the API Management service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @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, templateName: Models.TemplateName, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @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, templateName: Models.TemplateName, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param templateName Email Template Name Identifier. Possible values include: + * 'applicationApprovedNotificationMessage', 'accountClosedDeveloper', + * 'quotaLimitApproachingDeveloperNotificationMessage', 'newDeveloperNotificationMessage', + * 'emailChangeIdentityDefault', 'inviteUserNotificationMessage', 'newCommentNotificationMessage', + * 'confirmSignUpIdentityDefault', 'newIssueNotificationMessage', + * 'purchaseDeveloperNotificationMessage', 'passwordResetIdentityDefault', + * 'passwordResetByAdminNotificationMessage', 'rejectDeveloperNotificationMessage', + * 'requestDeveloperNotificationMessage' + * @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, templateName: Models.TemplateName, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, templateName: Models.TemplateName, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + templateName, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of properties defined within a 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}/templates", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EmailTemplateCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.templateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.EmailTemplateGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.templateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EmailTemplateContract, + headersMapper: Mappers.EmailTemplateGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.templateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.EmailTemplateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.EmailTemplateContract + }, + 201: { + bodyMapper: Mappers.EmailTemplateContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/templates/{templateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.templateName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.EmailTemplateUpdateParameters, + 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}/templates/{templateName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.templateName, + 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.EmailTemplateCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/group.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/group.ts new file mode 100644 index 000000000000..13b9fec30dbe --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/group.ts @@ -0,0 +1,491 @@ +/* + * 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/groupMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Group. */ +export class Group { + private readonly client: ApiManagementClientContext; + + /** + * Create a Group. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of groups defined within a service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.GroupListByServiceOptionalParams): 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.GroupListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.GroupListByServiceOptionalParams | 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 group specified by its identifier. + * @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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, groupId: 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 callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, groupId: 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 options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + groupId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the group specified by its identifier. + * @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 [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, groupId: 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 callback The callback + */ + get(resourceGroupName: string, serviceName: string, groupId: 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 options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + groupId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or Updates a 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 parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: Models.GroupCreateParameters, options?: Models.GroupCreateOrUpdateOptionalParams): 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 parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: Models.GroupCreateParameters, 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 parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: Models.GroupCreateParameters, options: Models.GroupCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, groupId: string, parameters: Models.GroupCreateParameters, options?: Models.GroupCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + groupId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the details of the group specified by its identifier. + * @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 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, groupId: string, parameters: Models.GroupUpdateParameters, ifMatch: 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 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, groupId: string, parameters: Models.GroupUpdateParameters, ifMatch: 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 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, groupId: string, parameters: Models.GroupUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, groupId: string, parameters: Models.GroupUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + groupId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific group of the API Management service instance. + * @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 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, groupId: 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 groupId Group 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, groupId: 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 groupId Group 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, groupId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, groupId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + groupId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of groups defined within a 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}/groups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.GroupGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.GroupGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GroupCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.GroupCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.GroupContract, + headersMapper: Mappers.GroupCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.GroupUpdateParameters, + 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}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + 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.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/groupUser.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/groupUser.ts new file mode 100644 index 000000000000..819dff540d27 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/groupUser.ts @@ -0,0 +1,346 @@ +/* + * 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/groupUserMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a GroupUser. */ +export class GroupUser { + private readonly client: ApiManagementClientContext; + + /** + * Create a GroupUser. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, serviceName: string, groupId: string, options?: Models.GroupUserListOptionalParams): 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 callback The callback + */ + list(resourceGroupName: string, serviceName: string, groupId: 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 options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, serviceName: string, groupId: string, options: Models.GroupUserListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, groupId: string, options?: Models.GroupUserListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + groupId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Checks that user entity specified by identifier is associated with the group entity. + * @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 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, 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 userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + 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 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, 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, + userId, + options + }, + checkEntityExistsOperationSpec, + callback) as Promise; + } + + /** + * 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 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, 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 userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + 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 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, 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, + userId, + options + }, + createOperationSpec, + callback) as Promise; + } + + /** + * Remove existing user from 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 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, 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 userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + 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 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, 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, + userId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * 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 + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const checkEntityExistsOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UserContract + }, + 201: { + bodyMapper: Mappers.UserContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.groupId, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/identityProvider.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/identityProvider.ts new file mode 100644 index 000000000000..a9dc72ce8502 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/identityProvider.ts @@ -0,0 +1,504 @@ +/* + * 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/identityProviderMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a IdentityProvider. */ +export class IdentityProvider { + private readonly client: ApiManagementClientContext; + + /** + * Create a IdentityProvider. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of Identity Provider configured 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?: 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; + } + + /** + * Gets the entity state (Etag) version of the identityProvider specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + identityProviderName, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the configuration details of the identity Provider configured in specified service + * instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + identityProviderName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or Updates the IdentityProvider configuration. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, options?: Models.IdentityProviderCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, options: Models.IdentityProviderCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderContract, options?: Models.IdentityProviderCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + identityProviderName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates an existing IdentityProvider configuration. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param 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, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param 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, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param 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, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, parameters: Models.IdentityProviderUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + identityProviderName, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the specified identity provider configuration. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param 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, identityProviderName: Models.IdentityProviderType, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param 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, identityProviderName: Models.IdentityProviderType, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param identityProviderName Identity Provider Type identifier. Possible values include: + * 'facebook', 'google', 'microsoft', 'twitter', 'aad', 'aadB2C' + * @param 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, identityProviderName: Models.IdentityProviderType, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, identityProviderName: Models.IdentityProviderType, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + identityProviderName, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of Identity Provider configured 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}/identityProviders", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IdentityProviderList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.identityProviderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.IdentityProviderGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.identityProviderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.IdentityProviderContract, + headersMapper: Mappers.IdentityProviderGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.identityProviderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.IdentityProviderContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.IdentityProviderContract, + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.IdentityProviderContract, + headersMapper: Mappers.IdentityProviderCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.identityProviderName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.IdentityProviderUpdateParameters, + 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}/identityProviders/{identityProviderName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.identityProviderName, + 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.IdentityProviderList + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/index.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/index.ts new file mode 100644 index 000000000000..bce8caa2814e --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/index.ts @@ -0,0 +1,71 @@ +/* + * 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 * from "./api"; +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 "./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 "./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 "./openIdConnectProvider"; +export * from "./policy"; +export * from "./policySnippet"; +export * from "./signInSettings"; +export * from "./signUpSettings"; +export * from "./delegationSettings"; +export * from "./product"; +export * from "./productApi"; +export * from "./productGroup"; +export * from "./productSubscriptions"; +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 "./tenantAccess"; +export * from "./tenantAccessGit"; +export * from "./tenantConfiguration"; +export * from "./user"; +export * from "./userGroup"; +export * from "./userSubscription"; +export * from "./userIdentities"; +export * from "./userConfirmationPassword"; +export * from "./apiExport"; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/issue.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/issue.ts new file mode 100644 index 000000000000..74263bc8328b --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/logger.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/logger.ts new file mode 100644 index 000000000000..ceea06065217 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/logger.ts @@ -0,0 +1,492 @@ +/* + * 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/loggerMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Logger. */ +export class Logger { + private readonly client: ApiManagementClientContext; + + /** + * Create a Logger. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of loggers 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.LoggerListByServiceOptionalParams): 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.LoggerListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.LoggerListByServiceOptionalParams | 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 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 [options] The optional parameters + * @returns 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 callback The callback + */ + 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + loggerId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns 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 callback The callback + */ + 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + loggerId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * 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 parameters Create parameters. + * @param [options] The optional parameters + * @returns 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 parameters Create parameters. + * @param callback The callback + */ + 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + loggerId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * 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 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; + /** + * @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 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; + /** + * @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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + loggerId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * 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 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?: 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 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; + /** + * @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 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: 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, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of loggers 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}/loggers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoggerCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.loggerId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.LoggerGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.loggerId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.LoggerGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.loggerId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.LoggerContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.LoggerCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.LoggerContract, + headersMapper: Mappers.LoggerCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.loggerId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.LoggerUpdateContract, + 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}/loggers/{loggerId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.loggerId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.force, + 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.LoggerCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/networkStatus.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/networkStatus.ts new file mode 100644 index 000000000000..4a2e2f094b53 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/networkStatus.ts @@ -0,0 +1,167 @@ +/* + * 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/networkStatusMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a NetworkStatus. */ +export class NetworkStatus { + private readonly client: ApiManagementClientContext; + + /** + * Create a NetworkStatus. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the Connectivity Status to the external resources on which the Api Management service + * depends from inside the Cloud Service. This also returns the DNS Servers as visible to the + * CloudService. + * @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; + } + + /** + * Gets the Connectivity Status to the external resources on which the Api Management service + * depends from inside the Cloud Service. This also returns the DNS Servers as visible to the + * CloudService. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param locationName Location in which the API Management service is deployed. This is one of the + * Azure Regions like West US, East US, South Central US. + * @param [options] The optional parameters + * @returns Promise + */ + listByLocation(resourceGroupName: string, serviceName: string, locationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param locationName Location in which the API Management service is deployed. This is one of the + * Azure Regions like West US, East US, South Central US. + * @param callback The callback + */ + listByLocation(resourceGroupName: string, serviceName: string, locationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param locationName Location in which the API Management service is deployed. This is one of the + * Azure Regions like West US, East US, South Central US. + * @param options The optional parameters + * @param callback The callback + */ + listByLocation(resourceGroupName: string, serviceName: string, locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByLocation(resourceGroupName: string, serviceName: string, locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + locationName, + options + }, + listByLocationOperationSpec, + 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}/networkstatus", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: { + serializedName: "parsedResponse", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkStatusContractByLocation" + } + } + } + } + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByLocationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/locations/{locationName}/networkstatus", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.locationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NetworkStatusContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/notification.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/notification.ts new file mode 100644 index 000000000000..ee40ffce7f34 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/notification.ts @@ -0,0 +1,281 @@ +/* + * 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/notificationMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Notification. */ +export class Notification { + private readonly client: ApiManagementClientContext; + + /** + * Create a Notification. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.NotificationListByServiceOptionalParams): 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.NotificationListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.NotificationListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the Notification specified by its identifier. + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: msRest.RequestOptionsBase): Promise; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, callback: msRest.ServiceCallback): void; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + notificationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: Models.NotificationCreateOrUpdateOptionalParams): Promise; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, callback: msRest.ServiceCallback): void; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options: Models.NotificationCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: Models.NotificationCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + notificationName, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Lists a collection of properties defined within a 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}/notifications", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NotificationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NotificationContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.NotificationContract + }, + 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.NotificationCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientEmail.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientEmail.ts new file mode 100644 index 000000000000..33904e45df9c --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientEmail.ts @@ -0,0 +1,330 @@ +/* + * 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/notificationRecipientEmailMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a NotificationRecipientEmail. */ +export class NotificationRecipientEmail { + private readonly client: ApiManagementClientContext; + + /** + * Create a NotificationRecipientEmail. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient Emails subscribed to a 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param [options] The optional parameters + * @returns Promise + */ + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: msRest.RequestOptionsBase): Promise; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param callback The callback + */ + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, callback: msRest.ServiceCallback): void; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param options The optional parameters + * @param callback The callback + */ + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + notificationName, + options + }, + listByNotificationOperationSpec, + callback) as Promise; + } + + /** + * Determine if Notification Recipient Email subscribed to the 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param [options] The optional parameters + * @returns 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. + * @param notificationName Notification Name Identifier. Possible values include: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param callback The callback + */ + 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. + * @param notificationName Notification Name Identifier. Possible values include: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + notificationName, + email, + options + }, + checkEntityExistsOperationSpec, + callback) as Promise; + } + + /** + * Adds the Email address to the list of Recipients for the 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(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. + * @param notificationName Notification Name Identifier. Possible values include: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param callback The callback + */ + createOrUpdate(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. + * @param notificationName Notification Name Identifier. Possible values include: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + notificationName, + email, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Removes the email from the list of 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(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. + * @param notificationName Notification Name Identifier. Possible values include: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param callback The callback + */ + deleteMethod(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. + * @param notificationName Notification Name Identifier. Possible values include: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param email Email identifier. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, email: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + notificationName, + email, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByNotificationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const checkEntityExistsOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.email, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.email, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecipientEmailContract + }, + 201: { + bodyMapper: Mappers.RecipientEmailContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientEmails/{email}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.email, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientUser.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientUser.ts new file mode 100644 index 000000000000..0f5df0fb3ac3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/notificationRecipientUser.ts @@ -0,0 +1,330 @@ +/* + * 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/notificationRecipientUserMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a NotificationRecipientUser. */ +export class NotificationRecipientUser { + private readonly client: ApiManagementClientContext; + + /** + * Create a NotificationRecipientUser. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the list of the Notification Recipient User subscribed to the 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param [options] The optional parameters + * @returns Promise + */ + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: msRest.RequestOptionsBase): Promise; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param callback The callback + */ + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, callback: msRest.ServiceCallback): void; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @param options The optional parameters + * @param callback The callback + */ + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByNotification(resourceGroupName: string, serviceName: string, notificationName: Models.NotificationName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + notificationName, + options + }, + listByNotificationOperationSpec, + callback) as Promise; + } + + /** + * Determine if the Notification Recipient User is subscribed to the 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, 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. + * @param notificationName Notification Name Identifier. Possible values include: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, userId: string, callback: msRest.ServiceCallback): void; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, 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, + userId, + options + }, + checkEntityExistsOperationSpec, + callback) as Promise; + } + + /** + * Adds the API Management User to the list of Recipients for the 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, userId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, userId: string, callback: msRest.ServiceCallback): void; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, 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, + userId, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Removes the API Management user from the list of 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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, userId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, userId: string, callback: msRest.ServiceCallback): void; + /** + * @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: + * 'RequestPublisherNotificationMessage', 'PurchasePublisherNotificationMessage', + * 'NewApplicationNotificationMessage', 'BCC', 'NewIssuePublisherNotificationMessage', + * 'AccountClosedPublisher', 'QuotaLimitApproachingPublisherNotificationMessage' + * @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, 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, + userId, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByNotificationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecipientUserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const checkEntityExistsOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + 404: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RecipientUserContract + }, + 201: { + bodyMapper: Mappers.RecipientUserContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/notifications/{notificationName}/recipientUsers/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.notificationName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/openIdConnectProvider.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/openIdConnectProvider.ts new file mode 100644 index 000000000000..6b7772a13ea3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/openIdConnectProvider.ts @@ -0,0 +1,491 @@ +/* + * 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/openIdConnectProviderMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a OpenIdConnectProvider. */ +export class OpenIdConnectProvider { + private readonly client: ApiManagementClientContext; + + /** + * Create a OpenIdConnectProvider. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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 + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.OpenIdConnectProviderListByServiceOptionalParams): 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.OpenIdConnectProviderListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.OpenIdConnectProviderListByServiceOptionalParams | 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 openIdConnectProvider specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, opid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, opid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + opid, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets specific OpenID Connect Provider. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, opid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, opid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, opid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + opid, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the OpenID Connect Provider. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, options?: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, options: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderContract, options?: Models.OpenIdConnectProviderCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + opid, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the specific OpenID Connect Provider. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param 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, opid: string, parameters: Models.OpenidConnectProviderUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param 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, opid: string, parameters: Models.OpenidConnectProviderUpdateContract, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param 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, opid: string, parameters: Models.OpenidConnectProviderUpdateContract, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, opid: string, parameters: Models.OpenidConnectProviderUpdateContract, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + opid, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific OpenID Connect Provider of the API Management service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param opid Identifier of the OpenID Connect Provider. + * @param 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, opid: 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 opid Identifier of the OpenID Connect Provider. + * @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, opid: 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 opid Identifier of the OpenID Connect Provider. + * @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, opid: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, opid: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + opid, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * 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 + */ + 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}/openidConnectProviders", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenIdConnectProviderCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.opid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.OpenIdConnectProviderGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.opid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OpenidConnectProviderContract, + headersMapper: Mappers.OpenIdConnectProviderGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.opid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.OpenidConnectProviderContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OpenidConnectProviderContract, + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.OpenidConnectProviderContract, + headersMapper: Mappers.OpenIdConnectProviderCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/openidConnectProviders/{opid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.opid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.OpenidConnectProviderUpdateContract, + 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}/openidConnectProviders/{opid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.opid, + 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.OpenIdConnectProviderCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/operationOperations.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/operationOperations.ts new file mode 100644 index 000000000000..770b86b58870 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/operationOperations.ts @@ -0,0 +1,148 @@ +/* + * 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/operationOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a OperationOperations. */ +export class OperationOperations { + private readonly client: ApiManagementClientContext; + + /** + * Create a OperationOperations. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of operations associated with tags. + * @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 + */ + listByTags(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.OperationListByTagsOptionalParams): 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 + */ + listByTags(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 + */ + listByTags(resourceGroupName: string, serviceName: string, apiId: string, options: Models.OperationListByTagsOptionalParams, callback: msRest.ServiceCallback): void; + listByTags(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.OperationListByTagsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByTagsOperationSpec, + callback) as Promise; + } + + /** + * Lists a collection of operations 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 +const serializer = new msRest.Serializer(Mappers); +const listByTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/operationsByTags", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.includeNotTaggedOperations, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagResourceCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + 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.CloudError + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/policy.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/policy.ts new file mode 100644 index 000000000000..805c64699d46 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/policy.ts @@ -0,0 +1,345 @@ +/* + * 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/policyMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Policy. */ +export class Policy { + private readonly client: ApiManagementClientContext; + + /** + * Create a Policy. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all the Global Policy definitions of the 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 + */ + 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; + } + + /** + * Gets the entity state (Etag) version of the Global policy definition in the 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 + */ + 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 the Global policy definition of the 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 + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the global policy configuration of the Api Management service. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters The policy contents to apply. + * @param [options] The optional parameters + * @returns 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. + * @param parameters The policy contents to apply. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PolicyContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters The policy contents to apply. + * @param options The optional parameters + * @param callback The callback + */ + 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, + serviceName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the global policy configuration of the Api Management Service. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @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, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @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, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @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, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.PolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.PolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PolicyContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.PolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.PolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/policySnippet.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/policySnippet.ts new file mode 100644 index 000000000000..d0ba7845bb1f --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/product.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/product.ts new file mode 100644 index 000000000000..31904c098334 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/product.ts @@ -0,0 +1,619 @@ +/* + * 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/productMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Product. */ +export class Product { + private readonly client: ApiManagementClientContext; + + /** + * Create a Product. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of products 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.ProductListByServiceOptionalParams): 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.ProductListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.ProductListByServiceOptionalParams | 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 product 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 [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, productId: 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 callback The callback + */ + getEntityTag(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 productId Product 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, productId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, productId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the product 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 [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, productId: 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 callback The callback + */ + get(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 productId Product 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, productId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, productId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or Updates a product. + * @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 parameters Create or update parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.ProductContract, options?: Models.ProductCreateOrUpdateOptionalParams): 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 parameters Create or update parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.ProductContract, 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 parameters Create or update parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.ProductContract, options: Models.ProductCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.ProductContract, options?: Models.ProductCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * 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 + * 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, productId: string, parameters: Models.ProductUpdateParameters, 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 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, productId: string, parameters: Models.ProductUpdateParameters, 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 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, productId: string, parameters: Models.ProductUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.ProductUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Delete product. + * @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 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, productId: string, ifMatch: string, options?: Models.ProductDeleteMethodOptionalParams): 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 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, productId: 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 productId Product 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, productId: string, ifMatch: string, options: Models.ProductDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, options?: Models.ProductDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + ifMatch, + options + }, + deleteMethodOperationSpec, + 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. + * @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; + } + + /** + * 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 +const serializer = new msRest.Serializer(Mappers); +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.expandGroups, + Parameters.tags, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProductCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ProductGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.ProductGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ProductContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.ProductCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.ProductContract, + headersMapper: Mappers.ProductCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.ProductUpdateParameters, + 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}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.deleteSubscriptions, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ProductCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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/sdk/apimanagement/arm-apimanagement/lib/operations/productApi.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/productApi.ts new file mode 100644 index 000000000000..c3bad7380501 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/productApi.ts @@ -0,0 +1,366 @@ +/* + * 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/productApiMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ProductApi. */ +export class ProductApi { + private readonly client: ApiManagementClientContext; + + /** + * Create a ProductApi. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of the APIs associated with a product. + * @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 + */ + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.ProductApiListByProductOptionalParams): 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; + /** + * @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.ProductApiListByProductOptionalParams, callback: msRest.ServiceCallback): void; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.ProductApiListByProductOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + listByProductOperationSpec, + callback) as Promise; + } + + /** + * Checks that API entity specified by identifier is associated with the Product entity. + * @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 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 + */ + 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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @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 + */ + 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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @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 + */ + 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, + serviceName, + productId, + apiId, + options + }, + checkEntityExistsOperationSpec, + callback); + } + + /** + * Adds an API to the specified product. + * @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 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 + */ + createOrUpdate(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @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 + */ + createOrUpdate(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @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 + */ + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + apiId, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the specified API from the specified product. + * @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 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 + */ + deleteMethod(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @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 + */ + deleteMethod(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @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 + */ + deleteMethod(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, productId: string, apiId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + apiId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of the APIs associated with a product. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByProductNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByProductNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProductOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const checkEntityExistsOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiContract + }, + 201: { + bodyMapper: Mappers.ApiContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.apiId0, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByProductNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApiCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/productGroup.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/productGroup.ts new file mode 100644 index 000000000000..d40911e555c8 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/productGroup.ts @@ -0,0 +1,357 @@ +/* + * 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/productGroupMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ProductGroup. */ +export class ProductGroup { + private readonly client: ApiManagementClientContext; + + /** + * Create a ProductGroup. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists the collection of developer groups associated with the specified product. + * @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 + */ + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.ProductGroupListByProductOptionalParams): 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; + /** + * @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.ProductGroupListByProductOptionalParams, callback: msRest.ServiceCallback): void; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: Models.ProductGroupListByProductOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + listByProductOperationSpec, + callback) as Promise; + } + + /** + * Checks that Group entity specified by identifier is associated with the Product entity. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns 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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @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; + /** + * @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 groupId Group 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, 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, + serviceName, + productId, + groupId, + options + }, + checkEntityExistsOperationSpec, + callback); + } + + /** + * Adds the association between the specified developer group with the specified product. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + createOrUpdate(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group 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, productId: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + groupId, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the association between the specified group and product. + * @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 groupId Group identifier. Must be unique in the current API Management service instance. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + deleteMethod(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. + * @param productId Product identifier. Must be unique in the current API Management service + * instance. + * @param groupId Group 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, productId: string, groupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, productId: string, groupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + groupId, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists the collection of developer groups associated with the specified product. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByProductNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByProductNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProductOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const checkEntityExistsOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupContract + }, + 201: { + bodyMapper: Mappers.GroupContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/groups/{groupId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.groupId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByProductNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/productPolicy.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/productPolicy.ts new file mode 100644 index 000000000000..aea5fbd081a1 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/productPolicy.ts @@ -0,0 +1,384 @@ +/* + * 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/productPolicyMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ProductPolicy. */ +export class ProductPolicy { + private readonly client: ApiManagementClientContext; + + /** + * Create a ProductPolicy. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Get the policy configuration at the Product level. + * @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 + */ + listByProduct(resourceGroupName: string, serviceName: string, productId: 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 callback The callback + */ + 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 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByProduct(resourceGroupName: string, serviceName: string, productId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + listByProductOperationSpec, + callback) as Promise; + } + + /** + * Get the ETag of the policy configuration at the Product level. + * @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 + */ + getEntityTag(resourceGroupName: string, serviceName: string, productId: 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 callback The callback + */ + getEntityTag(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 productId Product 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, productId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, productId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Get the policy configuration at the Product level. + * @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 + */ + get(resourceGroupName: string, serviceName: string, productId: 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 callback The callback + */ + get(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 productId Product 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, productId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, productId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates policy configuration for the Product. + * @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 parameters The policy contents to apply. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.PolicyContract, options?: Models.ProductPolicyCreateOrUpdateOptionalParams): 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 parameters The policy contents to apply. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.PolicyContract, 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 parameters The policy contents to apply. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.PolicyContract, options: Models.ProductPolicyCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, productId: string, parameters: Models.PolicyContract, options?: Models.ProductPolicyCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes the policy configuration at the Product. + * @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 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, productId: 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 productId Product 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, productId: 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 productId Product 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, productId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, productId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByProductOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.ProductPolicyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ProductPolicyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PolicyContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PolicyContract, + headersMapper: Mappers.ProductPolicyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/policies/{policyId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.policyId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/productSubscriptions.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/productSubscriptions.ts new file mode 100644 index 000000000000..df3e0fbae8f6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/productSubscriptions.ts @@ -0,0 +1,147 @@ +/* + * 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/productSubscriptionsMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a ProductSubscriptions. */ +export class ProductSubscriptions { + private readonly client: ApiManagementClientContext; + + /** + * Create a ProductSubscriptions. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists the collection of subscriptions to the specified product. + * @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 + */ + list(resourceGroupName: string, serviceName: string, productId: string, options?: Models.ProductSubscriptionsListOptionalParams): 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 + */ + list(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 productId Product 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, productId: string, options: Models.ProductSubscriptionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, productId: string, options?: Models.ProductSubscriptionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the collection of subscriptions to the specified product. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/subscriptions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/property.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/property.ts new file mode 100644 index 000000000000..af83fe7a925d --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/property.ts @@ -0,0 +1,491 @@ +/* + * 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/propertyMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Property. */ +export class Property { + private readonly client: ApiManagementClientContext; + + /** + * Create a Property. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of properties defined within a service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.PropertyListByServiceOptionalParams): 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.PropertyListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.PropertyListByServiceOptionalParams | 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 property specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, propId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, propId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + propId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the details of the property specified by its identifier. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, propId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, propId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, propId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + propId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a property. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, options?: Models.PropertyCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, options: Models.PropertyCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyContract, options?: Models.PropertyCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + propId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates the specific property. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param parameters Update parameters. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param parameters Update parameters. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param parameters Update parameters. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, propId: string, parameters: Models.PropertyUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + propId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * 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. + * @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, propId: string, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param ifMatch ETag of the Entity. ETag should match the current entity state from the header + * response of the GET request or it should be * for unconditional update. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param propId Identifier of the property. + * @param 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, propId: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, propId: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + propId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Lists a collection of properties defined within a 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}/properties", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PropertyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.propId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.PropertyGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.propId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PropertyContract, + headersMapper: Mappers.PropertyGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.propId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PropertyContract, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PropertyContract, + headersMapper: Mappers.PropertyCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.PropertyContract, + headersMapper: Mappers.PropertyCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/properties/{propId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.propId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PropertyUpdateParameters, + 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}/properties/{propId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.propId, + 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.PropertyCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/quotaByCounterKeys.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/quotaByCounterKeys.ts new file mode 100644 index 000000000000..e4976fa216f6 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/quotaByCounterKeys.ts @@ -0,0 +1,183 @@ +/* + * 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/quotaByCounterKeysMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a QuotaByCounterKeys. */ +export class QuotaByCounterKeys { + private readonly client: ApiManagementClientContext; + + /** + * Create a QuotaByCounterKeys. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of current quota counter periods associated with the counter-key configured + * in the policy on the specified service instance. The api does not support paging yet. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param [options] The optional parameters + * @returns Promise + */ + listByService(resourceGroupName: string, serviceName: string, quotaCounterKey: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, quotaCounterKey: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param options The optional parameters + * @param callback The callback + */ + listByService(resourceGroupName: string, serviceName: string, quotaCounterKey: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, quotaCounterKey: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + quotaCounterKey, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Updates all the quota counter values specified with the existing quota counter key to a value in + * the specified service instance. This should be used for reset of the quota counter values. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param parameters The value of the quota counter to be applied to all quota counter periods. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, parameters: Models.QuotaCounterValueContractProperties, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param parameters The value of the quota counter to be applied to all quota counter periods. + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, parameters: Models.QuotaCounterValueContractProperties, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param parameters The value of the quota counter to be applied to all quota counter periods. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, parameters: Models.QuotaCounterValueContractProperties, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, parameters: Models.QuotaCounterValueContractProperties, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + quotaCounterKey, + parameters, + options + }, + updateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.quotaCounterKey, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.QuotaCounterCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.quotaCounterKey, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.QuotaCounterValueContractProperties, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts new file mode 100644 index 000000000000..c7bf3dfa545a --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/quotaByPeriodKeys.ts @@ -0,0 +1,192 @@ +/* + * 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/quotaByPeriodKeysMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a QuotaByPeriodKeys. */ +export class QuotaByPeriodKeys { + private readonly client: ApiManagementClientContext; + + /** + * Create a QuotaByPeriodKeys. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the value of the quota counter associated with the counter-key in the policy for the + * specific period in service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param quotaPeriodKey Quota period key identifier. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param quotaPeriodKey Quota period key identifier. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param quotaPeriodKey Quota period key identifier. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + quotaCounterKey, + quotaPeriodKey, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Updates an existing quota counter value in the specified service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param quotaPeriodKey Quota period key identifier. + * @param parameters The value of the Quota counter to be applied on the specified period. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, parameters: Models.QuotaCounterValueContractProperties, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param quotaPeriodKey Quota period key identifier. + * @param parameters The value of the Quota counter to be applied on the specified period. + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, parameters: Models.QuotaCounterValueContractProperties, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param quotaCounterKey Quota counter key identifier.This is the result of expression defined in + * counter-key attribute of the quota-by-key policy.For Example, if you specify counter-key="boo" + * in the policy, then it’s accessible by "boo" counter key. But if it’s defined as + * counter-key="@("b"+"a")" then it will be accessible by "ba" key + * @param quotaPeriodKey Quota period key identifier. + * @param parameters The value of the Quota counter to be applied on the specified period. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, parameters: Models.QuotaCounterValueContractProperties, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, quotaCounterKey: string, quotaPeriodKey: string, parameters: Models.QuotaCounterValueContractProperties, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + quotaCounterKey, + quotaPeriodKey, + parameters, + options + }, + updateOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.quotaCounterKey, + Parameters.quotaPeriodKey, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.QuotaCounterContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/quotas/{quotaCounterKey}/periods/{quotaPeriodKey}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.quotaCounterKey, + Parameters.quotaPeriodKey, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.QuotaCounterValueContractProperties, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/region.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/region.ts new file mode 100644 index 000000000000..a563773df876 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/reports.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/reports.ts new file mode 100644 index 000000000000..328d1f592dab --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/reports.ts @@ -0,0 +1,1124 @@ +/* + * 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/reportsMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Reports. */ +export class Reports { + private readonly client: ApiManagementClientContext; + + /** + * Create a Reports. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists report records by API. + * @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 [options] The optional parameters + * @returns Promise + */ + listByApi(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByApiOptionalParams): Promise; + /** + * @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 callback The callback + */ + listByApi(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 options The optional parameters + * @param callback The callback + */ + listByApi(resourceGroupName: string, serviceName: string, filter: string, options: Models.ReportsListByApiOptionalParams, callback: msRest.ServiceCallback): void; + listByApi(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByApiOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + filter, + options + }, + listByApiOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by User. + * @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 | | |
| 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 + */ + listByUser(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByUserOptionalParams): 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 | | |
| 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 | 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 + */ + listByUser(resourceGroupName: string, serviceName: string, filter: string, options: Models.ReportsListByUserOptionalParams, callback: msRest.ServiceCallback): void; + listByUser(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByUserOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + filter, + options + }, + listByUserOperationSpec, + callback) as Promise; + } + + /** + * 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 | 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 + */ + listByOperation(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByOperationOptionalParams): 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 | 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 | 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 + */ + listByOperation(resourceGroupName: string, serviceName: string, filter: string, options: Models.ReportsListByOperationOptionalParams, callback: msRest.ServiceCallback): void; + listByOperation(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByOperationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + filter, + options + }, + listByOperationOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by Product. + * @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 | 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 + */ + listByProduct(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByProductOptionalParams): 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 | 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 | 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 + */ + listByProduct(resourceGroupName: string, serviceName: string, filter: string, options: Models.ReportsListByProductOptionalParams, callback: msRest.ServiceCallback): void; + listByProduct(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByProductOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + filter, + options + }, + listByProductOperationSpec, + callback) as Promise; + } + + /** + * 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, 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, 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, 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, + callback) as Promise; + } + + /** + * 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, 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, 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, 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, + callback) as Promise; + } + + /** + * 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, seconds)). + * @param [options] The optional parameters + * @returns 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, seconds)). + * @param callback The callback + */ + 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, seconds)). + * @param options The optional parameters + * @param callback The callback + */ + 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 + }, + listByTimeOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by Request. + * @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 | |
| 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 + */ + listByRequest(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByRequestOptionalParams): 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 | |
| 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 | 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 + */ + listByRequest(resourceGroupName: string, serviceName: string, filter: string, options: Models.ReportsListByRequestOptionalParams, callback: msRest.ServiceCallback): void; + listByRequest(resourceGroupName: string, serviceName: string, filter: string, options?: Models.ReportsListByRequestOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + filter, + options + }, + listByRequestOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by API. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByApiNext(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 + */ + listByApiNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByApiNextOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by User. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByUserNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByUserNext(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 + */ + listByUserNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByUserNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByUserNextOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by API Operations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByOperationNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByOperationNextOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by Product. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByProductNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByProductNextOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by geography. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByGeoNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByGeoNext(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 + */ + listByGeoNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByGeoNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByGeoNextOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(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 + */ + listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * Lists report records by Time. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByTimeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByTimeNext(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 + */ + listByTimeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByTimeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByTimeNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByApiOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byApi", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByUserOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byUser", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byOperation", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByProductOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byProduct", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByGeoOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byGeo", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/bySubscription", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.orderby, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByTimeOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byTime", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.orderby, + Parameters.interval, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByRequestOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/reports/byRequest", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter1, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RequestReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByApiNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByUserNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByOperationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByProductNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByGeoNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByTimeNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ReportCollection + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/signInSettings.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/signInSettings.ts new file mode 100644 index 000000000000..dd971ea317b3 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/signInSettings.ts @@ -0,0 +1,288 @@ +/* + * 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/signInSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a SignInSettings. */ +export class SignInSettings { + private readonly client: ApiManagementClientContext; + + /** + * Create a SignInSettings. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the SignInSettings. + * @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 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 + * @returns Promise + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update Sign-In settings. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Sign-In settings. + * @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, parameters: Models.PortalSigninSettings, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Sign-In settings. + * @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, parameters: Models.PortalSigninSettings, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Sign-In settings. + * @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, parameters: Models.PortalSigninSettings, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Create or Update Sign-In settings. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Create or update parameters. + * @param [options] The optional parameters + * @returns 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. + * @param parameters Create or update parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSigninSettings, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Create or update parameters. + * @param options The optional parameters + * @param callback The callback + */ + 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, + serviceName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.SignInSettingsGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PortalSigninSettings, + headersMapper: Mappers.SignInSettingsGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PortalSigninSettings, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signin", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PortalSigninSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PortalSigninSettings + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/signUpSettings.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/signUpSettings.ts new file mode 100644 index 000000000000..bd3214a4dffd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/signUpSettings.ts @@ -0,0 +1,288 @@ +/* + * 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/signUpSettingsMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a SignUpSettings. */ +export class SignUpSettings { + private readonly client: ApiManagementClientContext; + + /** + * Create a SignUpSettings. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the entity state (Etag) version of the SignUpSettings. + * @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 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 + * @returns Promise + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update Sign-Up settings. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Sign-Up settings. + * @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, parameters: Models.PortalSignupSettings, ifMatch: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Sign-Up settings. + * @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, parameters: Models.PortalSignupSettings, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Update Sign-Up settings. + * @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, parameters: Models.PortalSignupSettings, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Create or Update Sign-Up settings. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Create or update parameters. + * @param [options] The optional parameters + * @returns 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. + * @param parameters Create or update parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, parameters: Models.PortalSignupSettings, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Create or update parameters. + * @param options The optional parameters + * @param callback The callback + */ + 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, + serviceName, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.SignUpSettingsGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PortalSignupSettings, + headersMapper: Mappers.SignUpSettingsGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PortalSignupSettings, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalsettings/signup", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.PortalSignupSettings, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PortalSignupSettings + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/subscription.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/subscription.ts new file mode 100644 index 000000000000..630cfbf109fc --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/subscription.ts @@ -0,0 +1,635 @@ +/* + * 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/subscriptionMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Subscription. */ +export class Subscription { + private readonly client: ApiManagementClientContext; + + /** + * Create a Subscription. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all subscriptions of the API Management 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 + */ + list(resourceGroupName: string, serviceName: string, options?: Models.SubscriptionListOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param callback The callback + */ + list(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 + */ + list(resourceGroupName: string, serviceName: string, options: Models.SubscriptionListOptionalParams, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, serviceName: string, options?: Models.SubscriptionListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Gets the entity state (Etag) version of the apimanagement 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 + * and a product in API Management. + * @param [options] The optional parameters + * @returns Promise + */ + getEntityTag(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, sid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param options The optional parameters + * @param callback The callback + */ + getEntityTag(resourceGroupName: string, serviceName: string, sid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * Gets the specified Subscription entity. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, sid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, serviceName: string, sid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates the subscription of specified user to the specified product. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param parameters Create parameters. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, serviceName: string, sid: string, parameters: Models.SubscriptionCreateParameters, options?: Models.SubscriptionCreateOrUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param parameters Create parameters. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, sid: string, parameters: Models.SubscriptionCreateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, serviceName: string, sid: string, parameters: Models.SubscriptionCreateParameters, options: Models.SubscriptionCreateOrUpdateOptionalParams, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, sid: string, parameters: Models.SubscriptionCreateParameters, options?: Models.SubscriptionCreateOrUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * 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 + * and a product in API Management. + * @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, sid: string, parameters: Models.SubscriptionUpdateParameters, ifMatch: string, options?: Models.SubscriptionUpdateOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param 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, sid: string, parameters: Models.SubscriptionUpdateParameters, ifMatch: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param 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, sid: string, parameters: Models.SubscriptionUpdateParameters, ifMatch: string, options: Models.SubscriptionUpdateOptionalParams, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, sid: string, parameters: Models.SubscriptionUpdateParameters, ifMatch: string, options?: Models.SubscriptionUpdateOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes the specified subscription. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param 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, sid: 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 sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @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, sid: 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 sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @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, sid: string, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, sid: string, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Regenerates primary key of existing subscription of the API Management service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param [options] The optional parameters + * @returns Promise + */ + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param callback The callback + */ + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, sid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param options The optional parameters + * @param callback The callback + */ + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, sid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + options + }, + regeneratePrimaryKeyOperationSpec, + callback); + } + + /** + * Regenerates secondary key of existing subscription of the API Management service instance. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param [options] The optional parameters + * @returns Promise + */ + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param callback The callback + */ + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, sid: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param sid Subscription entity Identifier. The entity represents the association between a user + * and a product in API Management. + * @param options The optional parameters + * @param callback The callback + */ + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, sid: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, sid: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + sid, + options + }, + regenerateSecondaryKeyOperationSpec, + callback); + } + + /** + * Lists all subscriptions of the API Management service instance. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.SubscriptionGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.SubscriptionGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.notify, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SubscriptionCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.SubscriptionContract, + headersMapper: Mappers.SubscriptionCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.notify, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SubscriptionUpdateParameters, + 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}/subscriptions/{sid}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regeneratePrimaryKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regeneratePrimaryKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/subscriptions/{sid}/regenerateSecondaryKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.sid, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/tag.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/tag.ts new file mode 100644 index 000000000000..78a9e2742d66 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/tag.ts @@ -0,0 +1,1734 @@ +/* + * 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/tagMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a Tag. */ +export class Tag { + private readonly client: ApiManagementClientContext; + + /** + * Create a Tag. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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 + */ + 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 + */ + 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 + */ + 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 + }, + 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 + */ + 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 + */ + 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 + */ + 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 + }, + getEntityStateByOperationOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns 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 callback The callback + */ + 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 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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + operationId, + tagId, + options + }, + getByOperationOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns 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 callback The callback + */ + 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 options The optional parameters + * @param callback The callback + */ + 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, + options + }, + assignToOperationOperationSpec, + callback) as Promise; + } + + /** + * 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 [options] The optional parameters + * @returns 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 callback The callback + */ + 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 options The optional parameters + * @param callback The callback + */ + 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, + options + }, + detachFromOperationOperationSpec, + callback); + } + + /** + * Lists all Tags associated with 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 [options] The optional parameters + * @returns Promise + */ + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.TagListByApiOptionalParams): 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 + */ + listByApi(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 + */ + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options: Models.TagListByApiOptionalParams, callback: msRest.ServiceCallback): void; + listByApi(resourceGroupName: string, serviceName: string, apiId: string, options?: Models.TagListByApiOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + apiId, + options + }, + listByApiOperationSpec, + 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 + */ + getEntityStateByApi(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 + */ + getEntityStateByApi(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 + */ + getEntityStateByApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getEntityStateByApi(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 + }, + getEntityStateByApiOperationSpec, + callback) as Promise; + } + + /** + * Get tag associated with 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 [options] The optional parameters + * @returns Promise + */ + getByApi(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 + */ + getByApi(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 + */ + getByApi(resourceGroupName: string, serviceName: string, apiId: string, tagId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getByApi(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 + }, + getByApiOperationSpec, + callback) as Promise; + } + + /** + * Assign tag to 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 [options] The optional parameters + * @returns 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. + * @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 + */ + assignToApi(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 + */ + 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, + serviceName, + apiId, + tagId, + options + }, + assignToApiOperationSpec, + callback) as Promise; + } + + /** + * Detach the tag from 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 [options] The optional parameters + * @returns 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 callback The callback + */ + 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 options The optional parameters + * @param callback The callback + */ + 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, + options + }, + detachFromApiOperationSpec, + callback); + } + + /** + * 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 productId Product identifier. Must be unique in the current API Management service + * instance. + * @param [options] The optional parameters + * @returns 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 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + options + }, + 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 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 + */ + 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 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + tagId, + options + }, + getEntityStateByProductOperationSpec, + callback) as Promise; + } + + /** + * Get tag associated with the Product. + * @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 + */ + 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 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; + /** + * @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 { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + productId, + tagId, + options + }, + getByProductOperationSpec, + callback) as Promise; + } + + /** + * Assign tag to the Product. + * @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 + */ + 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 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 + */ + 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 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 + */ + 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, + productId, + tagId, + options + }, + assignToProductOperationSpec, + callback) as Promise; + } + + /** + * Detach the tag from the Product. + * @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 + */ + 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 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 + */ + 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 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 + */ + 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, + productId, + tagId, + options + }, + detachFromProductOperationSpec, + callback); + } + + /** + * 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 [options] The optional parameters + * @returns 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 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.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, + 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 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 + */ + 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 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; + /** + * @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 + */ + 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, + tagId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a tag. + * @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 parameters Create parameters. + * @param [options] The optional parameters + * @returns 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 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; + /** + * @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 parameters Create parameters. + * @param options The optional parameters + * @param callback The callback + */ + 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, + tagId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * 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 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 + */ + 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 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; + /** + * @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 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 { + 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, + tagId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * 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 + */ + listByOperationNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByOperationNextOperationSpec, + callback) as Promise; + } + + /** + * Lists all Tags associated with the API. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByApiNext(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 + */ + listByApiNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByApiNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByApiNextOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + listByProductNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByProductNextOperationSpec, + callback) as Promise; + } + + /** + * 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 + */ + 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 listByOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + 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: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityStateByOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + 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 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.TagGetEntityStateByOperationHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getByOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + 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 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagGetByOperationHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const assignToOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + 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 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagContract + }, + 201: { + bodyMapper: Mappers.TagContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const detachFromOperationOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + 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 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByApiOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags", + 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.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityStateByApiOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.TagGetEntityStateByApiHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getByApiOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagGetByApiHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const assignToApiOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagAssignToApiHeaders + }, + 201: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagAssignToApiHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const detachFromApiOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.apiId0, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByProductOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityStateByProductOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.TagGetEntityStateByProductHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getByProductOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagGetByProductHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const assignToProductOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagContract + }, + 201: { + bodyMapper: Mappers.TagContract + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const detachFromProductOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.productId, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByServiceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.scope0, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityStateOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + 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.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.TagGetEntityStateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + 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.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + 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: { + 200: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.TagContract, + headersMapper: Mappers.TagCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + 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.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}/tags/{tagId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.tagId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByOperationNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByApiNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listByProductNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagCollection + }, + 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.TagCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/tagResource.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/tagResource.ts new file mode 100644 index 000000000000..b662081c7fcb --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/tagResource.ts @@ -0,0 +1,139 @@ +/* + * 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/tagResourceMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a TagResource. */ +export class TagResource { + private readonly client: ApiManagementClientContext; + + /** + * Create a TagResource. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of resources 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 + */ + listByService(resourceGroupName: string, serviceName: string, options?: Models.TagResourceListByServiceOptionalParams): 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.TagResourceListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.TagResourceListByServiceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + listByServiceOperationSpec, + callback) as Promise; + } + + /** + * Lists a collection of resources associated with tags. + * @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}/tagResources", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + 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", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TagResourceCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccess.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccess.ts new file mode 100644 index 000000000000..79018f752dfd --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccess.ts @@ -0,0 +1,334 @@ +/* + * 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/tenantAccessMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a TenantAccess. */ +export class TenantAccess { + private readonly client: ApiManagementClientContext; + + /** + * Create a TenantAccess. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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 + * @returns Promise + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Update tenant access information details. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Parameters supplied to retrieve the Tenant Access Information. + * @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, parameters: Models.AccessInformationUpdateParameters, ifMatch: string, 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 retrieve the Tenant Access Information. + * @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, parameters: Models.AccessInformationUpdateParameters, ifMatch: string, 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 retrieve the Tenant Access Information. + * @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, parameters: Models.AccessInformationUpdateParameters, ifMatch: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, parameters: Models.AccessInformationUpdateParameters, ifMatch: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * 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 + * @returns Promise + */ + regeneratePrimaryKey(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 + */ + regeneratePrimaryKey(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 + */ + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + regeneratePrimaryKeyOperationSpec, + callback); + } + + /** + * 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 + * @returns Promise + */ + regenerateSecondaryKey(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 + */ + regenerateSecondaryKey(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 + */ + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + regenerateSecondaryKeyOperationSpec, + callback); + } +} + +// 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}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccessInformationContract, + headersMapper: Mappers.TenantAccessGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.accessName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.AccessInformationUpdateParameters, + required: true + } + }, + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regeneratePrimaryKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regeneratePrimaryKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/regenerateSecondaryKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccessGit.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccessGit.ts new file mode 100644 index 000000000000..c7fbd0f24509 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/tenantAccessGit.ts @@ -0,0 +1,201 @@ +/* + * 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/tenantAccessGitMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a TenantAccessGit. */ +export class TenantAccessGit { + private readonly client: ApiManagementClientContext; + + /** + * Create a TenantAccessGit. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Gets the Git access configuration for the tenant. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + get(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 + */ + get(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 + */ + get(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Regenerate primary access key for GIT. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + regeneratePrimaryKey(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 + */ + regeneratePrimaryKey(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 + */ + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regeneratePrimaryKey(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + regeneratePrimaryKeyOperationSpec, + callback); + } + + /** + * Regenerate secondary access key for GIT. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + regenerateSecondaryKey(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 + */ + regenerateSecondaryKey(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 + */ + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateSecondaryKey(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + regenerateSecondaryKeyOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.AccessInformationContract, + headersMapper: Mappers.TenantAccessGitGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regeneratePrimaryKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regeneratePrimaryKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const regenerateSecondaryKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{accessName}/git/regenerateSecondaryKey", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.accessName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/tenantConfiguration.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/tenantConfiguration.ts new file mode 100644 index 000000000000..be1e84173988 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/tenantConfiguration.ts @@ -0,0 +1,297 @@ +/* + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/tenantConfigurationMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a TenantConfiguration. */ +export class TenantConfiguration { + private readonly client: ApiManagementClientContext; + + /** + * Create a TenantConfiguration. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * This operation applies changes from the specified Git branch to the configuration database. This + * is a long running operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Deploy Configuration parameters. + * @param [options] The optional parameters + * @returns Promise + */ + deploy(resourceGroupName: string, serviceName: string, parameters: Models.DeployConfigurationParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeploy(resourceGroupName,serviceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * This operation creates a commit with the current configuration snapshot to the specified branch + * in the repository. This is a long running operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Save Configuration parameters. + * @param [options] The optional parameters + * @returns Promise + */ + save(resourceGroupName: string, serviceName: string, parameters: Models.SaveConfigurationParameter, options?: msRest.RequestOptionsBase): Promise { + return this.beginSave(resourceGroupName,serviceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * This operation validates the changes in the specified Git branch. This is a long running + * operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Validate Configuration parameters. + * @param [options] The optional parameters + * @returns Promise + */ + validate(resourceGroupName: string, serviceName: string, parameters: Models.DeployConfigurationParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginValidate(resourceGroupName,serviceName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Gets the status of the most recent synchronization between the configuration database and the + * Git repository. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param [options] The optional parameters + * @returns Promise + */ + getSyncState(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 + */ + getSyncState(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 + */ + getSyncState(resourceGroupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSyncState(resourceGroupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + serviceName, + options + }, + getSyncStateOperationSpec, + callback) as Promise; + } + + /** + * This operation applies changes from the specified Git branch to the configuration database. This + * is a long running operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Deploy Configuration parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeploy(resourceGroupName: string, serviceName: string, parameters: Models.DeployConfigurationParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + parameters, + options + }, + beginDeployOperationSpec, + options); + } + + /** + * This operation creates a commit with the current configuration snapshot to the specified branch + * in the repository. This is a long running operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Save Configuration parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginSave(resourceGroupName: string, serviceName: string, parameters: Models.SaveConfigurationParameter, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + parameters, + options + }, + beginSaveOperationSpec, + options); + } + + /** + * This operation validates the changes in the specified Git branch. This is a long running + * operation and could take several minutes to complete. + * @param resourceGroupName The name of the resource group. + * @param serviceName The name of the API Management service. + * @param parameters Validate Configuration parameters. + * @param [options] The optional parameters + * @returns Promise + */ + beginValidate(resourceGroupName: string, serviceName: string, parameters: Models.DeployConfigurationParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + serviceName, + parameters, + options + }, + beginValidateOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getSyncStateOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/syncState", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.configurationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TenantConfigurationSyncStateContract + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeployOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/deploy", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.configurationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DeployConfigurationParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationResultContract + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginSaveOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/save", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.configurationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.SaveConfigurationParameter, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationResultContract + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const beginValidateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tenant/{configurationName}/validate", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId, + Parameters.configurationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DeployConfigurationParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.OperationResultContract + }, + 202: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/user.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/user.ts new file mode 100644 index 000000000000..43a8c279ccc7 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/user.ts @@ -0,0 +1,630 @@ +/* + * 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/userMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a User. */ +export class User { + private readonly client: ApiManagementClientContext; + + /** + * Create a User. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists a collection of registered users 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.UserListByServiceOptionalParams): 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.UserListByServiceOptionalParams, callback: msRest.ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: Models.UserListByServiceOptionalParams | 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 user specified by its identifier. + * @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 + */ + 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 userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + 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 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, 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, + userId, + options + }, + getEntityTagOperationSpec, + callback) as Promise; + } + + /** + * 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 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, 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 + */ + 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 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, 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, + userId, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or Updates a user. + * @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 parameters Create or update parameters. + * @param [options] The optional parameters + * @returns 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 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, 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 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, 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, + userId, + parameters, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * 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 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, 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 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, 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 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, 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, + userId, + parameters, + ifMatch, + options + }, + updateOperationSpec, + callback); + } + + /** + * Deletes specific user. + * @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 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, 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 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, 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 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, 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, + userId, + ifMatch, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Retrieves a redirection URL containing an authentication token for signing a given user into the + * developer portal. + * @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 + */ + 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 userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + 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 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, 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, + userId, + options + }, + generateSsoUrlOperationSpec, + callback) as Promise; + } + + /** + * 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 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, 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 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, 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 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, 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, + userId, + parameters, + options + }, + getSharedAccessTokenOperationSpec, + callback) as Promise; + } + + /** + * Lists a collection of registered users 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}/users", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.expandGroups, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getEntityTagOperationSpec: msRest.OperationSpec = { + httpMethod: "HEAD", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + headersMapper: Mappers.UserGetEntityTagHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UserContract, + headersMapper: Mappers.UserGetHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch0, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.UserCreateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.UserContract, + headersMapper: Mappers.UserCreateOrUpdateHeaders + }, + 201: { + bodyMapper: Mappers.UserContract, + headersMapper: Mappers.UserCreateOrUpdateHeaders + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.UserUpdateParameters, + 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}/users/{userId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.deleteSubscriptions, + Parameters.notify, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.ifMatch1, + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const generateSsoUrlOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/generateSsoUrl", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GenerateSsoUrlResult + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const getSharedAccessTokenOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/token", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.UserTokenParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.UserTokenResult + }, + 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.UserCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/userConfirmationPassword.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/userConfirmationPassword.ts new file mode 100644 index 000000000000..d9e3dbdaf146 --- /dev/null +++ b/sdk/apimanagement/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/sdk/apimanagement/arm-apimanagement/lib/operations/userGroup.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/userGroup.ts new file mode 100644 index 000000000000..0387dbc52c58 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/userGroup.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/userGroupMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a UserGroup. */ +export class UserGroup { + private readonly client: ApiManagementClientContext; + + /** + * Create a UserGroup. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * Lists all user groups. + * @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 + */ + 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 userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + 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 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, 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, + userId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists all user groups. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/groups", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.GroupCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/userIdentities.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/userIdentities.ts new file mode 100644 index 000000000000..e84a1e21f620 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/userIdentities.ts @@ -0,0 +1,141 @@ +/* + * 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/userIdentitiesMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a UserIdentities. */ +export class UserIdentities { + private readonly client: ApiManagementClientContext; + + /** + * Create a UserIdentities. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * List of all user identities. + * @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 + */ + 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 userId User identifier. Must be unique in the current API Management service instance. + * @param callback The callback + */ + 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 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, 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, + userId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List of all user identities. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/identities", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UserIdentityCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.UserIdentityCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/userSubscription.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/userSubscription.ts new file mode 100644 index 000000000000..bf8816577ff9 --- /dev/null +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/userSubscription.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/userSubscriptionMappers"; +import * as Parameters from "../models/parameters"; +import { ApiManagementClientContext } from "../apiManagementClientContext"; + +/** Class representing a UserSubscription. */ +export class UserSubscription { + private readonly client: ApiManagementClientContext; + + /** + * Create a UserSubscription. + * @param {ApiManagementClientContext} client Reference to the service client. + */ + constructor(client: ApiManagementClientContext) { + this.client = client; + } + + /** + * 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 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, userId: string, options?: Models.UserSubscriptionListOptionalParams): 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 + */ + 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 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, 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, + userId, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Lists the collection of subscriptions of the specified user. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listNext(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; + /** + * @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 { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}/subscriptions", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.serviceName, + Parameters.userId, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.filter0, + Parameters.top, + Parameters.skip, + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const listNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SubscriptionCollection + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/apimanagement/arm-apimanagement/package.json b/sdk/apimanagement/arm-apimanagement/package.json index 5b300d6a1b1f..b96be0551b84 100644 --- a/sdk/apimanagement/arm-apimanagement/package.json +++ b/sdk/apimanagement/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,9 +23,10 @@ "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", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -42,7 +43,7 @@ "esm/**/*.js.map", "esm/**/*.d.ts", "esm/**/*.d.ts.map", - "src/**/*.ts", + "lib/**/*.ts", "rollup.config.js", "tsconfig.json" ], @@ -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/sdk/apimanagement/arm-apimanagement/rollup.config.js b/sdk/apimanagement/arm-apimanagement/rollup.config.js index a55a7153ed92..dc0dc5622703 100644 --- a/sdk/apimanagement/arm-apimanagement/rollup.config.js +++ b/sdk/apimanagement/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; diff --git a/sdk/apimanagement/arm-apimanagement/tsconfig.json b/sdk/apimanagement/arm-apimanagement/tsconfig.json index 87bbf5b5fa49..51ea90961ce5 100644 --- a/sdk/apimanagement/arm-apimanagement/tsconfig.json +++ b/sdk/apimanagement/arm-apimanagement/tsconfig.json @@ -14,6 +14,6 @@ "outDir": "./esm", "importHelpers": true }, - "include": ["./src/**/*.ts"], + "include": ["./lib/**/*.ts"], "exclude": ["node_modules"] } From 6aa04d671e1b6809c83dc1dfad359e89db9e0a8d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 11 Apr 2019 17:40:59 +0000 Subject: [PATCH 2/2] Generated from 71e167693019e8e657c456995331e3d7b5432a8f update example for deployment --- .../arm-apimanagement/lib/operations/apiManagementService.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts b/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts index 109c47ec51f7..e098f991f33b 100644 --- a/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts +++ b/sdk/apimanagement/arm-apimanagement/lib/operations/apiManagementService.ts @@ -655,9 +655,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { 201: { bodyMapper: Mappers.ApiManagementServiceResource }, - 202: { - bodyMapper: Mappers.ApiManagementServiceResource - }, + 202: {}, default: { bodyMapper: Mappers.CloudError }