quake_timesheets_client 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/CreateEntriesInput.md +3 -1
- data/docs/Entry.md +2 -0
- data/docs/UpdateEntriesInput.md +3 -1
- data/lib/quake_timesheets_client/models/create_entries_input.rb +16 -4
- data/lib/quake_timesheets_client/models/entry.rb +18 -1
- data/lib/quake_timesheets_client/models/update_entries_input.rb +16 -4
- data/lib/quake_timesheets_client/version.rb +1 -1
- data/ruby.config.yaml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 788e3cdd15937336e276568400bc08afe81744abf069277988b3ff2ebd9847c1
|
4
|
+
data.tar.gz: b7cf8bee5bdd238f8e939ab692962b1a0bcb903a6ab3c5c9c9ed26a4ceae6186
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bddad7a94043d2689da7dad28da2034bd31990b391e361ad21ade6ccbf31e20d8739b82b6d8a040450b7711ca6371c812b45b978b1d4cdec1932b0e49cacc9d
|
7
|
+
data.tar.gz: 87f4f84d26e971abb2c49db57c169d554f7f6364163369876e14c948969573ed8b4b0ef10d34f8f8341e00eb69eb1a12663df3f85faaacfd7762ecccfb849300
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@ Quake::Timesheets - the Ruby gem for the TimesheetsApi (params in:body)
|
|
9
9
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
10
10
|
|
11
11
|
- API version: 1.0
|
12
|
-
- Package version: 0.1.
|
12
|
+
- Package version: 0.1.5
|
13
13
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
14
14
|
|
15
15
|
## Generating
|
@@ -37,16 +37,16 @@ gem build quake_timesheets_client.gemspec
|
|
37
37
|
Then either install the gem locally:
|
38
38
|
|
39
39
|
```shell
|
40
|
-
gem install ./quake_timesheets_client-0.1.
|
40
|
+
gem install ./quake_timesheets_client-0.1.5.gem
|
41
41
|
```
|
42
42
|
|
43
|
-
(for development, run `gem install --dev ./quake_timesheets_client-0.1.
|
43
|
+
(for development, run `gem install --dev ./quake_timesheets_client-0.1.5.gem` to install the development dependencies)
|
44
44
|
|
45
45
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
46
46
|
|
47
47
|
Finally add this to the Gemfile:
|
48
48
|
|
49
|
-
gem 'quake_timesheets_client', '~> 0.1.
|
49
|
+
gem 'quake_timesheets_client', '~> 0.1.5'
|
50
50
|
|
51
51
|
### Install from Git
|
52
52
|
|
data/docs/CreateEntriesInput.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
| **quantity** | **Float** | | [optional] |
|
11
11
|
| **unit** | **String** | | [optional] |
|
12
12
|
| **external_reference** | **String** | Unique identifier of the activity this Entry relates to | [optional] |
|
13
|
+
| **tags** | **Array<String>** | The Tags attached to this entries. Can take an Array of UUIDs of existing Tags, or any String which will find or create a Tag with that value | [optional] |
|
13
14
|
|
14
15
|
## Example
|
15
16
|
|
@@ -22,7 +23,8 @@ instance = Quake::Timesheets::CreateEntriesInput.new(
|
|
22
23
|
end_at: null,
|
23
24
|
quantity: null,
|
24
25
|
unit: null,
|
25
|
-
external_reference: null
|
26
|
+
external_reference: null,
|
27
|
+
tags: null
|
26
28
|
)
|
27
29
|
```
|
28
30
|
|
data/docs/Entry.md
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
| **quantity** | **Float** | | [optional] |
|
13
13
|
| **unit** | **String** | | [optional] |
|
14
14
|
| **external_reference** | **String** | Unique identifier of the activity this Entry relates to | [optional] |
|
15
|
+
| **tags** | **Array<String>** | The Tags attached to this entry. | |
|
15
16
|
| **created_at** | **String** | Time at which the record was created | |
|
16
17
|
| **updated_at** | **String** | Time at which the record was updated | |
|
17
18
|
|
@@ -29,6 +30,7 @@ instance = Quake::Timesheets::Entry.new(
|
|
29
30
|
quantity: null,
|
30
31
|
unit: null,
|
31
32
|
external_reference: null,
|
33
|
+
tags: null,
|
32
34
|
created_at: null,
|
33
35
|
updated_at: null
|
34
36
|
)
|
data/docs/UpdateEntriesInput.md
CHANGED
@@ -10,6 +10,7 @@
|
|
10
10
|
| **quantity** | **Float** | | [optional] |
|
11
11
|
| **unit** | **String** | | [optional] |
|
12
12
|
| **external_reference** | **String** | Unique identifier of the activity this Entry relates to | [optional] |
|
13
|
+
| **tags** | **Array<String>** | The Tags attached to this entries. Can take an Array of UUIDs of existing Tags, or any String which will find or create a Tag with that value | [optional] |
|
13
14
|
|
14
15
|
## Example
|
15
16
|
|
@@ -22,7 +23,8 @@ instance = Quake::Timesheets::UpdateEntriesInput.new(
|
|
22
23
|
end_at: null,
|
23
24
|
quantity: null,
|
24
25
|
unit: null,
|
25
|
-
external_reference: null
|
26
|
+
external_reference: null,
|
27
|
+
tags: null
|
26
28
|
)
|
27
29
|
```
|
28
30
|
|
@@ -31,6 +31,9 @@ module Quake::Timesheets
|
|
31
31
|
# Unique identifier of the activity this Entry relates to
|
32
32
|
attr_accessor :external_reference
|
33
33
|
|
34
|
+
# The Tags attached to this entries. Can take an Array of UUIDs of existing Tags, or any String which will find or create a Tag with that value
|
35
|
+
attr_accessor :tags
|
36
|
+
|
34
37
|
class EnumAttributeValidator
|
35
38
|
attr_reader :datatype
|
36
39
|
attr_reader :allowable_values
|
@@ -61,7 +64,8 @@ module Quake::Timesheets
|
|
61
64
|
:'end_at' => :'end_at',
|
62
65
|
:'quantity' => :'quantity',
|
63
66
|
:'unit' => :'unit',
|
64
|
-
:'external_reference' => :'external_reference'
|
67
|
+
:'external_reference' => :'external_reference',
|
68
|
+
:'tags' => :'tags'
|
65
69
|
}
|
66
70
|
end
|
67
71
|
|
@@ -78,7 +82,8 @@ module Quake::Timesheets
|
|
78
82
|
:'end_at' => :'String',
|
79
83
|
:'quantity' => :'Float',
|
80
84
|
:'unit' => :'String',
|
81
|
-
:'external_reference' => :'String'
|
85
|
+
:'external_reference' => :'String',
|
86
|
+
:'tags' => :'Array<String>'
|
82
87
|
}
|
83
88
|
end
|
84
89
|
|
@@ -126,6 +131,12 @@ module Quake::Timesheets
|
|
126
131
|
if attributes.key?(:'external_reference')
|
127
132
|
self.external_reference = attributes[:'external_reference']
|
128
133
|
end
|
134
|
+
|
135
|
+
if attributes.key?(:'tags')
|
136
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
137
|
+
self.tags = value
|
138
|
+
end
|
139
|
+
end
|
129
140
|
end
|
130
141
|
|
131
142
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -163,7 +174,8 @@ module Quake::Timesheets
|
|
163
174
|
end_at == o.end_at &&
|
164
175
|
quantity == o.quantity &&
|
165
176
|
unit == o.unit &&
|
166
|
-
external_reference == o.external_reference
|
177
|
+
external_reference == o.external_reference &&
|
178
|
+
tags == o.tags
|
167
179
|
end
|
168
180
|
|
169
181
|
# @see the `==` method
|
@@ -175,7 +187,7 @@ module Quake::Timesheets
|
|
175
187
|
# Calculates hash code according to all attributes.
|
176
188
|
# @return [Integer] Hash code
|
177
189
|
def hash
|
178
|
-
[person_id, start_at, end_at, quantity, unit, external_reference].hash
|
190
|
+
[person_id, start_at, end_at, quantity, unit, external_reference, tags].hash
|
179
191
|
end
|
180
192
|
|
181
193
|
# Builds the object from hash
|
@@ -37,6 +37,9 @@ module Quake::Timesheets
|
|
37
37
|
# Unique identifier of the activity this Entry relates to
|
38
38
|
attr_accessor :external_reference
|
39
39
|
|
40
|
+
# The Tags attached to this entry.
|
41
|
+
attr_accessor :tags
|
42
|
+
|
40
43
|
# Time at which the record was created
|
41
44
|
attr_accessor :created_at
|
42
45
|
|
@@ -76,6 +79,7 @@ module Quake::Timesheets
|
|
76
79
|
:'quantity' => :'quantity',
|
77
80
|
:'unit' => :'unit',
|
78
81
|
:'external_reference' => :'external_reference',
|
82
|
+
:'tags' => :'tags',
|
79
83
|
:'created_at' => :'created_at',
|
80
84
|
:'updated_at' => :'updated_at'
|
81
85
|
}
|
@@ -97,6 +101,7 @@ module Quake::Timesheets
|
|
97
101
|
:'quantity' => :'Float',
|
98
102
|
:'unit' => :'String',
|
99
103
|
:'external_reference' => :'String',
|
104
|
+
:'tags' => :'Array<String>',
|
100
105
|
:'created_at' => :'String',
|
101
106
|
:'updated_at' => :'String'
|
102
107
|
}
|
@@ -155,6 +160,12 @@ module Quake::Timesheets
|
|
155
160
|
self.external_reference = attributes[:'external_reference']
|
156
161
|
end
|
157
162
|
|
163
|
+
if attributes.key?(:'tags')
|
164
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
165
|
+
self.tags = value
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
158
169
|
if attributes.key?(:'created_at')
|
159
170
|
self.created_at = attributes[:'created_at']
|
160
171
|
end
|
@@ -176,6 +187,10 @@ module Quake::Timesheets
|
|
176
187
|
invalid_properties.push('invalid value for "dataset_id", dataset_id cannot be nil.')
|
177
188
|
end
|
178
189
|
|
190
|
+
if @tags.nil?
|
191
|
+
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
192
|
+
end
|
193
|
+
|
179
194
|
if @created_at.nil?
|
180
195
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
181
196
|
end
|
@@ -194,6 +209,7 @@ module Quake::Timesheets
|
|
194
209
|
return false if @dataset_id.nil?
|
195
210
|
unit_validator = EnumAttributeValidator.new('String', ["hour", "day", "week", "month", "other"])
|
196
211
|
return false unless unit_validator.valid?(@unit)
|
212
|
+
return false if @tags.nil?
|
197
213
|
return false if @created_at.nil?
|
198
214
|
return false if @updated_at.nil?
|
199
215
|
true
|
@@ -222,6 +238,7 @@ module Quake::Timesheets
|
|
222
238
|
quantity == o.quantity &&
|
223
239
|
unit == o.unit &&
|
224
240
|
external_reference == o.external_reference &&
|
241
|
+
tags == o.tags &&
|
225
242
|
created_at == o.created_at &&
|
226
243
|
updated_at == o.updated_at
|
227
244
|
end
|
@@ -235,7 +252,7 @@ module Quake::Timesheets
|
|
235
252
|
# Calculates hash code according to all attributes.
|
236
253
|
# @return [Integer] Hash code
|
237
254
|
def hash
|
238
|
-
[id, dataset_id, person_id, start_at, end_at, quantity, unit, external_reference, created_at, updated_at].hash
|
255
|
+
[id, dataset_id, person_id, start_at, end_at, quantity, unit, external_reference, tags, created_at, updated_at].hash
|
239
256
|
end
|
240
257
|
|
241
258
|
# Builds the object from hash
|
@@ -31,6 +31,9 @@ module Quake::Timesheets
|
|
31
31
|
# Unique identifier of the activity this Entry relates to
|
32
32
|
attr_accessor :external_reference
|
33
33
|
|
34
|
+
# The Tags attached to this entries. Can take an Array of UUIDs of existing Tags, or any String which will find or create a Tag with that value
|
35
|
+
attr_accessor :tags
|
36
|
+
|
34
37
|
class EnumAttributeValidator
|
35
38
|
attr_reader :datatype
|
36
39
|
attr_reader :allowable_values
|
@@ -61,7 +64,8 @@ module Quake::Timesheets
|
|
61
64
|
:'end_at' => :'end_at',
|
62
65
|
:'quantity' => :'quantity',
|
63
66
|
:'unit' => :'unit',
|
64
|
-
:'external_reference' => :'external_reference'
|
67
|
+
:'external_reference' => :'external_reference',
|
68
|
+
:'tags' => :'tags'
|
65
69
|
}
|
66
70
|
end
|
67
71
|
|
@@ -78,7 +82,8 @@ module Quake::Timesheets
|
|
78
82
|
:'end_at' => :'String',
|
79
83
|
:'quantity' => :'Float',
|
80
84
|
:'unit' => :'String',
|
81
|
-
:'external_reference' => :'String'
|
85
|
+
:'external_reference' => :'String',
|
86
|
+
:'tags' => :'Array<String>'
|
82
87
|
}
|
83
88
|
end
|
84
89
|
|
@@ -126,6 +131,12 @@ module Quake::Timesheets
|
|
126
131
|
if attributes.key?(:'external_reference')
|
127
132
|
self.external_reference = attributes[:'external_reference']
|
128
133
|
end
|
134
|
+
|
135
|
+
if attributes.key?(:'tags')
|
136
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
137
|
+
self.tags = value
|
138
|
+
end
|
139
|
+
end
|
129
140
|
end
|
130
141
|
|
131
142
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -163,7 +174,8 @@ module Quake::Timesheets
|
|
163
174
|
end_at == o.end_at &&
|
164
175
|
quantity == o.quantity &&
|
165
176
|
unit == o.unit &&
|
166
|
-
external_reference == o.external_reference
|
177
|
+
external_reference == o.external_reference &&
|
178
|
+
tags == o.tags
|
167
179
|
end
|
168
180
|
|
169
181
|
# @see the `==` method
|
@@ -175,7 +187,7 @@ module Quake::Timesheets
|
|
175
187
|
# Calculates hash code according to all attributes.
|
176
188
|
# @return [Integer] Hash code
|
177
189
|
def hash
|
178
|
-
[person_id, start_at, end_at, quantity, unit, external_reference].hash
|
190
|
+
[person_id, start_at, end_at, quantity, unit, external_reference, tags].hash
|
179
191
|
end
|
180
192
|
|
181
193
|
# Builds the object from hash
|
data/ruby.config.yaml
CHANGED
@@ -4,7 +4,7 @@ gemHomepage: https://www.quake.co.uk
|
|
4
4
|
gemSummary: A client for the Quake Timesheets API
|
5
5
|
gemDescription: Requires the Quake Timesheets system
|
6
6
|
gemLicense: MIT
|
7
|
-
gemVersion: 0.1.
|
7
|
+
gemVersion: 0.1.5
|
8
8
|
gemRequiredRubyVersion: ">= 2.7"
|
9
9
|
library: faraday
|
10
10
|
moduleName: Quake::Timesheets
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quake_timesheets_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|