-
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.
Source Quota Metadata from an API (#154)
Gives UX people the choice of what they call things etc.
- Loading branch information
Showing
8 changed files
with
175 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* 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's metadata. | ||
* @export | ||
* @interface QuotaMetadata | ||
*/ | ||
export interface QuotaMetadata { | ||
/** | ||
* The internal quota name. | ||
* @type {string} | ||
* @memberof QuotaMetadata | ||
*/ | ||
name: string; | ||
/** | ||
* The name that should be displayed to end users. | ||
* @type {string} | ||
* @memberof QuotaMetadata | ||
*/ | ||
displayName: string; | ||
/** | ||
* A verbose explanation of what the quota limits. | ||
* @type {string} | ||
* @memberof QuotaMetadata | ||
*/ | ||
description: string; | ||
/** | ||
* The default value of the quota. | ||
* @type {number} | ||
* @memberof QuotaMetadata | ||
*/ | ||
_default: number; | ||
} | ||
|
||
/** | ||
* Check if a given object implements the QuotaMetadata interface. | ||
*/ | ||
export function instanceOfQuotaMetadata(value: object): boolean { | ||
let isInstance = true; | ||
isInstance = isInstance && "name" in value; | ||
isInstance = isInstance && "displayName" in value; | ||
isInstance = isInstance && "description" in value; | ||
isInstance = isInstance && "_default" in value; | ||
|
||
return isInstance; | ||
} | ||
|
||
export function QuotaMetadataFromJSON(json: any): QuotaMetadata { | ||
return QuotaMetadataFromJSONTyped(json, false); | ||
} | ||
|
||
export function QuotaMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotaMetadata { | ||
if ((json === undefined) || (json === null)) { | ||
return json; | ||
} | ||
return { | ||
|
||
'name': json['name'], | ||
'displayName': json['displayName'], | ||
'description': json['description'], | ||
'_default': json['default'], | ||
}; | ||
} | ||
|
||
export function QuotaMetadataToJSON(value?: QuotaMetadata | null): any { | ||
if (value === undefined) { | ||
return undefined; | ||
} | ||
if (value === null) { | ||
return null; | ||
} | ||
return { | ||
|
||
'name': value.name, | ||
'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
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