Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
[AutoPR apimanagement/resource-manager] Added missing PATCH operation…
Browse files Browse the repository at this point in the history
… to Api Issue resource (#4070)

* Generated from 73c3ebb5e203fc53ce5cdb52d31170729775848f

Added missing PATCH operation to Api Issue resource

* Generated from dcb5eb7ef83a50275a7d92747baaad3a850286a4

Added missing PATCH operation to Api Issue resource

* Generated from ccc27d4c2f7026867aa2bcf3e67b6359c3ec0f11

Added missing PATCH operation to Api Issue resource
  • Loading branch information
AutorestCI authored Nov 14, 2018
1 parent 1d33f60 commit 6715ac2
Show file tree
Hide file tree
Showing 7 changed files with 758 additions and 62 deletions.
53 changes: 48 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
2 changes: 2 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
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;
95 changes: 95 additions & 0 deletions lib/services/apimanagement/lib/models/issueUpdateContract.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* 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 update Parameters.
*
*/
class IssueUpdateContract {
/**
* Create a IssueUpdateContract.
* @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.
*/
constructor() {
}

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

module.exports = IssueUpdateContract;
Loading

0 comments on commit 6715ac2

Please sign in to comment.