language
stringclasses 6
values | original_string
stringlengths 25
887k
| text
stringlengths 25
887k
|
---|---|---|
JavaScript | projectsDeleteCard(cardId, callback) {
let postBody = null;
// verify the required parameter 'cardId' is set
if (cardId === undefined || cardId === null) {
throw new Error("Missing the required parameter 'cardId' when calling projectsDeleteCard");
}
let pathParams = {
'card_id': cardId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/projects/columns/cards/{card_id}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsDeleteCard(cardId, callback) {
let postBody = null;
// verify the required parameter 'cardId' is set
if (cardId === undefined || cardId === null) {
throw new Error("Missing the required parameter 'cardId' when calling projectsDeleteCard");
}
let pathParams = {
'card_id': cardId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/projects/columns/cards/{card_id}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsDeleteColumn(columnId, callback) {
let postBody = null;
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsDeleteColumn");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/projects/columns/{column_id}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsDeleteColumn(columnId, callback) {
let postBody = null;
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsDeleteColumn");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/projects/columns/{column_id}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsGet(projectId, callback) {
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsGet");
}
let pathParams = {
'project_id': projectId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = Project;
return this.apiClient.callApi(
'/projects/{project_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsGet(projectId, callback) {
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsGet");
}
let pathParams = {
'project_id': projectId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = Project;
return this.apiClient.callApi(
'/projects/{project_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsGetCard(cardId, callback) {
let postBody = null;
// verify the required parameter 'cardId' is set
if (cardId === undefined || cardId === null) {
throw new Error("Missing the required parameter 'cardId' when calling projectsGetCard");
}
let pathParams = {
'card_id': cardId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = ProjectCard;
return this.apiClient.callApi(
'/projects/columns/cards/{card_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsGetCard(cardId, callback) {
let postBody = null;
// verify the required parameter 'cardId' is set
if (cardId === undefined || cardId === null) {
throw new Error("Missing the required parameter 'cardId' when calling projectsGetCard");
}
let pathParams = {
'card_id': cardId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = ProjectCard;
return this.apiClient.callApi(
'/projects/columns/cards/{card_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsGetColumn(columnId, callback) {
let postBody = null;
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsGetColumn");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = ProjectColumn;
return this.apiClient.callApi(
'/projects/columns/{column_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsGetColumn(columnId, callback) {
let postBody = null;
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsGetColumn");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = ProjectColumn;
return this.apiClient.callApi(
'/projects/columns/{column_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsGetPermissionForUser(projectId, username, callback) {
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsGetPermissionForUser");
}
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling projectsGetPermissionForUser");
}
let pathParams = {
'project_id': projectId,
'username': username
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = RepositoryCollaboratorPermission;
return this.apiClient.callApi(
'/projects/{project_id}/collaborators/{username}/permission', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsGetPermissionForUser(projectId, username, callback) {
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsGetPermissionForUser");
}
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling projectsGetPermissionForUser");
}
let pathParams = {
'project_id': projectId,
'username': username
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = RepositoryCollaboratorPermission;
return this.apiClient.callApi(
'/projects/{project_id}/collaborators/{username}/permission', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsListCards(columnId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsListCards");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
'archived_state': opts['archivedState'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [ProjectCard];
return this.apiClient.callApi(
'/projects/columns/{column_id}/cards', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsListCards(columnId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsListCards");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
'archived_state': opts['archivedState'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [ProjectCard];
return this.apiClient.callApi(
'/projects/columns/{column_id}/cards', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsListCollaborators(projectId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsListCollaborators");
}
let pathParams = {
'project_id': projectId
};
let queryParams = {
'affiliation': opts['affiliation'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [SimpleUser];
return this.apiClient.callApi(
'/projects/{project_id}/collaborators', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsListCollaborators(projectId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsListCollaborators");
}
let pathParams = {
'project_id': projectId
};
let queryParams = {
'affiliation': opts['affiliation'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [SimpleUser];
return this.apiClient.callApi(
'/projects/{project_id}/collaborators', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsListForOrg(org, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'org' is set
if (org === undefined || org === null) {
throw new Error("Missing the required parameter 'org' when calling projectsListForOrg");
}
let pathParams = {
'org': org
};
let queryParams = {
'state': opts['state'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Project];
return this.apiClient.callApi(
'/orgs/{org}/projects', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsListForOrg(org, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'org' is set
if (org === undefined || org === null) {
throw new Error("Missing the required parameter 'org' when calling projectsListForOrg");
}
let pathParams = {
'org': org
};
let queryParams = {
'state': opts['state'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Project];
return this.apiClient.callApi(
'/orgs/{org}/projects', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsListForRepo(owner, repo, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling projectsListForRepo");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling projectsListForRepo");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
'state': opts['state'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Project];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/projects', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsListForRepo(owner, repo, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling projectsListForRepo");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling projectsListForRepo");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
'state': opts['state'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Project];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/projects', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsMoveCard(cardId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject40'];
// verify the required parameter 'cardId' is set
if (cardId === undefined || cardId === null) {
throw new Error("Missing the required parameter 'cardId' when calling projectsMoveCard");
}
let pathParams = {
'card_id': cardId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Object;
return this.apiClient.callApi(
'/projects/columns/cards/{card_id}/moves', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsMoveCard(cardId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject40'];
// verify the required parameter 'cardId' is set
if (cardId === undefined || cardId === null) {
throw new Error("Missing the required parameter 'cardId' when calling projectsMoveCard");
}
let pathParams = {
'card_id': cardId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Object;
return this.apiClient.callApi(
'/projects/columns/cards/{card_id}/moves', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsMoveColumn(columnId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject42'];
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsMoveColumn");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Object;
return this.apiClient.callApi(
'/projects/columns/{column_id}/moves', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsMoveColumn(columnId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject42'];
// verify the required parameter 'columnId' is set
if (columnId === undefined || columnId === null) {
throw new Error("Missing the required parameter 'columnId' when calling projectsMoveColumn");
}
let pathParams = {
'column_id': columnId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Object;
return this.apiClient.callApi(
'/projects/columns/{column_id}/moves', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsRemoveCollaborator(projectId, username, callback) {
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsRemoveCollaborator");
}
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling projectsRemoveCollaborator");
}
let pathParams = {
'project_id': projectId,
'username': username
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/projects/{project_id}/collaborators/{username}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsRemoveCollaborator(projectId, username, callback) {
let postBody = null;
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsRemoveCollaborator");
}
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling projectsRemoveCollaborator");
}
let pathParams = {
'project_id': projectId,
'username': username
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/projects/{project_id}/collaborators/{username}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | projectsUpdate(projectId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject43'];
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsUpdate");
}
let pathParams = {
'project_id': projectId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Project;
return this.apiClient.callApi(
'/projects/{project_id}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | projectsUpdate(projectId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject43'];
// verify the required parameter 'projectId' is set
if (projectId === undefined || projectId === null) {
throw new Error("Missing the required parameter 'projectId' when calling projectsUpdate");
}
let pathParams = {
'project_id': projectId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Project;
return this.apiClient.callApi(
'/projects/{project_id}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | function PullRequest(links, additions, assignee, authorAssociation, base, body, changedFiles, closedAt, comments, commentsUrl, commits, commitsUrl, createdAt, deletions, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, maintainerCanModify, mergeCommitSha, mergeable, mergeableState, merged, mergedAt, mergedBy, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewComments, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user) {
_classCallCheck(this, PullRequest);
PullRequest.initialize(this, links, additions, assignee, authorAssociation, base, body, changedFiles, closedAt, comments, commentsUrl, commits, commitsUrl, createdAt, deletions, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, maintainerCanModify, mergeCommitSha, mergeable, mergeableState, merged, mergedAt, mergedBy, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewComments, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user);
} | function PullRequest(links, additions, assignee, authorAssociation, base, body, changedFiles, closedAt, comments, commentsUrl, commits, commitsUrl, createdAt, deletions, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, maintainerCanModify, mergeCommitSha, mergeable, mergeableState, merged, mergedAt, mergedBy, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewComments, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user) {
_classCallCheck(this, PullRequest);
PullRequest.initialize(this, links, additions, assignee, authorAssociation, base, body, changedFiles, closedAt, comments, commentsUrl, commits, commitsUrl, createdAt, deletions, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, maintainerCanModify, mergeCommitSha, mergeable, mergeableState, merged, mergedAt, mergedBy, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewComments, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user);
} |
JavaScript | function ReposOwnerRepoCheckSuitesPreferencesAutoTriggerChecks(appId, setting) {
_classCallCheck(this, ReposOwnerRepoCheckSuitesPreferencesAutoTriggerChecks);
ReposOwnerRepoCheckSuitesPreferencesAutoTriggerChecks.initialize(this, appId, setting);
} | function ReposOwnerRepoCheckSuitesPreferencesAutoTriggerChecks(appId, setting) {
_classCallCheck(this, ReposOwnerRepoCheckSuitesPreferencesAutoTriggerChecks);
ReposOwnerRepoCheckSuitesPreferencesAutoTriggerChecks.initialize(this, appId, setting);
} |
JavaScript | issuesAddAssignees(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject84'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesAddAssignees");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesAddAssignees");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesAddAssignees");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = IssueSimple;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/assignees', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesAddAssignees(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject84'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesAddAssignees");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesAddAssignees");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesAddAssignees");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = IssueSimple;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/assignees', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesCheckUserCanBeAssigned(owner, repo, assignee, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesCheckUserCanBeAssigned");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesCheckUserCanBeAssigned");
}
// verify the required parameter 'assignee' is set
if (assignee === undefined || assignee === null) {
throw new Error("Missing the required parameter 'assignee' when calling issuesCheckUserCanBeAssigned");
}
let pathParams = {
'owner': owner,
'repo': repo,
'assignee': assignee
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/assignees/{assignee}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesCheckUserCanBeAssigned(owner, repo, assignee, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesCheckUserCanBeAssigned");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesCheckUserCanBeAssigned");
}
// verify the required parameter 'assignee' is set
if (assignee === undefined || assignee === null) {
throw new Error("Missing the required parameter 'assignee' when calling issuesCheckUserCanBeAssigned");
}
let pathParams = {
'owner': owner,
'repo': repo,
'assignee': assignee
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/assignees/{assignee}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesCreate(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject80'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesCreate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesCreate");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Issue;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesCreate(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject80'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesCreate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesCreate");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Issue;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesCreateComment(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject86'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesCreateComment");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesCreateComment");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesCreateComment");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = IssueComment;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/comments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesCreateComment(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject86'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesCreateComment");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesCreateComment");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesCreateComment");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = IssueComment;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/comments', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesGet(owner, repo, issueNumber, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesGet");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesGet");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesGet");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = Issue;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesGet(owner, repo, issueNumber, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesGet");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesGet");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesGet");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = Issue;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesList(opts, callback) {
opts = opts || {};
let postBody = null;
let pathParams = {
};
let queryParams = {
'filter': opts['filter'],
'state': opts['state'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'collab': opts['collab'],
'orgs': opts['orgs'],
'owned': opts['owned'],
'pulls': opts['pulls'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Issue];
return this.apiClient.callApi(
'/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesList(opts, callback) {
opts = opts || {};
let postBody = null;
let pathParams = {
};
let queryParams = {
'filter': opts['filter'],
'state': opts['state'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'collab': opts['collab'],
'orgs': opts['orgs'],
'owned': opts['owned'],
'pulls': opts['pulls'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Issue];
return this.apiClient.callApi(
'/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesListAssignees(owner, repo, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesListAssignees");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesListAssignees");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [SimpleUser];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/assignees', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesListAssignees(owner, repo, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesListAssignees");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesListAssignees");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [SimpleUser];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/assignees', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesListComments(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesListComments");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesListComments");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesListComments");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [IssueComment];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/comments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesListComments(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesListComments");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesListComments");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesListComments");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [IssueComment];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/comments', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesListForAuthenticatedUser(opts, callback) {
opts = opts || {};
let postBody = null;
let pathParams = {
};
let queryParams = {
'filter': opts['filter'],
'state': opts['state'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Issue];
return this.apiClient.callApi(
'/user/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesListForAuthenticatedUser(opts, callback) {
opts = opts || {};
let postBody = null;
let pathParams = {
};
let queryParams = {
'filter': opts['filter'],
'state': opts['state'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Issue];
return this.apiClient.callApi(
'/user/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesListForOrg(org, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'org' is set
if (org === undefined || org === null) {
throw new Error("Missing the required parameter 'org' when calling issuesListForOrg");
}
let pathParams = {
'org': org
};
let queryParams = {
'filter': opts['filter'],
'state': opts['state'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Issue];
return this.apiClient.callApi(
'/orgs/{org}/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesListForOrg(org, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'org' is set
if (org === undefined || org === null) {
throw new Error("Missing the required parameter 'org' when calling issuesListForOrg");
}
let pathParams = {
'org': org
};
let queryParams = {
'filter': opts['filter'],
'state': opts['state'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Issue];
return this.apiClient.callApi(
'/orgs/{org}/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesListForRepo(owner, repo, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesListForRepo");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesListForRepo");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
'milestone': opts['milestone'],
'state': opts['state'],
'assignee': opts['assignee'],
'creator': opts['creator'],
'mentioned': opts['mentioned'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [IssueSimple];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesListForRepo(owner, repo, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesListForRepo");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesListForRepo");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
'milestone': opts['milestone'],
'state': opts['state'],
'assignee': opts['assignee'],
'creator': opts['creator'],
'mentioned': opts['mentioned'],
'labels': opts['labels'],
'sort': opts['sort'],
'direction': opts['direction'],
'since': opts['since'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [IssueSimple];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesLock(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject89'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesLock");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesLock");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesLock");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/lock', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesLock(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject89'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesLock");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesLock");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesLock");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/lock', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesRemoveAllLabels(owner, repo, issueNumber, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesRemoveAllLabels");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesRemoveAllLabels");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesRemoveAllLabels");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/labels', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesRemoveAllLabels(owner, repo, issueNumber, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesRemoveAllLabels");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesRemoveAllLabels");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesRemoveAllLabels");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/labels', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesRemoveAssignees(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject85'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesRemoveAssignees");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesRemoveAssignees");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesRemoveAssignees");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = IssueSimple;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/assignees', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesRemoveAssignees(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject85'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesRemoveAssignees");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesRemoveAssignees");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesRemoveAssignees");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = IssueSimple;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/assignees', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesRemoveLabel(owner, repo, issueNumber, name, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesRemoveLabel");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesRemoveLabel");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesRemoveLabel");
}
// verify the required parameter 'name' is set
if (name === undefined || name === null) {
throw new Error("Missing the required parameter 'name' when calling issuesRemoveLabel");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber,
'name': name
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Label];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesRemoveLabel(owner, repo, issueNumber, name, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesRemoveLabel");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesRemoveLabel");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesRemoveLabel");
}
// verify the required parameter 'name' is set
if (name === undefined || name === null) {
throw new Error("Missing the required parameter 'name' when calling issuesRemoveLabel");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber,
'name': name
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [Label];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesSetLabels(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject87'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesSetLabels");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesSetLabels");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesSetLabels");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = [Label];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/labels', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesSetLabels(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject87'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesSetLabels");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesSetLabels");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesSetLabels");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = [Label];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/labels', 'PUT',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesUnlock(owner, repo, issueNumber, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesUnlock");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesUnlock");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesUnlock");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/lock', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesUnlock(owner, repo, issueNumber, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesUnlock");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesUnlock");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesUnlock");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}/lock', 'DELETE',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | issuesUpdate(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject83'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesUpdate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesUpdate");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesUpdate");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Issue;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | issuesUpdate(owner, repo, issueNumber, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject83'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling issuesUpdate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling issuesUpdate");
}
// verify the required parameter 'issueNumber' is set
if (issueNumber === undefined || issueNumber === null) {
throw new Error("Missing the required parameter 'issueNumber' when calling issuesUpdate");
}
let pathParams = {
'owner': owner,
'repo': repo,
'issue_number': issueNumber
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = Issue;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/issues/{issue_number}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GistFull();
GistSimple.constructFromObject(data, obj);
GistFullAllOf.constructFromObject(data, obj);
if (data.hasOwnProperty('comments')) {
obj['comments'] = ApiClient.convertToType(data['comments'], 'Number');
}
if (data.hasOwnProperty('comments_url')) {
obj['comments_url'] = ApiClient.convertToType(data['comments_url'], 'String');
}
if (data.hasOwnProperty('commits_url')) {
obj['commits_url'] = ApiClient.convertToType(data['commits_url'], 'String');
}
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('files')) {
obj['files'] = ApiClient.convertToType(data['files'], {'String': GistSimpleFiles});
}
if (data.hasOwnProperty('forks_url')) {
obj['forks_url'] = ApiClient.convertToType(data['forks_url'], 'String');
}
if (data.hasOwnProperty('git_pull_url')) {
obj['git_pull_url'] = ApiClient.convertToType(data['git_pull_url'], 'String');
}
if (data.hasOwnProperty('git_push_url')) {
obj['git_push_url'] = ApiClient.convertToType(data['git_push_url'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('owner')) {
obj['owner'] = SimpleUser.constructFromObject(data['owner']);
}
if (data.hasOwnProperty('public')) {
obj['public'] = ApiClient.convertToType(data['public'], 'Boolean');
}
if (data.hasOwnProperty('truncated')) {
obj['truncated'] = ApiClient.convertToType(data['truncated'], 'Boolean');
}
if (data.hasOwnProperty('updated_at')) {
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('user')) {
obj['user'] = ApiClient.convertToType(data['user'], 'String');
}
if (data.hasOwnProperty('fork_of')) {
obj['fork_of'] = ApiClient.convertToType(data['fork_of'], GistSimple);
}
if (data.hasOwnProperty('forks')) {
obj['forks'] = ApiClient.convertToType(data['forks'], [GistFullAllOfForks]);
}
if (data.hasOwnProperty('history')) {
obj['history'] = ApiClient.convertToType(data['history'], [GistFullAllOfHistory]);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GistFull();
GistSimple.constructFromObject(data, obj);
GistFullAllOf.constructFromObject(data, obj);
if (data.hasOwnProperty('comments')) {
obj['comments'] = ApiClient.convertToType(data['comments'], 'Number');
}
if (data.hasOwnProperty('comments_url')) {
obj['comments_url'] = ApiClient.convertToType(data['comments_url'], 'String');
}
if (data.hasOwnProperty('commits_url')) {
obj['commits_url'] = ApiClient.convertToType(data['commits_url'], 'String');
}
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('files')) {
obj['files'] = ApiClient.convertToType(data['files'], {'String': GistSimpleFiles});
}
if (data.hasOwnProperty('forks_url')) {
obj['forks_url'] = ApiClient.convertToType(data['forks_url'], 'String');
}
if (data.hasOwnProperty('git_pull_url')) {
obj['git_pull_url'] = ApiClient.convertToType(data['git_pull_url'], 'String');
}
if (data.hasOwnProperty('git_push_url')) {
obj['git_push_url'] = ApiClient.convertToType(data['git_push_url'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('owner')) {
obj['owner'] = SimpleUser.constructFromObject(data['owner']);
}
if (data.hasOwnProperty('public')) {
obj['public'] = ApiClient.convertToType(data['public'], 'Boolean');
}
if (data.hasOwnProperty('truncated')) {
obj['truncated'] = ApiClient.convertToType(data['truncated'], 'Boolean');
}
if (data.hasOwnProperty('updated_at')) {
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('user')) {
obj['user'] = ApiClient.convertToType(data['user'], 'String');
}
if (data.hasOwnProperty('fork_of')) {
obj['fork_of'] = ApiClient.convertToType(data['fork_of'], GistSimple);
}
if (data.hasOwnProperty('forks')) {
obj['forks'] = ApiClient.convertToType(data['forks'], [GistFullAllOfForks]);
}
if (data.hasOwnProperty('history')) {
obj['history'] = ApiClient.convertToType(data['history'], [GistFullAllOfHistory]);
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GistFullAllOfUser();
if (data.hasOwnProperty('avatar_url')) {
obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String');
}
if (data.hasOwnProperty('events_url')) {
obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String');
}
if (data.hasOwnProperty('followers_url')) {
obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String');
}
if (data.hasOwnProperty('following_url')) {
obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String');
}
if (data.hasOwnProperty('gists_url')) {
obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String');
}
if (data.hasOwnProperty('gravatar_id')) {
obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('login')) {
obj['login'] = ApiClient.convertToType(data['login'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('organizations_url')) {
obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String');
}
if (data.hasOwnProperty('received_events_url')) {
obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String');
}
if (data.hasOwnProperty('repos_url')) {
obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String');
}
if (data.hasOwnProperty('site_admin')) {
obj['site_admin'] = ApiClient.convertToType(data['site_admin'], 'Boolean');
}
if (data.hasOwnProperty('starred_url')) {
obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String');
}
if (data.hasOwnProperty('subscriptions_url')) {
obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GistFullAllOfUser();
if (data.hasOwnProperty('avatar_url')) {
obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String');
}
if (data.hasOwnProperty('events_url')) {
obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String');
}
if (data.hasOwnProperty('followers_url')) {
obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String');
}
if (data.hasOwnProperty('following_url')) {
obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String');
}
if (data.hasOwnProperty('gists_url')) {
obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String');
}
if (data.hasOwnProperty('gravatar_id')) {
obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('login')) {
obj['login'] = ApiClient.convertToType(data['login'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('organizations_url')) {
obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String');
}
if (data.hasOwnProperty('received_events_url')) {
obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String');
}
if (data.hasOwnProperty('repos_url')) {
obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String');
}
if (data.hasOwnProperty('site_admin')) {
obj['site_admin'] = ApiClient.convertToType(data['site_admin'], 'Boolean');
}
if (data.hasOwnProperty('starred_url')) {
obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String');
}
if (data.hasOwnProperty('subscriptions_url')) {
obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new PullRequestHeadRepoLicense();
if (data.hasOwnProperty('key')) {
obj['key'] = ApiClient.convertToType(data['key'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('spdx_id')) {
obj['spdx_id'] = ApiClient.convertToType(data['spdx_id'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new PullRequestHeadRepoLicense();
if (data.hasOwnProperty('key')) {
obj['key'] = ApiClient.convertToType(data['key'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('spdx_id')) {
obj['spdx_id'] = ApiClient.convertToType(data['spdx_id'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, collaborators, name, privateRepos, space) {
obj['collaborators'] = collaborators;
obj['name'] = name;
obj['private_repos'] = privateRepos;
obj['space'] = space;
} | static initialize(obj, collaborators, name, privateRepos, space) {
obj['collaborators'] = collaborators;
obj['name'] = name;
obj['private_repos'] = privateRepos;
obj['space'] = space;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new PrivateUserPlan();
if (data.hasOwnProperty('collaborators')) {
obj['collaborators'] = ApiClient.convertToType(data['collaborators'], 'Number');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('private_repos')) {
obj['private_repos'] = ApiClient.convertToType(data['private_repos'], 'Number');
}
if (data.hasOwnProperty('space')) {
obj['space'] = ApiClient.convertToType(data['space'], 'Number');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new PrivateUserPlan();
if (data.hasOwnProperty('collaborators')) {
obj['collaborators'] = ApiClient.convertToType(data['collaborators'], 'Number');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('private_repos')) {
obj['private_repos'] = ApiClient.convertToType(data['private_repos'], 'Number');
}
if (data.hasOwnProperty('space')) {
obj['space'] = ApiClient.convertToType(data['space'], 'Number');
}
}
return obj;
} |
JavaScript | function CodeScanningAlert() {
_classCallCheck(this, CodeScanningAlert);
CodeScanningAlert.initialize(this);
} | function CodeScanningAlert() {
_classCallCheck(this, CodeScanningAlert);
CodeScanningAlert.initialize(this);
} |
JavaScript | function WorkflowRun(artifactsUrl, cancelUrl, checkSuiteUrl, conclusion, createdAt, event, headBranch, headCommit, headRepository, headSha, htmlUrl, id, jobsUrl, logsUrl, nodeId, pullRequests, repository, rerunUrl, runNumber, status, updatedAt, url, workflowId, workflowUrl) {
_classCallCheck(this, WorkflowRun);
WorkflowRun.initialize(this, artifactsUrl, cancelUrl, checkSuiteUrl, conclusion, createdAt, event, headBranch, headCommit, headRepository, headSha, htmlUrl, id, jobsUrl, logsUrl, nodeId, pullRequests, repository, rerunUrl, runNumber, status, updatedAt, url, workflowId, workflowUrl);
} | function WorkflowRun(artifactsUrl, cancelUrl, checkSuiteUrl, conclusion, createdAt, event, headBranch, headCommit, headRepository, headSha, htmlUrl, id, jobsUrl, logsUrl, nodeId, pullRequests, repository, rerunUrl, runNumber, status, updatedAt, url, workflowId, workflowUrl) {
_classCallCheck(this, WorkflowRun);
WorkflowRun.initialize(this, artifactsUrl, cancelUrl, checkSuiteUrl, conclusion, createdAt, event, headBranch, headCommit, headRepository, headSha, htmlUrl, id, jobsUrl, logsUrl, nodeId, pullRequests, repository, rerunUrl, runNumber, status, updatedAt, url, workflowId, workflowUrl);
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject133();
if (data.hasOwnProperty('role')) {
obj['role'] = ApiClient.convertToType(data['role'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject133();
if (data.hasOwnProperty('role')) {
obj['role'] = ApiClient.convertToType(data['role'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, links, downloadUrl, gitUrl, htmlUrl, name, path, sha, size, submoduleGitUrl, type, url) {
obj['_links'] = links;
obj['download_url'] = downloadUrl;
obj['git_url'] = gitUrl;
obj['html_url'] = htmlUrl;
obj['name'] = name;
obj['path'] = path;
obj['sha'] = sha;
obj['size'] = size;
obj['submodule_git_url'] = submoduleGitUrl;
obj['type'] = type;
obj['url'] = url;
} | static initialize(obj, links, downloadUrl, gitUrl, htmlUrl, name, path, sha, size, submoduleGitUrl, type, url) {
obj['_links'] = links;
obj['download_url'] = downloadUrl;
obj['git_url'] = gitUrl;
obj['html_url'] = htmlUrl;
obj['name'] = name;
obj['path'] = path;
obj['sha'] = sha;
obj['size'] = size;
obj['submodule_git_url'] = submoduleGitUrl;
obj['type'] = type;
obj['url'] = url;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ContentSubmodule();
if (data.hasOwnProperty('_links')) {
obj['_links'] = ContentFileLinks.constructFromObject(data['_links']);
}
if (data.hasOwnProperty('download_url')) {
obj['download_url'] = ApiClient.convertToType(data['download_url'], 'String');
}
if (data.hasOwnProperty('git_url')) {
obj['git_url'] = ApiClient.convertToType(data['git_url'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('path')) {
obj['path'] = ApiClient.convertToType(data['path'], 'String');
}
if (data.hasOwnProperty('sha')) {
obj['sha'] = ApiClient.convertToType(data['sha'], 'String');
}
if (data.hasOwnProperty('size')) {
obj['size'] = ApiClient.convertToType(data['size'], 'Number');
}
if (data.hasOwnProperty('submodule_git_url')) {
obj['submodule_git_url'] = ApiClient.convertToType(data['submodule_git_url'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ContentSubmodule();
if (data.hasOwnProperty('_links')) {
obj['_links'] = ContentFileLinks.constructFromObject(data['_links']);
}
if (data.hasOwnProperty('download_url')) {
obj['download_url'] = ApiClient.convertToType(data['download_url'], 'String');
}
if (data.hasOwnProperty('git_url')) {
obj['git_url'] = ApiClient.convertToType(data['git_url'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('path')) {
obj['path'] = ApiClient.convertToType(data['path'], 'String');
}
if (data.hasOwnProperty('sha')) {
obj['sha'] = ApiClient.convertToType(data['sha'], 'String');
}
if (data.hasOwnProperty('size')) {
obj['size'] = ApiClient.convertToType(data['size'], 'Number');
}
if (data.hasOwnProperty('submodule_git_url')) {
obj['submodule_git_url'] = ApiClient.convertToType(data['submodule_git_url'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject108();
if (data.hasOwnProperty('reviewers')) {
obj['reviewers'] = ApiClient.convertToType(data['reviewers'], ['String']);
}
if (data.hasOwnProperty('team_reviewers')) {
obj['team_reviewers'] = ApiClient.convertToType(data['team_reviewers'], ['String']);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject108();
if (data.hasOwnProperty('reviewers')) {
obj['reviewers'] = ApiClient.convertToType(data['reviewers'], ['String']);
}
if (data.hasOwnProperty('team_reviewers')) {
obj['team_reviewers'] = ApiClient.convertToType(data['team_reviewers'], ['String']);
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject75();
if (data.hasOwnProperty('tfvc_project')) {
obj['tfvc_project'] = ApiClient.convertToType(data['tfvc_project'], 'String');
}
if (data.hasOwnProperty('vcs')) {
obj['vcs'] = ApiClient.convertToType(data['vcs'], 'String');
}
if (data.hasOwnProperty('vcs_password')) {
obj['vcs_password'] = ApiClient.convertToType(data['vcs_password'], 'String');
}
if (data.hasOwnProperty('vcs_username')) {
obj['vcs_username'] = ApiClient.convertToType(data['vcs_username'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject75();
if (data.hasOwnProperty('tfvc_project')) {
obj['tfvc_project'] = ApiClient.convertToType(data['tfvc_project'], 'String');
}
if (data.hasOwnProperty('vcs')) {
obj['vcs'] = ApiClient.convertToType(data['vcs'], 'String');
}
if (data.hasOwnProperty('vcs_password')) {
obj['vcs_password'] = ApiClient.convertToType(data['vcs_password'], 'String');
}
if (data.hasOwnProperty('vcs_username')) {
obj['vcs_username'] = ApiClient.convertToType(data['vcs_username'], 'String');
}
}
return obj;
} |
JavaScript | function ReposOwnerRepoPullsPullNumberReviewsComments(body, path) {
_classCallCheck(this, ReposOwnerRepoPullsPullNumberReviewsComments);
ReposOwnerRepoPullsPullNumberReviewsComments.initialize(this, body, path);
} | function ReposOwnerRepoPullsPullNumberReviewsComments(body, path) {
_classCallCheck(this, ReposOwnerRepoPullsPullNumberReviewsComments);
ReposOwnerRepoPullsPullNumberReviewsComments.initialize(this, body, path);
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ReposOwnerRepoContentsPathCommitter();
if (data.hasOwnProperty('date')) {
obj['date'] = ApiClient.convertToType(data['date'], 'String');
}
if (data.hasOwnProperty('email')) {
obj['email'] = ApiClient.convertToType(data['email'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ReposOwnerRepoContentsPathCommitter();
if (data.hasOwnProperty('date')) {
obj['date'] = ApiClient.convertToType(data['date'], 'String');
}
if (data.hasOwnProperty('email')) {
obj['email'] = ApiClient.convertToType(data['email'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, color, _default, description, id, name, nodeId, score, url) {
obj['color'] = color;
obj['default'] = _default;
obj['description'] = description;
obj['id'] = id;
obj['name'] = name;
obj['node_id'] = nodeId;
obj['score'] = score;
obj['url'] = url;
} | static initialize(obj, color, _default, description, id, name, nodeId, score, url) {
obj['color'] = color;
obj['default'] = _default;
obj['description'] = description;
obj['id'] = id;
obj['name'] = name;
obj['node_id'] = nodeId;
obj['score'] = score;
obj['url'] = url;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new LabelSearchResultItem();
if (data.hasOwnProperty('color')) {
obj['color'] = ApiClient.convertToType(data['color'], 'String');
}
if (data.hasOwnProperty('default')) {
obj['default'] = ApiClient.convertToType(data['default'], 'Boolean');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('score')) {
obj['score'] = ApiClient.convertToType(data['score'], 'Number');
}
if (data.hasOwnProperty('text_matches')) {
obj['text_matches'] = ApiClient.convertToType(data['text_matches'], [Object]);
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new LabelSearchResultItem();
if (data.hasOwnProperty('color')) {
obj['color'] = ApiClient.convertToType(data['color'], 'String');
}
if (data.hasOwnProperty('default')) {
obj['default'] = ApiClient.convertToType(data['default'], 'Boolean');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('score')) {
obj['score'] = ApiClient.convertToType(data['score'], 'Number');
}
if (data.hasOwnProperty('text_matches')) {
obj['text_matches'] = ApiClient.convertToType(data['text_matches'], [Object]);
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new BranchRestrictionPolicyOwner();
if (data.hasOwnProperty('avatar_url')) {
obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('events_url')) {
obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String');
}
if (data.hasOwnProperty('followers_url')) {
obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String');
}
if (data.hasOwnProperty('following_url')) {
obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String');
}
if (data.hasOwnProperty('gists_url')) {
obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String');
}
if (data.hasOwnProperty('gravatar_id')) {
obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String');
}
if (data.hasOwnProperty('hooks_url')) {
obj['hooks_url'] = ApiClient.convertToType(data['hooks_url'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('issues_url')) {
obj['issues_url'] = ApiClient.convertToType(data['issues_url'], 'String');
}
if (data.hasOwnProperty('login')) {
obj['login'] = ApiClient.convertToType(data['login'], 'String');
}
if (data.hasOwnProperty('members_url')) {
obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('organizations_url')) {
obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String');
}
if (data.hasOwnProperty('public_members_url')) {
obj['public_members_url'] = ApiClient.convertToType(data['public_members_url'], 'String');
}
if (data.hasOwnProperty('received_events_url')) {
obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String');
}
if (data.hasOwnProperty('repos_url')) {
obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String');
}
if (data.hasOwnProperty('starred_url')) {
obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String');
}
if (data.hasOwnProperty('subscriptions_url')) {
obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new BranchRestrictionPolicyOwner();
if (data.hasOwnProperty('avatar_url')) {
obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String');
}
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('events_url')) {
obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String');
}
if (data.hasOwnProperty('followers_url')) {
obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String');
}
if (data.hasOwnProperty('following_url')) {
obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String');
}
if (data.hasOwnProperty('gists_url')) {
obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String');
}
if (data.hasOwnProperty('gravatar_id')) {
obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String');
}
if (data.hasOwnProperty('hooks_url')) {
obj['hooks_url'] = ApiClient.convertToType(data['hooks_url'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('issues_url')) {
obj['issues_url'] = ApiClient.convertToType(data['issues_url'], 'String');
}
if (data.hasOwnProperty('login')) {
obj['login'] = ApiClient.convertToType(data['login'], 'String');
}
if (data.hasOwnProperty('members_url')) {
obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('organizations_url')) {
obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String');
}
if (data.hasOwnProperty('public_members_url')) {
obj['public_members_url'] = ApiClient.convertToType(data['public_members_url'], 'String');
}
if (data.hasOwnProperty('received_events_url')) {
obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String');
}
if (data.hasOwnProperty('repos_url')) {
obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String');
}
if (data.hasOwnProperty('starred_url')) {
obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String');
}
if (data.hasOwnProperty('subscriptions_url')) {
obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, links, timelineUrl, userUrl) {
obj['_links'] = links;
obj['timeline_url'] = timelineUrl;
obj['user_url'] = userUrl;
} | static initialize(obj, links, timelineUrl, userUrl) {
obj['_links'] = links;
obj['timeline_url'] = timelineUrl;
obj['user_url'] = userUrl;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new Feed();
if (data.hasOwnProperty('_links')) {
obj['_links'] = FeedLinks.constructFromObject(data['_links']);
}
if (data.hasOwnProperty('current_user_actor_url')) {
obj['current_user_actor_url'] = ApiClient.convertToType(data['current_user_actor_url'], 'String');
}
if (data.hasOwnProperty('current_user_organization_url')) {
obj['current_user_organization_url'] = ApiClient.convertToType(data['current_user_organization_url'], 'String');
}
if (data.hasOwnProperty('current_user_organization_urls')) {
obj['current_user_organization_urls'] = ApiClient.convertToType(data['current_user_organization_urls'], ['String']);
}
if (data.hasOwnProperty('current_user_public_url')) {
obj['current_user_public_url'] = ApiClient.convertToType(data['current_user_public_url'], 'String');
}
if (data.hasOwnProperty('current_user_url')) {
obj['current_user_url'] = ApiClient.convertToType(data['current_user_url'], 'String');
}
if (data.hasOwnProperty('security_advisories_url')) {
obj['security_advisories_url'] = ApiClient.convertToType(data['security_advisories_url'], 'String');
}
if (data.hasOwnProperty('timeline_url')) {
obj['timeline_url'] = ApiClient.convertToType(data['timeline_url'], 'String');
}
if (data.hasOwnProperty('user_url')) {
obj['user_url'] = ApiClient.convertToType(data['user_url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new Feed();
if (data.hasOwnProperty('_links')) {
obj['_links'] = FeedLinks.constructFromObject(data['_links']);
}
if (data.hasOwnProperty('current_user_actor_url')) {
obj['current_user_actor_url'] = ApiClient.convertToType(data['current_user_actor_url'], 'String');
}
if (data.hasOwnProperty('current_user_organization_url')) {
obj['current_user_organization_url'] = ApiClient.convertToType(data['current_user_organization_url'], 'String');
}
if (data.hasOwnProperty('current_user_organization_urls')) {
obj['current_user_organization_urls'] = ApiClient.convertToType(data['current_user_organization_urls'], ['String']);
}
if (data.hasOwnProperty('current_user_public_url')) {
obj['current_user_public_url'] = ApiClient.convertToType(data['current_user_public_url'], 'String');
}
if (data.hasOwnProperty('current_user_url')) {
obj['current_user_url'] = ApiClient.convertToType(data['current_user_url'], 'String');
}
if (data.hasOwnProperty('security_advisories_url')) {
obj['security_advisories_url'] = ApiClient.convertToType(data['security_advisories_url'], 'String');
}
if (data.hasOwnProperty('timeline_url')) {
obj['timeline_url'] = ApiClient.convertToType(data['timeline_url'], 'String');
}
if (data.hasOwnProperty('user_url')) {
obj['user_url'] = ApiClient.convertToType(data['user_url'], 'String');
}
}
return obj;
} |
JavaScript | function Page(cname, custom404, status, url) {
_classCallCheck(this, Page);
Page.initialize(this, cname, custom404, status, url);
} | function Page(cname, custom404, status, url) {
_classCallCheck(this, Page);
Page.initialize(this, cname, custom404, status, url);
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject120();
if (data.hasOwnProperty('names')) {
obj['names'] = ApiClient.convertToType(data['names'], ['String']);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject120();
if (data.hasOwnProperty('names')) {
obj['names'] = ApiClient.convertToType(data['names'], ['String']);
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new EventPayload();
if (data.hasOwnProperty('action')) {
obj['action'] = ApiClient.convertToType(data['action'], 'String');
}
if (data.hasOwnProperty('comment')) {
obj['comment'] = IssueComment.constructFromObject(data['comment']);
}
if (data.hasOwnProperty('issue')) {
obj['issue'] = IssueSimple.constructFromObject(data['issue']);
}
if (data.hasOwnProperty('pages')) {
obj['pages'] = ApiClient.convertToType(data['pages'], [EventPayloadPages]);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new EventPayload();
if (data.hasOwnProperty('action')) {
obj['action'] = ApiClient.convertToType(data['action'], 'String');
}
if (data.hasOwnProperty('comment')) {
obj['comment'] = IssueComment.constructFromObject(data['comment']);
}
if (data.hasOwnProperty('issue')) {
obj['issue'] = IssueSimple.constructFromObject(data['issue']);
}
if (data.hasOwnProperty('pages')) {
obj['pages'] = ApiClient.convertToType(data['pages'], [EventPayloadPages]);
}
}
return obj;
} |
JavaScript | static initialize(obj, avatarUrl, bio, blog, company, createdAt, email, eventsUrl, followers, followersUrl, following, followingUrl, gistsUrl, gravatarId, hireable, htmlUrl, id, location, login, name, nodeId, organizationsUrl, publicGists, publicRepos, receivedEventsUrl, reposUrl, siteAdmin, starredUrl, subscriptionsUrl, type, updatedAt, url) {
obj['avatar_url'] = avatarUrl;
obj['bio'] = bio;
obj['blog'] = blog;
obj['company'] = company;
obj['created_at'] = createdAt;
obj['email'] = email;
obj['events_url'] = eventsUrl;
obj['followers'] = followers;
obj['followers_url'] = followersUrl;
obj['following'] = following;
obj['following_url'] = followingUrl;
obj['gists_url'] = gistsUrl;
obj['gravatar_id'] = gravatarId;
obj['hireable'] = hireable;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['location'] = location;
obj['login'] = login;
obj['name'] = name;
obj['node_id'] = nodeId;
obj['organizations_url'] = organizationsUrl;
obj['public_gists'] = publicGists;
obj['public_repos'] = publicRepos;
obj['received_events_url'] = receivedEventsUrl;
obj['repos_url'] = reposUrl;
obj['site_admin'] = siteAdmin;
obj['starred_url'] = starredUrl;
obj['subscriptions_url'] = subscriptionsUrl;
obj['type'] = type;
obj['updated_at'] = updatedAt;
obj['url'] = url;
} | static initialize(obj, avatarUrl, bio, blog, company, createdAt, email, eventsUrl, followers, followersUrl, following, followingUrl, gistsUrl, gravatarId, hireable, htmlUrl, id, location, login, name, nodeId, organizationsUrl, publicGists, publicRepos, receivedEventsUrl, reposUrl, siteAdmin, starredUrl, subscriptionsUrl, type, updatedAt, url) {
obj['avatar_url'] = avatarUrl;
obj['bio'] = bio;
obj['blog'] = blog;
obj['company'] = company;
obj['created_at'] = createdAt;
obj['email'] = email;
obj['events_url'] = eventsUrl;
obj['followers'] = followers;
obj['followers_url'] = followersUrl;
obj['following'] = following;
obj['following_url'] = followingUrl;
obj['gists_url'] = gistsUrl;
obj['gravatar_id'] = gravatarId;
obj['hireable'] = hireable;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['location'] = location;
obj['login'] = login;
obj['name'] = name;
obj['node_id'] = nodeId;
obj['organizations_url'] = organizationsUrl;
obj['public_gists'] = publicGists;
obj['public_repos'] = publicRepos;
obj['received_events_url'] = receivedEventsUrl;
obj['repos_url'] = reposUrl;
obj['site_admin'] = siteAdmin;
obj['starred_url'] = starredUrl;
obj['subscriptions_url'] = subscriptionsUrl;
obj['type'] = type;
obj['updated_at'] = updatedAt;
obj['url'] = url;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject17();
if (data.hasOwnProperty('encrypted_value')) {
obj['encrypted_value'] = ApiClient.convertToType(data['encrypted_value'], 'String');
}
if (data.hasOwnProperty('key_id')) {
obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String');
}
if (data.hasOwnProperty('selected_repository_ids')) {
obj['selected_repository_ids'] = ApiClient.convertToType(data['selected_repository_ids'], ['String']);
}
if (data.hasOwnProperty('visibility')) {
obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject17();
if (data.hasOwnProperty('encrypted_value')) {
obj['encrypted_value'] = ApiClient.convertToType(data['encrypted_value'], 'String');
}
if (data.hasOwnProperty('key_id')) {
obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String');
}
if (data.hasOwnProperty('selected_repository_ids')) {
obj['selected_repository_ids'] = ApiClient.convertToType(data['selected_repository_ids'], ['String']);
}
if (data.hasOwnProperty('visibility')) {
obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, annotationLevel, blobHref, endColumn, endLine, message, path, rawDetails, startColumn, startLine, title) {
obj['annotation_level'] = annotationLevel;
obj['blob_href'] = blobHref;
obj['end_column'] = endColumn;
obj['end_line'] = endLine;
obj['message'] = message;
obj['path'] = path;
obj['raw_details'] = rawDetails;
obj['start_column'] = startColumn;
obj['start_line'] = startLine;
obj['title'] = title;
} | static initialize(obj, annotationLevel, blobHref, endColumn, endLine, message, path, rawDetails, startColumn, startLine, title) {
obj['annotation_level'] = annotationLevel;
obj['blob_href'] = blobHref;
obj['end_column'] = endColumn;
obj['end_line'] = endLine;
obj['message'] = message;
obj['path'] = path;
obj['raw_details'] = rawDetails;
obj['start_column'] = startColumn;
obj['start_line'] = startLine;
obj['title'] = title;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new CheckAnnotation();
if (data.hasOwnProperty('annotation_level')) {
obj['annotation_level'] = ApiClient.convertToType(data['annotation_level'], 'String');
}
if (data.hasOwnProperty('blob_href')) {
obj['blob_href'] = ApiClient.convertToType(data['blob_href'], 'String');
}
if (data.hasOwnProperty('end_column')) {
obj['end_column'] = ApiClient.convertToType(data['end_column'], 'Number');
}
if (data.hasOwnProperty('end_line')) {
obj['end_line'] = ApiClient.convertToType(data['end_line'], 'Number');
}
if (data.hasOwnProperty('message')) {
obj['message'] = ApiClient.convertToType(data['message'], 'String');
}
if (data.hasOwnProperty('path')) {
obj['path'] = ApiClient.convertToType(data['path'], 'String');
}
if (data.hasOwnProperty('raw_details')) {
obj['raw_details'] = ApiClient.convertToType(data['raw_details'], 'String');
}
if (data.hasOwnProperty('start_column')) {
obj['start_column'] = ApiClient.convertToType(data['start_column'], 'Number');
}
if (data.hasOwnProperty('start_line')) {
obj['start_line'] = ApiClient.convertToType(data['start_line'], 'Number');
}
if (data.hasOwnProperty('title')) {
obj['title'] = ApiClient.convertToType(data['title'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new CheckAnnotation();
if (data.hasOwnProperty('annotation_level')) {
obj['annotation_level'] = ApiClient.convertToType(data['annotation_level'], 'String');
}
if (data.hasOwnProperty('blob_href')) {
obj['blob_href'] = ApiClient.convertToType(data['blob_href'], 'String');
}
if (data.hasOwnProperty('end_column')) {
obj['end_column'] = ApiClient.convertToType(data['end_column'], 'Number');
}
if (data.hasOwnProperty('end_line')) {
obj['end_line'] = ApiClient.convertToType(data['end_line'], 'Number');
}
if (data.hasOwnProperty('message')) {
obj['message'] = ApiClient.convertToType(data['message'], 'String');
}
if (data.hasOwnProperty('path')) {
obj['path'] = ApiClient.convertToType(data['path'], 'String');
}
if (data.hasOwnProperty('raw_details')) {
obj['raw_details'] = ApiClient.convertToType(data['raw_details'], 'String');
}
if (data.hasOwnProperty('start_column')) {
obj['start_column'] = ApiClient.convertToType(data['start_column'], 'Number');
}
if (data.hasOwnProperty('start_line')) {
obj['start_line'] = ApiClient.convertToType(data['start_line'], 'Number');
}
if (data.hasOwnProperty('title')) {
obj['title'] = ApiClient.convertToType(data['title'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, createdAt, htmlUrl, id, invitee, inviter, nodeId, permissions, repository, url) {
obj['created_at'] = createdAt;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['invitee'] = invitee;
obj['inviter'] = inviter;
obj['node_id'] = nodeId;
obj['permissions'] = permissions;
obj['repository'] = repository;
obj['url'] = url;
} | static initialize(obj, createdAt, htmlUrl, id, invitee, inviter, nodeId, permissions, repository, url) {
obj['created_at'] = createdAt;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['invitee'] = invitee;
obj['inviter'] = inviter;
obj['node_id'] = nodeId;
obj['permissions'] = permissions;
obj['repository'] = repository;
obj['url'] = url;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new RepositoryInvitation();
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('invitee')) {
obj['invitee'] = ApiClient.convertToType(data['invitee'], SimpleUser);
}
if (data.hasOwnProperty('inviter')) {
obj['inviter'] = ApiClient.convertToType(data['inviter'], SimpleUser);
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('permissions')) {
obj['permissions'] = ApiClient.convertToType(data['permissions'], 'String');
}
if (data.hasOwnProperty('repository')) {
obj['repository'] = MinimalRepository.constructFromObject(data['repository']);
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new RepositoryInvitation();
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('invitee')) {
obj['invitee'] = ApiClient.convertToType(data['invitee'], SimpleUser);
}
if (data.hasOwnProperty('inviter')) {
obj['inviter'] = ApiClient.convertToType(data['inviter'], SimpleUser);
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('permissions')) {
obj['permissions'] = ApiClient.convertToType(data['permissions'], 'String');
}
if (data.hasOwnProperty('repository')) {
obj['repository'] = MinimalRepository.constructFromObject(data['repository']);
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, links, additions, assignee, authorAssociation, base, body, changedFiles, closedAt, comments, commentsUrl, commits, commitsUrl, createdAt, deletions, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, maintainerCanModify, mergeCommitSha, mergeable, mergeableState, merged, mergedAt, mergedBy, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewComments, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user) {
obj['_links'] = links;
obj['additions'] = additions;
obj['assignee'] = assignee;
obj['author_association'] = authorAssociation;
obj['base'] = base;
obj['body'] = body;
obj['changed_files'] = changedFiles;
obj['closed_at'] = closedAt;
obj['comments'] = comments;
obj['comments_url'] = commentsUrl;
obj['commits'] = commits;
obj['commits_url'] = commitsUrl;
obj['created_at'] = createdAt;
obj['deletions'] = deletions;
obj['diff_url'] = diffUrl;
obj['head'] = head;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['issue_url'] = issueUrl;
obj['labels'] = labels;
obj['locked'] = locked;
obj['maintainer_can_modify'] = maintainerCanModify;
obj['merge_commit_sha'] = mergeCommitSha;
obj['mergeable'] = mergeable;
obj['mergeable_state'] = mergeableState;
obj['merged'] = merged;
obj['merged_at'] = mergedAt;
obj['merged_by'] = mergedBy;
obj['milestone'] = milestone;
obj['node_id'] = nodeId;
obj['number'] = _number;
obj['patch_url'] = patchUrl;
obj['review_comment_url'] = reviewCommentUrl;
obj['review_comments'] = reviewComments;
obj['review_comments_url'] = reviewCommentsUrl;
obj['state'] = state;
obj['statuses_url'] = statusesUrl;
obj['title'] = title;
obj['updated_at'] = updatedAt;
obj['url'] = url;
obj['user'] = user;
} | static initialize(obj, links, additions, assignee, authorAssociation, base, body, changedFiles, closedAt, comments, commentsUrl, commits, commitsUrl, createdAt, deletions, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, maintainerCanModify, mergeCommitSha, mergeable, mergeableState, merged, mergedAt, mergedBy, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewComments, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user) {
obj['_links'] = links;
obj['additions'] = additions;
obj['assignee'] = assignee;
obj['author_association'] = authorAssociation;
obj['base'] = base;
obj['body'] = body;
obj['changed_files'] = changedFiles;
obj['closed_at'] = closedAt;
obj['comments'] = comments;
obj['comments_url'] = commentsUrl;
obj['commits'] = commits;
obj['commits_url'] = commitsUrl;
obj['created_at'] = createdAt;
obj['deletions'] = deletions;
obj['diff_url'] = diffUrl;
obj['head'] = head;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['issue_url'] = issueUrl;
obj['labels'] = labels;
obj['locked'] = locked;
obj['maintainer_can_modify'] = maintainerCanModify;
obj['merge_commit_sha'] = mergeCommitSha;
obj['mergeable'] = mergeable;
obj['mergeable_state'] = mergeableState;
obj['merged'] = merged;
obj['merged_at'] = mergedAt;
obj['merged_by'] = mergedBy;
obj['milestone'] = milestone;
obj['node_id'] = nodeId;
obj['number'] = _number;
obj['patch_url'] = patchUrl;
obj['review_comment_url'] = reviewCommentUrl;
obj['review_comments'] = reviewComments;
obj['review_comments_url'] = reviewCommentsUrl;
obj['state'] = state;
obj['statuses_url'] = statusesUrl;
obj['title'] = title;
obj['updated_at'] = updatedAt;
obj['url'] = url;
obj['user'] = user;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new BranchRestrictionPolicyTeams();
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('members_url')) {
obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('parent')) {
obj['parent'] = ApiClient.convertToType(data['parent'], 'String');
}
if (data.hasOwnProperty('permission')) {
obj['permission'] = ApiClient.convertToType(data['permission'], 'String');
}
if (data.hasOwnProperty('privacy')) {
obj['privacy'] = ApiClient.convertToType(data['privacy'], 'String');
}
if (data.hasOwnProperty('repositories_url')) {
obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String');
}
if (data.hasOwnProperty('slug')) {
obj['slug'] = ApiClient.convertToType(data['slug'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new BranchRestrictionPolicyTeams();
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('members_url')) {
obj['members_url'] = ApiClient.convertToType(data['members_url'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('parent')) {
obj['parent'] = ApiClient.convertToType(data['parent'], 'String');
}
if (data.hasOwnProperty('permission')) {
obj['permission'] = ApiClient.convertToType(data['permission'], 'String');
}
if (data.hasOwnProperty('privacy')) {
obj['privacy'] = ApiClient.convertToType(data['privacy'], 'String');
}
if (data.hasOwnProperty('repositories_url')) {
obj['repositories_url'] = ApiClient.convertToType(data['repositories_url'], 'String');
}
if (data.hasOwnProperty('slug')) {
obj['slug'] = ApiClient.convertToType(data['slug'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, canCertify, canEncryptComms, canEncryptStorage, canSign, createdAt, emails, expiresAt, id, keyId, primaryKeyId, publicKey, rawKey, subkeys) {
obj['can_certify'] = canCertify;
obj['can_encrypt_comms'] = canEncryptComms;
obj['can_encrypt_storage'] = canEncryptStorage;
obj['can_sign'] = canSign;
obj['created_at'] = createdAt;
obj['emails'] = emails;
obj['expires_at'] = expiresAt;
obj['id'] = id;
obj['key_id'] = keyId;
obj['primary_key_id'] = primaryKeyId;
obj['public_key'] = publicKey;
obj['raw_key'] = rawKey;
obj['subkeys'] = subkeys;
} | static initialize(obj, canCertify, canEncryptComms, canEncryptStorage, canSign, createdAt, emails, expiresAt, id, keyId, primaryKeyId, publicKey, rawKey, subkeys) {
obj['can_certify'] = canCertify;
obj['can_encrypt_comms'] = canEncryptComms;
obj['can_encrypt_storage'] = canEncryptStorage;
obj['can_sign'] = canSign;
obj['created_at'] = createdAt;
obj['emails'] = emails;
obj['expires_at'] = expiresAt;
obj['id'] = id;
obj['key_id'] = keyId;
obj['primary_key_id'] = primaryKeyId;
obj['public_key'] = publicKey;
obj['raw_key'] = rawKey;
obj['subkeys'] = subkeys;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GpgKey();
if (data.hasOwnProperty('can_certify')) {
obj['can_certify'] = ApiClient.convertToType(data['can_certify'], 'Boolean');
}
if (data.hasOwnProperty('can_encrypt_comms')) {
obj['can_encrypt_comms'] = ApiClient.convertToType(data['can_encrypt_comms'], 'Boolean');
}
if (data.hasOwnProperty('can_encrypt_storage')) {
obj['can_encrypt_storage'] = ApiClient.convertToType(data['can_encrypt_storage'], 'Boolean');
}
if (data.hasOwnProperty('can_sign')) {
obj['can_sign'] = ApiClient.convertToType(data['can_sign'], 'Boolean');
}
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
if (data.hasOwnProperty('emails')) {
obj['emails'] = ApiClient.convertToType(data['emails'], [GpgKeyEmails]);
}
if (data.hasOwnProperty('expires_at')) {
obj['expires_at'] = ApiClient.convertToType(data['expires_at'], 'Date');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('key_id')) {
obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String');
}
if (data.hasOwnProperty('primary_key_id')) {
obj['primary_key_id'] = ApiClient.convertToType(data['primary_key_id'], 'Number');
}
if (data.hasOwnProperty('public_key')) {
obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String');
}
if (data.hasOwnProperty('raw_key')) {
obj['raw_key'] = ApiClient.convertToType(data['raw_key'], 'String');
}
if (data.hasOwnProperty('subkeys')) {
obj['subkeys'] = ApiClient.convertToType(data['subkeys'], [GpgKeySubkeys]);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GpgKey();
if (data.hasOwnProperty('can_certify')) {
obj['can_certify'] = ApiClient.convertToType(data['can_certify'], 'Boolean');
}
if (data.hasOwnProperty('can_encrypt_comms')) {
obj['can_encrypt_comms'] = ApiClient.convertToType(data['can_encrypt_comms'], 'Boolean');
}
if (data.hasOwnProperty('can_encrypt_storage')) {
obj['can_encrypt_storage'] = ApiClient.convertToType(data['can_encrypt_storage'], 'Boolean');
}
if (data.hasOwnProperty('can_sign')) {
obj['can_sign'] = ApiClient.convertToType(data['can_sign'], 'Boolean');
}
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
if (data.hasOwnProperty('emails')) {
obj['emails'] = ApiClient.convertToType(data['emails'], [GpgKeyEmails]);
}
if (data.hasOwnProperty('expires_at')) {
obj['expires_at'] = ApiClient.convertToType(data['expires_at'], 'Date');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('key_id')) {
obj['key_id'] = ApiClient.convertToType(data['key_id'], 'String');
}
if (data.hasOwnProperty('primary_key_id')) {
obj['primary_key_id'] = ApiClient.convertToType(data['primary_key_id'], 'Number');
}
if (data.hasOwnProperty('public_key')) {
obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String');
}
if (data.hasOwnProperty('raw_key')) {
obj['raw_key'] = ApiClient.convertToType(data['raw_key'], 'String');
}
if (data.hasOwnProperty('subkeys')) {
obj['subkeys'] = ApiClient.convertToType(data['subkeys'], [GpgKeySubkeys]);
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject43();
if (data.hasOwnProperty('body')) {
obj['body'] = ApiClient.convertToType(data['body'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('organization_permission')) {
obj['organization_permission'] = ApiClient.convertToType(data['organization_permission'], 'String');
}
if (data.hasOwnProperty('private')) {
obj['private'] = ApiClient.convertToType(data['private'], 'Boolean');
}
if (data.hasOwnProperty('state')) {
obj['state'] = ApiClient.convertToType(data['state'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject43();
if (data.hasOwnProperty('body')) {
obj['body'] = ApiClient.convertToType(data['body'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('organization_permission')) {
obj['organization_permission'] = ApiClient.convertToType(data['organization_permission'], 'String');
}
if (data.hasOwnProperty('private')) {
obj['private'] = ApiClient.convertToType(data['private'], 'Boolean');
}
if (data.hasOwnProperty('state')) {
obj['state'] = ApiClient.convertToType(data['state'], 'String');
}
}
return obj;
} |
JavaScript | checksCreate(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject52'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksCreate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksCreate");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckRun;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksCreate(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject52'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksCreate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksCreate");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckRun;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksCreateSuite(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject54'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksCreateSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksCreateSuite");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckSuite;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksCreateSuite(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject54'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksCreateSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksCreateSuite");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckSuite;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksGet(owner, repo, checkRunId, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksGet");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksGet");
}
// verify the required parameter 'checkRunId' is set
if (checkRunId === undefined || checkRunId === null) {
throw new Error("Missing the required parameter 'checkRunId' when calling checksGet");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_run_id': checkRunId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = CheckRun;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs/{check_run_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksGet(owner, repo, checkRunId, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksGet");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksGet");
}
// verify the required parameter 'checkRunId' is set
if (checkRunId === undefined || checkRunId === null) {
throw new Error("Missing the required parameter 'checkRunId' when calling checksGet");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_run_id': checkRunId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = CheckRun;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs/{check_run_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksGetSuite(owner, repo, checkSuiteId, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksGetSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksGetSuite");
}
// verify the required parameter 'checkSuiteId' is set
if (checkSuiteId === undefined || checkSuiteId === null) {
throw new Error("Missing the required parameter 'checkSuiteId' when calling checksGetSuite");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_suite_id': checkSuiteId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = CheckSuite;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/{check_suite_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksGetSuite(owner, repo, checkSuiteId, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksGetSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksGetSuite");
}
// verify the required parameter 'checkSuiteId' is set
if (checkSuiteId === undefined || checkSuiteId === null) {
throw new Error("Missing the required parameter 'checkSuiteId' when calling checksGetSuite");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_suite_id': checkSuiteId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = CheckSuite;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/{check_suite_id}', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksListAnnotations(owner, repo, checkRunId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListAnnotations");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListAnnotations");
}
// verify the required parameter 'checkRunId' is set
if (checkRunId === undefined || checkRunId === null) {
throw new Error("Missing the required parameter 'checkRunId' when calling checksListAnnotations");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_run_id': checkRunId
};
let queryParams = {
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [CheckAnnotation];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksListAnnotations(owner, repo, checkRunId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListAnnotations");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListAnnotations");
}
// verify the required parameter 'checkRunId' is set
if (checkRunId === undefined || checkRunId === null) {
throw new Error("Missing the required parameter 'checkRunId' when calling checksListAnnotations");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_run_id': checkRunId
};
let queryParams = {
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = [CheckAnnotation];
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksListForRef(owner, repo, ref, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListForRef");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListForRef");
}
// verify the required parameter 'ref' is set
if (ref === undefined || ref === null) {
throw new Error("Missing the required parameter 'ref' when calling checksListForRef");
}
let pathParams = {
'owner': owner,
'repo': repo,
'ref': ref
};
let queryParams = {
'check_name': opts['checkName'],
'status': opts['status'],
'filter': opts['filter'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = InlineResponse20011;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/commits/{ref}/check-runs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksListForRef(owner, repo, ref, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListForRef");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListForRef");
}
// verify the required parameter 'ref' is set
if (ref === undefined || ref === null) {
throw new Error("Missing the required parameter 'ref' when calling checksListForRef");
}
let pathParams = {
'owner': owner,
'repo': repo,
'ref': ref
};
let queryParams = {
'check_name': opts['checkName'],
'status': opts['status'],
'filter': opts['filter'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = InlineResponse20011;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/commits/{ref}/check-runs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksListForSuite(owner, repo, checkSuiteId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListForSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListForSuite");
}
// verify the required parameter 'checkSuiteId' is set
if (checkSuiteId === undefined || checkSuiteId === null) {
throw new Error("Missing the required parameter 'checkSuiteId' when calling checksListForSuite");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_suite_id': checkSuiteId
};
let queryParams = {
'check_name': opts['checkName'],
'status': opts['status'],
'filter': opts['filter'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = InlineResponse20011;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksListForSuite(owner, repo, checkSuiteId, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListForSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListForSuite");
}
// verify the required parameter 'checkSuiteId' is set
if (checkSuiteId === undefined || checkSuiteId === null) {
throw new Error("Missing the required parameter 'checkSuiteId' when calling checksListForSuite");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_suite_id': checkSuiteId
};
let queryParams = {
'check_name': opts['checkName'],
'status': opts['status'],
'filter': opts['filter'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = InlineResponse20011;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksListSuitesForRef(owner, repo, ref, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListSuitesForRef");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListSuitesForRef");
}
// verify the required parameter 'ref' is set
if (ref === undefined || ref === null) {
throw new Error("Missing the required parameter 'ref' when calling checksListSuitesForRef");
}
let pathParams = {
'owner': owner,
'repo': repo,
'ref': ref
};
let queryParams = {
'app_id': opts['appId'],
'check_name': opts['checkName'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = InlineResponse20012;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/commits/{ref}/check-suites', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksListSuitesForRef(owner, repo, ref, opts, callback) {
opts = opts || {};
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksListSuitesForRef");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksListSuitesForRef");
}
// verify the required parameter 'ref' is set
if (ref === undefined || ref === null) {
throw new Error("Missing the required parameter 'ref' when calling checksListSuitesForRef");
}
let pathParams = {
'owner': owner,
'repo': repo,
'ref': ref
};
let queryParams = {
'app_id': opts['appId'],
'check_name': opts['checkName'],
'per_page': opts['perPage'],
'page': opts['page']
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = ['application/json'];
let returnType = InlineResponse20012;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/commits/{ref}/check-suites', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksRerequestSuite(owner, repo, checkSuiteId, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksRerequestSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksRerequestSuite");
}
// verify the required parameter 'checkSuiteId' is set
if (checkSuiteId === undefined || checkSuiteId === null) {
throw new Error("Missing the required parameter 'checkSuiteId' when calling checksRerequestSuite");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_suite_id': checkSuiteId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksRerequestSuite(owner, repo, checkSuiteId, callback) {
let postBody = null;
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksRerequestSuite");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksRerequestSuite");
}
// verify the required parameter 'checkSuiteId' is set
if (checkSuiteId === undefined || checkSuiteId === null) {
throw new Error("Missing the required parameter 'checkSuiteId' when calling checksRerequestSuite");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_suite_id': checkSuiteId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = [];
let accepts = [];
let returnType = null;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest', 'POST',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksSetSuitesPreferences(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject55'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksSetSuitesPreferences");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksSetSuitesPreferences");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckSuitePreference;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/preferences', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksSetSuitesPreferences(owner, repo, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject55'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksSetSuitesPreferences");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksSetSuitesPreferences");
}
let pathParams = {
'owner': owner,
'repo': repo
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckSuitePreference;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-suites/preferences', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | checksUpdate(owner, repo, checkRunId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject53'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksUpdate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksUpdate");
}
// verify the required parameter 'checkRunId' is set
if (checkRunId === undefined || checkRunId === null) {
throw new Error("Missing the required parameter 'checkRunId' when calling checksUpdate");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_run_id': checkRunId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckRun;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs/{check_run_id}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} | checksUpdate(owner, repo, checkRunId, opts, callback) {
opts = opts || {};
let postBody = opts['inlineObject53'];
// verify the required parameter 'owner' is set
if (owner === undefined || owner === null) {
throw new Error("Missing the required parameter 'owner' when calling checksUpdate");
}
// verify the required parameter 'repo' is set
if (repo === undefined || repo === null) {
throw new Error("Missing the required parameter 'repo' when calling checksUpdate");
}
// verify the required parameter 'checkRunId' is set
if (checkRunId === undefined || checkRunId === null) {
throw new Error("Missing the required parameter 'checkRunId' when calling checksUpdate");
}
let pathParams = {
'owner': owner,
'repo': repo,
'check_run_id': checkRunId
};
let queryParams = {
};
let headerParams = {
};
let formParams = {
};
let authNames = [];
let contentTypes = ['application/json'];
let accepts = ['application/json'];
let returnType = CheckRun;
return this.apiClient.callApi(
'/repos/{owner}/{repo}/check-runs/{check_run_id}', 'PATCH',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, null, callback
);
} |
JavaScript | static initialize(obj, links, assignee, authorAssociation, base, body, closedAt, commentsUrl, commitsUrl, createdAt, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, mergeCommitSha, mergedAt, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user) {
obj['_links'] = links;
obj['assignee'] = assignee;
obj['author_association'] = authorAssociation;
obj['base'] = base;
obj['body'] = body;
obj['closed_at'] = closedAt;
obj['comments_url'] = commentsUrl;
obj['commits_url'] = commitsUrl;
obj['created_at'] = createdAt;
obj['diff_url'] = diffUrl;
obj['head'] = head;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['issue_url'] = issueUrl;
obj['labels'] = labels;
obj['locked'] = locked;
obj['merge_commit_sha'] = mergeCommitSha;
obj['merged_at'] = mergedAt;
obj['milestone'] = milestone;
obj['node_id'] = nodeId;
obj['number'] = _number;
obj['patch_url'] = patchUrl;
obj['review_comment_url'] = reviewCommentUrl;
obj['review_comments_url'] = reviewCommentsUrl;
obj['state'] = state;
obj['statuses_url'] = statusesUrl;
obj['title'] = title;
obj['updated_at'] = updatedAt;
obj['url'] = url;
obj['user'] = user;
} | static initialize(obj, links, assignee, authorAssociation, base, body, closedAt, commentsUrl, commitsUrl, createdAt, diffUrl, head, htmlUrl, id, issueUrl, labels, locked, mergeCommitSha, mergedAt, milestone, nodeId, _number, patchUrl, reviewCommentUrl, reviewCommentsUrl, state, statusesUrl, title, updatedAt, url, user) {
obj['_links'] = links;
obj['assignee'] = assignee;
obj['author_association'] = authorAssociation;
obj['base'] = base;
obj['body'] = body;
obj['closed_at'] = closedAt;
obj['comments_url'] = commentsUrl;
obj['commits_url'] = commitsUrl;
obj['created_at'] = createdAt;
obj['diff_url'] = diffUrl;
obj['head'] = head;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['issue_url'] = issueUrl;
obj['labels'] = labels;
obj['locked'] = locked;
obj['merge_commit_sha'] = mergeCommitSha;
obj['merged_at'] = mergedAt;
obj['milestone'] = milestone;
obj['node_id'] = nodeId;
obj['number'] = _number;
obj['patch_url'] = patchUrl;
obj['review_comment_url'] = reviewCommentUrl;
obj['review_comments_url'] = reviewCommentsUrl;
obj['state'] = state;
obj['statuses_url'] = statusesUrl;
obj['title'] = title;
obj['updated_at'] = updatedAt;
obj['url'] = url;
obj['user'] = user;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new PackagesBillingUsage();
if (data.hasOwnProperty('included_gigabytes_bandwidth')) {
obj['included_gigabytes_bandwidth'] = ApiClient.convertToType(data['included_gigabytes_bandwidth'], 'Number');
}
if (data.hasOwnProperty('total_gigabytes_bandwidth_used')) {
obj['total_gigabytes_bandwidth_used'] = ApiClient.convertToType(data['total_gigabytes_bandwidth_used'], 'Number');
}
if (data.hasOwnProperty('total_paid_gigabytes_bandwidth_used')) {
obj['total_paid_gigabytes_bandwidth_used'] = ApiClient.convertToType(data['total_paid_gigabytes_bandwidth_used'], 'Number');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new PackagesBillingUsage();
if (data.hasOwnProperty('included_gigabytes_bandwidth')) {
obj['included_gigabytes_bandwidth'] = ApiClient.convertToType(data['included_gigabytes_bandwidth'], 'Number');
}
if (data.hasOwnProperty('total_gigabytes_bandwidth_used')) {
obj['total_gigabytes_bandwidth_used'] = ApiClient.convertToType(data['total_gigabytes_bandwidth_used'], 'Number');
}
if (data.hasOwnProperty('total_paid_gigabytes_bandwidth_used')) {
obj['total_paid_gigabytes_bandwidth_used'] = ApiClient.convertToType(data['total_paid_gigabytes_bandwidth_used'], 'Number');
}
}
return obj;
} |
JavaScript | static initialize(obj, apps, appsUrl, teams, teamsUrl, url, users, usersUrl) {
obj['apps'] = apps;
obj['apps_url'] = appsUrl;
obj['teams'] = teams;
obj['teams_url'] = teamsUrl;
obj['url'] = url;
obj['users'] = users;
obj['users_url'] = usersUrl;
} | static initialize(obj, apps, appsUrl, teams, teamsUrl, url, users, usersUrl) {
obj['apps'] = apps;
obj['apps_url'] = appsUrl;
obj['teams'] = teams;
obj['teams_url'] = teamsUrl;
obj['url'] = url;
obj['users'] = users;
obj['users_url'] = usersUrl;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new BranchRestrictionPolicy();
if (data.hasOwnProperty('apps')) {
obj['apps'] = ApiClient.convertToType(data['apps'], [BranchRestrictionPolicyApps]);
}
if (data.hasOwnProperty('apps_url')) {
obj['apps_url'] = ApiClient.convertToType(data['apps_url'], 'String');
}
if (data.hasOwnProperty('teams')) {
obj['teams'] = ApiClient.convertToType(data['teams'], [BranchRestrictionPolicyTeams]);
}
if (data.hasOwnProperty('teams_url')) {
obj['teams_url'] = ApiClient.convertToType(data['teams_url'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('users')) {
obj['users'] = ApiClient.convertToType(data['users'], [BranchRestrictionPolicyUsers]);
}
if (data.hasOwnProperty('users_url')) {
obj['users_url'] = ApiClient.convertToType(data['users_url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new BranchRestrictionPolicy();
if (data.hasOwnProperty('apps')) {
obj['apps'] = ApiClient.convertToType(data['apps'], [BranchRestrictionPolicyApps]);
}
if (data.hasOwnProperty('apps_url')) {
obj['apps_url'] = ApiClient.convertToType(data['apps_url'], 'String');
}
if (data.hasOwnProperty('teams')) {
obj['teams'] = ApiClient.convertToType(data['teams'], [BranchRestrictionPolicyTeams]);
}
if (data.hasOwnProperty('teams_url')) {
obj['teams_url'] = ApiClient.convertToType(data['teams_url'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('users')) {
obj['users'] = ApiClient.convertToType(data['users'], [BranchRestrictionPolicyUsers]);
}
if (data.hasOwnProperty('users_url')) {
obj['users_url'] = ApiClient.convertToType(data['users_url'], 'String');
}
}
return obj;
} |
JavaScript | function GroupMapping() {
_classCallCheck(this, GroupMapping);
GroupMapping.initialize(this);
} | function GroupMapping() {
_classCallCheck(this, GroupMapping);
GroupMapping.initialize(this);
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject95();
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('due_on')) {
obj['due_on'] = ApiClient.convertToType(data['due_on'], 'String');
}
if (data.hasOwnProperty('state')) {
obj['state'] = ApiClient.convertToType(data['state'], 'String');
}
if (data.hasOwnProperty('title')) {
obj['title'] = ApiClient.convertToType(data['title'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject95();
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('due_on')) {
obj['due_on'] = ApiClient.convertToType(data['due_on'], 'String');
}
if (data.hasOwnProperty('state')) {
obj['state'] = ApiClient.convertToType(data['state'], 'String');
}
if (data.hasOwnProperty('title')) {
obj['title'] = ApiClient.convertToType(data['title'], 'String');
}
}
return obj;
} |
JavaScript | static initialize(obj, avatarUrl, eventsUrl, followersUrl, followingUrl, gistsUrl, gravatarId, htmlUrl, id, login, nodeId, organizationsUrl, receivedEventsUrl, reposUrl, score, siteAdmin, starredUrl, subscriptionsUrl, type, url) {
obj['avatar_url'] = avatarUrl;
obj['events_url'] = eventsUrl;
obj['followers_url'] = followersUrl;
obj['following_url'] = followingUrl;
obj['gists_url'] = gistsUrl;
obj['gravatar_id'] = gravatarId;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['login'] = login;
obj['node_id'] = nodeId;
obj['organizations_url'] = organizationsUrl;
obj['received_events_url'] = receivedEventsUrl;
obj['repos_url'] = reposUrl;
obj['score'] = score;
obj['site_admin'] = siteAdmin;
obj['starred_url'] = starredUrl;
obj['subscriptions_url'] = subscriptionsUrl;
obj['type'] = type;
obj['url'] = url;
} | static initialize(obj, avatarUrl, eventsUrl, followersUrl, followingUrl, gistsUrl, gravatarId, htmlUrl, id, login, nodeId, organizationsUrl, receivedEventsUrl, reposUrl, score, siteAdmin, starredUrl, subscriptionsUrl, type, url) {
obj['avatar_url'] = avatarUrl;
obj['events_url'] = eventsUrl;
obj['followers_url'] = followersUrl;
obj['following_url'] = followingUrl;
obj['gists_url'] = gistsUrl;
obj['gravatar_id'] = gravatarId;
obj['html_url'] = htmlUrl;
obj['id'] = id;
obj['login'] = login;
obj['node_id'] = nodeId;
obj['organizations_url'] = organizationsUrl;
obj['received_events_url'] = receivedEventsUrl;
obj['repos_url'] = reposUrl;
obj['score'] = score;
obj['site_admin'] = siteAdmin;
obj['starred_url'] = starredUrl;
obj['subscriptions_url'] = subscriptionsUrl;
obj['type'] = type;
obj['url'] = url;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new UserSearchResultItem();
if (data.hasOwnProperty('avatar_url')) {
obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String');
}
if (data.hasOwnProperty('bio')) {
obj['bio'] = ApiClient.convertToType(data['bio'], 'String');
}
if (data.hasOwnProperty('blog')) {
obj['blog'] = ApiClient.convertToType(data['blog'], 'String');
}
if (data.hasOwnProperty('company')) {
obj['company'] = ApiClient.convertToType(data['company'], 'String');
}
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
if (data.hasOwnProperty('email')) {
obj['email'] = ApiClient.convertToType(data['email'], 'String');
}
if (data.hasOwnProperty('events_url')) {
obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String');
}
if (data.hasOwnProperty('followers')) {
obj['followers'] = ApiClient.convertToType(data['followers'], 'Number');
}
if (data.hasOwnProperty('followers_url')) {
obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String');
}
if (data.hasOwnProperty('following')) {
obj['following'] = ApiClient.convertToType(data['following'], 'Number');
}
if (data.hasOwnProperty('following_url')) {
obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String');
}
if (data.hasOwnProperty('gists_url')) {
obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String');
}
if (data.hasOwnProperty('gravatar_id')) {
obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String');
}
if (data.hasOwnProperty('hireable')) {
obj['hireable'] = ApiClient.convertToType(data['hireable'], 'Boolean');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('location')) {
obj['location'] = ApiClient.convertToType(data['location'], 'String');
}
if (data.hasOwnProperty('login')) {
obj['login'] = ApiClient.convertToType(data['login'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('organizations_url')) {
obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String');
}
if (data.hasOwnProperty('public_gists')) {
obj['public_gists'] = ApiClient.convertToType(data['public_gists'], 'Number');
}
if (data.hasOwnProperty('public_repos')) {
obj['public_repos'] = ApiClient.convertToType(data['public_repos'], 'Number');
}
if (data.hasOwnProperty('received_events_url')) {
obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String');
}
if (data.hasOwnProperty('repos_url')) {
obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String');
}
if (data.hasOwnProperty('score')) {
obj['score'] = ApiClient.convertToType(data['score'], 'Number');
}
if (data.hasOwnProperty('site_admin')) {
obj['site_admin'] = ApiClient.convertToType(data['site_admin'], 'Boolean');
}
if (data.hasOwnProperty('starred_url')) {
obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String');
}
if (data.hasOwnProperty('subscriptions_url')) {
obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String');
}
if (data.hasOwnProperty('suspended_at')) {
obj['suspended_at'] = ApiClient.convertToType(data['suspended_at'], 'Date');
}
if (data.hasOwnProperty('text_matches')) {
obj['text_matches'] = ApiClient.convertToType(data['text_matches'], [Object]);
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('updated_at')) {
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new UserSearchResultItem();
if (data.hasOwnProperty('avatar_url')) {
obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String');
}
if (data.hasOwnProperty('bio')) {
obj['bio'] = ApiClient.convertToType(data['bio'], 'String');
}
if (data.hasOwnProperty('blog')) {
obj['blog'] = ApiClient.convertToType(data['blog'], 'String');
}
if (data.hasOwnProperty('company')) {
obj['company'] = ApiClient.convertToType(data['company'], 'String');
}
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
if (data.hasOwnProperty('email')) {
obj['email'] = ApiClient.convertToType(data['email'], 'String');
}
if (data.hasOwnProperty('events_url')) {
obj['events_url'] = ApiClient.convertToType(data['events_url'], 'String');
}
if (data.hasOwnProperty('followers')) {
obj['followers'] = ApiClient.convertToType(data['followers'], 'Number');
}
if (data.hasOwnProperty('followers_url')) {
obj['followers_url'] = ApiClient.convertToType(data['followers_url'], 'String');
}
if (data.hasOwnProperty('following')) {
obj['following'] = ApiClient.convertToType(data['following'], 'Number');
}
if (data.hasOwnProperty('following_url')) {
obj['following_url'] = ApiClient.convertToType(data['following_url'], 'String');
}
if (data.hasOwnProperty('gists_url')) {
obj['gists_url'] = ApiClient.convertToType(data['gists_url'], 'String');
}
if (data.hasOwnProperty('gravatar_id')) {
obj['gravatar_id'] = ApiClient.convertToType(data['gravatar_id'], 'String');
}
if (data.hasOwnProperty('hireable')) {
obj['hireable'] = ApiClient.convertToType(data['hireable'], 'Boolean');
}
if (data.hasOwnProperty('html_url')) {
obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('location')) {
obj['location'] = ApiClient.convertToType(data['location'], 'String');
}
if (data.hasOwnProperty('login')) {
obj['login'] = ApiClient.convertToType(data['login'], 'String');
}
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
if (data.hasOwnProperty('node_id')) {
obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String');
}
if (data.hasOwnProperty('organizations_url')) {
obj['organizations_url'] = ApiClient.convertToType(data['organizations_url'], 'String');
}
if (data.hasOwnProperty('public_gists')) {
obj['public_gists'] = ApiClient.convertToType(data['public_gists'], 'Number');
}
if (data.hasOwnProperty('public_repos')) {
obj['public_repos'] = ApiClient.convertToType(data['public_repos'], 'Number');
}
if (data.hasOwnProperty('received_events_url')) {
obj['received_events_url'] = ApiClient.convertToType(data['received_events_url'], 'String');
}
if (data.hasOwnProperty('repos_url')) {
obj['repos_url'] = ApiClient.convertToType(data['repos_url'], 'String');
}
if (data.hasOwnProperty('score')) {
obj['score'] = ApiClient.convertToType(data['score'], 'Number');
}
if (data.hasOwnProperty('site_admin')) {
obj['site_admin'] = ApiClient.convertToType(data['site_admin'], 'Boolean');
}
if (data.hasOwnProperty('starred_url')) {
obj['starred_url'] = ApiClient.convertToType(data['starred_url'], 'String');
}
if (data.hasOwnProperty('subscriptions_url')) {
obj['subscriptions_url'] = ApiClient.convertToType(data['subscriptions_url'], 'String');
}
if (data.hasOwnProperty('suspended_at')) {
obj['suspended_at'] = ApiClient.convertToType(data['suspended_at'], 'Date');
}
if (data.hasOwnProperty('text_matches')) {
obj['text_matches'] = ApiClient.convertToType(data['text_matches'], [Object]);
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('updated_at')) {
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject10();
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('files')) {
obj['files'] = ApiClient.convertToType(data['files'], {'String': GistsFiles});
}
if (data.hasOwnProperty('public')) {
obj['public'] = ApiClient.convertToType(data['public'], OneOfbooleanstring);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject10();
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
if (data.hasOwnProperty('files')) {
obj['files'] = ApiClient.convertToType(data['files'], {'String': GistsFiles});
}
if (data.hasOwnProperty('public')) {
obj['public'] = ApiClient.convertToType(data['public'], OneOfbooleanstring);
}
}
return obj;
} |
JavaScript | static initialize(obj, organization, organizationUrl, role, state, url, user) {
obj['organization'] = organization;
obj['organization_url'] = organizationUrl;
obj['role'] = role;
obj['state'] = state;
obj['url'] = url;
obj['user'] = user;
} | static initialize(obj, organization, organizationUrl, role, state, url, user) {
obj['organization'] = organization;
obj['organization_url'] = organizationUrl;
obj['role'] = role;
obj['state'] = state;
obj['url'] = url;
obj['user'] = user;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new OrgMembership();
if (data.hasOwnProperty('organization')) {
obj['organization'] = OrganizationSimple.constructFromObject(data['organization']);
}
if (data.hasOwnProperty('organization_url')) {
obj['organization_url'] = ApiClient.convertToType(data['organization_url'], 'String');
}
if (data.hasOwnProperty('permissions')) {
obj['permissions'] = OrgMembershipPermissions.constructFromObject(data['permissions']);
}
if (data.hasOwnProperty('role')) {
obj['role'] = ApiClient.convertToType(data['role'], 'String');
}
if (data.hasOwnProperty('state')) {
obj['state'] = ApiClient.convertToType(data['state'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('user')) {
obj['user'] = ApiClient.convertToType(data['user'], SimpleUser);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new OrgMembership();
if (data.hasOwnProperty('organization')) {
obj['organization'] = OrganizationSimple.constructFromObject(data['organization']);
}
if (data.hasOwnProperty('organization_url')) {
obj['organization_url'] = ApiClient.convertToType(data['organization_url'], 'String');
}
if (data.hasOwnProperty('permissions')) {
obj['permissions'] = OrgMembershipPermissions.constructFromObject(data['permissions']);
}
if (data.hasOwnProperty('role')) {
obj['role'] = ApiClient.convertToType(data['role'], 'String');
}
if (data.hasOwnProperty('state')) {
obj['state'] = ApiClient.convertToType(data['state'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('user')) {
obj['user'] = ApiClient.convertToType(data['user'], SimpleUser);
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject68();
if (data.hasOwnProperty('key')) {
obj['key'] = ApiClient.convertToType(data['key'], 'String');
}
if (data.hasOwnProperty('ref')) {
obj['ref'] = ApiClient.convertToType(data['ref'], 'String');
}
if (data.hasOwnProperty('sha')) {
obj['sha'] = ApiClient.convertToType(data['sha'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject68();
if (data.hasOwnProperty('key')) {
obj['key'] = ApiClient.convertToType(data['key'], 'String');
}
if (data.hasOwnProperty('ref')) {
obj['ref'] = ApiClient.convertToType(data['ref'], 'String');
}
if (data.hasOwnProperty('sha')) {
obj['sha'] = ApiClient.convertToType(data['sha'], 'String');
}
}
return obj;
} |
JavaScript | function DeploymentStatus(createdAt, creator, deploymentUrl, description, id, nodeId, repositoryUrl, state, targetUrl, updatedAt, url) {
_classCallCheck(this, DeploymentStatus);
DeploymentStatus.initialize(this, createdAt, creator, deploymentUrl, description, id, nodeId, repositoryUrl, state, targetUrl, updatedAt, url);
} | function DeploymentStatus(createdAt, creator, deploymentUrl, description, id, nodeId, repositoryUrl, state, targetUrl, updatedAt, url) {
_classCallCheck(this, DeploymentStatus);
DeploymentStatus.initialize(this, createdAt, creator, deploymentUrl, description, id, nodeId, repositoryUrl, state, targetUrl, updatedAt, url);
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsDismissalRestrictions();
if (data.hasOwnProperty('teams')) {
obj['teams'] = ApiClient.convertToType(data['teams'], ['String']);
}
if (data.hasOwnProperty('users')) {
obj['users'] = ApiClient.convertToType(data['users'], ['String']);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsDismissalRestrictions();
if (data.hasOwnProperty('teams')) {
obj['teams'] = ApiClient.convertToType(data['teams'], ['String']);
}
if (data.hasOwnProperty('users')) {
obj['users'] = ApiClient.convertToType(data['users'], ['String']);
}
}
return obj;
} |
JavaScript | function ReposOwnerRepoHooksHookIdConfig(url) {
_classCallCheck(this, ReposOwnerRepoHooksHookIdConfig);
ReposOwnerRepoHooksHookIdConfig.initialize(this, url);
} | function ReposOwnerRepoHooksHookIdConfig(url) {
_classCallCheck(this, ReposOwnerRepoHooksHookIdConfig);
ReposOwnerRepoHooksHookIdConfig.initialize(this, url);
} |
JavaScript | function Project(body, columnsUrl, createdAt, creator, htmlUrl, id, name, nodeId, _number, ownerUrl, state, updatedAt, url) {
_classCallCheck(this, Project);
Project.initialize(this, body, columnsUrl, createdAt, creator, htmlUrl, id, name, nodeId, _number, ownerUrl, state, updatedAt, url);
} | function Project(body, columnsUrl, createdAt, creator, htmlUrl, id, name, nodeId, _number, ownerUrl, state, updatedAt, url) {
_classCallCheck(this, Project);
Project.initialize(this, body, columnsUrl, createdAt, creator, htmlUrl, id, name, nodeId, _number, ownerUrl, state, updatedAt, url);
} |
JavaScript | function IssueComment(authorAssociation, createdAt, htmlUrl, id, issueUrl, nodeId, updatedAt, url, user) {
_classCallCheck(this, IssueComment);
IssueComment.initialize(this, authorAssociation, createdAt, htmlUrl, id, issueUrl, nodeId, updatedAt, url, user);
} | function IssueComment(authorAssociation, createdAt, htmlUrl, id, issueUrl, nodeId, updatedAt, url, user) {
_classCallCheck(this, IssueComment);
IssueComment.initialize(this, authorAssociation, createdAt, htmlUrl, id, issueUrl, nodeId, updatedAt, url, user);
} |
JavaScript | function CodeScanningApi(apiClient) {
_classCallCheck(this, CodeScanningApi);
this.apiClient = apiClient || _ApiClient["default"].instance;
} | function CodeScanningApi(apiClient) {
_classCallCheck(this, CodeScanningApi);
this.apiClient = apiClient || _ApiClient["default"].instance;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GistFullAllOfForks();
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('updated_at')) {
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('user')) {
obj['user'] = BranchRestrictionPolicyUsers.constructFromObject(data['user']);
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new GistFullAllOfForks();
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('updated_at')) {
obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String');
}
if (data.hasOwnProperty('url')) {
obj['url'] = ApiClient.convertToType(data['url'], 'String');
}
if (data.hasOwnProperty('user')) {
obj['user'] = BranchRestrictionPolicyUsers.constructFromObject(data['user']);
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject79();
if (data.hasOwnProperty('permissions')) {
obj['permissions'] = ApiClient.convertToType(data['permissions'], 'String');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new InlineObject79();
if (data.hasOwnProperty('permissions')) {
obj['permissions'] = ApiClient.convertToType(data['permissions'], 'String');
}
}
return obj;
} |
JavaScript | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ScimError();
if (data.hasOwnProperty('detail')) {
obj['detail'] = ApiClient.convertToType(data['detail'], 'String');
}
if (data.hasOwnProperty('documentation_url')) {
obj['documentation_url'] = ApiClient.convertToType(data['documentation_url'], 'String');
}
if (data.hasOwnProperty('message')) {
obj['message'] = ApiClient.convertToType(data['message'], 'String');
}
if (data.hasOwnProperty('schemas')) {
obj['schemas'] = ApiClient.convertToType(data['schemas'], ['String']);
}
if (data.hasOwnProperty('scimType')) {
obj['scimType'] = ApiClient.convertToType(data['scimType'], 'String');
}
if (data.hasOwnProperty('status')) {
obj['status'] = ApiClient.convertToType(data['status'], 'Number');
}
}
return obj;
} | static constructFromObject(data, obj) {
if (data) {
obj = obj || new ScimError();
if (data.hasOwnProperty('detail')) {
obj['detail'] = ApiClient.convertToType(data['detail'], 'String');
}
if (data.hasOwnProperty('documentation_url')) {
obj['documentation_url'] = ApiClient.convertToType(data['documentation_url'], 'String');
}
if (data.hasOwnProperty('message')) {
obj['message'] = ApiClient.convertToType(data['message'], 'String');
}
if (data.hasOwnProperty('schemas')) {
obj['schemas'] = ApiClient.convertToType(data['schemas'], ['String']);
}
if (data.hasOwnProperty('scimType')) {
obj['scimType'] = ApiClient.convertToType(data['scimType'], 'String');
}
if (data.hasOwnProperty('status')) {
obj['status'] = ApiClient.convertToType(data['status'], 'Number');
}
}
return obj;
} |
JavaScript | static initialize(obj, browserDownloadUrl, contentType, createdAt, downloadCount, id, label, name, nodeId, size, state, updatedAt, uploader, url) {
obj['browser_download_url'] = browserDownloadUrl;
obj['content_type'] = contentType;
obj['created_at'] = createdAt;
obj['download_count'] = downloadCount;
obj['id'] = id;
obj['label'] = label;
obj['name'] = name;
obj['node_id'] = nodeId;
obj['size'] = size;
obj['state'] = state;
obj['updated_at'] = updatedAt;
obj['uploader'] = uploader;
obj['url'] = url;
} | static initialize(obj, browserDownloadUrl, contentType, createdAt, downloadCount, id, label, name, nodeId, size, state, updatedAt, uploader, url) {
obj['browser_download_url'] = browserDownloadUrl;
obj['content_type'] = contentType;
obj['created_at'] = createdAt;
obj['download_count'] = downloadCount;
obj['id'] = id;
obj['label'] = label;
obj['name'] = name;
obj['node_id'] = nodeId;
obj['size'] = size;
obj['state'] = state;
obj['updated_at'] = updatedAt;
obj['uploader'] = uploader;
obj['url'] = url;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.