Skip to content

Commit

Permalink
chore: regen services with latest SDK generator
Browse files Browse the repository at this point in the history
  • Loading branch information
padamstx committed Sep 15, 2020
1 parent 40ec719 commit 39d40e3
Show file tree
Hide file tree
Showing 23 changed files with 1,067 additions and 1,041 deletions.
27 changes: 16 additions & 11 deletions case-management/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* limitations under the License.
*/

/**
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-ef5e13c2-20200915-144510
*/


import * as extend from 'extend';
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
import { Authenticator, BaseService, getAuthenticatorFromEnvironment, getMissingParams, UserOptions } from 'ibm-cloud-sdk-core';
Expand Down Expand Up @@ -104,7 +109,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.CaseList>>}
*/
public getCases(params?: CaseManagementV1.GetCasesParams): Promise<CaseManagementV1.Response<CaseManagementV1.CaseList>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);

return new Promise((resolve, reject) => {
const query = {
Expand Down Expand Up @@ -160,7 +165,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.Case>>}
*/
public createCase(params: CaseManagementV1.CreateCaseParams): Promise<CaseManagementV1.Response<CaseManagementV1.Case>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['type', 'subject', 'description'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -214,7 +219,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.Case>>}
*/
public getCase(params: CaseManagementV1.GetCaseParams): Promise<CaseManagementV1.Response<CaseManagementV1.Case>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -263,7 +268,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.Case>>}
*/
public updateCaseStatus(params: CaseManagementV1.UpdateCaseStatusParams): Promise<CaseManagementV1.Response<CaseManagementV1.Case>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber', 'statusPayload'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -310,7 +315,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.Comment>>}
*/
public addComment(params: CaseManagementV1.AddCommentParams): Promise<CaseManagementV1.Response<CaseManagementV1.Comment>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber', 'comment'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -362,7 +367,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.WatchlistAddResponse>>}
*/
public addWatchlist(params: CaseManagementV1.AddWatchlistParams): Promise<CaseManagementV1.Response<CaseManagementV1.WatchlistAddResponse>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -412,7 +417,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.Watchlist>>}
*/
public removeWatchlist(params: CaseManagementV1.RemoveWatchlistParams): Promise<CaseManagementV1.Response<CaseManagementV1.Watchlist>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -467,7 +472,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.Resource>>}
*/
public addResource(params: CaseManagementV1.AddResourceParams): Promise<CaseManagementV1.Response<CaseManagementV1.Resource>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -521,7 +526,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.Attachment>>}
*/
public uploadFile(params: CaseManagementV1.UploadFileParams): Promise<CaseManagementV1.Response<CaseManagementV1.Attachment>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber', 'file'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -571,7 +576,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<NodeJS.ReadableStream|Buffer>>}
*/
public downloadFile(params: CaseManagementV1.DownloadFileParams): Promise<CaseManagementV1.Response<NodeJS.ReadableStream|Buffer>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber', 'fileId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -617,7 +622,7 @@ class CaseManagementV1 extends BaseService {
* @returns {Promise<CaseManagementV1.Response<CaseManagementV1.AttachmentList>>}
*/
public deleteFile(params: CaseManagementV1.DeleteFileParams): Promise<CaseManagementV1.Response<CaseManagementV1.AttachmentList>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['caseNumber', 'fileId'];

return new Promise((resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion configuration-governance/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

/**
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-68ee7c8f-20200829-062726
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-ef5e13c2-20200915-144510
*/


Expand Down
31 changes: 18 additions & 13 deletions enterprise-management/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* limitations under the License.
*/

/**
* IBM OpenAPI SDK Code Generator Version: 99-SNAPSHOT-ef5e13c2-20200915-144510
*/


import * as extend from 'extend';
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
import { Authenticator, BaseService, getAuthenticatorFromEnvironment, getMissingParams, UserOptions } from 'ibm-cloud-sdk-core';
Expand Down Expand Up @@ -103,7 +108,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.CreateAccountGroupResponse>>}
*/
public createAccountGroup(params: EnterpriseManagementV1.CreateAccountGroupParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.CreateAccountGroupResponse>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['parent', 'name', 'primaryContactIamId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -164,7 +169,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.ListAccountGroupsResponse>>}
*/
public listAccountGroups(params?: EnterpriseManagementV1.ListAccountGroupsParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.ListAccountGroupsResponse>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);

return new Promise((resolve, reject) => {
const query = {
Expand Down Expand Up @@ -205,7 +210,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.AccountGroup>>}
*/
public getAccountGroup(params: EnterpriseManagementV1.GetAccountGroupParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.AccountGroup>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['accountGroupId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -252,7 +257,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>>}
*/
public updateAccountGroup(params: EnterpriseManagementV1.UpdateAccountGroupParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['accountGroupId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -316,7 +321,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>>}
*/
public importAccountToEnterprise(params: EnterpriseManagementV1.ImportAccountToEnterpriseParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['enterpriseId', 'accountId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -373,7 +378,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.CreateAccountResponse>>}
*/
public createAccount(params: EnterpriseManagementV1.CreateAccountParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.CreateAccountResponse>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['parent', 'name', 'ownerIamId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -433,7 +438,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.ListAccountsResponse>>}
*/
public listAccounts(params?: EnterpriseManagementV1.ListAccountsParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.ListAccountsResponse>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);

return new Promise((resolve, reject) => {
const query = {
Expand Down Expand Up @@ -474,7 +479,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Account>>}
*/
public getAccount(params: EnterpriseManagementV1.GetAccountParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Account>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['accountId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -518,7 +523,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>>}
*/
public updateAccount(params: EnterpriseManagementV1.UpdateAccountParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['accountId', 'parent'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -580,7 +585,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.CreateEnterpriseResponse>>}
*/
public createEnterprise(params: EnterpriseManagementV1.CreateEnterpriseParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.CreateEnterpriseResponse>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['sourceAccountId', 'name', 'primaryContactIamId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -638,7 +643,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.ListEnterprisesResponse>>}
*/
public listEnterprises(params?: EnterpriseManagementV1.ListEnterprisesParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.ListEnterprisesResponse>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);

return new Promise((resolve, reject) => {
const query = {
Expand Down Expand Up @@ -679,7 +684,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Enterprise>>}
*/
public getEnterprise(params: EnterpriseManagementV1.GetEnterpriseParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Enterprise>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['enterpriseId'];

return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -727,7 +732,7 @@ class EnterpriseManagementV1 extends BaseService {
* @returns {Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>>}
*/
public updateEnterprise(params: EnterpriseManagementV1.UpdateEnterpriseParams): Promise<EnterpriseManagementV1.Response<EnterpriseManagementV1.Empty>> {
const _params = extend({}, params);
const _params = Object.assign({}, params);
const requiredParams = ['enterpriseId'];

return new Promise((resolve, reject) => {
Expand Down
Loading

0 comments on commit 39d40e3

Please sign in to comment.