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

[AutoPR apimanagement/resource-manager] Issues Resource added to version 2018-01-01 #2654

Merged
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
7 changes: 6 additions & 1 deletion lib/services/apimanagement/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
uid: azure-arm-apimanagement
summary: *content

---
# Microsoft Azure SDK for Node.js - ApiManagementClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**
Expand Down Expand Up @@ -29,7 +34,7 @@ msRestAzure.interactiveLogin().then((creds) => {
console.log(result);
});
}).catch((err) => {
console.log('An error ocurred:');
console.log('An error occurred:');
console.dir(err, {depth: null, colors: true});
});

Expand Down
8 changes: 8 additions & 0 deletions lib/services/apimanagement/lib/apiManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ export default class ApiManagementClient extends AzureServiceClient {
apiSchema: operations.ApiSchema;
apiDiagnostic: operations.ApiDiagnostic;
apiDiagnosticLogger: operations.ApiDiagnosticLogger;
apiIssues: operations.ApiIssues;
apiIssue: operations.ApiIssue;
apiIssueComments: operations.ApiIssueComments;
apiIssuComment: operations.ApiIssuComment;
apiIssueComment: operations.ApiIssueComment;
apiIssueAttachments: operations.ApiIssueAttachments;
apiIssuAttachment: operations.ApiIssuAttachment;
apiIssueAttachment: operations.ApiIssueAttachment;
authorizationServer: operations.AuthorizationServer;
backend: operations.Backend;
certificate: operations.Certificate;
Expand Down
8 changes: 8 additions & 0 deletions lib/services/apimanagement/lib/apiManagementClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ class ApiManagementClient extends ServiceClient {
this.apiSchema = new operations.ApiSchema(this);
this.apiDiagnostic = new operations.ApiDiagnostic(this);
this.apiDiagnosticLogger = new operations.ApiDiagnosticLogger(this);
this.apiIssues = new operations.ApiIssues(this);
this.apiIssue = new operations.ApiIssue(this);
this.apiIssueComments = new operations.ApiIssueComments(this);
this.apiIssuComment = new operations.ApiIssuComment(this);
this.apiIssueComment = new operations.ApiIssueComment(this);
this.apiIssueAttachments = new operations.ApiIssueAttachments(this);
this.apiIssuAttachment = new operations.ApiIssuAttachment(this);
this.apiIssueAttachment = new operations.ApiIssueAttachment(this);
this.authorizationServer = new operations.AuthorizationServer(this);
this.backend = new operations.Backend(this);
this.certificate = new operations.Certificate(this);
Expand Down
2 changes: 2 additions & 0 deletions lib/services/apimanagement/lib/models/apiCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class ApiCollection extends Array {
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
Expand All @@ -53,6 +54,7 @@ class ApiCollection extends Array {
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
Expand Down
2 changes: 2 additions & 0 deletions lib/services/apimanagement/lib/models/apiReleaseCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class ApiReleaseCollection extends Array {
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
Expand All @@ -53,6 +54,7 @@ class ApiReleaseCollection extends Array {
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class ApiRevisionCollection extends Array {
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
Expand All @@ -53,6 +54,7 @@ class ApiRevisionCollection extends Array {
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
Expand Down
106 changes: 101 additions & 5 deletions lib/services/apimanagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,66 @@ export interface SchemaContract extends Resource {
value?: string;
}

/**
* @class
* Initializes a new instance of the IssueContract class.
* @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.
*/
export interface IssueContract extends Resource {
title: string;
description: string;
createdDate?: Date;
state?: string;
userId: string;
apiId?: string;
}

/**
* @class
* Initializes a new instance of the IssueCommentContract class.
* @constructor
* Issue Comment Contract details.
*
* @member {string} text Comment text.
* @member {date} [createdDate] Date and time when the comment was created.
* @member {string} userId A resource identifier for the user who left the
* comment.
*/
export interface IssueCommentContract extends Resource {
text: string;
createdDate?: Date;
userId: string;
}

/**
* @class
* Initializes a new instance of the IssueAttachmentContract class.
* @constructor
* Issue Attachment Contract details.
*
* @member {string} title Filename by which the binary data will be saved.
* @member {string} contentFormat Either 'link' if content is provided via an
* HTTP link or the MIME type of the Base64-encoded binary data provided in the
* 'content' property.
* @member {string} content An HTTP link or Base64-encoded binary data.
*/
export interface IssueAttachmentContract extends Resource {
title: string;
contentFormat: string;
content: string;
}

/**
* @class
* Initializes a new instance of the LoggerContract class.
Expand Down Expand Up @@ -3820,7 +3880,7 @@ export interface RegionListResult extends Array<RegionContract> {
* @member {string} [nextLink] Next page link if any.
*/
export interface ApiCollection extends Array<ApiContract> {
nextLink?: string;
readonly nextLink?: string;
}

/**
Expand All @@ -3845,7 +3905,7 @@ export interface TagResourceCollection extends Array<TagResourceContract> {
* @member {string} [nextLink] Next page link if any.
*/
export interface ApiRevisionCollection extends Array<ApiRevisionContract> {
nextLink?: string;
readonly nextLink?: string;
}

/**
Expand All @@ -3857,7 +3917,7 @@ export interface ApiRevisionCollection extends Array<ApiRevisionContract> {
* @member {string} [nextLink] Next page link if any.
*/
export interface ApiReleaseCollection extends Array<ApiReleaseContract> {
nextLink?: string;
readonly nextLink?: string;
}

/**
Expand All @@ -3869,7 +3929,7 @@ export interface ApiReleaseCollection extends Array<ApiReleaseContract> {
* @member {string} [nextLink] Next page link if any.
*/
export interface OperationCollection extends Array<OperationContract> {
nextLink?: string;
readonly nextLink?: string;
}

/**
Expand All @@ -3893,7 +3953,7 @@ export interface ProductCollection extends Array<ProductContract> {
* @member {string} [nextLink] Next page link if any.
*/
export interface SchemaCollection extends Array<SchemaContract> {
nextLink?: string;
readonly nextLink?: string;
}

/**
Expand Down Expand Up @@ -3921,6 +3981,42 @@ export interface LoggerCollection extends Array<LoggerContract> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the IssueCollection class.
* @constructor
* Paged Issue list representation.
*
* @member {string} [nextLink] Next page link if any.
*/
export interface IssueCollection extends Array<IssueContract> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the IssueCommentCollection class.
* @constructor
* Paged Issue Comment list representation.
*
* @member {string} [nextLink] Next page link if any.
*/
export interface IssueCommentCollection extends Array<IssueCommentContract> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the IssueAttachmentCollection class.
* @constructor
* Paged Issue Attachment list representation.
*
* @member {string} [nextLink] Next page link if any.
*/
export interface IssueAttachmentCollection extends Array<IssueAttachmentContract> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the AuthorizationServerCollection class.
Expand Down
6 changes: 6 additions & 0 deletions lib/services/apimanagement/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ exports.ResponseContract = require('./responseContract');
exports.OperationEntityBaseContract = require('./operationEntityBaseContract');
exports.OperationUpdateContract = require('./operationUpdateContract');
exports.SchemaContract = require('./schemaContract');
exports.IssueContract = require('./issueContract');
exports.IssueCommentContract = require('./issueCommentContract');
exports.IssueAttachmentContract = require('./issueAttachmentContract');
exports.LoggerContract = require('./loggerContract');
exports.DiagnosticContract = require('./diagnosticContract');
exports.ProductEntityBaseParameters = require('./productEntityBaseParameters');
Expand Down Expand Up @@ -168,6 +171,9 @@ 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');
exports.AuthorizationServerCollection = require('./authorizationServerCollection');
exports.BackendCollection = require('./backendCollection');
exports.CertificateCollection = require('./certificateCollection');
Expand Down
69 changes: 69 additions & 0 deletions lib/services/apimanagement/lib/models/issueAttachmentCollection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* 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';

/**
* Paged Issue Attachment list representation.
*/
class IssueAttachmentCollection extends Array {
/**
* Create a IssueAttachmentCollection.
* @member {string} [nextLink] Next page link if any.
*/
constructor() {
super();
}

/**
* Defines the metadata of IssueAttachmentCollection
*
* @returns {object} metadata of IssueAttachmentCollection
*
*/
mapper() {
return {
required: false,
serializedName: 'IssueAttachmentCollection',
type: {
name: 'Composite',
className: 'IssueAttachmentCollection',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'IssueAttachmentContractElementType',
type: {
name: 'Composite',
className: 'IssueAttachmentContract'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = IssueAttachmentCollection;
Loading