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
51 changes: 51 additions & 0 deletions lib/services/apimanagement/lib/models/currentUserIdentity.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Class representing a CurrentUserIdentity.
*/
class CurrentUserIdentity {
/**
* Create a CurrentUserIdentity.
* @member {string} [id] API Management service user id.
*/
constructor() {
}

/**
* Defines the metadata of CurrentUserIdentity
*
* @returns {object} metadata of CurrentUserIdentity
*
*/
mapper() {
return {
required: false,
serializedName: 'CurrentUserIdentity',
type: {
name: 'Composite',
className: 'CurrentUserIdentity',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CurrentUserIdentity;
63 changes: 58 additions & 5 deletions lib/services/apimanagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -939,22 +939,65 @@ export interface SchemaContract extends Resource {
* @constructor
* Issue Contract details.
*
* @member {string} title The issue title.
* @member {string} description Text describing the issue.
* @member {date} [createdDate] Date and time when the issue was created.
* @member {string} [state] Status of the issue. Possible values include:
* 'proposed', 'open', 'removed', 'resolved', 'closed'
* @member {string} userId A resource identifier for the user created the
* issue.
* @member {string} [apiId] A resource identifier for the API the issue was
* created for.
* @member {string} title The issue title.
* @member {string} description Text describing the issue.
* @member {string} userId A resource identifier for the user created the
* issue.
*/
export interface IssueContract extends Resource {
createdDate?: Date;
state?: string;
apiId?: string;
title: string;
description: string;
userId: string;
}

/**
* @class
* Initializes a new instance of the IssueUpdateContract class.
* @constructor
* Issue update Parameters.
*
* @member {date} [createdDate] Date and time when the issue was created.
* @member {string} [state] Status of the issue. Possible values include:
* 'proposed', 'open', 'removed', 'resolved', 'closed'
* @member {string} [apiId] A resource identifier for the API the issue was
* created for.
* @member {string} [title] The issue title.
* @member {string} [description] Text describing the issue.
* @member {string} [userId] A resource identifier for the user created the
* issue.
*/
export interface IssueUpdateContract {
createdDate?: Date;
state?: string;
apiId?: string;
title?: string;
description?: string;
userId?: string;
}

/**
* @class
* Initializes a new instance of the IssueContractBaseProperties class.
* @constructor
* Issue contract Base Properties.
*
* @member {date} [createdDate] Date and time when the issue was created.
* @member {string} [state] Status of the issue. Possible values include:
* 'proposed', 'open', 'removed', 'resolved', 'closed'
* @member {string} [apiId] A resource identifier for the API the issue was
* created for.
*/
export interface IssueContractBaseProperties {
createdDate?: Date;
state?: string;
userId: string;
apiId?: string;
}

Expand Down Expand Up @@ -3899,6 +3942,16 @@ export interface UserUpdateParameters {
lastName?: string;
}

/**
* @class
* Initializes a new instance of the CurrentUserIdentity class.
* @constructor
* @member {string} [id] API Management service user id.
*/
export interface CurrentUserIdentity {
id?: string;
}

/**
* @class
* Initializes a new instance of the ApiVersionSetContract class.
Expand Down
3 changes: 3 additions & 0 deletions lib/services/apimanagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ exports.OperationEntityBaseContract = require('./operationEntityBaseContract');
exports.OperationUpdateContract = require('./operationUpdateContract');
exports.SchemaContract = require('./schemaContract');
exports.IssueContract = require('./issueContract');
exports.IssueUpdateContract = require('./issueUpdateContract');
exports.IssueContractBaseProperties = require('./issueContractBaseProperties');
exports.IssueCommentContract = require('./issueCommentContract');
exports.IssueAttachmentContract = require('./issueAttachmentContract');
exports.LoggerContract = require('./loggerContract');
Expand Down Expand Up @@ -160,6 +162,7 @@ exports.UserCreateParameters = require('./userCreateParameters');
exports.UserTokenParameters = require('./userTokenParameters');
exports.UserTokenResult = require('./userTokenResult');
exports.UserUpdateParameters = require('./userUpdateParameters');
exports.CurrentUserIdentity = require('./currentUserIdentity');
exports.ApiVersionSetContract = require('./apiVersionSetContract');
exports.ApiVersionSetEntityBase = require('./apiVersionSetEntityBase');
exports.ApiVersionSetUpdateParameters = require('./apiVersionSetUpdateParameters');
Expand Down
44 changes: 22 additions & 22 deletions lib/services/apimanagement/lib/models/issueContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ const models = require('./index');
class IssueContract extends models['Resource'] {
/**
* Create a IssueContract.
* @member {string} title The issue title.
* @member {string} description Text describing the issue.
* @member {date} [createdDate] Date and time when the issue was created.
* @member {string} [state] Status of the issue. Possible values include:
* 'proposed', 'open', 'removed', 'resolved', 'closed'
* @member {string} userId A resource identifier for the user created the
* issue.
* @member {string} [apiId] A resource identifier for the API the issue was
* created for.
* @member {string} title The issue title.
* @member {string} description Text describing the issue.
* @member {string} userId A resource identifier for the user created the
* issue.
*/
constructor() {
super();
Expand Down Expand Up @@ -72,44 +72,44 @@ class IssueContract extends models['Resource'] {
name: 'String'
}
},
title: {
required: true,
serializedName: 'properties.title',
createdDate: {
required: false,
serializedName: 'properties.createdDate',
type: {
name: 'String'
name: 'DateTime'
}
},
description: {
required: true,
serializedName: 'properties.description',
state: {
required: false,
serializedName: 'properties.state',
type: {
name: 'String'
}
},
createdDate: {
apiId: {
required: false,
serializedName: 'properties.createdDate',
serializedName: 'properties.apiId',
type: {
name: 'DateTime'
name: 'String'
}
},
state: {
required: false,
serializedName: 'properties.state',
title: {
required: true,
serializedName: 'properties.title',
type: {
name: 'String'
}
},
userId: {
description: {
required: true,
serializedName: 'properties.userId',
serializedName: 'properties.description',
type: {
name: 'String'
}
},
apiId: {
required: false,
serializedName: 'properties.apiId',
userId: {
required: true,
serializedName: 'properties.userId',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Issue contract Base Properties.
*
*/
class IssueContractBaseProperties {
/**
* Create a IssueContractBaseProperties.
* @member {date} [createdDate] Date and time when the issue was created.
* @member {string} [state] Status of the issue. Possible values include:
* 'proposed', 'open', 'removed', 'resolved', 'closed'
* @member {string} [apiId] A resource identifier for the API the issue was
* created for.
*/
constructor() {
}

/**
* Defines the metadata of IssueContractBaseProperties
*
* @returns {object} metadata of IssueContractBaseProperties
*
*/
mapper() {
return {
required: false,
serializedName: 'IssueContractBaseProperties',
type: {
name: 'Composite',
className: 'IssueContractBaseProperties',
modelProperties: {
createdDate: {
required: false,
serializedName: 'createdDate',
type: {
name: 'DateTime'
}
},
state: {
required: false,
serializedName: 'state',
type: {
name: 'String'
}
},
apiId: {
required: false,
serializedName: 'apiId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = IssueContractBaseProperties;
Loading