76 lines
1.9 KiB
TypeScript
76 lines
1.9 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Signal Cli REST API
|
|
* This is the Signal Cli REST API documentation.
|
|
*
|
|
* The version of the OpenAPI document: 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 { mapValues } from '../runtime';
|
|
/**
|
|
*
|
|
* @export
|
|
* @interface ApiUpdateContactRequest
|
|
*/
|
|
export interface ApiUpdateContactRequest {
|
|
/**
|
|
*
|
|
* @type {number}
|
|
* @memberof ApiUpdateContactRequest
|
|
*/
|
|
expirationInSeconds?: number;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ApiUpdateContactRequest
|
|
*/
|
|
name?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof ApiUpdateContactRequest
|
|
*/
|
|
recipient?: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the ApiUpdateContactRequest interface.
|
|
*/
|
|
export function instanceOfApiUpdateContactRequest(value: object): value is ApiUpdateContactRequest {
|
|
return true;
|
|
}
|
|
|
|
export function ApiUpdateContactRequestFromJSON(json: any): ApiUpdateContactRequest {
|
|
return ApiUpdateContactRequestFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function ApiUpdateContactRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiUpdateContactRequest {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
|
|
'expirationInSeconds': json['expiration_in_seconds'] == null ? undefined : json['expiration_in_seconds'],
|
|
'name': json['name'] == null ? undefined : json['name'],
|
|
'recipient': json['recipient'] == null ? undefined : json['recipient'],
|
|
};
|
|
}
|
|
|
|
export function ApiUpdateContactRequestToJSON(value?: ApiUpdateContactRequest | null): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
return {
|
|
|
|
'expiration_in_seconds': value['expirationInSeconds'],
|
|
'name': value['name'],
|
|
'recipient': value['recipient'],
|
|
};
|
|
}
|
|
|