bullet_train_test 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +123 -0
- data/Rakefile +10 -0
- data/bullet_train_test.gemspec +38 -0
- data/docs/ApiV1GoalSerializer.md +18 -0
- data/docs/ApiV1GoalSerializerData.md +24 -0
- data/docs/ApiV1GoalSerializerDataAttributes.md +26 -0
- data/docs/ApiV1GoalSerializerDataRelationships.md +18 -0
- data/docs/ApiV1ProjectSerializer.md +18 -0
- data/docs/ApiV1ProjectSerializerData.md +24 -0
- data/docs/ApiV1ProjectSerializerDataAttributes.md +32 -0
- data/docs/ApiV1ProjectsTagSerializer.md +18 -0
- data/docs/ApiV1ProjectsTagSerializerData.md +24 -0
- data/docs/ApiV1ProjectsTagSerializerDataAttributes.md +26 -0
- data/docs/ApiV1ProjectsTagSerializerDataRelationships.md +18 -0
- data/docs/ApiV1ProjectsTagSerializerDataRelationshipsTeam.md +18 -0
- data/docs/ApiV1ProjectsTagSerializerDataRelationshipsTeamData.md +20 -0
- data/docs/ApiV1TeamSerializer.md +18 -0
- data/docs/ApiV1TeamSerializerData.md +24 -0
- data/docs/ApiV1TeamSerializerDataAttributes.md +28 -0
- data/docs/ApiV1TeamSerializerDataRelationships.md +18 -0
- data/docs/ApiV1TeamSerializerDataRelationshipsScaffoldingAbsolutelyAbstractCreativeConcepts.md +18 -0
- data/docs/GoalsApi.md +205 -0
- data/docs/MeApi.md +66 -0
- data/docs/ProjectsApi.md +472 -0
- data/docs/TeamsApi.md +628 -0
- data/git_push.sh +57 -0
- data/lib/bullet_train_test/api/goals_api.rb +210 -0
- data/lib/bullet_train_test/api/me_api.rb +73 -0
- data/lib/bullet_train_test/api/projects_api.rb +466 -0
- data/lib/bullet_train_test/api/teams_api.rb +611 -0
- data/lib/bullet_train_test/api_client.rb +389 -0
- data/lib/bullet_train_test/api_error.rb +57 -0
- data/lib/bullet_train_test/configuration.rb +271 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer_data_attributes.rb +254 -0
- data/lib/bullet_train_test/models/api_v1_goal_serializer_data_relationships.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_project_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_project_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_project_serializer_data_attributes.rb +281 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_attributes.rb +254 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships_team.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_projects_tag_serializer_data_relationships_team_data.rb +227 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer.rb +219 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data.rb +245 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data_attributes.rb +263 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data_relationships.rb +218 -0
- data/lib/bullet_train_test/models/api_v1_team_serializer_data_relationships_scaffolding_absolutely_abstract_creative_concepts.rb +220 -0
- data/lib/bullet_train_test/version.rb +15 -0
- data/lib/bullet_train_test.rb +61 -0
- data/spec/api/goals_api_spec.rb +69 -0
- data/spec/api/me_api_spec.rb +44 -0
- data/spec/api/projects_api_spec.rb +115 -0
- data/spec/api/teams_api_spec.rb +144 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/api_v1_goal_serializer_data_attributes_spec.rb +58 -0
- data/spec/models/api_v1_goal_serializer_data_relationships_spec.rb +34 -0
- data/spec/models/api_v1_goal_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_goal_serializer_spec.rb +34 -0
- data/spec/models/api_v1_project_serializer_data_attributes_spec.rb +76 -0
- data/spec/models/api_v1_project_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_project_serializer_spec.rb +34 -0
- data/spec/models/api_v1_projects_tag_serializer_data_attributes_spec.rb +58 -0
- data/spec/models/api_v1_projects_tag_serializer_data_relationships_spec.rb +34 -0
- data/spec/models/api_v1_projects_tag_serializer_data_relationships_team_data_spec.rb +40 -0
- data/spec/models/api_v1_projects_tag_serializer_data_relationships_team_spec.rb +34 -0
- data/spec/models/api_v1_projects_tag_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_projects_tag_serializer_spec.rb +34 -0
- data/spec/models/api_v1_team_serializer_data_attributes_spec.rb +64 -0
- data/spec/models/api_v1_team_serializer_data_relationships_scaffolding_absolutely_abstract_creative_concepts_spec.rb +34 -0
- data/spec/models/api_v1_team_serializer_data_relationships_spec.rb +34 -0
- data/spec/models/api_v1_team_serializer_data_spec.rb +52 -0
- data/spec/models/api_v1_team_serializer_spec.rb +34 -0
- data/spec/spec_helper.rb +111 -0
- metadata +187 -0
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Bullet Train Test
|
|
3
|
+
|
|
4
|
+
#You can update this description in `config/locales/en/application.en.yml`.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 5.3.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module BulletTrainTest
|
|
16
|
+
class ProjectsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Delete a Project
|
|
23
|
+
# @param id [Integer] Project ID
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [nil]
|
|
26
|
+
def delete_projects_id(id, opts = {})
|
|
27
|
+
delete_projects_id_with_http_info(id, opts)
|
|
28
|
+
nil
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Delete a Project
|
|
32
|
+
# @param id [Integer] Project ID
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
35
|
+
def delete_projects_id_with_http_info(id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.delete_projects_id ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.delete_projects_id"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/projects/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
|
|
52
|
+
# form parameters
|
|
53
|
+
form_params = opts[:form_params] || {}
|
|
54
|
+
|
|
55
|
+
# http body (model)
|
|
56
|
+
post_body = opts[:debug_body]
|
|
57
|
+
|
|
58
|
+
# return_type
|
|
59
|
+
return_type = opts[:debug_return_type]
|
|
60
|
+
|
|
61
|
+
# auth_names
|
|
62
|
+
auth_names = opts[:debug_auth_names] || []
|
|
63
|
+
|
|
64
|
+
new_options = opts.merge(
|
|
65
|
+
:operation => :"ProjectsApi.delete_projects_id",
|
|
66
|
+
:header_params => header_params,
|
|
67
|
+
:query_params => query_params,
|
|
68
|
+
:form_params => form_params,
|
|
69
|
+
:body => post_body,
|
|
70
|
+
:auth_names => auth_names,
|
|
71
|
+
:return_type => return_type
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
75
|
+
if @api_client.config.debugging
|
|
76
|
+
@api_client.config.logger.debug "API called: ProjectsApi#delete_projects_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
77
|
+
end
|
|
78
|
+
return data, status_code, headers
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Delete a Tag
|
|
82
|
+
# @param id [Integer] Tag ID
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [nil]
|
|
85
|
+
def delete_projects_tags_id(id, opts = {})
|
|
86
|
+
delete_projects_tags_id_with_http_info(id, opts)
|
|
87
|
+
nil
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Delete a Tag
|
|
91
|
+
# @param id [Integer] Tag ID
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
94
|
+
def delete_projects_tags_id_with_http_info(id, opts = {})
|
|
95
|
+
if @api_client.config.debugging
|
|
96
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.delete_projects_tags_id ...'
|
|
97
|
+
end
|
|
98
|
+
# verify the required parameter 'id' is set
|
|
99
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
100
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.delete_projects_tags_id"
|
|
101
|
+
end
|
|
102
|
+
# resource path
|
|
103
|
+
local_var_path = '/projects/tags/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
104
|
+
|
|
105
|
+
# query parameters
|
|
106
|
+
query_params = opts[:query_params] || {}
|
|
107
|
+
|
|
108
|
+
# header parameters
|
|
109
|
+
header_params = opts[:header_params] || {}
|
|
110
|
+
|
|
111
|
+
# form parameters
|
|
112
|
+
form_params = opts[:form_params] || {}
|
|
113
|
+
|
|
114
|
+
# http body (model)
|
|
115
|
+
post_body = opts[:debug_body]
|
|
116
|
+
|
|
117
|
+
# return_type
|
|
118
|
+
return_type = opts[:debug_return_type]
|
|
119
|
+
|
|
120
|
+
# auth_names
|
|
121
|
+
auth_names = opts[:debug_auth_names] || []
|
|
122
|
+
|
|
123
|
+
new_options = opts.merge(
|
|
124
|
+
:operation => :"ProjectsApi.delete_projects_tags_id",
|
|
125
|
+
:header_params => header_params,
|
|
126
|
+
:query_params => query_params,
|
|
127
|
+
:form_params => form_params,
|
|
128
|
+
:body => post_body,
|
|
129
|
+
:auth_names => auth_names,
|
|
130
|
+
:return_type => return_type
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
134
|
+
if @api_client.config.debugging
|
|
135
|
+
@api_client.config.logger.debug "API called: ProjectsApi#delete_projects_tags_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
136
|
+
end
|
|
137
|
+
return data, status_code, headers
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Retrieve a Project
|
|
141
|
+
# @param id [Integer] Project ID
|
|
142
|
+
# @param [Hash] opts the optional parameters
|
|
143
|
+
# @return [ApiV1ProjectSerializer]
|
|
144
|
+
def get_projects_id(id, opts = {})
|
|
145
|
+
data, _status_code, _headers = get_projects_id_with_http_info(id, opts)
|
|
146
|
+
data
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Retrieve a Project
|
|
150
|
+
# @param id [Integer] Project ID
|
|
151
|
+
# @param [Hash] opts the optional parameters
|
|
152
|
+
# @return [Array<(ApiV1ProjectSerializer, Integer, Hash)>] ApiV1ProjectSerializer data, response status code and response headers
|
|
153
|
+
def get_projects_id_with_http_info(id, opts = {})
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.get_projects_id ...'
|
|
156
|
+
end
|
|
157
|
+
# verify the required parameter 'id' is set
|
|
158
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
159
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.get_projects_id"
|
|
160
|
+
end
|
|
161
|
+
# resource path
|
|
162
|
+
local_var_path = '/projects/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
163
|
+
|
|
164
|
+
# query parameters
|
|
165
|
+
query_params = opts[:query_params] || {}
|
|
166
|
+
|
|
167
|
+
# header parameters
|
|
168
|
+
header_params = opts[:header_params] || {}
|
|
169
|
+
# HTTP header 'Accept' (if needed)
|
|
170
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
|
171
|
+
|
|
172
|
+
# form parameters
|
|
173
|
+
form_params = opts[:form_params] || {}
|
|
174
|
+
|
|
175
|
+
# http body (model)
|
|
176
|
+
post_body = opts[:debug_body]
|
|
177
|
+
|
|
178
|
+
# return_type
|
|
179
|
+
return_type = opts[:debug_return_type] || 'ApiV1ProjectSerializer'
|
|
180
|
+
|
|
181
|
+
# auth_names
|
|
182
|
+
auth_names = opts[:debug_auth_names] || []
|
|
183
|
+
|
|
184
|
+
new_options = opts.merge(
|
|
185
|
+
:operation => :"ProjectsApi.get_projects_id",
|
|
186
|
+
:header_params => header_params,
|
|
187
|
+
:query_params => query_params,
|
|
188
|
+
:form_params => form_params,
|
|
189
|
+
:body => post_body,
|
|
190
|
+
:auth_names => auth_names,
|
|
191
|
+
:return_type => return_type
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
195
|
+
if @api_client.config.debugging
|
|
196
|
+
@api_client.config.logger.debug "API called: ProjectsApi#get_projects_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
197
|
+
end
|
|
198
|
+
return data, status_code, headers
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Retrieve a Tag
|
|
202
|
+
# @param id [Integer] Tag ID
|
|
203
|
+
# @param [Hash] opts the optional parameters
|
|
204
|
+
# @return [ApiV1ProjectsTagSerializer]
|
|
205
|
+
def get_projects_tags_id(id, opts = {})
|
|
206
|
+
data, _status_code, _headers = get_projects_tags_id_with_http_info(id, opts)
|
|
207
|
+
data
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Retrieve a Tag
|
|
211
|
+
# @param id [Integer] Tag ID
|
|
212
|
+
# @param [Hash] opts the optional parameters
|
|
213
|
+
# @return [Array<(ApiV1ProjectsTagSerializer, Integer, Hash)>] ApiV1ProjectsTagSerializer data, response status code and response headers
|
|
214
|
+
def get_projects_tags_id_with_http_info(id, opts = {})
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.get_projects_tags_id ...'
|
|
217
|
+
end
|
|
218
|
+
# verify the required parameter 'id' is set
|
|
219
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
220
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.get_projects_tags_id"
|
|
221
|
+
end
|
|
222
|
+
# resource path
|
|
223
|
+
local_var_path = '/projects/tags/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
224
|
+
|
|
225
|
+
# query parameters
|
|
226
|
+
query_params = opts[:query_params] || {}
|
|
227
|
+
|
|
228
|
+
# header parameters
|
|
229
|
+
header_params = opts[:header_params] || {}
|
|
230
|
+
# HTTP header 'Accept' (if needed)
|
|
231
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
|
232
|
+
|
|
233
|
+
# form parameters
|
|
234
|
+
form_params = opts[:form_params] || {}
|
|
235
|
+
|
|
236
|
+
# http body (model)
|
|
237
|
+
post_body = opts[:debug_body]
|
|
238
|
+
|
|
239
|
+
# return_type
|
|
240
|
+
return_type = opts[:debug_return_type] || 'ApiV1ProjectsTagSerializer'
|
|
241
|
+
|
|
242
|
+
# auth_names
|
|
243
|
+
auth_names = opts[:debug_auth_names] || []
|
|
244
|
+
|
|
245
|
+
new_options = opts.merge(
|
|
246
|
+
:operation => :"ProjectsApi.get_projects_tags_id",
|
|
247
|
+
:header_params => header_params,
|
|
248
|
+
:query_params => query_params,
|
|
249
|
+
:form_params => form_params,
|
|
250
|
+
:body => post_body,
|
|
251
|
+
:auth_names => auth_names,
|
|
252
|
+
:return_type => return_type
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
256
|
+
if @api_client.config.debugging
|
|
257
|
+
@api_client.config.logger.debug "API called: ProjectsApi#get_projects_tags_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
258
|
+
end
|
|
259
|
+
return data, status_code, headers
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Add a New Goal
|
|
263
|
+
# @param project_id [Integer] Project ID
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
266
|
+
# @return [ApiV1GoalSerializer]
|
|
267
|
+
def post_projects_project_id_goals(project_id, opts = {})
|
|
268
|
+
data, _status_code, _headers = post_projects_project_id_goals_with_http_info(project_id, opts)
|
|
269
|
+
data
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Add a New Goal
|
|
273
|
+
# @param project_id [Integer] Project ID
|
|
274
|
+
# @param [Hash] opts the optional parameters
|
|
275
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
276
|
+
# @return [Array<(ApiV1GoalSerializer, Integer, Hash)>] ApiV1GoalSerializer data, response status code and response headers
|
|
277
|
+
def post_projects_project_id_goals_with_http_info(project_id, opts = {})
|
|
278
|
+
if @api_client.config.debugging
|
|
279
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.post_projects_project_id_goals ...'
|
|
280
|
+
end
|
|
281
|
+
# verify the required parameter 'project_id' is set
|
|
282
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
283
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ProjectsApi.post_projects_project_id_goals"
|
|
284
|
+
end
|
|
285
|
+
# resource path
|
|
286
|
+
local_var_path = '/projects/{project_id}/goals'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
|
|
287
|
+
|
|
288
|
+
# query parameters
|
|
289
|
+
query_params = opts[:query_params] || {}
|
|
290
|
+
|
|
291
|
+
# header parameters
|
|
292
|
+
header_params = opts[:header_params] || {}
|
|
293
|
+
# HTTP header 'Accept' (if needed)
|
|
294
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
|
295
|
+
# HTTP header 'Content-Type'
|
|
296
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
297
|
+
if !content_type.nil?
|
|
298
|
+
header_params['Content-Type'] = content_type
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# form parameters
|
|
302
|
+
form_params = opts[:form_params] || {}
|
|
303
|
+
|
|
304
|
+
# http body (model)
|
|
305
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
|
306
|
+
|
|
307
|
+
# return_type
|
|
308
|
+
return_type = opts[:debug_return_type] || 'ApiV1GoalSerializer'
|
|
309
|
+
|
|
310
|
+
# auth_names
|
|
311
|
+
auth_names = opts[:debug_auth_names] || []
|
|
312
|
+
|
|
313
|
+
new_options = opts.merge(
|
|
314
|
+
:operation => :"ProjectsApi.post_projects_project_id_goals",
|
|
315
|
+
:header_params => header_params,
|
|
316
|
+
:query_params => query_params,
|
|
317
|
+
:form_params => form_params,
|
|
318
|
+
:body => post_body,
|
|
319
|
+
:auth_names => auth_names,
|
|
320
|
+
:return_type => return_type
|
|
321
|
+
)
|
|
322
|
+
|
|
323
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
324
|
+
if @api_client.config.debugging
|
|
325
|
+
@api_client.config.logger.debug "API called: ProjectsApi#post_projects_project_id_goals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
326
|
+
end
|
|
327
|
+
return data, status_code, headers
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# Update a Project
|
|
331
|
+
# @param id [Integer] Project ID
|
|
332
|
+
# @param [Hash] opts the optional parameters
|
|
333
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
334
|
+
# @return [ApiV1ProjectSerializer]
|
|
335
|
+
def put_projects_id(id, opts = {})
|
|
336
|
+
data, _status_code, _headers = put_projects_id_with_http_info(id, opts)
|
|
337
|
+
data
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Update a Project
|
|
341
|
+
# @param id [Integer] Project ID
|
|
342
|
+
# @param [Hash] opts the optional parameters
|
|
343
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
344
|
+
# @return [Array<(ApiV1ProjectSerializer, Integer, Hash)>] ApiV1ProjectSerializer data, response status code and response headers
|
|
345
|
+
def put_projects_id_with_http_info(id, opts = {})
|
|
346
|
+
if @api_client.config.debugging
|
|
347
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.put_projects_id ...'
|
|
348
|
+
end
|
|
349
|
+
# verify the required parameter 'id' is set
|
|
350
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
351
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.put_projects_id"
|
|
352
|
+
end
|
|
353
|
+
# resource path
|
|
354
|
+
local_var_path = '/projects/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
355
|
+
|
|
356
|
+
# query parameters
|
|
357
|
+
query_params = opts[:query_params] || {}
|
|
358
|
+
|
|
359
|
+
# header parameters
|
|
360
|
+
header_params = opts[:header_params] || {}
|
|
361
|
+
# HTTP header 'Accept' (if needed)
|
|
362
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
|
363
|
+
# HTTP header 'Content-Type'
|
|
364
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
365
|
+
if !content_type.nil?
|
|
366
|
+
header_params['Content-Type'] = content_type
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# form parameters
|
|
370
|
+
form_params = opts[:form_params] || {}
|
|
371
|
+
|
|
372
|
+
# http body (model)
|
|
373
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
|
374
|
+
|
|
375
|
+
# return_type
|
|
376
|
+
return_type = opts[:debug_return_type] || 'ApiV1ProjectSerializer'
|
|
377
|
+
|
|
378
|
+
# auth_names
|
|
379
|
+
auth_names = opts[:debug_auth_names] || []
|
|
380
|
+
|
|
381
|
+
new_options = opts.merge(
|
|
382
|
+
:operation => :"ProjectsApi.put_projects_id",
|
|
383
|
+
:header_params => header_params,
|
|
384
|
+
:query_params => query_params,
|
|
385
|
+
:form_params => form_params,
|
|
386
|
+
:body => post_body,
|
|
387
|
+
:auth_names => auth_names,
|
|
388
|
+
:return_type => return_type
|
|
389
|
+
)
|
|
390
|
+
|
|
391
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
392
|
+
if @api_client.config.debugging
|
|
393
|
+
@api_client.config.logger.debug "API called: ProjectsApi#put_projects_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
394
|
+
end
|
|
395
|
+
return data, status_code, headers
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
# Update a Tag
|
|
399
|
+
# @param id [Integer] Tag ID
|
|
400
|
+
# @param [Hash] opts the optional parameters
|
|
401
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
402
|
+
# @return [ApiV1ProjectsTagSerializer]
|
|
403
|
+
def put_projects_tags_id(id, opts = {})
|
|
404
|
+
data, _status_code, _headers = put_projects_tags_id_with_http_info(id, opts)
|
|
405
|
+
data
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
# Update a Tag
|
|
409
|
+
# @param id [Integer] Tag ID
|
|
410
|
+
# @param [Hash] opts the optional parameters
|
|
411
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
|
412
|
+
# @return [Array<(ApiV1ProjectsTagSerializer, Integer, Hash)>] ApiV1ProjectsTagSerializer data, response status code and response headers
|
|
413
|
+
def put_projects_tags_id_with_http_info(id, opts = {})
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug 'Calling API: ProjectsApi.put_projects_tags_id ...'
|
|
416
|
+
end
|
|
417
|
+
# verify the required parameter 'id' is set
|
|
418
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
419
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProjectsApi.put_projects_tags_id"
|
|
420
|
+
end
|
|
421
|
+
# resource path
|
|
422
|
+
local_var_path = '/projects/tags/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
423
|
+
|
|
424
|
+
# query parameters
|
|
425
|
+
query_params = opts[:query_params] || {}
|
|
426
|
+
|
|
427
|
+
# header parameters
|
|
428
|
+
header_params = opts[:header_params] || {}
|
|
429
|
+
# HTTP header 'Accept' (if needed)
|
|
430
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.api+json'])
|
|
431
|
+
# HTTP header 'Content-Type'
|
|
432
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data'])
|
|
433
|
+
if !content_type.nil?
|
|
434
|
+
header_params['Content-Type'] = content_type
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# form parameters
|
|
438
|
+
form_params = opts[:form_params] || {}
|
|
439
|
+
|
|
440
|
+
# http body (model)
|
|
441
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
|
442
|
+
|
|
443
|
+
# return_type
|
|
444
|
+
return_type = opts[:debug_return_type] || 'ApiV1ProjectsTagSerializer'
|
|
445
|
+
|
|
446
|
+
# auth_names
|
|
447
|
+
auth_names = opts[:debug_auth_names] || []
|
|
448
|
+
|
|
449
|
+
new_options = opts.merge(
|
|
450
|
+
:operation => :"ProjectsApi.put_projects_tags_id",
|
|
451
|
+
:header_params => header_params,
|
|
452
|
+
:query_params => query_params,
|
|
453
|
+
:form_params => form_params,
|
|
454
|
+
:body => post_body,
|
|
455
|
+
:auth_names => auth_names,
|
|
456
|
+
:return_type => return_type
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
460
|
+
if @api_client.config.debugging
|
|
461
|
+
@api_client.config.logger.debug "API called: ProjectsApi#put_projects_tags_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
462
|
+
end
|
|
463
|
+
return data, status_code, headers
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
end
|