From 4ae2afd86f17cc46f58b076201540148b3acc443 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 8 Aug 2018 11:09:43 -0700 Subject: [PATCH 1/4] Generated from 272debceab4e4b56bffbbf0cdb5951f16b86bfc1 (#3309) Bug fix on readonly property --- .../lib/models/certificateConfiguration.js | 1 - .../apimanagement/lib/models/groupContract.js | 4 ++-- .../lib/models/groupContractProperties.js | 4 ++-- .../lib/models/groupCreateParameters.js | 2 +- .../lib/models/groupUpdateParameters.js | 2 +- .../apimanagement/lib/models/index.d.ts | 16 +++++++------ .../apimanagement/lib/operations/group.js | 24 +++++++++---------- .../apimanagement/lib/operations/index.d.ts | 16 ++++++------- lib/services/apimanagement/package.json | 2 +- 9 files changed, 36 insertions(+), 35 deletions(-) diff --git a/lib/services/apimanagement/lib/models/certificateConfiguration.js b/lib/services/apimanagement/lib/models/certificateConfiguration.js index 600cacc15f..42234aee8e 100644 --- a/lib/services/apimanagement/lib/models/certificateConfiguration.js +++ b/lib/services/apimanagement/lib/models/certificateConfiguration.js @@ -73,7 +73,6 @@ class CertificateConfiguration { }, certificate: { required: false, - readOnly: true, serializedName: 'certificate', type: { name: 'Composite', diff --git a/lib/services/apimanagement/lib/models/groupContract.js b/lib/services/apimanagement/lib/models/groupContract.js index e52b70d8f3..ac71d18b44 100644 --- a/lib/services/apimanagement/lib/models/groupContract.js +++ b/lib/services/apimanagement/lib/models/groupContract.js @@ -29,8 +29,8 @@ class GroupContract extends models['Resource'] { * 'custom', 'system', 'external' * @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. + * Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ constructor() { super(); diff --git a/lib/services/apimanagement/lib/models/groupContractProperties.js b/lib/services/apimanagement/lib/models/groupContractProperties.js index 0f49a20551..9a481a93d5 100644 --- a/lib/services/apimanagement/lib/models/groupContractProperties.js +++ b/lib/services/apimanagement/lib/models/groupContractProperties.js @@ -26,8 +26,8 @@ class GroupContractProperties { * 'system', 'external' * @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. + * Active Directory `aad://.onmicrosoft.com/groups/`; otherwise the value is null. */ constructor() { } diff --git a/lib/services/apimanagement/lib/models/groupCreateParameters.js b/lib/services/apimanagement/lib/models/groupCreateParameters.js index b3b00b0400..650e487207 100644 --- a/lib/services/apimanagement/lib/models/groupCreateParameters.js +++ b/lib/services/apimanagement/lib/models/groupCreateParameters.js @@ -24,7 +24,7 @@ class GroupCreateParameters { * @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 + * `aad://.onmicrosoft.com/groups/`; otherwise the * value is null. */ constructor() { diff --git a/lib/services/apimanagement/lib/models/groupUpdateParameters.js b/lib/services/apimanagement/lib/models/groupUpdateParameters.js index b8e66db259..8859ef5eb7 100644 --- a/lib/services/apimanagement/lib/models/groupUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/groupUpdateParameters.js @@ -24,7 +24,7 @@ class GroupUpdateParameters { * @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 + * `aad://.onmicrosoft.com/groups/`; otherwise the * value is null. */ constructor() { diff --git a/lib/services/apimanagement/lib/models/index.d.ts b/lib/services/apimanagement/lib/models/index.d.ts index 08cf6c6bcb..48c36d2055 100644 --- a/lib/services/apimanagement/lib/models/index.d.ts +++ b/lib/services/apimanagement/lib/models/index.d.ts @@ -1868,7 +1868,7 @@ export interface CertificateConfiguration { encodedCertificate?: string; certificatePassword?: string; storeName: string; - readonly certificate?: CertificateInformation; + certificate?: CertificateInformation; } /** @@ -2576,7 +2576,7 @@ export interface EmailTemplateUpdateParameters { * 'system', 'external' * @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/; + * Active Directory `aad://.onmicrosoft.com/groups/`; * otherwise the value is null. */ export interface GroupContractProperties { @@ -2602,7 +2602,7 @@ export interface GroupContractProperties { * 'custom', 'system', 'external' * @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/; + * Active Directory `aad://.onmicrosoft.com/groups/`; * otherwise the value is null. */ export interface GroupContract extends Resource { @@ -2625,8 +2625,9 @@ export interface GroupContract extends Resource { * 'system', 'external' * @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. + * e.g. for Azure Active Directory + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. */ export interface GroupCreateParameters { displayName: string; @@ -2647,8 +2648,9 @@ export interface GroupCreateParameters { * 'system', 'external' * @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. + * e.g. for Azure Active Directory + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. */ export interface GroupUpdateParameters { displayName?: string; diff --git a/lib/services/apimanagement/lib/operations/group.js b/lib/services/apimanagement/lib/operations/group.js index 16f9d121de..4ee37577f2 100644 --- a/lib/services/apimanagement/lib/operations/group.js +++ b/lib/services/apimanagement/lib/operations/group.js @@ -589,8 +589,8 @@ function _get(resourceGroupName, serviceName, groupId, options, callback) { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {object} [options] Optional Parameters. * @@ -829,8 +829,8 @@ function _createOrUpdate(resourceGroupName, serviceName, groupId, parameters, op * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -1654,8 +1654,8 @@ class Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {object} [options] Optional Parameters. * @@ -1707,8 +1707,8 @@ class Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {object} [options] Optional Parameters. * @@ -1782,8 +1782,8 @@ class Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -1836,8 +1836,8 @@ class Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * diff --git a/lib/services/apimanagement/lib/operations/index.d.ts b/lib/services/apimanagement/lib/operations/index.d.ts index 4688785381..f676176313 100644 --- a/lib/services/apimanagement/lib/operations/index.d.ts +++ b/lib/services/apimanagement/lib/operations/index.d.ts @@ -12159,8 +12159,8 @@ export interface Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {object} [options] Optional Parameters. * @@ -12200,8 +12200,8 @@ export interface Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {object} [options] Optional Parameters. * @@ -12260,8 +12260,8 @@ export interface Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -12302,8 +12302,8 @@ export interface Group { * @param {string} [parameters.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. + * `aad://.onmicrosoft.com/groups/`; otherwise the + * value is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * diff --git a/lib/services/apimanagement/package.json b/lib/services/apimanagement/package.json index d0b1aa0870..7d97891d23 100644 --- a/lib/services/apimanagement/package.json +++ b/lib/services/apimanagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/apiManagementClient.js", "types": "./lib/apiManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/apimanagement", + "homepage": "https://github.com/azure/azure-sdk-for-node", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" From 8fd8a73b826b628bb688cb96ccdfd9f79a97d06f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 14 Aug 2018 09:37:49 -0700 Subject: [PATCH 2/4] Generated from 731500203118757481b0dda9a873a83704df82f9 (#3333) Make 2018-01-01 as default for all clients --- .../lib/apiManagementClient.d.ts | 2 + .../apimanagement/lib/apiManagementClient.js | 4 +- .../lib/models/diagnosticContract.js | 71 +- .../apimanagement/lib/models/groupContract.js | 4 +- .../lib/models/groupContractProperties.js | 4 +- .../lib/models/groupCreateParameters.js | 2 +- .../lib/models/groupUpdateParameters.js | 2 +- .../lib/models/hostnameConfiguration.js | 1 - .../apimanagement/lib/models/index.d.ts | 195 +- .../apimanagement/lib/models/index.js | 8 +- .../lib/models/loggerContract.js | 9 - .../lib/models/productContract.js | 6 +- .../lib/models/productEntityBaseParameters.js | 6 +- .../lib/models/productUpdateParameters.js | 6 +- .../lib/operations/apiDiagnostic.js | 204 +- .../lib/operations/diagnostic.js | 204 +- .../apimanagement/lib/operations/group.js | 24 +- .../apimanagement/lib/operations/index.d.ts | 3384 ++++++++++------- .../apimanagement/lib/operations/index.js | 2 + .../apimanagement/lib/operations/logger.js | 9 - .../apimanagement/lib/operations/product.js | 36 +- 21 files changed, 2077 insertions(+), 2106 deletions(-) diff --git a/lib/services/apimanagement/lib/apiManagementClient.d.ts b/lib/services/apimanagement/lib/apiManagementClient.d.ts index 7bc476c54a..bed85f554d 100644 --- a/lib/services/apimanagement/lib/apiManagementClient.d.ts +++ b/lib/services/apimanagement/lib/apiManagementClient.d.ts @@ -68,6 +68,7 @@ export default class ApiManagementClient extends AzureServiceClient { apiPolicy: operations.ApiPolicy; apiSchema: operations.ApiSchema; apiDiagnostic: operations.ApiDiagnostic; + apiDiagnosticLogger: operations.ApiDiagnosticLogger; apiIssue: operations.ApiIssue; apiIssueComment: operations.ApiIssueComment; apiIssueAttachment: operations.ApiIssueAttachment; @@ -77,6 +78,7 @@ export default class ApiManagementClient extends AzureServiceClient { apiManagementOperations: operations.ApiManagementOperations; apiManagementService: operations.ApiManagementService; diagnostic: operations.Diagnostic; + diagnosticLogger: operations.DiagnosticLogger; emailTemplate: operations.EmailTemplate; group: operations.Group; groupUser: operations.GroupUser; diff --git a/lib/services/apimanagement/lib/apiManagementClient.js b/lib/services/apimanagement/lib/apiManagementClient.js index fcbc448faf..60372ae4c7 100644 --- a/lib/services/apimanagement/lib/apiManagementClient.js +++ b/lib/services/apimanagement/lib/apiManagementClient.js @@ -50,7 +50,7 @@ class ApiManagementClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2018-06-01-preview'; + this.apiVersion = '2018-01-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -84,6 +84,7 @@ class ApiManagementClient extends ServiceClient { this.apiPolicy = new operations.ApiPolicy(this); this.apiSchema = new operations.ApiSchema(this); this.apiDiagnostic = new operations.ApiDiagnostic(this); + this.apiDiagnosticLogger = new operations.ApiDiagnosticLogger(this); this.apiIssue = new operations.ApiIssue(this); this.apiIssueComment = new operations.ApiIssueComment(this); this.apiIssueAttachment = new operations.ApiIssueAttachment(this); @@ -93,6 +94,7 @@ class ApiManagementClient extends ServiceClient { this.apiManagementOperations = new operations.ApiManagementOperations(this); this.apiManagementService = new operations.ApiManagementService(this); this.diagnostic = new operations.Diagnostic(this); + this.diagnosticLogger = new operations.DiagnosticLogger(this); this.emailTemplate = new operations.EmailTemplate(this); this.group = new operations.Group(this); this.groupUser = new operations.GroupUser(this); diff --git a/lib/services/apimanagement/lib/models/diagnosticContract.js b/lib/services/apimanagement/lib/models/diagnosticContract.js index ea4ed43341..5b579c4b44 100644 --- a/lib/services/apimanagement/lib/models/diagnosticContract.js +++ b/lib/services/apimanagement/lib/models/diagnosticContract.js @@ -20,38 +20,8 @@ const models = require('./index'); class DiagnosticContract extends models['Resource'] { /** * Create a DiagnosticContract. - * @member {string} [alwaysLog] Specifies for what type of messages sampling - * settings should not apply. Possible values include: 'allErrors' - * @member {string} loggerId Resource Id of a target logger. - * @member {object} [sampling] Sampling settings for Diagnostic. - * @member {string} [sampling.samplingType] Sampling type. Possible values - * include: 'fixed' - * @member {number} [sampling.percentage] Rate of sampling for fixed-rate - * sampling. - * @member {object} [frontend] Diagnostic settings for incoming/outcoming - * HTTP messages to the Gateway. - * @member {object} [frontend.request] Diagnostic settings for request. - * @member {array} [frontend.request.headers] Array of HTTP Headers to log. - * @member {object} [frontend.request.body] Body logging settings. - * @member {number} [frontend.request.body.bytes] Number of request body - * bytes to log. - * @member {object} [frontend.response] Diagnostic settings for response. - * @member {array} [frontend.response.headers] Array of HTTP Headers to log. - * @member {object} [frontend.response.body] Body logging settings. - * @member {number} [frontend.response.body.bytes] Number of request body - * bytes to log. - * @member {object} [backend] Diagnostic settings for incoming/outcoming HTTP - * messages to the Backend - * @member {object} [backend.request] Diagnostic settings for request. - * @member {array} [backend.request.headers] Array of HTTP Headers to log. - * @member {object} [backend.request.body] Body logging settings. - * @member {number} [backend.request.body.bytes] Number of request body bytes - * to log. - * @member {object} [backend.response] Diagnostic settings for response. - * @member {array} [backend.response.headers] Array of HTTP Headers to log. - * @member {object} [backend.response.body] Body logging settings. - * @member {number} [backend.response.body.bytes] Number of request body - * bytes to log. + * @member {boolean} enabled Indicates whether a diagnostic should receive + * data or not. */ constructor() { super(); @@ -95,42 +65,11 @@ class DiagnosticContract extends models['Resource'] { name: 'String' } }, - alwaysLog: { - required: false, - serializedName: 'properties.alwaysLog', - type: { - name: 'String' - } - }, - loggerId: { + enabled: { required: true, - serializedName: 'properties.loggerId', - type: { - name: 'String' - } - }, - sampling: { - required: false, - serializedName: 'properties.sampling', - type: { - name: 'Composite', - className: 'SamplingSettings' - } - }, - frontend: { - required: false, - serializedName: 'properties.frontend', - type: { - name: 'Composite', - className: 'PipelineDiagnosticSettings' - } - }, - backend: { - required: false, - serializedName: 'properties.backend', + serializedName: 'properties.enabled', type: { - name: 'Composite', - className: 'PipelineDiagnosticSettings' + name: 'Boolean' } } } diff --git a/lib/services/apimanagement/lib/models/groupContract.js b/lib/services/apimanagement/lib/models/groupContract.js index ac71d18b44..e52b70d8f3 100644 --- a/lib/services/apimanagement/lib/models/groupContract.js +++ b/lib/services/apimanagement/lib/models/groupContract.js @@ -29,8 +29,8 @@ class GroupContract extends models['Resource'] { * 'custom', 'system', 'external' * @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. + * Active Directory aad://.onmicrosoft.com/groups/; + * otherwise the value is null. */ constructor() { super(); diff --git a/lib/services/apimanagement/lib/models/groupContractProperties.js b/lib/services/apimanagement/lib/models/groupContractProperties.js index 9a481a93d5..0f49a20551 100644 --- a/lib/services/apimanagement/lib/models/groupContractProperties.js +++ b/lib/services/apimanagement/lib/models/groupContractProperties.js @@ -26,8 +26,8 @@ class GroupContractProperties { * 'system', 'external' * @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. + * Active Directory aad://.onmicrosoft.com/groups/; + * otherwise the value is null. */ constructor() { } diff --git a/lib/services/apimanagement/lib/models/groupCreateParameters.js b/lib/services/apimanagement/lib/models/groupCreateParameters.js index 650e487207..b3b00b0400 100644 --- a/lib/services/apimanagement/lib/models/groupCreateParameters.js +++ b/lib/services/apimanagement/lib/models/groupCreateParameters.js @@ -24,7 +24,7 @@ class GroupCreateParameters { * @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 + * aad://.onmicrosoft.com/groups/; otherwise the * value is null. */ constructor() { diff --git a/lib/services/apimanagement/lib/models/groupUpdateParameters.js b/lib/services/apimanagement/lib/models/groupUpdateParameters.js index 8859ef5eb7..b8e66db259 100644 --- a/lib/services/apimanagement/lib/models/groupUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/groupUpdateParameters.js @@ -24,7 +24,7 @@ class GroupUpdateParameters { * @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 + * aad://.onmicrosoft.com/groups/; otherwise the * value is null. */ constructor() { diff --git a/lib/services/apimanagement/lib/models/hostnameConfiguration.js b/lib/services/apimanagement/lib/models/hostnameConfiguration.js index d6381df03c..fc7929f78d 100644 --- a/lib/services/apimanagement/lib/models/hostnameConfiguration.js +++ b/lib/services/apimanagement/lib/models/hostnameConfiguration.js @@ -118,7 +118,6 @@ class HostnameConfiguration { }, certificate: { required: false, - readOnly: true, serializedName: 'certificate', type: { name: 'Composite', diff --git a/lib/services/apimanagement/lib/models/index.d.ts b/lib/services/apimanagement/lib/models/index.d.ts index 48c36d2055..f489d3d0d1 100644 --- a/lib/services/apimanagement/lib/models/index.d.ts +++ b/lib/services/apimanagement/lib/models/index.d.ts @@ -930,64 +930,24 @@ export interface IssueAttachmentContract extends Resource { /** * @class - * Initializes a new instance of the BodyDiagnosticSettings class. - * @constructor - * Body logging settings. - * - * @member {number} [bytes] Number of request body bytes to log. - */ -export interface BodyDiagnosticSettings { - bytes?: number; -} - -/** - * @class - * Initializes a new instance of the HttpMessageDiagnostic class. - * @constructor - * Http message diagnostic settings. - * - * @member {array} [headers] Array of HTTP Headers to log. - * @member {object} [body] Body logging settings. - * @member {number} [body.bytes] Number of request body bytes to log. - */ -export interface HttpMessageDiagnostic { - headers?: string[]; - body?: BodyDiagnosticSettings; -} - -/** - * @class - * Initializes a new instance of the PipelineDiagnosticSettings class. - * @constructor - * Diagnostic settings for incoming/outcoming HTTP messages to the Gateway. - * - * @member {object} [request] Diagnostic settings for request. - * @member {array} [request.headers] Array of HTTP Headers to log. - * @member {object} [request.body] Body logging settings. - * @member {number} [request.body.bytes] Number of request body bytes to log. - * @member {object} [response] Diagnostic settings for response. - * @member {array} [response.headers] Array of HTTP Headers to log. - * @member {object} [response.body] Body logging settings. - * @member {number} [response.body.bytes] Number of request body bytes to log. - */ -export interface PipelineDiagnosticSettings { - request?: HttpMessageDiagnostic; - response?: HttpMessageDiagnostic; -} - -/** - * @class - * Initializes a new instance of the SamplingSettings class. + * Initializes a new instance of the LoggerContract class. * @constructor - * Sampling settings for Diagnostic. + * Logger details. * - * @member {string} [samplingType] Sampling type. Possible values include: - * 'fixed' - * @member {number} [percentage] Rate of sampling for fixed-rate sampling. + * @member {string} loggerType Logger type. Possible values include: + * 'azureEventHub', 'applicationInsights' + * @member {string} [description] Logger description. + * @member {object} credentials The name and SendRule connection string of the + * event hub for azureEventHub logger. + * Instrumentation key for applicationInsights logger. + * @member {boolean} [isBuffered] Whether records are buffered in the logger + * before publishing. Default is assumed to be true. */ -export interface SamplingSettings { - samplingType?: string; - percentage?: number; +export interface LoggerContract extends Resource { + loggerType: string; + description?: string; + credentials: { [propertyName: string]: string }; + isBuffered?: boolean; } /** @@ -996,45 +956,11 @@ export interface SamplingSettings { * @constructor * Diagnostic details. * - * @member {string} [alwaysLog] Specifies for what type of messages sampling - * settings should not apply. Possible values include: 'allErrors' - * @member {string} loggerId Resource Id of a target logger. - * @member {object} [sampling] Sampling settings for Diagnostic. - * @member {string} [sampling.samplingType] Sampling type. Possible values - * include: 'fixed' - * @member {number} [sampling.percentage] Rate of sampling for fixed-rate - * sampling. - * @member {object} [frontend] Diagnostic settings for incoming/outcoming HTTP - * messages to the Gateway. - * @member {object} [frontend.request] Diagnostic settings for request. - * @member {array} [frontend.request.headers] Array of HTTP Headers to log. - * @member {object} [frontend.request.body] Body logging settings. - * @member {number} [frontend.request.body.bytes] Number of request body bytes - * to log. - * @member {object} [frontend.response] Diagnostic settings for response. - * @member {array} [frontend.response.headers] Array of HTTP Headers to log. - * @member {object} [frontend.response.body] Body logging settings. - * @member {number} [frontend.response.body.bytes] Number of request body bytes - * to log. - * @member {object} [backend] Diagnostic settings for incoming/outcoming HTTP - * messages to the Backend - * @member {object} [backend.request] Diagnostic settings for request. - * @member {array} [backend.request.headers] Array of HTTP Headers to log. - * @member {object} [backend.request.body] Body logging settings. - * @member {number} [backend.request.body.bytes] Number of request body bytes - * to log. - * @member {object} [backend.response] Diagnostic settings for response. - * @member {array} [backend.response.headers] Array of HTTP Headers to log. - * @member {object} [backend.response.body] Body logging settings. - * @member {number} [backend.response.body.bytes] Number of request body bytes - * to log. + * @member {boolean} enabled Indicates whether a diagnostic should receive data + * or not. */ export interface DiagnosticContract extends Resource { - alwaysLog?: string; - loggerId: string; - sampling?: SamplingSettings; - frontend?: PipelineDiagnosticSettings; - backend?: PipelineDiagnosticSettings; + enabled: boolean; } /** @@ -1056,13 +982,13 @@ export interface DiagnosticContract extends Resource { * be made without a subscription key. If property is omitted when creating a * new product it's value is assumed to be true. * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically + * 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 + * subscribing. If true, administrators must manually approve the subscription * before the developer can any of the product’s APIs. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {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 + * user can have to this product at the same time. Set to null or omit to allow * unlimited per user subscriptions. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {string} [state] whether product is published or not. Published @@ -1227,13 +1153,13 @@ export interface TagResourceContract { * be made without a subscription key. If property is omitted when creating a * new product it's value is assumed to be true. * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically + * 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 + * subscribing. If true, administrators must manually approve the subscription * before the developer can any of the product’s APIs. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {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 + * user can have to this product at the same time. Set to null or omit to allow * unlimited per user subscriptions. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {string} [state] whether product is published or not. Published @@ -1911,7 +1837,7 @@ export interface HostnameConfiguration { certificatePassword?: string; defaultSslBinding?: boolean; negotiateClientCertificate?: boolean; - readonly certificate?: CertificateInformation; + certificate?: CertificateInformation; } /** @@ -2576,7 +2502,7 @@ export interface EmailTemplateUpdateParameters { * 'system', 'external' * @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/`; + * Active Directory aad://.onmicrosoft.com/groups/; * otherwise the value is null. */ export interface GroupContractProperties { @@ -2602,7 +2528,7 @@ export interface GroupContractProperties { * 'custom', 'system', 'external' * @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/`; + * Active Directory aad://.onmicrosoft.com/groups/; * otherwise the value is null. */ export interface GroupContract extends Resource { @@ -2625,9 +2551,8 @@ export interface GroupContract extends Resource { * 'system', 'external' * @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. + * e.g. for Azure Active Directory aad://.onmicrosoft.com/groups/; otherwise the value is null. */ export interface GroupCreateParameters { displayName: string; @@ -2648,9 +2573,8 @@ export interface GroupCreateParameters { * 'system', 'external' * @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. + * e.g. for Azure Active Directory aad://.onmicrosoft.com/groups/; otherwise the value is null. */ export interface GroupUpdateParameters { displayName?: string; @@ -2828,31 +2752,6 @@ export interface IdentityProviderBaseParameters { passwordResetPolicyName?: string; } -/** - * @class - * Initializes a new instance of the LoggerContract class. - * @constructor - * Logger details. - * - * @member {string} loggerType Logger type. Possible values include: - * 'azureEventHub', 'applicationInsights' - * @member {string} [description] Logger description. - * @member {object} credentials The name and SendRule connection string of the - * event hub for azureEventHub logger. - * Instrumentation key for applicationInsights logger. - * @member {boolean} [isBuffered] Whether records are buffered in the logger - * before publishing. Default is assumed to be true. - * @member {string} [resourceId] Azure Resource Id of a log target (either - * Azure Event Hub resource or Azure Application Insights resource). - */ -export interface LoggerContract extends Resource { - loggerType: string; - description?: string; - credentials: { [propertyName: string]: string }; - isBuffered?: boolean; - resourceId?: string; -} - /** * @class * Initializes a new instance of the LoggerUpdateContract class. @@ -3185,13 +3084,13 @@ export interface PortalDelegationSettings extends Resource { * be made without a subscription key. If property is omitted when creating a * new product it's value is assumed to be true. * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically + * 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 + * subscribing. If true, administrators must manually approve the subscription * before the developer can any of the product’s APIs. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {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 + * user can have to this product at the same time. Set to null or omit to allow * unlimited per user subscriptions. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {string} [state] whether product is published or not. Published @@ -4112,6 +4011,19 @@ export interface DiagnosticCollection extends Array { nextLink?: string; } +/** + * @class + * Initializes a new instance of the LoggerCollection class. + * @constructor + * Paged Logger list representation. + * + * @member {number} [count] Total record count number across all pages. + * @member {string} [nextLink] Next page link if any. + */ +export interface LoggerCollection extends Array { + nextLink?: string; +} + /** * @class * Initializes a new instance of the IssueCollection class. @@ -4260,19 +4172,6 @@ export interface IdentityProviderList extends Array { nextLink?: string; } -/** - * @class - * Initializes a new instance of the LoggerCollection class. - * @constructor - * Paged Logger list representation. - * - * @member {number} [count] Total record count number across all pages. - * @member {string} [nextLink] Next page link if any. - */ -export interface LoggerCollection extends Array { - nextLink?: string; -} - /** * @class * Initializes a new instance of the NotificationCollection class. diff --git a/lib/services/apimanagement/lib/models/index.js b/lib/services/apimanagement/lib/models/index.js index 373a0de75a..4ff350f27d 100644 --- a/lib/services/apimanagement/lib/models/index.js +++ b/lib/services/apimanagement/lib/models/index.js @@ -52,10 +52,7 @@ exports.SchemaContract = require('./schemaContract'); exports.IssueContract = require('./issueContract'); exports.IssueCommentContract = require('./issueCommentContract'); exports.IssueAttachmentContract = require('./issueAttachmentContract'); -exports.BodyDiagnosticSettings = require('./bodyDiagnosticSettings'); -exports.HttpMessageDiagnostic = require('./httpMessageDiagnostic'); -exports.PipelineDiagnosticSettings = require('./pipelineDiagnosticSettings'); -exports.SamplingSettings = require('./samplingSettings'); +exports.LoggerContract = require('./loggerContract'); exports.DiagnosticContract = require('./diagnosticContract'); exports.ProductEntityBaseParameters = require('./productEntityBaseParameters'); exports.ProductTagResourceContractProperties = require('./productTagResourceContractProperties'); @@ -115,7 +112,6 @@ exports.UserContract = require('./userContract'); exports.IdentityProviderContract = require('./identityProviderContract'); exports.IdentityProviderUpdateParameters = require('./identityProviderUpdateParameters'); exports.IdentityProviderBaseParameters = require('./identityProviderBaseParameters'); -exports.LoggerContract = require('./loggerContract'); exports.LoggerUpdateContract = require('./loggerUpdateContract'); exports.RecipientsContractProperties = require('./recipientsContractProperties'); exports.NotificationContract = require('./notificationContract'); @@ -175,6 +171,7 @@ exports.OperationCollection = require('./operationCollection'); exports.ProductCollection = require('./productCollection'); exports.SchemaCollection = require('./schemaCollection'); exports.DiagnosticCollection = require('./diagnosticCollection'); +exports.LoggerCollection = require('./loggerCollection'); exports.IssueCollection = require('./issueCollection'); exports.IssueCommentCollection = require('./issueCommentCollection'); exports.IssueAttachmentCollection = require('./issueAttachmentCollection'); @@ -187,7 +184,6 @@ exports.EmailTemplateCollection = require('./emailTemplateCollection'); exports.GroupCollection = require('./groupCollection'); exports.UserCollection = require('./userCollection'); exports.IdentityProviderList = require('./identityProviderList'); -exports.LoggerCollection = require('./loggerCollection'); exports.NotificationCollection = require('./notificationCollection'); exports.OpenIdConnectProviderCollection = require('./openIdConnectProviderCollection'); exports.SubscriptionCollection = require('./subscriptionCollection'); diff --git a/lib/services/apimanagement/lib/models/loggerContract.js b/lib/services/apimanagement/lib/models/loggerContract.js index a042b7e48c..ee0757f126 100644 --- a/lib/services/apimanagement/lib/models/loggerContract.js +++ b/lib/services/apimanagement/lib/models/loggerContract.js @@ -28,8 +28,6 @@ class LoggerContract extends models['Resource'] { * Instrumentation key for applicationInsights logger. * @member {boolean} [isBuffered] Whether records are buffered in the logger * before publishing. Default is assumed to be true. - * @member {string} [resourceId] Azure Resource Id of a log target (either - * Azure Event Hub resource or Azure Application Insights resource). */ constructor() { super(); @@ -110,13 +108,6 @@ class LoggerContract extends models['Resource'] { type: { name: 'Boolean' } - }, - resourceId: { - required: false, - serializedName: 'properties.resourceId', - type: { - name: 'String' - } } } } diff --git a/lib/services/apimanagement/lib/models/productContract.js b/lib/services/apimanagement/lib/models/productContract.js index fca049135d..dc7f6ed98a 100644 --- a/lib/services/apimanagement/lib/models/productContract.js +++ b/lib/services/apimanagement/lib/models/productContract.js @@ -33,14 +33,14 @@ class ProductContract extends models['Resource'] { * product can be made without a subscription key. If property is omitted * when creating a new product it's value is assumed to be true. * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically + * 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 + * subscribing. If true, administrators must manually approve the * subscription before the developer can any of the product’s APIs. Can be * present only if subscriptionRequired property is present and has a value * of false. * @member {number} [subscriptionsLimit] Whether the number of subscriptions - * a user can have to this product at the same time. Set to null or omit to + * a user can have to this product at the same time. Set to null or omit to * allow unlimited per user subscriptions. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {string} [state] whether product is published or not. Published diff --git a/lib/services/apimanagement/lib/models/productEntityBaseParameters.js b/lib/services/apimanagement/lib/models/productEntityBaseParameters.js index 4b56443231..08db01346d 100644 --- a/lib/services/apimanagement/lib/models/productEntityBaseParameters.js +++ b/lib/services/apimanagement/lib/models/productEntityBaseParameters.js @@ -30,14 +30,14 @@ class ProductEntityBaseParameters { * product can be made without a subscription key. If property is omitted * when creating a new product it's value is assumed to be true. * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically + * 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 + * subscribing. If true, administrators must manually approve the * subscription before the developer can any of the product’s APIs. Can be * present only if subscriptionRequired property is present and has a value * of false. * @member {number} [subscriptionsLimit] Whether the number of subscriptions - * a user can have to this product at the same time. Set to null or omit to + * a user can have to this product at the same time. Set to null or omit to * allow unlimited per user subscriptions. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {string} [state] whether product is published or not. Published diff --git a/lib/services/apimanagement/lib/models/productUpdateParameters.js b/lib/services/apimanagement/lib/models/productUpdateParameters.js index b28338ad9a..cfb98e6826 100644 --- a/lib/services/apimanagement/lib/models/productUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/productUpdateParameters.js @@ -30,14 +30,14 @@ class ProductUpdateParameters { * product can be made without a subscription key. If property is omitted * when creating a new product it's value is assumed to be true. * @member {boolean} [approvalRequired] whether subscription approval is - * required. If false, new subscriptions will be approved automatically + * 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 + * subscribing. If true, administrators must manually approve the * subscription before the developer can any of the product’s APIs. Can be * present only if subscriptionRequired property is present and has a value * of false. * @member {number} [subscriptionsLimit] Whether the number of subscriptions - * a user can have to this product at the same time. Set to null or omit to + * a user can have to this product at the same time. Set to null or omit to * allow unlimited per user subscriptions. Can be present only if * subscriptionRequired property is present and has a value of false. * @member {string} [state] whether product is published or not. Published diff --git a/lib/services/apimanagement/lib/operations/apiDiagnostic.js b/lib/services/apimanagement/lib/operations/apiDiagnostic.js index a1df89c1f4..d2ab86b442 100644 --- a/lib/services/apimanagement/lib/operations/apiDiagnostic.js +++ b/lib/services/apimanagement/lib/operations/apiDiagnostic.js @@ -639,38 +639,8 @@ function _get(resourceGroupName, serviceName, apiId, diagnosticId, options, call * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -921,38 +891,8 @@ function _createOrUpdate(resourceGroupName, serviceName, apiId, diagnosticId, pa * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -1813,38 +1753,8 @@ class ApiDiagnostic { * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -1889,38 +1799,8 @@ class ApiDiagnostic { * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -1988,38 +1868,8 @@ class ApiDiagnostic { * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -2066,38 +1916,8 @@ class ApiDiagnostic { * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * diff --git a/lib/services/apimanagement/lib/operations/diagnostic.js b/lib/services/apimanagement/lib/operations/diagnostic.js index e49cc5615f..36ca9c25fb 100644 --- a/lib/services/apimanagement/lib/operations/diagnostic.js +++ b/lib/services/apimanagement/lib/operations/diagnostic.js @@ -573,38 +573,8 @@ function _get(resourceGroupName, serviceName, diagnosticId, options, callback) { * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -833,38 +803,8 @@ function _createOrUpdate(resourceGroupName, serviceName, diagnosticId, parameter * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -1665,38 +1605,8 @@ class Diagnostic { * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -1738,38 +1648,8 @@ class Diagnostic { * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -1833,38 +1713,8 @@ class Diagnostic { * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -1907,38 +1757,8 @@ class Diagnostic { * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * diff --git a/lib/services/apimanagement/lib/operations/group.js b/lib/services/apimanagement/lib/operations/group.js index 4ee37577f2..16f9d121de 100644 --- a/lib/services/apimanagement/lib/operations/group.js +++ b/lib/services/apimanagement/lib/operations/group.js @@ -589,8 +589,8 @@ function _get(resourceGroupName, serviceName, groupId, options, callback) { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {object} [options] Optional Parameters. * @@ -829,8 +829,8 @@ function _createOrUpdate(resourceGroupName, serviceName, groupId, parameters, op * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -1654,8 +1654,8 @@ class Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {object} [options] Optional Parameters. * @@ -1707,8 +1707,8 @@ class Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {object} [options] Optional Parameters. * @@ -1782,8 +1782,8 @@ class Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -1836,8 +1836,8 @@ class Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * diff --git a/lib/services/apimanagement/lib/operations/index.d.ts b/lib/services/apimanagement/lib/operations/index.d.ts index f676176313..88e9dc2ea2 100644 --- a/lib/services/apimanagement/lib/operations/index.d.ts +++ b/lib/services/apimanagement/lib/operations/index.d.ts @@ -4579,38 +4579,8 @@ export interface ApiDiagnostic { * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -4643,38 +4613,8 @@ export interface ApiDiagnostic { * * @param {object} parameters Create parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * @@ -4727,38 +4667,8 @@ export interface ApiDiagnostic { * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -4793,38 +4703,8 @@ export interface ApiDiagnostic { * * @param {object} parameters Diagnostic Update parameters. * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. - * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -4998,15 +4878,15 @@ export interface ApiDiagnostic { /** * @class - * ApiIssue + * ApiDiagnosticLogger * __NOTE__: An instance of this class is automatically created for an * instance of the ApiManagementClient. */ -export interface ApiIssue { +export interface ApiDiagnosticLogger { /** - * Lists all issues assosiated with the specified API. + * Lists all loggers assosiated with the specified Diagnostic of an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5015,16 +4895,16 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] | Field | Supported operators | * Supported functions | * |-------------|------------------------|-----------------------------------| * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | - * | state | eq | - * | - * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, - * endswith | + * | type | eq | | * * @param {number} [options.top] Number of records to return. * @@ -5035,14 +4915,14 @@ export interface ApiIssue { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all issues assosiated with the specified API. + * Lists all loggers assosiated with the specified Diagnostic of an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5051,16 +4931,16 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] | Field | Supported operators | * Supported functions | * |-------------|------------------------|-----------------------------------| * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | - * | state | eq | - * | - * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, - * endswith | + * | type | eq | | * * @param {number} [options.top] Number of records to return. * @@ -5076,7 +4956,7 @@ export interface ApiIssue { * * {Promise} A promise is returned. * - * @resolve {IssueCollection} - The deserialized result object. + * @resolve {LoggerCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5084,21 +4964,21 @@ export interface ApiIssue { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueCollection} [result] - The deserialized result object if an error did not occur. - * See {@link IssueCollection} for more information. + * {LoggerCollection} [result] - The deserialized result object if an error did not occur. + * See {@link LoggerCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - listByService(resourceGroupName: string, serviceName: string, apiId: string, callback: ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, apiId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the entity state (Etag) version of the Issue for an API specified by - * its identifier. + * Checks that logger entity specified by identifier is associated with the + * diagnostics entity. * * @param {string} resourceGroupName The name of the resource group. * @@ -5107,7 +4987,10 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * - * @param {string} issueId Issue identifier. Must be unique in the current API + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * + * @param {string} loggerid Logger identifier. Must be unique in the API * Management service instance. * * @param {object} [options] Optional Parameters. @@ -5117,15 +5000,15 @@ export interface ApiIssue { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + checkEntityExistsWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the entity state (Etag) version of the Issue for an API specified by - * its identifier. + * Checks that logger entity specified by identifier is associated with the + * diagnostics entity. * * @param {string} resourceGroupName The name of the resource group. * @@ -5134,7 +5017,10 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * - * @param {string} issueId Issue identifier. Must be unique in the current API + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * + * @param {string} loggerid Logger identifier. Must be unique in the API * Management service instance. * * @param {object} [options] Optional Parameters. @@ -5149,7 +5035,7 @@ export interface ApiIssue { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {Boolean} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5157,19 +5043,19 @@ export interface ApiIssue { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {Boolean} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + checkEntityExists(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, callback: ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the details of the Issue for an API specified by its identifier. + * Attaches a logger to a dignostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5178,7 +5064,10 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * - * @param {string} issueId Issue identifier. Must be unique in the current API + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * + * @param {string} loggerid Logger identifier. Must be unique in the API * Management service instance. * * @param {object} [options] Optional Parameters. @@ -5188,14 +5077,14 @@ export interface ApiIssue { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the details of the Issue for an API specified by its identifier. + * Attaches a logger to a dignostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5204,7 +5093,10 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * - * @param {string} issueId Issue identifier. Must be unique in the current API + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * + * @param {string} loggerid Logger identifier. Must be unique in the API * Management service instance. * * @param {object} [options] Optional Parameters. @@ -5219,7 +5111,7 @@ export interface ApiIssue { * * {Promise} A promise is returned. * - * @resolve {IssueContract} - The deserialized result object. + * @resolve {LoggerContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5227,20 +5119,20 @@ export interface ApiIssue { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueContract} [result] - The deserialized result object if an error did not occur. - * See {@link IssueContract} for more information. + * {LoggerContract} [result] - The deserialized result object if an error did not occur. + * See {@link LoggerContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a new Issue for an API or updates an existing one. + * Deletes the specified Logger from Diagnostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5249,46 +5141,27 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * - * @param {string} issueId Issue identifier. Must be unique in the current API - * Management service instance. - * - * @param {object} parameters Create parameters. - * - * @param {string} parameters.title The issue title. - * - * @param {string} parameters.description Text describing the issue. - * - * @param {date} [parameters.createdDate] Date and time when the issue was - * created. - * - * @param {string} [parameters.state] Status of the issue. Possible values - * include: 'proposed', 'open', 'removed', 'resolved', 'closed' - * - * @param {string} parameters.userId A resource identifier for the user created - * the issue. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * - * @param {string} [parameters.apiId] A resource identifier for the API the - * issue was created for. + * @param {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.ifMatch] ETag of the Issue Entity. ETag should - * match the current entity state from the header response of the GET request - * or it should be * for unconditional update. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a new Issue for an API or updates an existing one. + * Deletes the specified Logger from Diagnostic for an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5297,33 +5170,14 @@ export interface ApiIssue { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * - * @param {string} issueId Issue identifier. Must be unique in the current API - * Management service instance. - * - * @param {object} parameters Create parameters. - * - * @param {string} parameters.title The issue title. - * - * @param {string} parameters.description Text describing the issue. - * - * @param {date} [parameters.createdDate] Date and time when the issue was - * created. - * - * @param {string} [parameters.state] Status of the issue. Possible values - * include: 'proposed', 'open', 'removed', 'resolved', 'closed' - * - * @param {string} parameters.userId A resource identifier for the user created - * the issue. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * - * @param {string} [parameters.apiId] A resource identifier for the API the - * issue was created for. + * @param {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.ifMatch] ETag of the Issue Entity. ETag should - * match the current entity state from the header response of the GET request - * or it should be * for unconditional update. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -5334,7 +5188,7 @@ export interface ApiIssue { * * {Promise} A promise is returned. * - * @resolve {IssueContract} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5342,34 +5196,22 @@ export interface ApiIssue { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueContract} [result] - The deserialized result object if an error did not occur. - * See {@link IssueContract} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, diagnosticId: string, loggerid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the specified Issue from an API. - * - * @param {string} resourceGroupName The name of the resource group. + * Lists all loggers assosiated with the specified Diagnostic of an API. * - * @param {string} serviceName The name of the API Management service. - * - * @param {string} apiId API identifier. Must be unique in the current API - * Management service instance. - * - * @param {string} issueId Issue identifier. Must be unique in the current API - * Management service instance. - * - * @param {string} ifMatch ETag of the Issue Entity. ETag should match the - * current entity state from the header response of the GET request or it - * should be * for unconditional update. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5378,28 +5220,17 @@ export interface ApiIssue { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified Issue from an API. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} serviceName The name of the API Management service. - * - * @param {string} apiId API identifier. Must be unique in the current API - * Management service instance. - * - * @param {string} issueId Issue identifier. Must be unique in the current API - * Management service instance. + * Lists all loggers assosiated with the specified Diagnostic of an API. * - * @param {string} ifMatch ETag of the Issue Entity. ETag should match the - * current entity state from the header response of the GET request or it - * should be * for unconditional update. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -5413,7 +5244,7 @@ export interface ApiIssue { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {LoggerCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5421,102 +5252,45 @@ export interface ApiIssue { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {LoggerCollection} [result] - The deserialized result object if an error did not occur. + * See {@link LoggerCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * ApiIssue + * __NOTE__: An instance of this class is automatically created for an + * instance of the ApiManagementClient. + */ +export interface ApiIssue { /** * Lists all issues assosiated with the specified API. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [options] Optional Parameters. + * @param {string} serviceName The name of the API Management service. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Lists all issues assosiated with the specified API. - * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {IssueCollection} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {IssueCollection} [result] - The deserialized result object if an error did not occur. - * See {@link IssueCollection} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; - listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * ApiIssueComment - * __NOTE__: An instance of this class is automatically created for an - * instance of the ApiManagementClient. - */ -export interface ApiIssueComment { - - - /** - * Lists all comments for the Issue assosiated with the specified API. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} serviceName The name of the API Management service. - * - * @param {string} apiId API identifier. Must be unique in the current API - * Management service instance. - * - * @param {string} issueId Issue identifier. Must be unique in the current API - * Management service instance. - * - * @param {object} [options] Optional Parameters. + * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] | Field | Supported operators | * Supported functions | * |-------------|------------------------|-----------------------------------| * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * | state | eq | + * | * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, * endswith | * @@ -5529,14 +5303,14 @@ export interface ApiIssueComment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all issues assosiated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5545,15 +5319,14 @@ export interface ApiIssueComment { * @param {string} apiId API identifier. Must be unique in the current API * Management service instance. * - * @param {string} issueId Issue identifier. Must be unique in the current API - * Management service instance. - * * @param {object} [options] Optional Parameters. * * @param {string} [options.filter] | Field | Supported operators | * Supported functions | * |-------------|------------------------|-----------------------------------| * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * | state | eq | + * | * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, * endswith | * @@ -5571,7 +5344,7 @@ export interface ApiIssueComment { * * {Promise} A promise is returned. * - * @resolve {IssueCommentCollection} - The deserialized result object. + * @resolve {IssueCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5579,22 +5352,21 @@ export interface ApiIssueComment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueCommentCollection} [result] - The deserialized result object if an error did not occur. - * See {@link IssueCommentCollection} for more - * information. + * {IssueCollection} [result] - The deserialized result object if an error did not occur. + * See {@link IssueCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, apiId: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the entity state (Etag) version of the issue Comment for an API - * specified by its identifier. + * Gets the entity state (Etag) version of the Issue for an API specified by + * its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -5606,9 +5378,6 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5620,11 +5389,11 @@ export interface ApiIssueComment { * * @reject {Error|ServiceError} - The error object. */ - getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the entity state (Etag) version of the issue Comment for an API - * specified by its identifier. + * Gets the entity state (Etag) version of the Issue for an API specified by + * its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -5636,9 +5405,6 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5665,14 +5431,13 @@ export interface ApiIssueComment { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, callback: ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the details of the issue Comment for an API specified by its - * identifier. + * Gets the details of the Issue for an API specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -5684,9 +5449,6 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5694,15 +5456,14 @@ export interface ApiIssueComment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the details of the issue Comment for an API specified by its - * identifier. + * Gets the details of the Issue for an API specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -5714,9 +5475,6 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -5729,7 +5487,7 @@ export interface ApiIssueComment { * * {Promise} A promise is returned. * - * @resolve {IssueCommentContract} - The deserialized result object. + * @resolve {IssueContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5737,20 +5495,20 @@ export interface ApiIssueComment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueCommentContract} [result] - The deserialized result object if an error did not occur. - * See {@link IssueCommentContract} for more information. + * {IssueContract} [result] - The deserialized result object if an error did not occur. + * See {@link IssueContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a new Comment for the Issue in an API or updates an existing one. + * Creates a new Issue for an API or updates an existing one. * * @param {string} resourceGroupName The name of the resource group. * @@ -5762,18 +5520,23 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {object} parameters Create parameters. * - * @param {string} parameters.text Comment text. + * @param {string} parameters.title The issue title. * - * @param {date} [parameters.createdDate] Date and time when the comment was + * @param {string} parameters.description Text describing the issue. + * + * @param {date} [parameters.createdDate] Date and time when the issue was * created. * - * @param {string} parameters.userId A resource identifier for the user who - * left the comment. + * @param {string} [parameters.state] Status of the issue. Possible values + * include: 'proposed', 'open', 'removed', 'resolved', 'closed' + * + * @param {string} parameters.userId A resource identifier for the user created + * the issue. + * + * @param {string} [parameters.apiId] A resource identifier for the API the + * issue was created for. * * @param {object} [options] Optional Parameters. * @@ -5786,14 +5549,14 @@ export interface ApiIssueComment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a new Comment for the Issue in an API or updates an existing one. + * Creates a new Issue for an API or updates an existing one. * * @param {string} resourceGroupName The name of the resource group. * @@ -5805,18 +5568,23 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {object} parameters Create parameters. * - * @param {string} parameters.text Comment text. + * @param {string} parameters.title The issue title. * - * @param {date} [parameters.createdDate] Date and time when the comment was + * @param {string} parameters.description Text describing the issue. + * + * @param {date} [parameters.createdDate] Date and time when the issue was * created. * - * @param {string} parameters.userId A resource identifier for the user who - * left the comment. + * @param {string} [parameters.state] Status of the issue. Possible values + * include: 'proposed', 'open', 'removed', 'resolved', 'closed' + * + * @param {string} parameters.userId A resource identifier for the user created + * the issue. + * + * @param {string} [parameters.apiId] A resource identifier for the API the + * issue was created for. * * @param {object} [options] Optional Parameters. * @@ -5834,7 +5602,7 @@ export interface ApiIssueComment { * * {Promise} A promise is returned. * - * @resolve {IssueCommentContract} - The deserialized result object. + * @resolve {IssueContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5842,20 +5610,20 @@ export interface ApiIssueComment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueCommentContract} [result] - The deserialized result object if an error did not occur. - * See {@link IssueCommentContract} for more information. + * {IssueContract} [result] - The deserialized result object if an error did not occur. + * See {@link IssueContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, parameters: models.IssueContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the specified comment from an Issue. + * Deletes the specified Issue from an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5867,9 +5635,6 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {string} ifMatch ETag of the Issue Entity. ETag should match the * current entity state from the header response of the GET request or it * should be * for unconditional update. @@ -5885,10 +5650,10 @@ export interface ApiIssueComment { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified comment from an Issue. + * Deletes the specified Issue from an API. * * @param {string} resourceGroupName The name of the resource group. * @@ -5900,9 +5665,6 @@ export interface ApiIssueComment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} commentId Comment identifier within an Issue. Must be unique - * in the current Issue. - * * @param {string} ifMatch ETag of the Issue Entity. ETag should match the * current entity state from the header response of the GET request or it * should be * for unconditional update. @@ -5933,13 +5695,13 @@ export interface ApiIssueComment { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all issues assosiated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -5951,14 +5713,14 @@ export interface ApiIssueComment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all comments for the Issue assosiated with the specified API. + * Lists all issues assosiated with the specified API. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -5975,7 +5737,7 @@ export interface ApiIssueComment { * * {Promise} A promise is returned. * - * @resolve {IssueCommentCollection} - The deserialized result object. + * @resolve {IssueCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -5983,26 +5745,25 @@ export interface ApiIssueComment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueCommentCollection} [result] - The deserialized result object if an error did not occur. - * See {@link IssueCommentCollection} for more - * information. + * {IssueCollection} [result] - The deserialized result object if an error did not occur. + * See {@link IssueCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; - listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * ApiIssueAttachment + * ApiIssueComment * __NOTE__: An instance of this class is automatically created for an * instance of the ApiManagementClient. */ -export interface ApiIssueAttachment { +export interface ApiIssueComment { /** @@ -6036,11 +5797,11 @@ export interface ApiIssueAttachment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all comments for the Issue assosiated with the specified API. @@ -6078,7 +5839,7 @@ export interface ApiIssueAttachment { * * {Promise} A promise is returned. * - * @resolve {IssueAttachmentCollection} - The deserialized result object. + * @resolve {IssueCommentCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6086,21 +5847,21 @@ export interface ApiIssueAttachment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueAttachmentCollection} [result] - The deserialized result object if an error did not occur. - * See {@link IssueAttachmentCollection} for more + * {IssueCommentCollection} [result] - The deserialized result object if an error did not occur. + * See {@link IssueCommentCollection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the entity state (Etag) version of the issue Attachment for an API + * Gets the entity state (Etag) version of the issue Comment for an API * specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. @@ -6113,8 +5874,8 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {object} [options] Optional Parameters. * @@ -6127,10 +5888,10 @@ export interface ApiIssueAttachment { * * @reject {Error|ServiceError} - The error object. */ - getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the entity state (Etag) version of the issue Attachment for an API + * Gets the entity state (Etag) version of the issue Comment for an API * specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. @@ -6143,8 +5904,8 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {object} [options] Optional Parameters. * @@ -6172,13 +5933,13 @@ export interface ApiIssueAttachment { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, callback: ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the details of the issue Attachment for an API specified by its + * Gets the details of the issue Comment for an API specified by its * identifier. * * @param {string} resourceGroupName The name of the resource group. @@ -6191,8 +5952,8 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {object} [options] Optional Parameters. * @@ -6201,14 +5962,14 @@ export interface ApiIssueAttachment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the details of the issue Attachment for an API specified by its + * Gets the details of the issue Comment for an API specified by its * identifier. * * @param {string} resourceGroupName The name of the resource group. @@ -6221,8 +5982,8 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {object} [options] Optional Parameters. * @@ -6236,7 +5997,7 @@ export interface ApiIssueAttachment { * * {Promise} A promise is returned. * - * @resolve {IssueAttachmentContract} - The deserialized result object. + * @resolve {IssueCommentContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6244,21 +6005,20 @@ export interface ApiIssueAttachment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueAttachmentContract} [result] - The deserialized result object if an error did not occur. - * See {@link IssueAttachmentContract} for more - * information. + * {IssueCommentContract} [result] - The deserialized result object if an error did not occur. + * See {@link IssueCommentContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates a new Attachment for the Issue in an API or updates an existing one. + * Creates a new Comment for the Issue in an API or updates an existing one. * * @param {string} resourceGroupName The name of the resource group. * @@ -6270,20 +6030,18 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {object} parameters Create parameters. * - * @param {string} parameters.title Filename by which the binary data will be - * saved. + * @param {string} parameters.text Comment text. * - * @param {string} parameters.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. + * @param {date} [parameters.createdDate] Date and time when the comment was + * created. * - * @param {string} parameters.content An HTTP link or Base64-encoded binary - * data. + * @param {string} parameters.userId A resource identifier for the user who + * left the comment. * * @param {object} [options] Optional Parameters. * @@ -6296,14 +6054,14 @@ export interface ApiIssueAttachment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a new Attachment for the Issue in an API or updates an existing one. + * Creates a new Comment for the Issue in an API or updates an existing one. * * @param {string} resourceGroupName The name of the resource group. * @@ -6315,20 +6073,18 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {object} parameters Create parameters. * - * @param {string} parameters.title Filename by which the binary data will be - * saved. + * @param {string} parameters.text Comment text. * - * @param {string} parameters.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. + * @param {date} [parameters.createdDate] Date and time when the comment was + * created. * - * @param {string} parameters.content An HTTP link or Base64-encoded binary - * data. + * @param {string} parameters.userId A resource identifier for the user who + * left the comment. * * @param {object} [options] Optional Parameters. * @@ -6346,7 +6102,7 @@ export interface ApiIssueAttachment { * * {Promise} A promise is returned. * - * @resolve {IssueAttachmentContract} - The deserialized result object. + * @resolve {IssueCommentContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6354,17 +6110,16 @@ export interface ApiIssueAttachment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueAttachmentContract} [result] - The deserialized result object if an error did not occur. - * See {@link IssueAttachmentContract} for more - * information. + * {IssueCommentContract} [result] - The deserialized result object if an error did not occur. + * See {@link IssueCommentContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, parameters: models.IssueCommentContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -6380,8 +6135,8 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {string} ifMatch ETag of the Issue Entity. ETag should match the * current entity state from the header response of the GET request or it @@ -6398,7 +6153,7 @@ export interface ApiIssueAttachment { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Deletes the specified comment from an Issue. @@ -6413,8 +6168,8 @@ export interface ApiIssueAttachment { * @param {string} issueId Issue identifier. Must be unique in the current API * Management service instance. * - * @param {string} attachmentId Attachment identifier within an Issue. Must be - * unique in the current Issue. + * @param {string} commentId Comment identifier within an Issue. Must be unique + * in the current Issue. * * @param {string} ifMatch ETag of the Issue Entity. ETag should match the * current entity state from the header response of the GET request or it @@ -6446,9 +6201,9 @@ export interface ApiIssueAttachment { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, commentId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -6464,11 +6219,11 @@ export interface ApiIssueAttachment { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all comments for the Issue assosiated with the specified API. @@ -6488,7 +6243,7 @@ export interface ApiIssueAttachment { * * {Promise} A promise is returned. * - * @resolve {IssueAttachmentCollection} - The deserialized result object. + * @resolve {IssueCommentCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6496,44 +6251,48 @@ export interface ApiIssueAttachment { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {IssueAttachmentCollection} [result] - The deserialized result object if an error did not occur. - * See {@link IssueAttachmentCollection} for more + * {IssueCommentCollection} [result] - The deserialized result object if an error did not occur. + * See {@link IssueCommentCollection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; - listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** * @class - * AuthorizationServer + * ApiIssueAttachment * __NOTE__: An instance of this class is automatically created for an * instance of the ApiManagementClient. */ -export interface AuthorizationServer { +export interface ApiIssueAttachment { /** - * Lists a collection of authorization servers defined within a service - * instance. + * Lists all comments for the Issue assosiated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. + * * @param {object} [options] Optional Parameters. * - * @param {string} [options.filter] | Field | Supported operators | - * Supported functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------------|------------------------|-----------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, * endswith | * * @param {number} [options.top] Number of records to return. @@ -6545,28 +6304,32 @@ export interface AuthorizationServer { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists a collection of authorization servers defined within a service - * instance. + * Lists all comments for the Issue assosiated with the specified API. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. + * * @param {object} [options] Optional Parameters. * - * @param {string} [options.filter] | Field | Supported operators | - * Supported functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------------|------------------------|-----------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * | userId | ge, le, eq, ne, gt, lt | substringof, startswith, * endswith | * * @param {number} [options.top] Number of records to return. @@ -6583,7 +6346,7 @@ export interface AuthorizationServer { * * {Promise} A promise is returned. * - * @resolve {AuthorizationServerCollection} - The deserialized result object. + * @resolve {IssueAttachmentCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6591,28 +6354,35 @@ export interface AuthorizationServer { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {AuthorizationServerCollection} [result] - The deserialized result object if an error did not occur. - * See {@link AuthorizationServerCollection} for more + * {IssueAttachmentCollection} [result] - The deserialized result object if an error did not occur. + * See {@link IssueAttachmentCollection} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByService(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - listByService(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the entity state (Etag) version of the authorizationServer specified by - * its identifier. + * Gets the entity state (Etag) version of the issue Attachment for an API + * specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} authsid Identifier of the authorization server. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. * * @param {object} [options] Optional Parameters. * @@ -6625,17 +6395,24 @@ export interface AuthorizationServer { * * @reject {Error|ServiceError} - The error object. */ - getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the entity state (Etag) version of the authorizationServer specified by - * its identifier. + * Gets the entity state (Etag) version of the issue Attachment for an API + * specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} authsid Identifier of the authorization server. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. * * @param {object} [options] Optional Parameters. * @@ -6663,19 +6440,27 @@ export interface AuthorizationServer { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, callback: ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the details of the authorization server specified by its identifier. + * Gets the details of the issue Attachment for an API specified by its + * identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} authsid Identifier of the authorization server. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. * * @param {object} [options] Optional Parameters. * @@ -6684,22 +6469,30 @@ export interface AuthorizationServer { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the details of the authorization server specified by its identifier. + * Gets the details of the issue Attachment for an API specified by its + * identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} authsid Identifier of the authorization server. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. * - * @param {object} [options] Optional Parameters. + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. + * + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. + * + * @param {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -6711,7 +6504,7 @@ export interface AuthorizationServer { * * {Promise} A promise is returned. * - * @resolve {AuthorizationServerContract} - The deserialized result object. + * @resolve {IssueAttachmentContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6719,180 +6512,184 @@ export interface AuthorizationServer { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {AuthorizationServerContract} [result] - The deserialized result object if an error did not occur. - * See {@link AuthorizationServerContract} for more + * {IssueAttachmentContract} [result] - The deserialized result object if an error did not occur. + * See {@link IssueAttachmentContract} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serviceName: string, authsid: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, authsid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates new authorization server or updates an existing authorization - * server. + * Creates a new Attachment for the Issue in an API or updates an existing one. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} authsid Identifier of the authorization server. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. * - * @param {object} parameters Create or update parameters. + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. * - * @param {string} [parameters.description] Description of the authorization - * server. Can contain HTML formatting tags. + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. * - * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the - * authorization endpoint. GET must be always present. POST is optional. + * @param {object} parameters Create parameters. * - * @param {array} [parameters.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. + * @param {string} parameters.title Filename by which the binary data will be + * saved. * - * @param {array} [parameters.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"}. + * @param {string} parameters.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. * - * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains - * absolute URI to entity being referenced. + * @param {string} parameters.content An HTTP link or Base64-encoded binary + * data. * - * @param {boolean} [parameters.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. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.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. + * @param {string} [options.ifMatch] ETag of the Issue Entity. ETag should + * match the current entity state from the header response of the GET request + * or it should be * for unconditional update. * - * @param {array} [parameters.bearerTokenSendingMethods] Specifies the - * mechanism by which access token is passed to the API. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.clientSecret] Client or app secret registered - * with this authorization server. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.resourceOwnerUsername] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner username. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.resourceOwnerPassword] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner password. + * @reject {Error|ServiceError} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates a new Attachment for the Issue in an API or updates an existing one. * - * @param {string} parameters.displayName User-friendly authorization server - * name. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} parameters.clientRegistrationEndpoint Optional reference to - * a page where client or app registration for this authorization server is - * performed. Contains absolute URL to entity being referenced. + * @param {string} serviceName The name of the API Management service. * - * @param {string} parameters.authorizationEndpoint OAuth authorization - * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. * - * @param {array} parameters.grantTypes Form of an authorization grant, which - * the client uses to request the access token. + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. * - * @param {string} parameters.clientId Client or app id registered with this - * authorization server. + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. + * + * @param {object} parameters Create parameters. + * + * @param {string} parameters.title Filename by which the binary data will be + * saved. + * + * @param {string} parameters.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. + * + * @param {string} parameters.content An HTTP link or Base64-encoded binary + * data. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.ifMatch] ETag of the Entity. Not required when - * creating an entity, but required when updating an entity. + * @param {string} [options.ifMatch] ETag of the Issue Entity. ETag should + * match the current entity state from the header response of the GET request + * or it should be * for unconditional update. * * @param {object} [options.customHeaders] Headers that will be added to the * request * - * @returns {Promise} A promise is returned + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @reject {Error|ServiceError} - The error object. + * {Promise} A promise is returned. + * + * @resolve {IssueAttachmentContract} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {IssueAttachmentContract} [result] - The deserialized result object if an error did not occur. + * See {@link IssueAttachmentContract} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, parameters: models.IssueAttachmentContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** - * Creates new authorization server or updates an existing authorization - * server. + * Deletes the specified comment from an Issue. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} authsid Identifier of the authorization server. - * - * @param {object} parameters Create or update parameters. - * - * @param {string} [parameters.description] Description of the authorization - * server. Can contain HTML formatting tags. - * - * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the - * authorization endpoint. GET must be always present. POST is optional. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. * - * @param {array} [parameters.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. + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. * - * @param {array} [parameters.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"}. + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. * - * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains - * absolute URI to entity being referenced. + * @param {string} ifMatch ETag of the Issue Entity. ETag should match the + * current entity state from the header response of the GET request or it + * should be * for unconditional update. * - * @param {boolean} [parameters.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. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.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. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.bearerTokenSendingMethods] Specifies the - * mechanism by which access token is passed to the API. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.clientSecret] Client or app secret registered - * with this authorization server. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} [parameters.resourceOwnerUsername] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner username. + * @reject {Error|ServiceError} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes the specified comment from an Issue. * - * @param {string} [parameters.resourceOwnerPassword] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner password. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} parameters.displayName User-friendly authorization server - * name. + * @param {string} serviceName The name of the API Management service. * - * @param {string} parameters.clientRegistrationEndpoint Optional reference to - * a page where client or app registration for this authorization server is - * performed. Contains absolute URL to entity being referenced. + * @param {string} apiId API identifier. Must be unique in the current API + * Management service instance. * - * @param {string} parameters.authorizationEndpoint OAuth authorization - * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. + * @param {string} issueId Issue identifier. Must be unique in the current API + * Management service instance. * - * @param {array} parameters.grantTypes Form of an authorization grant, which - * the client uses to request the access token. + * @param {string} attachmentId Attachment identifier within an Issue. Must be + * unique in the current Issue. * - * @param {string} parameters.clientId Client or app id registered with this - * authorization server. + * @param {string} ifMatch ETag of the Issue Entity. ETag should match the + * current entity state from the header response of the GET request or it + * should be * for unconditional update. * * @param {object} [options] Optional Parameters. * - * @param {string} [options.ifMatch] ETag of the Entity. Not required when - * creating an entity, but required when updating an entity. - * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -6903,7 +6700,7 @@ export interface AuthorizationServer { * * {Promise} A promise is returned. * - * @resolve {AuthorizationServerContract} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -6911,179 +6708,138 @@ export interface AuthorizationServer { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {AuthorizationServerContract} [result] - The deserialized result object if an error did not occur. - * See {@link AuthorizationServerContract} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, apiId: string, issueId: string, attachmentId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates the details of the authorization server specified by its identifier. + * Lists all comments for the Issue assosiated with the specified API. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {string} serviceName The name of the API Management service. + * @param {object} [options] Optional Parameters. * - * @param {string} authsid Identifier of the authorization server. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} parameters OAuth2 Server settings Update parameters. + * @returns {Promise} A promise is returned * - * @param {string} [parameters.description] Description of the authorization - * server. Can contain HTML formatting tags. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the - * authorization endpoint. GET must be always present. POST is optional. + * @reject {Error|ServiceError} - The error object. + */ + listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists all comments for the Issue assosiated with the specified API. * - * @param {array} [parameters.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. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {array} [parameters.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"}. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains - * absolute URI to entity being referenced. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {boolean} [parameters.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. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {string} [parameters.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. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {array} [parameters.bearerTokenSendingMethods] Specifies the - * mechanism by which access token is passed to the API. + * {Promise} A promise is returned. * - * @param {string} [parameters.clientSecret] Client or app secret registered - * with this authorization server. + * @resolve {IssueAttachmentCollection} - The deserialized result object. * - * @param {string} [parameters.resourceOwnerUsername] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner username. + * @reject {Error|ServiceError} - The error object. * - * @param {string} [parameters.resourceOwnerPassword] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner password. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {string} [parameters.displayName] User-friendly authorization server - * name. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.clientRegistrationEndpoint] Optional reference - * to a page where client or app registration for this authorization server is - * performed. Contains absolute URL to entity being referenced. + * {IssueAttachmentCollection} [result] - The deserialized result object if an error did not occur. + * See {@link IssueAttachmentCollection} for more + * information. * - * @param {string} [parameters.authorizationEndpoint] OAuth authorization - * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {array} [parameters.grantTypes] Form of an authorization grant, which - * the client uses to request the access token. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * AuthorizationServer + * __NOTE__: An instance of this class is automatically created for an + * instance of the ApiManagementClient. + */ +export interface AuthorizationServer { + + + /** + * Lists a collection of authorization servers defined within a service + * instance. * - * @param {string} [parameters.clientId] Client or app id registered with this - * authorization server. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} 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 {string} serviceName The name of the API Management service. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------|------------------------|---------------------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | + * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | + * + * @param {number} [options.top] Number of records to return. + * + * @param {number} [options.skip] Number of records to skip. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the details of the authorization server specified by its identifier. + * Lists a collection of authorization servers defined within a service + * instance. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} authsid Identifier of the authorization server. - * - * @param {object} parameters OAuth2 Server settings Update parameters. - * - * @param {string} [parameters.description] Description of the authorization - * server. Can contain HTML formatting tags. - * - * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the - * authorization endpoint. GET must be always present. POST is optional. - * - * @param {array} [parameters.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. - * - * @param {array} [parameters.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"}. - * - * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains - * absolute URI to entity being referenced. - * - * @param {boolean} [parameters.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. - * - * @param {string} [parameters.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. - * - * @param {array} [parameters.bearerTokenSendingMethods] Specifies the - * mechanism by which access token is passed to the API. - * - * @param {string} [parameters.clientSecret] Client or app secret registered - * with this authorization server. - * - * @param {string} [parameters.resourceOwnerUsername] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner username. - * - * @param {string} [parameters.resourceOwnerPassword] Can be optionally - * specified when resource owner password grant type is supported by this - * authorization server. Default resource owner password. - * - * @param {string} [parameters.displayName] User-friendly authorization server - * name. - * - * @param {string} [parameters.clientRegistrationEndpoint] Optional reference - * to a page where client or app registration for this authorization server is - * performed. Contains absolute URL to entity being referenced. - * - * @param {string} [parameters.authorizationEndpoint] OAuth authorization - * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. - * - * @param {array} [parameters.grantTypes] Form of an authorization grant, which - * the client uses to request the access token. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.clientId] Client or app id registered with this - * authorization server. + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------|------------------------|---------------------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | + * | name | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | * - * @param {string} 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 {number} [options.top] Number of records to return. * - * @param {object} [options] Optional Parameters. + * @param {number} [options.skip] Number of records to skip. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -7095,7 +6851,7 @@ export interface AuthorizationServer { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {AuthorizationServerCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7103,19 +6859,22 @@ export interface AuthorizationServer { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {AuthorizationServerCollection} [result] - The deserialized result object if an error did not occur. + * See {@link AuthorizationServerCollection} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, callback: ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes specific authorization server instance. + * Gets the entity state (Etag) version of the authorizationServer specified by + * its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -7123,10 +6882,6 @@ export interface AuthorizationServer { * * @param {string} authsid Identifier of the authorization server. * - * @param {string} 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 {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -7138,10 +6893,11 @@ export interface AuthorizationServer { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes specific authorization server instance. + * Gets the entity state (Etag) version of the authorizationServer specified by + * its identifier. * * @param {string} resourceGroupName The name of the resource group. * @@ -7149,10 +6905,6 @@ export interface AuthorizationServer { * * @param {string} authsid Identifier of the authorization server. * - * @param {string} 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 {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -7179,17 +6931,19 @@ export interface AuthorizationServer { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, authsid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists a collection of authorization servers defined within a service - * instance. + * Gets the details of the authorization server specified by its identifier. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} authsid Identifier of the authorization server. * * @param {object} [options] Optional Parameters. * @@ -7198,18 +6952,20 @@ export interface AuthorizationServer { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists a collection of authorization servers defined within a service - * instance. + * Gets the details of the authorization server specified by its identifier. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} authsid Identifier of the authorization server. * * @param {object} [options] Optional Parameters. * @@ -7223,7 +6979,7 @@ export interface AuthorizationServer { * * {Promise} A promise is returned. * - * @resolve {AuthorizationServerCollection} - The deserialized result object. + * @resolve {AuthorizationServerContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7231,212 +6987,180 @@ export interface AuthorizationServer { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {AuthorizationServerCollection} [result] - The deserialized result object if an error did not occur. - * See {@link AuthorizationServerCollection} for more + * {AuthorizationServerContract} [result] - The deserialized result object if an error did not occur. + * See {@link AuthorizationServerContract} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; - listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} + get(resourceGroupName: string, serviceName: string, authsid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serviceName: string, authsid: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, authsid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -/** - * @class - * Backend - * __NOTE__: An instance of this class is automatically created for an - * instance of the ApiManagementClient. - */ -export interface Backend { - - - /** - * Lists a collection of backends in the specified service instance. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} serviceName The name of the API Management service. - * - * @param {object} [options] Optional Parameters. - * - * @param {string} [options.filter] | Field | Supported operators | - * Supported functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * - * @param {number} [options.top] Number of records to return. - * - * @param {number} [options.skip] Number of records to skip. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists a collection of backends in the specified service instance. + * Creates new authorization server or updates an existing authorization + * server. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {object} [options] Optional Parameters. + * @param {string} authsid Identifier of the authorization server. * - * @param {string} [options.filter] | Field | Supported operators | - * Supported functions | - * |-------|------------------------|---------------------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | - * | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, - * endswith | + * @param {object} parameters Create or update parameters. * - * @param {number} [options.top] Number of records to return. + * @param {string} [parameters.description] Description of the authorization + * server. Can contain HTML formatting tags. * - * @param {number} [options.skip] Number of records to skip. + * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the + * authorization endpoint. GET must be always present. POST is optional. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {array} [parameters.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. * - * @param {ServiceCallback} [optionalCallback] - The optional callback. + * @param {array} [parameters.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"}. * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. + * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains + * absolute URI to entity being referenced. * - * {Promise} A promise is returned. + * @param {boolean} [parameters.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. * - * @resolve {BackendCollection} - The deserialized result object. + * @param {string} [parameters.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. * - * @reject {Error|ServiceError} - The error object. + * @param {array} [parameters.bearerTokenSendingMethods] Specifies the + * mechanism by which access token is passed to the API. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {string} [parameters.clientSecret] Client or app secret registered + * with this authorization server. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {string} [parameters.resourceOwnerUsername] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner username. * - * {BackendCollection} [result] - The deserialized result object if an error did not occur. - * See {@link BackendCollection} for more information. + * @param {string} [parameters.resourceOwnerPassword] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner password. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {string} parameters.displayName User-friendly authorization server + * name. * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listByService(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - listByService(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Gets the entity state (Etag) version of the backend specified by its - * identifier. + * @param {string} parameters.clientRegistrationEndpoint Optional reference to + * a page where client or app registration for this authorization server is + * performed. Contains absolute URL to entity being referenced. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} parameters.authorizationEndpoint OAuth authorization + * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. * - * @param {string} serviceName The name of the API Management service. + * @param {array} parameters.grantTypes Form of an authorization grant, which + * the client uses to request the access token. * - * @param {string} backendid Identifier of the Backend entity. Must be unique - * in the current API Management service instance. + * @param {string} parameters.clientId Client or app id registered with this + * authorization server. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.ifMatch] ETag of the Entity. Not required when + * creating an entity, but required when updating an entity. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the entity state (Etag) version of the backend specified by its - * identifier. + * Creates new authorization server or updates an existing authorization + * server. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} backendid Identifier of the Backend entity. Must be unique - * in the current API Management service instance. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {null} - The deserialized result object. + * @param {string} authsid Identifier of the authorization server. * - * @reject {Error|ServiceError} - The error object. + * @param {object} parameters Create or update parameters. * - * {ServiceCallback} optionalCallback(err, result, request, response) + * @param {string} [parameters.description] Description of the authorization + * server. Can contain HTML formatting tags. * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the + * authorization endpoint. GET must be always present. POST is optional. * - * {null} [result] - The deserialized result object if an error did not occur. + * @param {array} [parameters.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. * - * {WebResource} [request] - The HTTP Request object if an error did not occur. + * @param {array} [parameters.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"}. * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, callback: ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Gets the details of the backend specified by its identifier. + * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains + * absolute URI to entity being referenced. * - * @param {string} resourceGroupName The name of the resource group. + * @param {boolean} [parameters.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. * - * @param {string} serviceName The name of the API Management service. + * @param {string} [parameters.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. * - * @param {string} backendid Identifier of the Backend entity. Must be unique - * in the current API Management service instance. + * @param {array} [parameters.bearerTokenSendingMethods] Specifies the + * mechanism by which access token is passed to the API. * - * @param {object} [options] Optional Parameters. + * @param {string} [parameters.clientSecret] Client or app secret registered + * with this authorization server. * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * @param {string} [parameters.resourceOwnerUsername] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner username. * - * @returns {Promise} A promise is returned + * @param {string} [parameters.resourceOwnerPassword] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner password. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @param {string} parameters.displayName User-friendly authorization server + * name. * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Gets the details of the backend specified by its identifier. + * @param {string} parameters.clientRegistrationEndpoint Optional reference to + * a page where client or app registration for this authorization server is + * performed. Contains absolute URL to entity being referenced. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} parameters.authorizationEndpoint OAuth authorization + * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. * - * @param {string} serviceName The name of the API Management service. + * @param {array} parameters.grantTypes Form of an authorization grant, which + * the client uses to request the access token. * - * @param {string} backendid Identifier of the Backend entity. Must be unique - * in the current API Management service instance. + * @param {string} parameters.clientId Client or app id registered with this + * authorization server. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.ifMatch] ETag of the Entity. Not required when + * creating an entity, but required when updating an entity. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -7447,7 +7171,7 @@ export interface Backend { * * {Promise} A promise is returned. * - * @resolve {BackendContract} - The deserialized result object. + * @resolve {AuthorizationServerContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -7455,36 +7179,580 @@ export interface Backend { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {BackendContract} [result] - The deserialized result object if an error did not occur. - * See {@link BackendContract} for more information. + * {AuthorizationServerContract} [result] - The deserialized result object if an error did not occur. + * See {@link AuthorizationServerContract} for more + * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serviceName: string, backendid: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, backendid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates or Updates a backend. + * Updates the details of the authorization server specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {string} backendid Identifier of the Backend entity. Must be unique - * in the current API Management service instance. + * @param {string} authsid Identifier of the authorization server. * - * @param {object} parameters Create parameters. + * @param {object} parameters OAuth2 Server settings Update parameters. * - * @param {string} [parameters.title] Backend Title. + * @param {string} [parameters.description] Description of the authorization + * server. Can contain HTML formatting tags. * - * @param {string} [parameters.description] Backend Description. + * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the + * authorization endpoint. GET must be always present. POST is optional. * - * @param {string} [parameters.resourceId] Management Uri of the Resource in - * External System. This url can be the Arm Resource Id of Logic Apps, Function + * @param {array} [parameters.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. + * + * @param {array} [parameters.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"}. + * + * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains + * absolute URI to entity being referenced. + * + * @param {boolean} [parameters.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. + * + * @param {string} [parameters.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. + * + * @param {array} [parameters.bearerTokenSendingMethods] Specifies the + * mechanism by which access token is passed to the API. + * + * @param {string} [parameters.clientSecret] Client or app secret registered + * with this authorization server. + * + * @param {string} [parameters.resourceOwnerUsername] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner username. + * + * @param {string} [parameters.resourceOwnerPassword] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner password. + * + * @param {string} [parameters.displayName] User-friendly authorization server + * name. + * + * @param {string} [parameters.clientRegistrationEndpoint] Optional reference + * to a page where client or app registration for this authorization server is + * performed. Contains absolute URL to entity being referenced. + * + * @param {string} [parameters.authorizationEndpoint] OAuth authorization + * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. + * + * @param {array} [parameters.grantTypes] Form of an authorization grant, which + * the client uses to request the access token. + * + * @param {string} [parameters.clientId] Client or app id registered with this + * authorization server. + * + * @param {string} 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 {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates the details of the authorization server specified by its identifier. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} authsid Identifier of the authorization server. + * + * @param {object} parameters OAuth2 Server settings Update parameters. + * + * @param {string} [parameters.description] Description of the authorization + * server. Can contain HTML formatting tags. + * + * @param {array} [parameters.authorizationMethods] HTTP verbs supported by the + * authorization endpoint. GET must be always present. POST is optional. + * + * @param {array} [parameters.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. + * + * @param {array} [parameters.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"}. + * + * @param {string} [parameters.tokenEndpoint] OAuth token endpoint. Contains + * absolute URI to entity being referenced. + * + * @param {boolean} [parameters.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. + * + * @param {string} [parameters.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. + * + * @param {array} [parameters.bearerTokenSendingMethods] Specifies the + * mechanism by which access token is passed to the API. + * + * @param {string} [parameters.clientSecret] Client or app secret registered + * with this authorization server. + * + * @param {string} [parameters.resourceOwnerUsername] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner username. + * + * @param {string} [parameters.resourceOwnerPassword] Can be optionally + * specified when resource owner password grant type is supported by this + * authorization server. Default resource owner password. + * + * @param {string} [parameters.displayName] User-friendly authorization server + * name. + * + * @param {string} [parameters.clientRegistrationEndpoint] Optional reference + * to a page where client or app registration for this authorization server is + * performed. Contains absolute URL to entity being referenced. + * + * @param {string} [parameters.authorizationEndpoint] OAuth authorization + * endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2. + * + * @param {array} [parameters.grantTypes] Form of an authorization grant, which + * the client uses to request the access token. + * + * @param {string} [parameters.clientId] Client or app id registered with this + * authorization server. + * + * @param {string} 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 {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + update(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, callback: ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, authsid: string, parameters: models.AuthorizationServerUpdateContract, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Deletes specific authorization server instance. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} authsid Identifier of the authorization server. + * + * @param {string} 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 {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Deletes specific authorization server instance. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} authsid Identifier of the authorization server. + * + * @param {string} 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 {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + deleteMethod(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, authsid: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists a collection of authorization servers defined within a service + * instance. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists a collection of authorization servers defined within a service + * instance. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {AuthorizationServerCollection} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {AuthorizationServerCollection} [result] - The deserialized result object if an error did not occur. + * See {@link AuthorizationServerCollection} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Backend + * __NOTE__: An instance of this class is automatically created for an + * instance of the ApiManagementClient. + */ +export interface Backend { + + + /** + * Lists a collection of backends in the specified service instance. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------|------------------------|---------------------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | + * | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | + * + * @param {number} [options.top] Number of records to return. + * + * @param {number} [options.skip] Number of records to skip. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists a collection of backends in the specified service instance. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} [options] Optional Parameters. + * + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------|------------------------|---------------------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | + * | host | ge, le, eq, ne, gt, lt | substringof, contains, startswith, + * endswith | + * + * @param {number} [options.top] Number of records to return. + * + * @param {number} [options.skip] Number of records to skip. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {BackendCollection} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {BackendCollection} [result] - The deserialized result object if an error did not occur. + * See {@link BackendCollection} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByService(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets the entity state (Etag) version of the backend specified by its + * identifier. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} backendid Identifier of the Backend entity. Must be unique + * in the current API Management service instance. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the entity state (Etag) version of the backend specified by its + * identifier. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} backendid Identifier of the Backend entity. Must be unique + * in the current API Management service instance. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {null} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {null} [result] - The deserialized result object if an error did not occur. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, backendid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Gets the details of the backend specified by its identifier. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} backendid Identifier of the Backend entity. Must be unique + * in the current API Management service instance. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Gets the details of the backend specified by its identifier. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} backendid Identifier of the Backend entity. Must be unique + * in the current API Management service instance. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {BackendContract} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {BackendContract} [result] - The deserialized result object if an error did not occur. + * See {@link BackendContract} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + get(resourceGroupName: string, serviceName: string, backendid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serviceName: string, backendid: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, backendid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Creates or Updates a backend. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} backendid Identifier of the Backend entity. Must be unique + * in the current API Management service instance. + * + * @param {object} parameters Create parameters. + * + * @param {string} [parameters.title] Backend Title. + * + * @param {string} [parameters.description] Backend Description. + * + * @param {string} [parameters.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. * * @param {object} [parameters.properties] Backend Properties contract @@ -10162,39 +10430,297 @@ export interface ApiManagementService { * `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can * be used to disable TLS 1.0 on an API Management service. * - * @param {array} [parameters.certificates] List of Certificates that need to - * be installed in the API Management service. Max supported certificates that - * can be installed is 10. + * @param {array} [parameters.certificates] List of Certificates that need to + * be installed in the API Management service. Max supported certificates that + * can be installed is 10. + * + * @param {string} [parameters.virtualNetworkType] The type of VPN in which API + * Managemet service needs to be configured in. None (Default Value) means the + * API Management service is not part of any Virtual Network, External means + * the API Management deployment is set up inside a Virtual Network having an + * Internet Facing Endpoint, and Internal means that API Management deployment + * is setup inside a Virtual Network having an Intranet Facing Endpoint only. + * Possible values include: 'None', 'External', 'Internal' + * + * @param {string} parameters.publisherEmail Publisher email. + * + * @param {string} parameters.publisherName Publisher name. + * + * @param {object} parameters.sku SKU properties of the API Management service. + * + * @param {string} parameters.sku.name Name of the Sku. Possible values + * include: 'Developer', 'Standard', 'Premium', 'Basic' + * + * @param {number} [parameters.sku.capacity] Capacity of the SKU (number of + * deployed units of the SKU). The default value is 1. + * + * @param {object} [parameters.identity] Managed service identity of the Api + * Management service. + * + * @param {string} parameters.location Resource location. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ApiManagementServiceResource} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ApiManagementServiceResource} [result] - The deserialized result object if an error did not occur. + * See {@link ApiManagementServiceResource} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceResource, callback: ServiceCallback): void; + beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Updates an existing API Management service. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} parameters Parameters supplied to the CreateOrUpdate API + * Management service operation. + * + * @param {string} [parameters.notificationSenderEmail] Email address from + * which the notification will be sent. + * + * @param {array} [parameters.hostnameConfigurations] Custom hostname + * configuration of the API Management service. + * + * @param {object} [parameters.virtualNetworkConfiguration] Virtual network + * configuration of the API Management service. + * + * @param {string} [parameters.virtualNetworkConfiguration.subnetResourceId] + * The full resource ID of a subnet in a virtual network to deploy the API + * Management service in. + * + * @param {array} [parameters.additionalLocations] Additional datacenter + * locations of the API Management service. + * + * @param {object} [parameters.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. + * + * @param {array} [parameters.certificates] List of Certificates that need to + * be installed in the API Management service. Max supported certificates that + * can be installed is 10. + * + * @param {string} [parameters.virtualNetworkType] The type of VPN in which API + * Managemet service needs to be configured in. None (Default Value) means the + * API Management service is not part of any Virtual Network, External means + * the API Management deployment is set up inside a Virtual Network having an + * Internet Facing Endpoint, and Internal means that API Management deployment + * is setup inside a Virtual Network having an Intranet Facing Endpoint only. + * Possible values include: 'None', 'External', 'Internal' + * + * @param {string} [parameters.publisherEmail] Publisher email. + * + * @param {string} [parameters.publisherName] Publisher name. + * + * @param {object} [parameters.sku] SKU properties of the API Management + * service. + * + * @param {string} parameters.sku.name Name of the Sku. Possible values + * include: 'Developer', 'Standard', 'Premium', 'Basic' + * + * @param {number} [parameters.sku.capacity] Capacity of the SKU (number of + * deployed units of the SKU). The default value is 1. + * + * @param {object} [parameters.identity] Managed service identity of the Api + * Management service. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + beginUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates an existing API Management service. + * + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {object} parameters Parameters supplied to the CreateOrUpdate API + * Management service operation. + * + * @param {string} [parameters.notificationSenderEmail] Email address from + * which the notification will be sent. + * + * @param {array} [parameters.hostnameConfigurations] Custom hostname + * configuration of the API Management service. + * + * @param {object} [parameters.virtualNetworkConfiguration] Virtual network + * configuration of the API Management service. + * + * @param {string} [parameters.virtualNetworkConfiguration.subnetResourceId] + * The full resource ID of a subnet in a virtual network to deploy the API + * Management service in. + * + * @param {array} [parameters.additionalLocations] Additional datacenter + * locations of the API Management service. + * + * @param {object} [parameters.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. + * + * @param {array} [parameters.certificates] List of Certificates that need to + * be installed in the API Management service. Max supported certificates that + * can be installed is 10. + * + * @param {string} [parameters.virtualNetworkType] The type of VPN in which API + * Managemet service needs to be configured in. None (Default Value) means the + * API Management service is not part of any Virtual Network, External means + * the API Management deployment is set up inside a Virtual Network having an + * Internet Facing Endpoint, and Internal means that API Management deployment + * is setup inside a Virtual Network having an Intranet Facing Endpoint only. + * Possible values include: 'None', 'External', 'Internal' + * + * @param {string} [parameters.publisherEmail] Publisher email. + * + * @param {string} [parameters.publisherName] Publisher name. + * + * @param {object} [parameters.sku] SKU properties of the API Management + * service. + * + * @param {string} parameters.sku.name Name of the Sku. Possible values + * include: 'Developer', 'Standard', 'Premium', 'Basic' + * + * @param {number} [parameters.sku.capacity] Capacity of the SKU (number of + * deployed units of the SKU). The default value is 1. + * + * @param {object} [parameters.identity] Managed service identity of the Api + * Management service. + * + * @param {object} [parameters.tags] Resource tags. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ApiManagementServiceResource} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ApiManagementServiceResource} [result] - The deserialized result object if an error did not occur. + * See {@link ApiManagementServiceResource} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, callback: ServiceCallback): void; + beginUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Updates the Microsoft.ApiManagement resource running in the Virtual network + * to pick the updated network settings. + * + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the - * API Management service is not part of any Virtual Network, External means - * the API Management deployment is set up inside a Virtual Network having an - * Internet Facing Endpoint, and Internal means that API Management deployment - * is setup inside a Virtual Network having an Intranet Facing Endpoint only. - * Possible values include: 'None', 'External', 'Internal' + * @param {string} serviceName The name of the API Management service. * - * @param {string} parameters.publisherEmail Publisher email. + * @param {object} [options] Optional Parameters. * - * @param {string} parameters.publisherName Publisher name. + * @param {object} [options.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. * - * @param {object} parameters.sku SKU properties of the API Management service. + * @param {string} [options.parameters.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. * - * @param {string} parameters.sku.name Name of the Sku. Possible values - * include: 'Developer', 'Standard', 'Premium', 'Basic' + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {number} [parameters.sku.capacity] Capacity of the SKU (number of - * deployed units of the SKU). The default value is 1. + * @returns {Promise} A promise is returned * - * @param {object} [parameters.identity] Managed service identity of the Api - * Management service. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} parameters.location Resource location. + * @reject {Error|ServiceError} - The error object. + */ + beginApplyNetworkConfigurationUpdatesWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { parameters? : models.ApiManagementServiceApplyNetworkConfigurationParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates the Microsoft.ApiManagement resource running in the Virtual network + * to pick the updated network settings. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. * * @param {object} [options] Optional Parameters. * + * @param {object} [options.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. + * + * @param {string} [options.parameters.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. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10221,76 +10747,96 @@ export interface ApiManagementService { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceResource, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceResource, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: { parameters? : models.ApiManagementServiceApplyNetworkConfigurationParameters, customHeaders? : { [headerName: string]: string; } }): Promise; + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; + beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options: { parameters? : models.ApiManagementServiceApplyNetworkConfigurationParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates an existing API Management service. + * Creates, updates, or deletes the custom hostnames for an API Management + * service. The custom hostname can be applied to the Proxy and Portal + * endpoint. This is a long running operation and could take several minutes to + * complete. This operation will be deprecated in the next version update. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {object} parameters Parameters supplied to the CreateOrUpdate API - * Management service operation. + * @param {object} parameters Parameters supplied to the UpdateHostname + * operation. * - * @param {string} [parameters.notificationSenderEmail] Email address from - * which the notification will be sent. + * @param {array} [parameters.update] Hostnames to create or update. * - * @param {array} [parameters.hostnameConfigurations] Custom hostname - * configuration of the API Management service. + * @param {array} [parameters.deleteProperty] Hostnames types to delete. * - * @param {object} [parameters.virtualNetworkConfiguration] Virtual network - * configuration of the API Management service. + * @param {object} [options] Optional Parameters. * - * @param {string} [parameters.virtualNetworkConfiguration.subnetResourceId] - * The full resource ID of a subnet in a virtual network to deploy the API - * Management service in. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {array} [parameters.additionalLocations] Additional datacenter - * locations of the API Management service. + * @returns {Promise} A promise is returned * - * @param {object} [parameters.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. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {array} [parameters.certificates] List of Certificates that need to - * be installed in the API Management service. Max supported certificates that - * can be installed is 10. + * @reject {Error|ServiceError} - The error object. + */ + beginUpdateHostnameWithHttpOperationResponse(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Creates, updates, or deletes the custom hostnames for an API Management + * service. The custom hostname can be applied to the Proxy and Portal + * endpoint. This is a long running operation and could take several minutes to + * complete. This operation will be deprecated in the next version update. * - * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the - * API Management service is not part of any Virtual Network, External means - * the API Management deployment is set up inside a Virtual Network having an - * Internet Facing Endpoint, and Internal means that API Management deployment - * is setup inside a Virtual Network having an Intranet Facing Endpoint only. - * Possible values include: 'None', 'External', 'Internal' + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.publisherEmail] Publisher email. + * @param {string} serviceName The name of the API Management service. * - * @param {string} [parameters.publisherName] Publisher name. + * @param {object} parameters Parameters supplied to the UpdateHostname + * operation. * - * @param {object} [parameters.sku] SKU properties of the API Management - * service. + * @param {array} [parameters.update] Hostnames to create or update. * - * @param {string} parameters.sku.name Name of the Sku. Possible values - * include: 'Developer', 'Standard', 'Premium', 'Basic' + * @param {array} [parameters.deleteProperty] Hostnames types to delete. * - * @param {number} [parameters.sku.capacity] Capacity of the SKU (number of - * deployed units of the SKU). The default value is 1. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.identity] Managed service identity of the Api - * Management service. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.tags] Resource tags. + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {ApiManagementServiceResource} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {ApiManagementServiceResource} [result] - The deserialized result object if an error did not occur. + * See {@link ApiManagementServiceResource} for more + * information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + beginUpdateHostname(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + beginUpdateHostname(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, callback: ServiceCallback): void; + beginUpdateHostname(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * List all API Management services within a resource group. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -10299,77 +10845,75 @@ export interface ApiManagementService { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates an existing API Management service. + * List all API Management services within a resource group. * - * @param {string} resourceGroupName The name of the resource group. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {string} serviceName The name of the API Management service. + * @param {object} [options] Optional Parameters. * - * @param {object} parameters Parameters supplied to the CreateOrUpdate API - * Management service operation. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {string} [parameters.notificationSenderEmail] Email address from - * which the notification will be sent. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {array} [parameters.hostnameConfigurations] Custom hostname - * configuration of the API Management service. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {object} [parameters.virtualNetworkConfiguration] Virtual network - * configuration of the API Management service. + * {Promise} A promise is returned. * - * @param {string} [parameters.virtualNetworkConfiguration.subnetResourceId] - * The full resource ID of a subnet in a virtual network to deploy the API - * Management service in. + * @resolve {ApiManagementServiceListResult} - The deserialized result object. * - * @param {array} [parameters.additionalLocations] Additional datacenter - * locations of the API Management service. + * @reject {Error|ServiceError} - The error object. * - * @param {object} [parameters.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. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {array} [parameters.certificates] List of Certificates that need to - * be installed in the API Management service. Max supported certificates that - * can be installed is 10. + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @param {string} [parameters.virtualNetworkType] The type of VPN in which API - * Managemet service needs to be configured in. None (Default Value) means the - * API Management service is not part of any Virtual Network, External means - * the API Management deployment is set up inside a Virtual Network having an - * Internet Facing Endpoint, and Internal means that API Management deployment - * is setup inside a Virtual Network having an Intranet Facing Endpoint only. - * Possible values include: 'None', 'External', 'Internal' + * {ApiManagementServiceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ApiManagementServiceListResult} for more + * information. * - * @param {string} [parameters.publisherEmail] Publisher email. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @param {string} [parameters.publisherName] Publisher name. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Lists all API Management services within an Azure subscription. * - * @param {object} [parameters.sku] SKU properties of the API Management - * service. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * - * @param {string} parameters.sku.name Name of the Sku. Possible values - * include: 'Developer', 'Standard', 'Premium', 'Basic' + * @param {object} [options] Optional Parameters. * - * @param {number} [parameters.sku.capacity] Capacity of the SKU (number of - * deployed units of the SKU). The default value is 1. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.identity] Managed service identity of the Api - * Management service. + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Lists all API Management services within an Azure subscription. * - * @param {object} [parameters.tags] Resource tags. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -10383,7 +10927,7 @@ export interface ApiManagementService { * * {Promise} A promise is returned. * - * @resolve {ApiManagementServiceResource} - The deserialized result object. + * @resolve {ApiManagementServiceListResult} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10391,22 +10935,30 @@ export interface ApiManagementService { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApiManagementServiceResource} [result] - The deserialized result object if an error did not occur. - * See {@link ApiManagementServiceResource} for more + * {ApiManagementServiceListResult} [result] - The deserialized result object if an error did not occur. + * See {@link ApiManagementServiceListResult} for more * information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, callback: ServiceCallback): void; - beginUpdate(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listNext(nextPageLink: string, callback: ServiceCallback): void; + listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * Diagnostic + * __NOTE__: An instance of this class is automatically created for an + * instance of the ApiManagementClient. + */ +export interface Diagnostic { /** - * Updates the Microsoft.ApiManagement resource running in the Virtual network - * to pick the updated network settings. + * Lists all diagnostics of the API Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -10414,29 +10966,28 @@ export interface ApiManagementService { * * @param {object} [options] Optional Parameters. * - * @param {object} [options.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. + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------------|------------------------|-----------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | * - * @param {string} [options.parameters.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. + * @param {number} [options.top] Number of records to return. + * + * @param {number} [options.skip] Number of records to skip. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginApplyNetworkConfigurationUpdatesWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { parameters? : models.ApiManagementServiceApplyNetworkConfigurationParameters, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Updates the Microsoft.ApiManagement resource running in the Virtual network - * to pick the updated network settings. + * Lists all diagnostics of the API Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -10444,14 +10995,14 @@ export interface ApiManagementService { * * @param {object} [options] Optional Parameters. * - * @param {object} [options.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. + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------------|------------------------|-----------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | * - * @param {string} [options.parameters.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. + * @param {number} [options.top] Number of records to return. + * + * @param {number} [options.skip] Number of records to skip. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10463,7 +11014,7 @@ export interface ApiManagementService { * * {Promise} A promise is returned. * - * @resolve {ApiManagementServiceResource} - The deserialized result object. + * @resolve {DiagnosticCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10471,35 +11022,28 @@ export interface ApiManagementService { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApiManagementServiceResource} [result] - The deserialized result object if an error did not occur. - * See {@link ApiManagementServiceResource} for more - * information. + * {DiagnosticCollection} [result] - The deserialized result object if an error did not occur. + * See {@link DiagnosticCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options?: { parameters? : models.ApiManagementServiceApplyNetworkConfigurationParameters, customHeaders? : { [headerName: string]: string; } }): Promise; - beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; - beginApplyNetworkConfigurationUpdates(resourceGroupName: string, serviceName: string, options: { parameters? : models.ApiManagementServiceApplyNetworkConfigurationParameters, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Creates, updates, or deletes the custom hostnames for an API Management - * service. The custom hostname can be applied to the Proxy and Portal - * endpoint. This is a long running operation and could take several minutes to - * complete. This operation will be deprecated in the next version update. + * Gets the entity state (Etag) version of the Diagnostic specified by its + * identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {object} parameters Parameters supplied to the UpdateHostname - * operation. - * - * @param {array} [parameters.update] Hostnames to create or update. - * - * @param {array} [parameters.deleteProperty] Hostnames types to delete. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * * @param {object} [options] Optional Parameters. * @@ -10508,28 +11052,22 @@ export interface ApiManagementService { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - beginUpdateHostnameWithHttpOperationResponse(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates, updates, or deletes the custom hostnames for an API Management - * service. The custom hostname can be applied to the Proxy and Portal - * endpoint. This is a long running operation and could take several minutes to - * complete. This operation will be deprecated in the next version update. + * Gets the entity state (Etag) version of the Diagnostic specified by its + * identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {object} parameters Parameters supplied to the UpdateHostname - * operation. - * - * @param {array} [parameters.update] Hostnames to create or update. - * - * @param {array} [parameters.deleteProperty] Hostnames types to delete. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * * @param {object} [options] Optional Parameters. * @@ -10543,7 +11081,7 @@ export interface ApiManagementService { * * {Promise} A promise is returned. * - * @resolve {ApiManagementServiceResource} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10551,24 +11089,26 @@ export interface ApiManagementService { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApiManagementServiceResource} [result] - The deserialized result object if an error did not occur. - * See {@link ApiManagementServiceResource} for more - * information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - beginUpdateHostname(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdateHostname(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, callback: ServiceCallback): void; - beginUpdateHostname(resourceGroupName: string, serviceName: string, parameters: models.ApiManagementServiceUpdateHostnameParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, callback: ServiceCallback): void; + getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * List all API Management services within a resource group. + * Gets the details of the Diagnostic specified by its identifier. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * * @param {object} [options] Optional Parameters. * @@ -10577,17 +11117,21 @@ export interface ApiManagementService { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all API Management services within a resource group. + * Gets the details of the Diagnostic specified by its identifier. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * * @param {object} [options] Optional Parameters. * @@ -10601,7 +11145,7 @@ export interface ApiManagementService { * * {Promise} A promise is returned. * - * @resolve {ApiManagementServiceListResult} - The deserialized result object. + * @resolve {DiagnosticContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10609,46 +11153,69 @@ export interface ApiManagementService { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApiManagementServiceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ApiManagementServiceListResult} for more - * information. + * {DiagnosticContract} [result] - The deserialized result object if an error did not occur. + * See {@link DiagnosticContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + get(resourceGroupName: string, serviceName: string, diagnosticId: string, callback: ServiceCallback): void; + get(resourceGroupName: string, serviceName: string, diagnosticId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists all API Management services within an Azure subscription. + * Creates a new Diagnostic or updates an existing one. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * + * @param {object} parameters Create parameters. + * + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.ifMatch] ETag of the Entity. Not required when + * creating an entity, but required when updating an entity. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all API Management services within an Azure subscription. + * Creates a new Diagnostic or updates an existing one. * - * @param {string} nextPageLink The NextLink from the previous successful call - * to List operation. + * @param {string} resourceGroupName The name of the resource group. + * + * @param {string} serviceName The name of the API Management service. + * + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. + * + * @param {object} parameters Create parameters. + * + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * * @param {object} [options] Optional Parameters. * + * @param {string} [options.ifMatch] ETag of the Entity. Not required when + * creating an entity, but required when updating an entity. + * * @param {object} [options.customHeaders] Headers that will be added to the * request * @@ -10659,7 +11226,7 @@ export interface ApiManagementService { * * {Promise} A promise is returned. * - * @resolve {ApiManagementServiceListResult} - The deserialized result object. + * @resolve {DiagnosticContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10667,74 +11234,70 @@ export interface ApiManagementService { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApiManagementServiceListResult} [result] - The deserialized result object if an error did not occur. - * See {@link ApiManagementServiceListResult} for more - * information. + * {DiagnosticContract} [result] - The deserialized result object if an error did not occur. + * See {@link DiagnosticContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listNext(nextPageLink: string, callback: ServiceCallback): void; - listNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * Diagnostic - * __NOTE__: An instance of this class is automatically created for an - * instance of the ApiManagementClient. - */ -export interface Diagnostic { + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists all diagnostics of the API Management service instance. + * Updates the details of the Diagnostic specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {object} [options] Optional Parameters. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * - * @param {string} [options.filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * @param {object} parameters Diagnostic Update parameters. * - * @param {number} [options.top] Number of records to return. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * - * @param {number} [options.skip] Number of records to skip. + * @param {string} 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 {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all diagnostics of the API Management service instance. + * Updates the details of the Diagnostic specified by its identifier. * * @param {string} resourceGroupName The name of the resource group. * * @param {string} serviceName The name of the API Management service. * - * @param {object} [options] Optional Parameters. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * - * @param {string} [options.filter] | Field | Supported operators | - * Supported functions | - * |-------------|------------------------|-----------------------------------| - * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * @param {object} parameters Diagnostic Update parameters. * - * @param {number} [options.top] Number of records to return. + * @param {boolean} parameters.enabled Indicates whether a diagnostic should + * receive data or not. * - * @param {number} [options.skip] Number of records to skip. + * @param {string} 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 {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -10746,7 +11309,7 @@ export interface Diagnostic { * * {Promise} A promise is returned. * - * @resolve {DiagnosticCollection} - The deserialized result object. + * @resolve {null} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10754,21 +11317,19 @@ export interface Diagnostic { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DiagnosticCollection} [result] - The deserialized result object if an error did not occur. - * See {@link DiagnosticCollection} for more information. + * {null} [result] - The deserialized result object if an error did not occur. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByService(resourceGroupName: string, serviceName: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; - listByService(resourceGroupName: string, serviceName: string, callback: ServiceCallback): void; - listByService(resourceGroupName: string, serviceName: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, callback: ServiceCallback): void; + update(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the entity state (Etag) version of the Diagnostic specified by its - * identifier. + * Deletes the specified Diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -10777,6 +11338,10 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * + * @param {string} 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 {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -10788,11 +11353,10 @@ export interface Diagnostic { * * @reject {Error|ServiceError} - The error object. */ - getEntityTagWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the entity state (Etag) version of the Diagnostic specified by its - * identifier. + * Deletes the specified Diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -10801,6 +11365,10 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * + * @param {string} 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 {object} [options] Optional Parameters. * * @param {object} [options.customHeaders] Headers that will be added to the @@ -10827,20 +11395,16 @@ export interface Diagnostic { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, callback: ServiceCallback): void; - getEntityTag(resourceGroupName: string, serviceName: string, diagnosticId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Gets the details of the Diagnostic specified by its identifier. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} serviceName The name of the API Management service. + * Lists all diagnostics of the API Management service instance. * - * @param {string} diagnosticId Diagnostic identifier. Must be unique in the - * current API Management service instance. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -10849,21 +11413,17 @@ export interface Diagnostic { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - getWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Gets the details of the Diagnostic specified by its identifier. - * - * @param {string} resourceGroupName The name of the resource group. - * - * @param {string} serviceName The name of the API Management service. + * Lists all diagnostics of the API Management service instance. * - * @param {string} diagnosticId Diagnostic identifier. Must be unique in the - * current API Management service instance. + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. * * @param {object} [options] Optional Parameters. * @@ -10877,7 +11437,7 @@ export interface Diagnostic { * * {Promise} A promise is returned. * - * @resolve {DiagnosticContract} - The deserialized result object. + * @resolve {DiagnosticCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -10885,20 +11445,30 @@ export interface Diagnostic { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DiagnosticContract} [result] - The deserialized result object if an error did not occur. - * See {@link DiagnosticContract} for more information. + * {DiagnosticCollection} [result] - The deserialized result object if an error did not occur. + * See {@link DiagnosticCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - get(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, serviceName: string, diagnosticId: string, callback: ServiceCallback): void; - get(resourceGroupName: string, serviceName: string, diagnosticId: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; +} + +/** + * @class + * DiagnosticLogger + * __NOTE__: An instance of this class is automatically created for an + * instance of the ApiManagementClient. + */ +export interface DiagnosticLogger { /** - * Creates a new Diagnostic or updates an existing one. + * Lists all loggers assosiated with the specified Diagnostic of the API + * Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -10907,59 +11477,32 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * - * @param {object} parameters Create parameters. - * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. + * @param {object} [options] Optional Parameters. * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------------|------------------------|-----------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * | type | eq | | * - * @param {object} [options] Optional Parameters. + * @param {number} [options.top] Number of records to return. * - * @param {string} [options.ifMatch] ETag of the Entity. Not required when - * creating an entity, but required when updating an entity. + * @param {number} [options.skip] Number of records to skip. * * @param {object} [options.customHeaders] Headers that will be added to the * request * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Creates a new Diagnostic or updates an existing one. + * Lists all loggers assosiated with the specified Diagnostic of the API + * Management service instance. * * @param {string} resourceGroupName The name of the resource group. * @@ -10968,45 +11511,17 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * - * @param {object} parameters Create parameters. - * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' - * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. - * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. - * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend - * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. - * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. - * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. - * - * @param {object} [parameters.backend.response.body] Body logging settings. + * @param {object} [options] Optional Parameters. * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {string} [options.filter] | Field | Supported operators | + * Supported functions | + * |-------------|------------------------|-----------------------------------| + * | id | ge, le, eq, ne, gt, lt | substringof, startswith, endswith | + * | type | eq | | * - * @param {object} [options] Optional Parameters. + * @param {number} [options.top] Number of records to return. * - * @param {string} [options.ifMatch] ETag of the Entity. Not required when - * creating an entity, but required when updating an entity. + * @param {number} [options.skip] Number of records to skip. * * @param {object} [options.customHeaders] Headers that will be added to the * request @@ -11018,7 +11533,7 @@ export interface Diagnostic { * * {Promise} A promise is returned. * - * @resolve {DiagnosticContract} - The deserialized result object. + * @resolve {LoggerCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11026,20 +11541,21 @@ export interface Diagnostic { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DiagnosticContract} [result] - The deserialized result object if an error did not occur. - * See {@link DiagnosticContract} for more information. + * {LoggerCollection} [result] - The deserialized result object if an error did not occur. + * See {@link LoggerCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, options?: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, options: { ifMatch? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, diagnosticId: string, options?: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }): Promise; + listByService(resourceGroupName: string, serviceName: string, diagnosticId: string, callback: ServiceCallback): void; + listByService(resourceGroupName: string, serviceName: string, diagnosticId: string, options: { filter? : string, top? : number, skip? : number, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Updates the details of the Diagnostic specified by its identifier. + * Checks that logger entity specified by identifier is associated with the + * diagnostics entity. * * @param {string} resourceGroupName The name of the resource group. * @@ -11048,60 +11564,69 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * - * @param {object} parameters Diagnostic Update parameters. + * @param {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {string} parameters.loggerId Resource Id of a target logger. + * @reject {Error|ServiceError} - The error object. + */ + checkEntityExistsWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Checks that logger entity specified by identifier is associated with the + * diagnostics entity. * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. + * @param {string} resourceGroupName The name of the resource group. * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' + * @param {string} serviceName The name of the API Management service. * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. + * @param {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. + * @param {ServiceCallback} [optionalCallback] - The optional callback. * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. * - * @param {object} [parameters.backend.response.body] Body logging settings. + * {Promise} A promise is returned. * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @resolve {Boolean} - The deserialized result object. * - * @param {string} 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. + * @reject {Error|ServiceError} - The error object. * - * @param {object} [options] Optional Parameters. + * {ServiceCallback} optionalCallback(err, result, request, response) * - * @param {object} [options.customHeaders] Headers that will be added to the - * request + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * @returns {Promise} A promise is returned + * {Boolean} [result] - The deserialized result object if an error did not occur. * - * @resolve {HttpOperationResponse} - The deserialized result object. + * {WebResource} [request] - The HTTP Request object if an error did not occur. * - * @reject {Error|ServiceError} - The error object. + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - updateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + checkEntityExists(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + checkEntityExists(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, callback: ServiceCallback): void; + checkEntityExists(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** - * Updates the details of the Diagnostic specified by its identifier. + * Attaches a logger to a dignostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -11110,44 +11635,34 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * - * @param {object} parameters Diagnostic Update parameters. - * - * @param {string} [parameters.alwaysLog] Specifies for what type of messages - * sampling settings should not apply. Possible values include: 'allErrors' - * - * @param {string} parameters.loggerId Resource Id of a target logger. - * - * @param {object} [parameters.sampling] Sampling settings for Diagnostic. - * - * @param {string} [parameters.sampling.samplingType] Sampling type. Possible - * values include: 'fixed' + * @param {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. * - * @param {number} [parameters.sampling.percentage] Rate of sampling for - * fixed-rate sampling. + * @param {object} [options] Optional Parameters. * - * @param {object} [parameters.frontend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Gateway. + * @param {object} [options.customHeaders] Headers that will be added to the + * request * - * @param {object} [parameters.backend] Diagnostic settings for - * incoming/outcoming HTTP messages to the Backend + * @returns {Promise} A promise is returned * - * @param {object} [parameters.backend.request] Diagnostic settings for - * request. + * @resolve {HttpOperationResponse} - The deserialized result object. * - * @param {object} [parameters.backend.response] Diagnostic settings for - * response. + * @reject {Error|ServiceError} - The error object. + */ + createOrUpdateWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Attaches a logger to a dignostic. * - * @param {array} [parameters.backend.response.headers] Array of HTTP Headers - * to log. + * @param {string} resourceGroupName The name of the resource group. * - * @param {object} [parameters.backend.response.body] Body logging settings. + * @param {string} serviceName The name of the API Management service. * - * @param {number} [parameters.backend.response.body.bytes] Number of request - * body bytes to log. + * @param {string} diagnosticId Diagnostic identifier. Must be unique in the + * current API Management service instance. * - * @param {string} 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 {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. * * @param {object} [options] Optional Parameters. * @@ -11161,7 +11676,7 @@ export interface Diagnostic { * * {Promise} A promise is returned. * - * @resolve {null} - The deserialized result object. + * @resolve {LoggerContract} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11169,19 +11684,20 @@ export interface Diagnostic { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {null} [result] - The deserialized result object if an error did not occur. + * {LoggerContract} [result] - The deserialized result object if an error did not occur. + * See {@link LoggerContract} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, callback: ServiceCallback): void; - update(resourceGroupName: string, serviceName: string, diagnosticId: string, parameters: models.DiagnosticContract, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, callback: ServiceCallback): void; + createOrUpdate(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Deletes the specified Diagnostic. + * Deletes the specified Logger from Diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -11190,9 +11706,8 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * - * @param {string} 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 {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. * * @param {object} [options] Optional Parameters. * @@ -11205,10 +11720,10 @@ export interface Diagnostic { * * @reject {Error|ServiceError} - The error object. */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + deleteMethodWithHttpOperationResponse(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Deletes the specified Diagnostic. + * Deletes the specified Logger from Diagnostic. * * @param {string} resourceGroupName The name of the resource group. * @@ -11217,9 +11732,8 @@ export interface Diagnostic { * @param {string} diagnosticId Diagnostic identifier. Must be unique in the * current API Management service instance. * - * @param {string} 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 {string} loggerid Logger identifier. Must be unique in the API + * Management service instance. * * @param {object} [options] Optional Parameters. * @@ -11247,13 +11761,14 @@ export interface Diagnostic { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, ifMatch: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, callback: ServiceCallback): void; + deleteMethod(resourceGroupName: string, serviceName: string, diagnosticId: string, loggerid: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** - * Lists all diagnostics of the API Management service instance. + * Lists all loggers assosiated with the specified Diagnostic of the API + * Management service instance. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -11265,14 +11780,15 @@ export interface Diagnostic { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listByServiceNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Lists all diagnostics of the API Management service instance. + * Lists all loggers assosiated with the specified Diagnostic of the API + * Management service instance. * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -11289,7 +11805,7 @@ export interface Diagnostic { * * {Promise} A promise is returned. * - * @resolve {DiagnosticCollection} - The deserialized result object. + * @resolve {LoggerCollection} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -11297,16 +11813,16 @@ export interface Diagnostic { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {DiagnosticCollection} [result] - The deserialized result object if an error did not occur. - * See {@link DiagnosticCollection} for more information. + * {LoggerCollection} [result] - The deserialized result object if an error did not occur. + * See {@link LoggerCollection} for more information. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; - listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByServiceNext(nextPageLink: string, callback: ServiceCallback): void; + listByServiceNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -12159,8 +12675,8 @@ export interface Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {object} [options] Optional Parameters. * @@ -12200,8 +12716,8 @@ export interface Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {object} [options] Optional Parameters. * @@ -12260,8 +12776,8 @@ export interface Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -12302,8 +12818,8 @@ export interface Group { * @param {string} [parameters.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. + * aad://.onmicrosoft.com/groups/; otherwise the value + * is null. * * @param {string} ifMatch ETag of the Entity. ETag should match the current * entity state from the header response of the GET request or it should be * @@ -13713,9 +14229,6 @@ export interface Logger { * @param {boolean} [parameters.isBuffered] Whether records are buffered in the * logger before publishing. Default is assumed to be true. * - * @param {string} [parameters.resourceId] Azure Resource Id of a log target - * (either Azure Event Hub resource or Azure Application Insights resource). - * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the Entity. Not required when @@ -13756,9 +14269,6 @@ export interface Logger { * @param {boolean} [parameters.isBuffered] Whether records are buffered in the * logger before publishing. Default is assumed to be true. * - * @param {string} [parameters.resourceId] Azure Resource Id of a log target - * (either Azure Event Hub resource or Azure Application Insights resource). - * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the Entity. Not required when @@ -16806,14 +17316,14 @@ export interface Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -16869,14 +17379,14 @@ export interface Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -16951,14 +17461,14 @@ export interface Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -17015,14 +17525,14 @@ export interface Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * diff --git a/lib/services/apimanagement/lib/operations/index.js b/lib/services/apimanagement/lib/operations/index.js index ed88b74d86..e5955aa5a7 100644 --- a/lib/services/apimanagement/lib/operations/index.js +++ b/lib/services/apimanagement/lib/operations/index.js @@ -26,6 +26,7 @@ exports.ApiProduct = require('./apiProduct'); exports.ApiPolicy = require('./apiPolicy'); exports.ApiSchema = require('./apiSchema'); exports.ApiDiagnostic = require('./apiDiagnostic'); +exports.ApiDiagnosticLogger = require('./apiDiagnosticLogger'); exports.ApiIssue = require('./apiIssue'); exports.ApiIssueComment = require('./apiIssueComment'); exports.ApiIssueAttachment = require('./apiIssueAttachment'); @@ -35,6 +36,7 @@ exports.Certificate = require('./certificate'); exports.ApiManagementOperations = require('./apiManagementOperations'); exports.ApiManagementService = require('./apiManagementService'); exports.Diagnostic = require('./diagnostic'); +exports.DiagnosticLogger = require('./diagnosticLogger'); exports.EmailTemplate = require('./emailTemplate'); exports.Group = require('./group'); exports.GroupUser = require('./groupUser'); diff --git a/lib/services/apimanagement/lib/operations/logger.js b/lib/services/apimanagement/lib/operations/logger.js index 39ab5e5d6a..e04109b31e 100644 --- a/lib/services/apimanagement/lib/operations/logger.js +++ b/lib/services/apimanagement/lib/operations/logger.js @@ -580,9 +580,6 @@ function _get(resourceGroupName, serviceName, loggerid, options, callback) { * @param {boolean} [parameters.isBuffered] Whether records are buffered in the * logger before publishing. Default is assumed to be true. * - * @param {string} [parameters.resourceId] Azure Resource Id of a log target - * (either Azure Event Hub resource or Azure Application Insights resource). - * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the Entity. Not required when @@ -1625,9 +1622,6 @@ class Logger { * @param {boolean} [parameters.isBuffered] Whether records are buffered in the * logger before publishing. Default is assumed to be true. * - * @param {string} [parameters.resourceId] Azure Resource Id of a log target - * (either Azure Event Hub resource or Azure Application Insights resource). - * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the Entity. Not required when @@ -1680,9 +1674,6 @@ class Logger { * @param {boolean} [parameters.isBuffered] Whether records are buffered in the * logger before publishing. Default is assumed to be true. * - * @param {string} [parameters.resourceId] Azure Resource Id of a log target - * (either Azure Event Hub resource or Azure Application Insights resource). - * * @param {object} [options] Optional Parameters. * * @param {string} [options.ifMatch] ETag of the Entity. Not required when diff --git a/lib/services/apimanagement/lib/operations/product.js b/lib/services/apimanagement/lib/operations/product.js index f4a2d57636..2f715cb8c6 100644 --- a/lib/services/apimanagement/lib/operations/product.js +++ b/lib/services/apimanagement/lib/operations/product.js @@ -609,14 +609,14 @@ function _get(resourceGroupName, serviceName, productId, options, callback) { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -871,14 +871,14 @@ function _createOrUpdate(resourceGroupName, serviceName, productId, parameters, * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -1741,14 +1741,14 @@ class Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -1816,14 +1816,14 @@ class Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -1913,14 +1913,14 @@ class Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * @@ -1989,14 +1989,14 @@ class Product { * omitted when creating a new product it's value is assumed to be true. * * @param {boolean} [parameters.approvalRequired] whether subscription approval - * is required. If false, new subscriptions will be approved automatically + * 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 + * 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. * * @param {number} [parameters.subscriptionsLimit] Whether the number of - * subscriptions a user can have to this product at the same time. Set to null + * 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. * From 6203e8b978f542bbc2970907f1bdfd65392cf2e3 Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Wed, 29 Aug 2018 15:36:14 -0700 Subject: [PATCH 3/4] Regenerate azure-arm-apimanagement --- lib/services/apimanagement/lib/models/additionalLocation.js | 2 -- .../apimanagement/lib/models/apiCreateOrUpdateParameter.js | 2 -- lib/services/apimanagement/lib/models/apiEntityBaseContract.js | 2 -- .../lib/models/apiManagementServiceBaseProperties.js | 2 -- .../lib/models/apiManagementServiceUpdateHostnameParameters.js | 2 -- .../apimanagement/lib/models/apiRevisionInfoContract.js | 2 -- lib/services/apimanagement/lib/models/apiUpdateContract.js | 2 -- .../apimanagement/lib/models/authenticationSettingsContract.js | 2 -- .../lib/models/authorizationServerContractBaseProperties.js | 2 -- lib/services/apimanagement/lib/models/backendBaseParameters.js | 2 -- .../apimanagement/lib/models/backendCredentialsContract.js | 2 -- lib/services/apimanagement/lib/models/backendProperties.js | 2 -- .../lib/models/backendServiceFabricClusterProperties.js | 2 -- .../apimanagement/lib/models/backendUpdateParameters.js | 2 -- .../apimanagement/lib/models/certificateConfiguration.js | 2 -- .../apimanagement/lib/models/emailTemplateUpdateParameters.js | 2 -- lib/services/apimanagement/lib/models/errorResponse.js | 2 -- lib/services/apimanagement/lib/models/errorResponseBody.js | 2 -- lib/services/apimanagement/lib/models/hostnameConfiguration.js | 2 -- .../apimanagement/lib/models/hostnameConfigurationOld.js | 2 -- lib/services/apimanagement/lib/models/networkStatusContract.js | 2 -- .../apimanagement/lib/models/networkStatusContractByLocation.js | 2 -- lib/services/apimanagement/lib/models/operation.js | 2 -- .../apimanagement/lib/models/operationEntityBaseContract.js | 2 -- .../apimanagement/lib/models/operationResultContract.js | 2 -- .../apimanagement/lib/models/operationUpdateContract.js | 2 -- lib/services/apimanagement/lib/models/policyCollection.js | 2 -- .../apimanagement/lib/models/policySnippetsCollection.js | 2 -- lib/services/apimanagement/lib/models/quotaCounterCollection.js | 2 -- lib/services/apimanagement/lib/models/quotaCounterContract.js | 2 -- .../apimanagement/lib/models/recipientEmailCollection.js | 2 -- .../apimanagement/lib/models/recipientUserCollection.js | 2 -- lib/services/apimanagement/lib/models/representationContract.js | 2 -- lib/services/apimanagement/lib/models/requestContract.js | 2 -- lib/services/apimanagement/lib/models/responseContract.js | 2 -- lib/services/apimanagement/lib/models/tagResourceContract.js | 2 -- lib/services/apimanagement/lib/models/userCreateParameters.js | 2 -- .../apimanagement/lib/models/userEntityBaseParameters.js | 2 -- lib/services/apimanagement/lib/models/userUpdateParameters.js | 2 -- lib/services/apimanagement/package.json | 2 +- 40 files changed, 1 insertion(+), 79 deletions(-) diff --git a/lib/services/apimanagement/lib/models/additionalLocation.js b/lib/services/apimanagement/lib/models/additionalLocation.js index 3c28f6a608..9016a19828 100644 --- a/lib/services/apimanagement/lib/models/additionalLocation.js +++ b/lib/services/apimanagement/lib/models/additionalLocation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Description of an additional API Management resource location. * diff --git a/lib/services/apimanagement/lib/models/apiCreateOrUpdateParameter.js b/lib/services/apimanagement/lib/models/apiCreateOrUpdateParameter.js index 4a91f1ddcb..6516697fc5 100644 --- a/lib/services/apimanagement/lib/models/apiCreateOrUpdateParameter.js +++ b/lib/services/apimanagement/lib/models/apiCreateOrUpdateParameter.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * API Create or Update Parameters. * diff --git a/lib/services/apimanagement/lib/models/apiEntityBaseContract.js b/lib/services/apimanagement/lib/models/apiEntityBaseContract.js index f2b38b7972..bef323bc1a 100644 --- a/lib/services/apimanagement/lib/models/apiEntityBaseContract.js +++ b/lib/services/apimanagement/lib/models/apiEntityBaseContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * API base contract details. * diff --git a/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js b/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js index 4f0e0eb5f8..5f05e16c31 100644 --- a/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js +++ b/lib/services/apimanagement/lib/models/apiManagementServiceBaseProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Base Properties of an API Management service resource description. * diff --git a/lib/services/apimanagement/lib/models/apiManagementServiceUpdateHostnameParameters.js b/lib/services/apimanagement/lib/models/apiManagementServiceUpdateHostnameParameters.js index 4a1cfac65f..45b74ddd6d 100644 --- a/lib/services/apimanagement/lib/models/apiManagementServiceUpdateHostnameParameters.js +++ b/lib/services/apimanagement/lib/models/apiManagementServiceUpdateHostnameParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Parameters supplied to the UpdateHostname operation. * diff --git a/lib/services/apimanagement/lib/models/apiRevisionInfoContract.js b/lib/services/apimanagement/lib/models/apiRevisionInfoContract.js index ea2d3da706..2c4a998e1c 100644 --- a/lib/services/apimanagement/lib/models/apiRevisionInfoContract.js +++ b/lib/services/apimanagement/lib/models/apiRevisionInfoContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Object used to create an API Revision or Version based on an existing API * Revision diff --git a/lib/services/apimanagement/lib/models/apiUpdateContract.js b/lib/services/apimanagement/lib/models/apiUpdateContract.js index a1a76c46f1..b03a016834 100644 --- a/lib/services/apimanagement/lib/models/apiUpdateContract.js +++ b/lib/services/apimanagement/lib/models/apiUpdateContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * API update contract details. * diff --git a/lib/services/apimanagement/lib/models/authenticationSettingsContract.js b/lib/services/apimanagement/lib/models/authenticationSettingsContract.js index afe719fd61..1f70fdafab 100644 --- a/lib/services/apimanagement/lib/models/authenticationSettingsContract.js +++ b/lib/services/apimanagement/lib/models/authenticationSettingsContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * API Authentication Settings. * diff --git a/lib/services/apimanagement/lib/models/authorizationServerContractBaseProperties.js b/lib/services/apimanagement/lib/models/authorizationServerContractBaseProperties.js index fcc0b770ce..f8470c8d47 100644 --- a/lib/services/apimanagement/lib/models/authorizationServerContractBaseProperties.js +++ b/lib/services/apimanagement/lib/models/authorizationServerContractBaseProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * External OAuth authorization server Update settings contract. * diff --git a/lib/services/apimanagement/lib/models/backendBaseParameters.js b/lib/services/apimanagement/lib/models/backendBaseParameters.js index 6d7a2c4ba4..48e543a095 100644 --- a/lib/services/apimanagement/lib/models/backendBaseParameters.js +++ b/lib/services/apimanagement/lib/models/backendBaseParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Backend entity base Parameter set. * diff --git a/lib/services/apimanagement/lib/models/backendCredentialsContract.js b/lib/services/apimanagement/lib/models/backendCredentialsContract.js index a56cca444f..327f120a56 100644 --- a/lib/services/apimanagement/lib/models/backendCredentialsContract.js +++ b/lib/services/apimanagement/lib/models/backendCredentialsContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Details of the Credentials used to connect to Backend. * diff --git a/lib/services/apimanagement/lib/models/backendProperties.js b/lib/services/apimanagement/lib/models/backendProperties.js index 9ef3df90de..ac6eece213 100644 --- a/lib/services/apimanagement/lib/models/backendProperties.js +++ b/lib/services/apimanagement/lib/models/backendProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Properties specific to the Backend Type. * diff --git a/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js b/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js index 48f3cf14a3..2e9aba9f1d 100644 --- a/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js +++ b/lib/services/apimanagement/lib/models/backendServiceFabricClusterProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Properties of the Service Fabric Type Backend. * diff --git a/lib/services/apimanagement/lib/models/backendUpdateParameters.js b/lib/services/apimanagement/lib/models/backendUpdateParameters.js index 8fc94fb62b..646197eba5 100644 --- a/lib/services/apimanagement/lib/models/backendUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/backendUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Backend update parameters. * diff --git a/lib/services/apimanagement/lib/models/certificateConfiguration.js b/lib/services/apimanagement/lib/models/certificateConfiguration.js index 42234aee8e..f2450a9812 100644 --- a/lib/services/apimanagement/lib/models/certificateConfiguration.js +++ b/lib/services/apimanagement/lib/models/certificateConfiguration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Certificate configuration which consist of non-trusted intermediates and * root certificates. diff --git a/lib/services/apimanagement/lib/models/emailTemplateUpdateParameters.js b/lib/services/apimanagement/lib/models/emailTemplateUpdateParameters.js index 9025e9a4f2..1cf1384fe8 100644 --- a/lib/services/apimanagement/lib/models/emailTemplateUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/emailTemplateUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Email Template update Parameters. * diff --git a/lib/services/apimanagement/lib/models/errorResponse.js b/lib/services/apimanagement/lib/models/errorResponse.js index 2e1010e017..bb2b423218 100644 --- a/lib/services/apimanagement/lib/models/errorResponse.js +++ b/lib/services/apimanagement/lib/models/errorResponse.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Error Response. * diff --git a/lib/services/apimanagement/lib/models/errorResponseBody.js b/lib/services/apimanagement/lib/models/errorResponseBody.js index f9a0d6a597..78dfda081b 100644 --- a/lib/services/apimanagement/lib/models/errorResponseBody.js +++ b/lib/services/apimanagement/lib/models/errorResponseBody.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Error Body contract. * diff --git a/lib/services/apimanagement/lib/models/hostnameConfiguration.js b/lib/services/apimanagement/lib/models/hostnameConfiguration.js index fc7929f78d..84b825afe9 100644 --- a/lib/services/apimanagement/lib/models/hostnameConfiguration.js +++ b/lib/services/apimanagement/lib/models/hostnameConfiguration.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Custom hostname configuration. * diff --git a/lib/services/apimanagement/lib/models/hostnameConfigurationOld.js b/lib/services/apimanagement/lib/models/hostnameConfigurationOld.js index 8c320d1266..1adf81fd98 100644 --- a/lib/services/apimanagement/lib/models/hostnameConfigurationOld.js +++ b/lib/services/apimanagement/lib/models/hostnameConfigurationOld.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Custom hostname configuration. * diff --git a/lib/services/apimanagement/lib/models/networkStatusContract.js b/lib/services/apimanagement/lib/models/networkStatusContract.js index 64faeabae6..d609f47342 100644 --- a/lib/services/apimanagement/lib/models/networkStatusContract.js +++ b/lib/services/apimanagement/lib/models/networkStatusContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Network Status details. * diff --git a/lib/services/apimanagement/lib/models/networkStatusContractByLocation.js b/lib/services/apimanagement/lib/models/networkStatusContractByLocation.js index da981ca7a6..c0bfa7007e 100644 --- a/lib/services/apimanagement/lib/models/networkStatusContractByLocation.js +++ b/lib/services/apimanagement/lib/models/networkStatusContractByLocation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Network Status in the Location * diff --git a/lib/services/apimanagement/lib/models/operation.js b/lib/services/apimanagement/lib/models/operation.js index c54303306b..9cd2455061 100644 --- a/lib/services/apimanagement/lib/models/operation.js +++ b/lib/services/apimanagement/lib/models/operation.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * REST API operation * diff --git a/lib/services/apimanagement/lib/models/operationEntityBaseContract.js b/lib/services/apimanagement/lib/models/operationEntityBaseContract.js index 842c09d81e..59e5954da4 100644 --- a/lib/services/apimanagement/lib/models/operationEntityBaseContract.js +++ b/lib/services/apimanagement/lib/models/operationEntityBaseContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Api Operation Entity Base Contract details. * diff --git a/lib/services/apimanagement/lib/models/operationResultContract.js b/lib/services/apimanagement/lib/models/operationResultContract.js index 75fbe9f977..a72b2ee7e5 100644 --- a/lib/services/apimanagement/lib/models/operationResultContract.js +++ b/lib/services/apimanagement/lib/models/operationResultContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Operation Result. * diff --git a/lib/services/apimanagement/lib/models/operationUpdateContract.js b/lib/services/apimanagement/lib/models/operationUpdateContract.js index 0fac696259..a8d8438993 100644 --- a/lib/services/apimanagement/lib/models/operationUpdateContract.js +++ b/lib/services/apimanagement/lib/models/operationUpdateContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Api Operation Update Contract details. * diff --git a/lib/services/apimanagement/lib/models/policyCollection.js b/lib/services/apimanagement/lib/models/policyCollection.js index 039d66504f..c16a68f5d0 100644 --- a/lib/services/apimanagement/lib/models/policyCollection.js +++ b/lib/services/apimanagement/lib/models/policyCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The response of the list policy operation. * diff --git a/lib/services/apimanagement/lib/models/policySnippetsCollection.js b/lib/services/apimanagement/lib/models/policySnippetsCollection.js index d3f4009ca1..1b01ddf0fe 100644 --- a/lib/services/apimanagement/lib/models/policySnippetsCollection.js +++ b/lib/services/apimanagement/lib/models/policySnippetsCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * The response of the list policy snippets operation. * diff --git a/lib/services/apimanagement/lib/models/quotaCounterCollection.js b/lib/services/apimanagement/lib/models/quotaCounterCollection.js index fb1369fa18..35c065a2b8 100644 --- a/lib/services/apimanagement/lib/models/quotaCounterCollection.js +++ b/lib/services/apimanagement/lib/models/quotaCounterCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Paged Quota Counter list representation. * diff --git a/lib/services/apimanagement/lib/models/quotaCounterContract.js b/lib/services/apimanagement/lib/models/quotaCounterContract.js index cff2f10b1e..b1a4723336 100644 --- a/lib/services/apimanagement/lib/models/quotaCounterContract.js +++ b/lib/services/apimanagement/lib/models/quotaCounterContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Quota counter details. * diff --git a/lib/services/apimanagement/lib/models/recipientEmailCollection.js b/lib/services/apimanagement/lib/models/recipientEmailCollection.js index 29fa7cfcaa..c4f8183255 100644 --- a/lib/services/apimanagement/lib/models/recipientEmailCollection.js +++ b/lib/services/apimanagement/lib/models/recipientEmailCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Paged Recipient User list representation. * diff --git a/lib/services/apimanagement/lib/models/recipientUserCollection.js b/lib/services/apimanagement/lib/models/recipientUserCollection.js index 20bcb76143..0c81aa25c2 100644 --- a/lib/services/apimanagement/lib/models/recipientUserCollection.js +++ b/lib/services/apimanagement/lib/models/recipientUserCollection.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Paged Recipient User list representation. * diff --git a/lib/services/apimanagement/lib/models/representationContract.js b/lib/services/apimanagement/lib/models/representationContract.js index 5fbd1d207e..b3124d2e68 100644 --- a/lib/services/apimanagement/lib/models/representationContract.js +++ b/lib/services/apimanagement/lib/models/representationContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Operation request/response representation details. * diff --git a/lib/services/apimanagement/lib/models/requestContract.js b/lib/services/apimanagement/lib/models/requestContract.js index 91a2b37154..4911acc92d 100644 --- a/lib/services/apimanagement/lib/models/requestContract.js +++ b/lib/services/apimanagement/lib/models/requestContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Operation request details. * diff --git a/lib/services/apimanagement/lib/models/responseContract.js b/lib/services/apimanagement/lib/models/responseContract.js index f0fc928be2..dcb17adf64 100644 --- a/lib/services/apimanagement/lib/models/responseContract.js +++ b/lib/services/apimanagement/lib/models/responseContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Operation response details. * diff --git a/lib/services/apimanagement/lib/models/tagResourceContract.js b/lib/services/apimanagement/lib/models/tagResourceContract.js index a586cb6d12..4ba5221417 100644 --- a/lib/services/apimanagement/lib/models/tagResourceContract.js +++ b/lib/services/apimanagement/lib/models/tagResourceContract.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * TagResource contract properties. * diff --git a/lib/services/apimanagement/lib/models/userCreateParameters.js b/lib/services/apimanagement/lib/models/userCreateParameters.js index 20cd46927f..b35ec3061c 100644 --- a/lib/services/apimanagement/lib/models/userCreateParameters.js +++ b/lib/services/apimanagement/lib/models/userCreateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * User create details. * diff --git a/lib/services/apimanagement/lib/models/userEntityBaseParameters.js b/lib/services/apimanagement/lib/models/userEntityBaseParameters.js index 7167686746..4bdb627965 100644 --- a/lib/services/apimanagement/lib/models/userEntityBaseParameters.js +++ b/lib/services/apimanagement/lib/models/userEntityBaseParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * User Entity Base Parameters set. * diff --git a/lib/services/apimanagement/lib/models/userUpdateParameters.js b/lib/services/apimanagement/lib/models/userUpdateParameters.js index af9c008992..55d918eab0 100644 --- a/lib/services/apimanagement/lib/models/userUpdateParameters.js +++ b/lib/services/apimanagement/lib/models/userUpdateParameters.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * User update parameters. * diff --git a/lib/services/apimanagement/package.json b/lib/services/apimanagement/package.json index 7d97891d23..dffd8f9ab0 100644 --- a/lib/services/apimanagement/package.json +++ b/lib/services/apimanagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/apiManagementClient.js", "types": "./lib/apiManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/apimanagement", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git" From 66e511870dd64f1e49b5929838823e210fb667e9 Mon Sep 17 00:00:00 2001 From: Dan Schulte Date: Wed, 29 Aug 2018 15:38:15 -0700 Subject: [PATCH 4/4] Update azure-arm-apimanagement version to 4.0.0-preview --- lib/services/apimanagement/package-lock.json | 2 +- lib/services/apimanagement/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/apimanagement/package-lock.json b/lib/services/apimanagement/package-lock.json index 33d8703ae9..a499fe6787 100644 --- a/lib/services/apimanagement/package-lock.json +++ b/lib/services/apimanagement/package-lock.json @@ -1,6 +1,6 @@ { "name": "azure-arm-apimanagement", - "version": "3.0.0-preview", + "version": "4.0.0-preview", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/lib/services/apimanagement/package.json b/lib/services/apimanagement/package.json index dffd8f9ab0..9660a86619 100644 --- a/lib/services/apimanagement/package.json +++ b/lib/services/apimanagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-apimanagement", "author": "Microsoft Corporation", "description": "ApiManagementClient Library with typescript type definitions for node", - "version": "3.0.0-preview", + "version": "4.0.0-preview", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"