-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the improved API that leads to cleaner client code.
- Loading branch information
Showing
14 changed files
with
373 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Unikorn Identity API | ||
* The Unikorn Identity API provides an OIDC compliant interface for use with all Unikorn services and proxies. As it\'s intended use is for multi-tenant cloud deployments it acts as an aggregation layer for other 3rd party OIDC services, dispatching login requests to the required OIDC backend. | ||
* | ||
* The version of the OpenAPI document: 0.1.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
/** | ||
* A single quota. | ||
* @export | ||
* @interface QuotaRead | ||
*/ | ||
export interface QuotaRead { | ||
/** | ||
* The kind of resource. | ||
* @type {string} | ||
* @memberof QuotaRead | ||
*/ | ||
kind: string; | ||
/** | ||
* Tha maximum amount of that resource. | ||
* @type {number} | ||
* @memberof QuotaRead | ||
*/ | ||
quantity: number; | ||
/** | ||
* The amount of that resource that is used. | ||
* @type {number} | ||
* @memberof QuotaRead | ||
*/ | ||
used: number; | ||
/** | ||
* The amount of that resource that is free. | ||
* @type {number} | ||
* @memberof QuotaRead | ||
*/ | ||
free: number; | ||
/** | ||
* Tha amount of that resource always in use. | ||
* @type {number} | ||
* @memberof QuotaRead | ||
*/ | ||
committed: number; | ||
/** | ||
* The amount of that resource that may be used e.g. autoscaled. | ||
* @type {number} | ||
* @memberof QuotaRead | ||
*/ | ||
reserved: number; | ||
/** | ||
* The name that should be displayed to end users. | ||
* @type {string} | ||
* @memberof QuotaRead | ||
*/ | ||
displayName: string; | ||
/** | ||
* A verbose explanation of what the quota limits. | ||
* @type {string} | ||
* @memberof QuotaRead | ||
*/ | ||
description: string; | ||
/** | ||
* The default value of the quota. | ||
* @type {number} | ||
* @memberof QuotaRead | ||
*/ | ||
_default: number; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the QuotaRead interface. | ||
*/ | ||
export function instanceOfQuotaRead(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "kind" in value; | ||
isInstance = isInstance && "quantity" in value; | ||
isInstance = isInstance && "used" in value; | ||
isInstance = isInstance && "free" in value; | ||
isInstance = isInstance && "committed" in value; | ||
isInstance = isInstance && "reserved" in value; | ||
isInstance = isInstance && "displayName" in value; | ||
isInstance = isInstance && "description" in value; | ||
isInstance = isInstance && "_default" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function QuotaReadFromJSON(json: any): QuotaRead { | ||
return QuotaReadFromJSONTyped(json, false); | ||
} | ||
|
||
export function QuotaReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotaRead { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'kind': json['kind'], | ||
'quantity': json['quantity'], | ||
'used': json['used'], | ||
'free': json['free'], | ||
'committed': json['committed'], | ||
'reserved': json['reserved'], | ||
'displayName': json['displayName'], | ||
'description': json['description'], | ||
'_default': json['default'], | ||
}; | ||
} | ||
|
||
export function QuotaReadToJSON(value?: QuotaRead | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'kind': value.kind, | ||
'quantity': value.quantity, | ||
'used': value.used, | ||
'free': value.free, | ||
'committed': value.committed, | ||
'reserved': value.reserved, | ||
'displayName': value.displayName, | ||
'description': value.description, | ||
'default': value._default, | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Unikorn Identity API | ||
* The Unikorn Identity API provides an OIDC compliant interface for use with all Unikorn services and proxies. As it\'s intended use is for multi-tenant cloud deployments it acts as an aggregation layer for other 3rd party OIDC services, dispatching login requests to the required OIDC backend. | ||
* | ||
* The version of the OpenAPI document: 0.1.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
import { exists, mapValues } from '../runtime'; | ||
/** | ||
* A single quota. | ||
* @export | ||
* @interface QuotaWrite | ||
*/ | ||
export interface QuotaWrite { | ||
/** | ||
* The kind of resource. | ||
* @type {string} | ||
* @memberof QuotaWrite | ||
*/ | ||
kind: string; | ||
/** | ||
* Tha maximum amount of that resource. | ||
* @type {number} | ||
* @memberof QuotaWrite | ||
*/ | ||
quantity: number; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the QuotaWrite interface. | ||
*/ | ||
export function instanceOfQuotaWrite(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "kind" in value; | ||
isInstance = isInstance && "quantity" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function QuotaWriteFromJSON(json: any): QuotaWrite { | ||
return QuotaWriteFromJSONTyped(json, false); | ||
} | ||
|
||
export function QuotaWriteFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotaWrite { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'kind': json['kind'], | ||
'quantity': json['quantity'], | ||
}; | ||
} | ||
|
||
export function QuotaWriteToJSON(value?: QuotaWrite | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'kind': value.kind, | ||
'quantity': value.quantity, | ||
}; | ||
} | ||
|
Oops, something went wrong.