Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions generated-sources/api/src/models/OauthConnectRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import {
*/
export interface OauthConnectRequest {
/**
* The Ampersand project ID.
* The Ampersand project ID or project name.
* @type {string}
* @memberof OauthConnectRequest
*/
projectId: string;
projectIdOrName: string;
/**
* The provider that this app connects to.
* @type {string}
Expand Down Expand Up @@ -93,7 +93,7 @@ export interface OauthConnectRequest {
*/
export function instanceOfOauthConnectRequest(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "projectId" in value;
isInstance = isInstance && "projectIdOrName" in value;
isInstance = isInstance && "provider" in value;
isInstance = isInstance && "groupRef" in value;
isInstance = isInstance && "consumerRef" in value;
Expand All @@ -111,7 +111,7 @@ export function OauthConnectRequestFromJSONTyped(json: any, ignoreDiscriminator:
}
return {

'projectId': json['projectId'],
'projectIdOrName': json['projectIdOrName'],
'provider': json['provider'],
'groupRef': json['groupRef'],
'groupName': !exists(json, 'groupName') ? undefined : json['groupName'],
Expand All @@ -133,7 +133,7 @@ export function OauthConnectRequestToJSON(value?: OauthConnectRequest | null): a
}
return {

'projectId': value.projectId,
'projectIdOrName': value.projectIdOrName,
'provider': value.provider,
'groupRef': value.groupRef,
'groupName': value.groupName,
Expand Down
Loading