Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EventsAPIClient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jards
EventsAPIClient
Commits
b2ec5e16
Commit
b2ec5e16
authored
Oct 22, 2018
by
Carsten Karbach
Browse files
Options
Downloads
Patches
Plain Diff
Add institutions and review category to event structure
parent
cad3fd33
Branches
Branches containing commit
Tags
v3.2
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
events_api.json
+16
-0
16 additions, 0 deletions
events_api.json
lib/Model/Event.php
+81
-0
81 additions, 0 deletions
lib/Model/Event.php
with
97 additions
and
0 deletions
events_api.json
+
16
−
0
View file @
b2ec5e16
...
...
@@ -104,6 +104,22 @@
"description"
:
"Name of the trigger which is activated by this event"
,
"type"
:
"string"
},
"institutions"
:
{
"description"
:
"Institutions, for which this event is relevant. Active institution for this event. E.g. HLRS, JSC, LRZ"
,
"type"
:
"array"
,
"items"
:
{
"title"
:
"institution"
,
"type"
:
"string"
}
},
"categoryid"
:{
"description"
:
"This is only available for review events. ID of review category where the event took place. "
,
"type"
:
"integer"
},
"categoryname"
:{
"description"
:
"This is only available for review events. Name of review category where the event took place. "
,
"type"
:
"string"
},
"project"
:
{
"$ref"
:
"#/definitions/Project"
},
...
...
This diff is collapsed.
Click to expand it.
lib/Model/Event.php
+
81
−
0
View file @
b2ec5e16
...
...
@@ -61,6 +61,9 @@ class Event implements ArrayAccess
'source'
=>
'string'
,
'new_state'
=>
'string'
,
'trigger_type'
=>
'string'
,
'institutions'
=>
'string[]'
,
'categoryid'
=>
'int'
,
'categoryname'
=>
'string'
,
'project'
=>
'\jards\eventsapiclient\Swagger\Client\Model\Project'
,
'application'
=>
'\jards\eventsapiclient\Swagger\Client\Model\Application'
];
...
...
@@ -77,6 +80,9 @@ class Event implements ArrayAccess
'source'
=>
null
,
'new_state'
=>
null
,
'trigger_type'
=>
null
,
'institutions'
=>
null
,
'categoryid'
=>
null
,
'categoryname'
=>
null
,
'project'
=>
null
,
'application'
=>
null
];
...
...
@@ -103,6 +109,9 @@ class Event implements ArrayAccess
'source'
=>
'source'
,
'new_state'
=>
'newState'
,
'trigger_type'
=>
'triggerType'
,
'institutions'
=>
'institutions'
,
'categoryid'
=>
'categoryid'
,
'categoryname'
=>
'categoryname'
,
'project'
=>
'project'
,
'application'
=>
'application'
];
...
...
@@ -120,6 +129,9 @@ class Event implements ArrayAccess
'source'
=>
'setSource'
,
'new_state'
=>
'setNewState'
,
'trigger_type'
=>
'setTriggerType'
,
'institutions'
=>
'setInstitutions'
,
'categoryid'
=>
'setCategoryid'
,
'categoryname'
=>
'setCategoryname'
,
'project'
=>
'setProject'
,
'application'
=>
'setApplication'
];
...
...
@@ -137,6 +149,9 @@ class Event implements ArrayAccess
'source'
=>
'getSource'
,
'new_state'
=>
'getNewState'
,
'trigger_type'
=>
'getTriggerType'
,
'institutions'
=>
'getInstitutions'
,
'categoryid'
=>
'getCategoryid'
,
'categoryname'
=>
'getCategoryname'
,
'project'
=>
'getProject'
,
'application'
=>
'getApplication'
];
...
...
@@ -179,6 +194,9 @@ class Event implements ArrayAccess
$this
->
container
[
'source'
]
=
isset
(
$data
[
'source'
])
?
$data
[
'source'
]
:
null
;
$this
->
container
[
'new_state'
]
=
isset
(
$data
[
'new_state'
])
?
$data
[
'new_state'
]
:
null
;
$this
->
container
[
'trigger_type'
]
=
isset
(
$data
[
'trigger_type'
])
?
$data
[
'trigger_type'
]
:
null
;
$this
->
container
[
'institutions'
]
=
isset
(
$data
[
'institutions'
])
?
$data
[
'institutions'
]
:
null
;
$this
->
container
[
'categoryid'
]
=
isset
(
$data
[
'categoryid'
])
?
$data
[
'categoryid'
]
:
null
;
$this
->
container
[
'categoryname'
]
=
isset
(
$data
[
'categoryname'
])
?
$data
[
'categoryname'
]
:
null
;
$this
->
container
[
'project'
]
=
isset
(
$data
[
'project'
])
?
$data
[
'project'
]
:
null
;
$this
->
container
[
'application'
]
=
isset
(
$data
[
'application'
])
?
$data
[
'application'
]
:
null
;
}
...
...
@@ -373,6 +391,69 @@ class Event implements ArrayAccess
return
$this
;
}
/**
* Gets institutions
* @return string[]
*/
public
function
getInstitutions
()
{
return
$this
->
container
[
'institutions'
];
}
/**
* Sets institutions
* @param string[] $institutions Institutions, for which this event is relevant. Active institution for this event. E.g. HLRS, JSC, LRZ
* @return $this
*/
public
function
setInstitutions
(
$institutions
)
{
$this
->
container
[
'institutions'
]
=
$institutions
;
return
$this
;
}
/**
* Gets categoryid
* @return int
*/
public
function
getCategoryid
()
{
return
$this
->
container
[
'categoryid'
];
}
/**
* Sets categoryid
* @param int $categoryid This is only available for review events. ID of review category where the event took place.
* @return $this
*/
public
function
setCategoryid
(
$categoryid
)
{
$this
->
container
[
'categoryid'
]
=
$categoryid
;
return
$this
;
}
/**
* Gets categoryname
* @return string
*/
public
function
getCategoryname
()
{
return
$this
->
container
[
'categoryname'
];
}
/**
* Sets categoryname
* @param string $categoryname This is only available for review events. Name of review category where the event took place.
* @return $this
*/
public
function
setCategoryname
(
$categoryname
)
{
$this
->
container
[
'categoryname'
]
=
$categoryname
;
return
$this
;
}
/**
* Gets project
* @return \jards\eventsapiclient\Swagger\Client\Model\Project
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment