Skip to content

Commit f469a9f

Browse files
committed
ListApps Api Response Updated
1 parent 29bbed7 commit f469a9f

File tree

3 files changed

+127
-4
lines changed

3 files changed

+127
-4
lines changed

api/defaultApi.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ import { Rule } from "../model/rule";
7070
import { RuleId } from "../model/ruleId";
7171
import { Schema } from "../model/schema";
7272
import { Schema1 } from "../model/schema1";
73+
import { Schema3 } from "../model/listAppsSchema";
7374
import { SetRoleApps200ResponseInner } from "../model/setRoleApps200ResponseInner";
7475
import { Status1 } from "../model/status1";
7576
import { Status2 } from "../model/status2";
@@ -85,6 +86,7 @@ import { VerifyFactorSaml200Response } from "../model/verifyFactorSaml200Respons
8586
import { VerifyFactorSamlRequest } from "../model/verifyFactorSamlRequest";
8687
import { VerifyFactorVoice200ResponseInner } from "../model/verifyFactorVoice200ResponseInner";
8788

89+
8890
import {
8991
ObjectSerializer,
9092
Authentication,
@@ -94,6 +96,7 @@ import {
9496

9597
import { HttpError, RequestFile } from "./apis";
9698

99+
97100
let defaultBasePath = "https://onelogininc.onelogin.com";
98101

99102
// ===============================================
@@ -3998,7 +4001,7 @@ export class DefaultApi {
39984001
response.statusCode >= 200 &&
39994002
response.statusCode <= 299
40004003
) {
4001-
body = ObjectSerializer.deserialize(body, "Schema");
4004+
body = ObjectSerializer.deserialize(body, "GetAppSchema");
40024005
resolve({ response: response, body: body });
40034006
} else {
40044007
reject(new HttpError(response, body, response.statusCode));
@@ -6681,7 +6684,7 @@ export class DefaultApi {
66816684
connectorId?: number,
66826685
authMethod?: AuthMethod,
66836686
options: { headers: { [name: string]: string } } = { headers: {} }
6684-
): Promise<{ response: http.IncomingMessage; body: Array<Schema> }> {
6687+
): Promise<{ response: http.IncomingMessage; body: Array<Schema3> }> {
66856688
const localVarPath = this.basePath + "/api/2/apps";
66866689
let localVarQueryParameters: any = {};
66876690
let localVarHeaderParams: any = (<any>Object).assign(
@@ -6785,7 +6788,7 @@ export class DefaultApi {
67856788
}
67866789
return new Promise<{
67876790
response: http.IncomingMessage;
6788-
body: Array<Schema>;
6791+
body: Array<Schema3>;
67896792
}>((resolve, reject) => {
67906793
localVarRequest(localVarRequestOptions, (error, response, body) => {
67916794
if (error) {
@@ -6796,7 +6799,7 @@ export class DefaultApi {
67966799
response.statusCode >= 200 &&
67976800
response.statusCode <= 299
67986801
) {
6799-
body = ObjectSerializer.deserialize(body, "Array<Schema>");
6802+
body = ObjectSerializer.deserialize(body, "Array<Schema3>");
68006803
resolve({ response: response, body: body });
68016804
} else {
68026805
reject(new HttpError(response, body, response.statusCode));

model/listAppsSchema.ts

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/**
2+
* OneLogin API
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* The version of the OpenAPI document: 3.0.0-alpha.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { RequestFile } from './models';
14+
15+
16+
export class Schema3 {
17+
/**
18+
* Apps unique ID in OneLogin.
19+
*/
20+
'id'?: number;
21+
/**
22+
* ID of the apps underlying connector.
23+
*/
24+
'connectorId'?: number;
25+
/**
26+
* App name.
27+
*/
28+
'name'?: string;
29+
/**
30+
* Freeform description of the app.
31+
*/
32+
'description'?: string;
33+
/**
34+
* Indicates if the app is visible in the OneLogin portal.
35+
*/
36+
'visible'?: boolean;
37+
/**
38+
* An ID indicating the type of app.
39+
*/
40+
'authMethod'?: Schema3.AuthMethodEnum;
41+
42+
'authMethodDescription'?: string
43+
/**
44+
* The date the app was created.
45+
*/
46+
'createdAt'?: string;
47+
/**
48+
* The date the app was last updated.
49+
*/
50+
'updatedAt'?: string;
51+
52+
static discriminator: string | undefined = undefined;
53+
54+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
55+
{
56+
"name": "id",
57+
"baseName": "id",
58+
"type": "number"
59+
},
60+
{
61+
"name": "connectorId",
62+
"baseName": "connector_id",
63+
"type": "number"
64+
},
65+
{
66+
"name": "name",
67+
"baseName": "name",
68+
"type": "string"
69+
},
70+
{
71+
"name": "description",
72+
"baseName": "description",
73+
"type": "string"
74+
},
75+
{
76+
"name": "visible",
77+
"baseName": "visible",
78+
"type": "boolean"
79+
},
80+
{
81+
"name": "authMethod",
82+
"baseName": "auth_method",
83+
"type": "Schema3.AuthMethodEnum"
84+
},
85+
{
86+
"name": "authMethodDescription",
87+
"baseName": "auth_method_description",
88+
"type": "string"
89+
},
90+
{
91+
"name": "createdAt",
92+
"baseName": "created_at",
93+
"type": "string"
94+
},
95+
{
96+
"name": "updatedAt",
97+
"baseName": "updated_at",
98+
"type": "string"
99+
},
100+
];
101+
102+
static getAttributeTypeMap() {
103+
return Schema3.attributeTypeMap;
104+
}
105+
}
106+
107+
export namespace Schema3 {
108+
export enum AuthMethodEnum {
109+
NUMBER_0 = <any> 0,
110+
NUMBER_1 = <any> 1,
111+
NUMBER_2 = <any> 2,
112+
NUMBER_3 = <any> 3,
113+
NUMBER_4 = <any> 4,
114+
NUMBER_6 = <any> 6,
115+
NUMBER_7 = <any> 7,
116+
NUMBER_8 = <any> 8
117+
}
118+
}

model/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ import { Rule } from './rule';
174174
import { RuleId } from './ruleId';
175175
import { Schema } from './schema';
176176
import { Schema1 } from './schema1';
177+
import { Schema3 } from './listAppsSchema';
177178
import { Schema1AddedBy } from './schema1AddedBy';
178179
import { SchemaProvisioning } from './schemaProvisioning';
179180
import { Session } from './session';
@@ -295,6 +296,7 @@ let typeMap: {[index: string]: any} = {
295296
"RuleId": RuleId,
296297
"Schema": Schema,
297298
"Schema1": Schema1,
299+
"Schema3": Schema3,
298300
"Schema1AddedBy": Schema1AddedBy,
299301
"SchemaProvisioning": SchemaProvisioning,
300302
"Session": Session,

0 commit comments

Comments
 (0)