Skip to content

Commit

Permalink
Update register license spec (#2039)
Browse files Browse the repository at this point in the history
update register license spec
  • Loading branch information
milan-deepfence authored Mar 26, 2024
1 parent fac81cf commit 64c7eab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deepfence_frontend/apps/dashboard/api-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14468,7 +14468,7 @@
}
},
"ModelRegisterLicenseRequest": {
"required": ["email", "license_key"],
"required": ["license_key"],
"type": "object",
"properties": {
"email": { "type": "string" },
Expand Down Expand Up @@ -15015,7 +15015,7 @@
"type": "object",
"properties": {
"key": {
"enum": ["console_url", "inactive_delete_scan_results"],
"enum": ["console_url", "file_server_url", "inactive_delete_scan_results"],
"type": "string"
},
"value": { "type": "string" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ModelRegisterLicenseRequest {
* @type {string}
* @memberof ModelRegisterLicenseRequest
*/
email: string;
email?: string;
/**
*
* @type {string}
Expand All @@ -38,7 +38,6 @@ export interface ModelRegisterLicenseRequest {
*/
export function instanceOfModelRegisterLicenseRequest(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "email" in value;
isInstance = isInstance && "license_key" in value;

return isInstance;
Expand All @@ -54,7 +53,7 @@ export function ModelRegisterLicenseRequestFromJSONTyped(json: any, ignoreDiscri
}
return {

'email': json['email'],
'email': !exists(json, 'email') ? undefined : json['email'],
'license_key': json['license_key'],
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface ModelSettingUpdateRequest {
*/
export const ModelSettingUpdateRequestKeyEnum = {
ConsoleUrl: 'console_url',
FileServerUrl: 'file_server_url',
InactiveDeleteScanResults: 'inactive_delete_scan_results'
} as const;
export type ModelSettingUpdateRequestKeyEnum = typeof ModelSettingUpdateRequestKeyEnum[keyof typeof ModelSettingUpdateRequestKeyEnum];
Expand Down

0 comments on commit 64c7eab

Please sign in to comment.