Skip to content
This repository was archived by the owner on Nov 10, 2020. It is now read-only.

Commit 3e79b57

Browse files
committed
Update from swagger file
1 parent 0eb2257 commit 3e79b57

File tree

7 files changed

+51
-19
lines changed

7 files changed

+51
-19
lines changed

.swagger-codegen-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

generate.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
SCRIPT_BASE_NAME=`basename "$0"`
4+
5+
cd `dirname $0`
6+
7+
swagger-codegen generate -l php -i swagger.json -c config-swagger
8+
9+
git apply patchs/*.patch

idcheckio-php-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This PHP package is automatically generated by the [Swagger Codegen](https://git
55

66
- API version: 0.0
77
- Package version: 1.0.0
8-
- Build date: 2016-11-17T10:27:48.866+01:00
8+
- Build date: 2016-12-01T12:59:57.926+01:00
99
- Build package: class io.swagger.codegen.languages.PhpClientCodegen
1010

1111
## Requirements

idcheckio-php-client/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"squizlabs/php_codesniffer": "~2.6"
2929
},
3030
"autoload": {
31-
"psr-4": { "invoker\\" : "lib/", "api\\" : "lib/api/", "model\\" : "lib/model/" }
31+
"psr-4": { "invoker\\" : "lib/" }
3232
},
3333
"autoload-dev": {
3434
"psr-4": { "invoker\\" : "test/" }

idcheckio-php-client/docs/Model/TaskResponse.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**uid** | **string** | analysisRefUid |
77
**is_with_progress** | **bool** | task with progress | [optional] [default to false]
8-
**accepted** | [**\DateTime**](\DateTime.md) | task accepted date | [optional]
9-
**started** | [**\DateTime**](\DateTime.md) | task started date | [optional]
10-
**ended** | [**\DateTime**](\DateTime.md) | task ended date | [optional]
11-
**last_progress** | [**\DateTime**](\DateTime.md) | last progress date | [optional]
8+
**accepted** | **int** | task accepted date | [optional]
9+
**started** | **int** | task started date | [optional]
10+
**ended** | **int** | task ended date | [optional]
11+
**last_progress** | **int** | last progress date | [optional]
1212
**percentage** | **int** | percentage progress | [optional]
1313
**redirect_url** | **string** | redirect url | [optional]
1414
**message** | **string** | message | [optional]

idcheckio-php-client/lib/model/TaskResponse.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ class TaskResponse implements ArrayAccess
6868
protected static $swaggerTypes = array(
6969
'uid' => 'string',
7070
'is_with_progress' => 'bool',
71-
'accepted' => '\DateTime',
72-
'started' => '\DateTime',
73-
'ended' => '\DateTime',
74-
'last_progress' => '\DateTime',
71+
'accepted' => 'int',
72+
'started' => 'int',
73+
'ended' => 'int',
74+
'last_progress' => 'int',
7575
'percentage' => 'int',
7676
'redirect_url' => 'string',
7777
'message' => 'string'
@@ -245,7 +245,7 @@ public function setIsWithProgress($is_with_progress)
245245

246246
/**
247247
* Gets accepted
248-
* @return \DateTime
248+
* @return int
249249
*/
250250
public function getAccepted()
251251
{
@@ -254,7 +254,7 @@ public function getAccepted()
254254

255255
/**
256256
* Sets accepted
257-
* @param \DateTime $accepted task accepted date
257+
* @param int $accepted task accepted date
258258
* @return $this
259259
*/
260260
public function setAccepted($accepted)
@@ -266,7 +266,7 @@ public function setAccepted($accepted)
266266

267267
/**
268268
* Gets started
269-
* @return \DateTime
269+
* @return int
270270
*/
271271
public function getStarted()
272272
{
@@ -275,7 +275,7 @@ public function getStarted()
275275

276276
/**
277277
* Sets started
278-
* @param \DateTime $started task started date
278+
* @param int $started task started date
279279
* @return $this
280280
*/
281281
public function setStarted($started)
@@ -287,7 +287,7 @@ public function setStarted($started)
287287

288288
/**
289289
* Gets ended
290-
* @return \DateTime
290+
* @return int
291291
*/
292292
public function getEnded()
293293
{
@@ -296,7 +296,7 @@ public function getEnded()
296296

297297
/**
298298
* Sets ended
299-
* @param \DateTime $ended task ended date
299+
* @param int $ended task ended date
300300
* @return $this
301301
*/
302302
public function setEnded($ended)
@@ -308,7 +308,7 @@ public function setEnded($ended)
308308

309309
/**
310310
* Gets last_progress
311-
* @return \DateTime
311+
* @return int
312312
*/
313313
public function getLastProgress()
314314
{
@@ -317,7 +317,7 @@ public function getLastProgress()
317317

318318
/**
319319
* Sets last_progress
320-
* @param \DateTime $last_progress last progress date
320+
* @param int $last_progress last progress date
321321
* @return $this
322322
*/
323323
public function setLastProgress($last_progress)

swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)