49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
/*
|
|
* v1beta1_lease_candidate_spec.h
|
|
*
|
|
* LeaseCandidateSpec is a specification of a Lease.
|
|
*/
|
|
|
|
#ifndef _v1beta1_lease_candidate_spec_H_
|
|
#define _v1beta1_lease_candidate_spec_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
typedef struct v1beta1_lease_candidate_spec_t v1beta1_lease_candidate_spec_t;
|
|
|
|
|
|
|
|
|
|
typedef struct v1beta1_lease_candidate_spec_t {
|
|
char *binary_version; // string
|
|
char *emulation_version; // string
|
|
char *lease_name; // string
|
|
char *ping_time; //date time
|
|
char *renew_time; //date time
|
|
char *strategy; // string
|
|
|
|
int _library_owned; // Is the library responsible for freeing this object?
|
|
} v1beta1_lease_candidate_spec_t;
|
|
|
|
__attribute__((deprecated)) v1beta1_lease_candidate_spec_t *v1beta1_lease_candidate_spec_create(
|
|
char *binary_version,
|
|
char *emulation_version,
|
|
char *lease_name,
|
|
char *ping_time,
|
|
char *renew_time,
|
|
char *strategy
|
|
);
|
|
|
|
void v1beta1_lease_candidate_spec_free(v1beta1_lease_candidate_spec_t *v1beta1_lease_candidate_spec);
|
|
|
|
v1beta1_lease_candidate_spec_t *v1beta1_lease_candidate_spec_parseFromJSON(cJSON *v1beta1_lease_candidate_specJSON);
|
|
|
|
cJSON *v1beta1_lease_candidate_spec_convertToJSON(v1beta1_lease_candidate_spec_t *v1beta1_lease_candidate_spec);
|
|
|
|
#endif /* _v1beta1_lease_candidate_spec_H_ */
|
|
|