Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
d2640197
Commit
d2640197
authored
Jan 06, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PatchItem
parent
4ec246e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
182 additions
and
0 deletions
+182
-0
src/api-server/model/PatchItem.cpp
src/api-server/model/PatchItem.cpp
+99
-0
src/api-server/model/PatchItem.h
src/api-server/model/PatchItem.h
+83
-0
No files found.
src/api-server/model/PatchItem.cpp
0 → 100644
View file @
d2640197
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#include "PatchItem.h"
namespace
oai
{
namespace
smf_server
{
namespace
model
{
PatchItem
::
PatchItem
()
{
m_Path
=
""
;
m_From
=
""
;
m_FromIsSet
=
false
;
m_ValueIsSet
=
false
;
}
PatchItem
::~
PatchItem
()
{
}
void
PatchItem
::
validate
()
{
// TODO: implement validation
}
void
to_json
(
nlohmann
::
json
&
j
,
const
PatchItem
&
o
)
{
j
=
nlohmann
::
json
();
j
[
"op"
]
=
o
.
m_Op
;
j
[
"path"
]
=
o
.
m_Path
;
if
(
o
.
fromIsSet
())
j
[
"from"
]
=
o
.
m_From
;
if
(
o
.
valueIsSet
())
j
[
"value"
]
=
o
.
m_Value
;
}
void
from_json
(
const
nlohmann
::
json
&
j
,
PatchItem
&
o
)
{
j
.
at
(
"op"
).
get_to
(
o
.
m_Op
);
j
.
at
(
"path"
).
get_to
(
o
.
m_Path
);
if
(
j
.
find
(
"from"
)
!=
j
.
end
())
{
j
.
at
(
"from"
).
get_to
(
o
.
m_From
);
o
.
m_FromIsSet
=
true
;
}
if
(
j
.
find
(
"value"
)
!=
j
.
end
())
{
j
.
at
(
"value"
).
get_to
(
o
.
m_Value
);
o
.
m_ValueIsSet
=
true
;
}
}
std
::
string
PatchItem
::
getOp
()
const
{
return
m_Op
;
}
void
PatchItem
::
setOp
(
std
::
string
const
&
value
)
{
m_Op
=
value
;
}
std
::
string
PatchItem
::
getPath
()
const
{
return
m_Path
;
}
void
PatchItem
::
setPath
(
std
::
string
const
&
value
)
{
m_Path
=
value
;
}
std
::
string
PatchItem
::
getFrom
()
const
{
return
m_From
;
}
void
PatchItem
::
setFrom
(
std
::
string
const
&
value
)
{
m_From
=
value
;
m_FromIsSet
=
true
;
}
bool
PatchItem
::
fromIsSet
()
const
{
return
m_FromIsSet
;
}
void
PatchItem
::
unsetFrom
()
{
m_FromIsSet
=
false
;
}
std
::
string
PatchItem
::
getValue
()
const
{
return
m_Value
;
}
void
PatchItem
::
setValue
(
std
::
string
const
&
value
)
{
m_Value
=
value
;
m_ValueIsSet
=
true
;
}
bool
PatchItem
::
valueIsSet
()
const
{
return
m_ValueIsSet
;
}
void
PatchItem
::
unsetValue
()
{
m_ValueIsSet
=
false
;
}
}
}
}
src/api-server/model/PatchItem.h
0 → 100644
View file @
d2640197
/**
* NRF NFManagement Service
* NRF NFManagement Service. © 2019, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
*
* The version of the OpenAPI document: 1.1.0.alpha-1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
* PatchItem.h
*
*
*/
#ifndef PatchItem_H_
#define PatchItem_H_
#include <string>
#include <nlohmann/json.hpp>
namespace
oai
{
namespace
smf_server
{
namespace
model
{
/// <summary>
///
/// </summary>
class
PatchItem
{
public:
PatchItem
();
virtual
~
PatchItem
();
void
validate
();
/////////////////////////////////////////////
/// PatchItem members
/// <summary>
///
/// </summary>
std
::
string
getOp
()
const
;
void
setOp
(
std
::
string
const
&
value
);
/// <summary>
///
/// </summary>
std
::
string
getPath
()
const
;
void
setPath
(
std
::
string
const
&
value
);
/// <summary>
///
/// </summary>
std
::
string
getFrom
()
const
;
void
setFrom
(
std
::
string
const
&
value
);
bool
fromIsSet
()
const
;
void
unsetFrom
();
/// <summary>
///
/// </summary>
std
::
string
getValue
()
const
;
void
setValue
(
std
::
string
const
&
value
);
bool
valueIsSet
()
const
;
void
unsetValue
();
friend
void
to_json
(
nlohmann
::
json
&
j
,
const
PatchItem
&
o
);
friend
void
from_json
(
const
nlohmann
::
json
&
j
,
PatchItem
&
o
);
protected:
std
::
string
m_Op
;
std
::
string
m_Path
;
std
::
string
m_From
;
bool
m_FromIsSet
;
std
::
string
m_Value
;
bool
m_ValueIsSet
;
};
}
}
}
#endif
/* PatchItem_H_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment