Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/services/apimanagement/lib/apiManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion lib/services/apimanagement/lib/apiManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions lib/services/apimanagement/lib/models/additionalLocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Description of an additional API Management resource location.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* API Create or Update Parameters.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* API base contract details.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Base Properties of an API Management service resource description.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Parameters supplied to the UpdateHostname operation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions lib/services/apimanagement/lib/models/apiUpdateContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* API update contract details.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* API Authentication Settings.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* External OAuth authorization server Update settings contract.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Backend entity base Parameter set.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Details of the Credentials used to connect to Backend.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/apimanagement/lib/models/backendProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Properties specific to the Backend Type.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Properties of the Service Fabric Type Backend.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Backend update parameters.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Certificate configuration which consist of non-trusted intermediates and
* root certificates.
Expand Down Expand Up @@ -73,7 +71,6 @@ class CertificateConfiguration {
},
certificate: {
required: false,
readOnly: true,
serializedName: 'certificate',
type: {
name: 'Composite',
Expand Down
71 changes: 5 additions & 66 deletions lib/services/apimanagement/lib/models/diagnosticContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Email Template update Parameters.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/apimanagement/lib/models/errorResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Error Response.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/apimanagement/lib/models/errorResponseBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Error Body contract.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Custom hostname configuration.
*
Expand Down Expand Up @@ -118,7 +116,6 @@ class HostnameConfiguration {
},
certificate: {
required: false,
readOnly: true,
serializedName: 'certificate',
type: {
name: 'Composite',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* Custom hostname configuration.
*
Expand Down
Loading