blueprint_ruby_client 0.5.0 → 0.5.1
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/config.json +1 -1
- data/docs/AssetsApi.md +3 -3
- data/docs/HierarchyApi.md +19 -19
- data/docs/IntegrationTransformExample.md +1 -1
- data/docs/IntegrationsApi.md +4 -4
- data/docs/LTIApi.md +4 -4
- data/generate.sh +1 -1
- data/lib/blueprint_ruby_client/api/asset_type_configs_api.rb +15 -1
- data/lib/blueprint_ruby_client/api/asset_type_templates_api.rb +55 -1
- data/lib/blueprint_ruby_client/api/assets_api.rb +175 -7
- data/lib/blueprint_ruby_client/api/hierarchy_api.rb +393 -33
- data/lib/blueprint_ruby_client/api/integrations_api.rb +203 -3
- data/lib/blueprint_ruby_client/api/lti_api.rb +121 -1
- data/lib/blueprint_ruby_client/api/security_api.rb +3 -1
- data/lib/blueprint_ruby_client/api_client.rb +2 -0
- data/lib/blueprint_ruby_client/models/asset.rb +57 -0
- data/lib/blueprint_ruby_client/models/asset_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/asset_relationship.rb +55 -0
- data/lib/blueprint_ruby_client/models/asset_result_set.rb +55 -0
- data/lib/blueprint_ruby_client/models/error.rb +57 -0
- data/lib/blueprint_ruby_client/models/errors.rb +23 -0
- data/lib/blueprint_ruby_client/models/integration.rb +57 -0
- data/lib/blueprint_ruby_client/models/integration_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/integration_transform.rb +73 -0
- data/lib/blueprint_ruby_client/models/integration_transform_example.rb +53 -13
- data/lib/blueprint_ruby_client/models/links.rb +55 -0
- data/lib/blueprint_ruby_client/models/lti1_integration_attributes.rb +74 -0
- data/lib/blueprint_ruby_client/models/meta.rb +55 -0
- data/lib/blueprint_ruby_client/models/namespace.rb +41 -0
- data/lib/blueprint_ruby_client/models/namespace_relationship.rb +23 -0
- data/lib/blueprint_ruby_client/models/node.rb +73 -0
- data/lib/blueprint_ruby_client/models/node_attributes.rb +135 -0
- data/lib/blueprint_ruby_client/models/node_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/node_relationship.rb +55 -0
- data/lib/blueprint_ruby_client/models/node_relationships.rb +71 -0
- data/lib/blueprint_ruby_client/models/node_result_set.rb +55 -0
- data/lib/blueprint_ruby_client/models/resource.rb +57 -0
- data/lib/blueprint_ruby_client/models/template.rb +58 -0
- data/lib/blueprint_ruby_client/models/template_attributes.rb +40 -18
- data/lib/blueprint_ruby_client/models/template_body.rb +40 -0
- data/lib/blueprint_ruby_client/models/template_variables.rb +43 -38
- data/lib/blueprint_ruby_client/version.rb +1 -1
- data/spec/api/assets_api_spec.rb +1 -1
- data/spec/api/hierarchy_api_spec.rb +9 -9
- data/spec/models/integration_transform_example_spec.rb +2 -2
- metadata +4 -11
- data/git_push.sh +0 -67
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/spec_helper.rb +0 -111
- data/swagger-codegen-cli.jar +0 -0
@@ -41,10 +41,23 @@ module BlueprintClient
|
|
41
41
|
if @api_client.config.debugging
|
42
42
|
@api_client.config.logger.debug "Calling API: IntegrationsApi.add_integration ..."
|
43
43
|
end
|
44
|
+
|
45
|
+
|
44
46
|
# verify the required parameter 'namespace' is set
|
45
47
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling IntegrationsApi.add_integration" if namespace.nil?
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
46
54
|
# verify the required parameter 'body' is set
|
47
55
|
fail ArgumentError, "Missing the required parameter 'body' when calling IntegrationsApi.add_integration" if body.nil?
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
48
61
|
# resource path
|
49
62
|
local_var_path = "/{namespace}/integrations".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s)
|
50
63
|
|
@@ -67,6 +80,7 @@ module BlueprintClient
|
|
67
80
|
|
68
81
|
# http body (model)
|
69
82
|
post_body = @api_client.object_to_http_body(body)
|
83
|
+
|
70
84
|
auth_names = ['oauth2']
|
71
85
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
72
86
|
:header_params => header_params,
|
@@ -104,12 +118,31 @@ module BlueprintClient
|
|
104
118
|
if @api_client.config.debugging
|
105
119
|
@api_client.config.logger.debug "Calling API: IntegrationsApi.delete_integration ..."
|
106
120
|
end
|
121
|
+
|
122
|
+
|
107
123
|
# verify the required parameter 'namespace' is set
|
108
124
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling IntegrationsApi.delete_integration" if namespace.nil?
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
109
131
|
# verify the required parameter 'integration_id' is set
|
110
132
|
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.delete_integration" if integration_id.nil?
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
111
139
|
# verify the required parameter 'integration_type' is set
|
112
140
|
fail ArgumentError, "Missing the required parameter 'integration_type' when calling IntegrationsApi.delete_integration" if integration_type.nil?
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
113
146
|
# resource path
|
114
147
|
local_var_path = "/{namespace}/integrations/{integrationType}/{integrationId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s).sub('{' + 'integrationType' + '}', integration_type.to_s)
|
115
148
|
|
@@ -132,7 +165,8 @@ module BlueprintClient
|
|
132
165
|
|
133
166
|
# http body (model)
|
134
167
|
post_body = nil
|
135
|
-
|
168
|
+
|
169
|
+
auth_names = ['oauth2']
|
136
170
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
137
171
|
:header_params => header_params,
|
138
172
|
:query_params => query_params,
|
@@ -168,12 +202,31 @@ module BlueprintClient
|
|
168
202
|
if @api_client.config.debugging
|
169
203
|
@api_client.config.logger.debug "Calling API: IntegrationsApi.get_integration ..."
|
170
204
|
end
|
205
|
+
|
206
|
+
|
171
207
|
# verify the required parameter 'namespace' is set
|
172
208
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling IntegrationsApi.get_integration" if namespace.nil?
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
173
215
|
# verify the required parameter 'integration_type' is set
|
174
216
|
fail ArgumentError, "Missing the required parameter 'integration_type' when calling IntegrationsApi.get_integration" if integration_type.nil?
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
175
223
|
# verify the required parameter 'integration_id' is set
|
176
224
|
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.get_integration" if integration_id.nil?
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
177
230
|
# resource path
|
178
231
|
local_var_path = "/{namespace}/integrations/{integrationType}/{integrationId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'integrationType' + '}', integration_type.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s)
|
179
232
|
|
@@ -196,7 +249,8 @@ module BlueprintClient
|
|
196
249
|
|
197
250
|
# http body (model)
|
198
251
|
post_body = nil
|
199
|
-
|
252
|
+
|
253
|
+
auth_names = ['oauth2']
|
200
254
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
201
255
|
:header_params => header_params,
|
202
256
|
:query_params => query_params,
|
@@ -265,34 +319,153 @@ module BlueprintClient
|
|
265
319
|
if @api_client.config.debugging
|
266
320
|
@api_client.config.logger.debug "Calling API: IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post ..."
|
267
321
|
end
|
322
|
+
|
323
|
+
|
268
324
|
# verify the required parameter 'namespace' is set
|
269
325
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if namespace.nil?
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
|
270
332
|
# verify the required parameter 'integration_id' is set
|
271
333
|
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if integration_id.nil?
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
272
340
|
# verify the required parameter 'asset_type' is set
|
273
341
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if asset_type.nil?
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
274
348
|
# verify the required parameter 'asset_id' is set
|
275
349
|
fail ArgumentError, "Missing the required parameter 'asset_id' when calling IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if asset_id.nil?
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
276
356
|
# verify the required parameter 'lti_message_type' is set
|
277
357
|
fail ArgumentError, "Missing the required parameter 'lti_message_type' when calling IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if lti_message_type.nil?
|
358
|
+
|
278
359
|
# verify enum value
|
279
360
|
unless ['basic-lti-launch-request'].include?(lti_message_type)
|
280
361
|
fail ArgumentError, "invalid value for 'lti_message_type', must be one of basic-lti-launch-request"
|
281
362
|
end
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
282
369
|
# verify the required parameter 'lti_version' is set
|
283
370
|
fail ArgumentError, "Missing the required parameter 'lti_version' when calling IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if lti_version.nil?
|
371
|
+
|
284
372
|
# verify enum value
|
285
373
|
unless ['LTI-1p0'].include?(lti_version)
|
286
374
|
fail ArgumentError, "invalid value for 'lti_version', must be one of LTI-1p0"
|
287
375
|
end
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
|
288
382
|
# verify the required parameter 'resource_link_id' is set
|
289
383
|
fail ArgumentError, "Missing the required parameter 'resource_link_id' when calling IntegrationsApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if resource_link_id.nil?
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
290
404
|
if opts[:'oauth_signature_method'] && !['HMAC-SHA1'].include?(opts[:'oauth_signature_method'])
|
291
405
|
fail ArgumentError, 'invalid value for "oauth_signature_method", must be one of HMAC-SHA1'
|
292
406
|
end
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
293
414
|
if opts[:'oauth_signature_method2'] && !['HMAC-SHA1'].include?(opts[:'oauth_signature_method2'])
|
294
415
|
fail ArgumentError, 'invalid value for "oauth_signature_method2", must be one of HMAC-SHA1'
|
295
416
|
end
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
|
296
469
|
# resource path
|
297
470
|
local_var_path = "/{namespace}/integrations/lti1/{integrationId}/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s).sub('{' + 'assetType' + '}', asset_type.to_s).sub('{' + 'assetId' + '}', asset_id.to_s)
|
298
471
|
|
@@ -330,7 +503,8 @@ module BlueprintClient
|
|
330
503
|
|
331
504
|
# http body (model)
|
332
505
|
post_body = nil
|
333
|
-
|
506
|
+
|
507
|
+
auth_names = []
|
334
508
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
335
509
|
:header_params => header_params,
|
336
510
|
:query_params => query_params,
|
@@ -368,14 +542,39 @@ module BlueprintClient
|
|
368
542
|
if @api_client.config.debugging
|
369
543
|
@api_client.config.logger.debug "Calling API: IntegrationsApi.replace_integration ..."
|
370
544
|
end
|
545
|
+
|
546
|
+
|
371
547
|
# verify the required parameter 'namespace' is set
|
372
548
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling IntegrationsApi.replace_integration" if namespace.nil?
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
373
555
|
# verify the required parameter 'integration_id' is set
|
374
556
|
fail ArgumentError, "Missing the required parameter 'integration_id' when calling IntegrationsApi.replace_integration" if integration_id.nil?
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
375
563
|
# verify the required parameter 'integration_type' is set
|
376
564
|
fail ArgumentError, "Missing the required parameter 'integration_type' when calling IntegrationsApi.replace_integration" if integration_type.nil?
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
|
377
571
|
# verify the required parameter 'body' is set
|
378
572
|
fail ArgumentError, "Missing the required parameter 'body' when calling IntegrationsApi.replace_integration" if body.nil?
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
379
578
|
# resource path
|
380
579
|
local_var_path = "/{namespace}/integrations/{integrationType}/{integrationId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s).sub('{' + 'integrationType' + '}', integration_type.to_s)
|
381
580
|
|
@@ -398,6 +597,7 @@ module BlueprintClient
|
|
398
597
|
|
399
598
|
# http body (model)
|
400
599
|
post_body = @api_client.object_to_http_body(body)
|
600
|
+
|
401
601
|
auth_names = ['oauth2']
|
402
602
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
403
603
|
:header_params => header_params,
|
@@ -75,34 +75,153 @@ module BlueprintClient
|
|
75
75
|
if @api_client.config.debugging
|
76
76
|
@api_client.config.logger.debug "Calling API: LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post ..."
|
77
77
|
end
|
78
|
+
|
79
|
+
|
78
80
|
# verify the required parameter 'namespace' is set
|
79
81
|
fail ArgumentError, "Missing the required parameter 'namespace' when calling LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if namespace.nil?
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
80
88
|
# verify the required parameter 'integration_id' is set
|
81
89
|
fail ArgumentError, "Missing the required parameter 'integration_id' when calling LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if integration_id.nil?
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
82
96
|
# verify the required parameter 'asset_type' is set
|
83
97
|
fail ArgumentError, "Missing the required parameter 'asset_type' when calling LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if asset_type.nil?
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
84
104
|
# verify the required parameter 'asset_id' is set
|
85
105
|
fail ArgumentError, "Missing the required parameter 'asset_id' when calling LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if asset_id.nil?
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
86
112
|
# verify the required parameter 'lti_message_type' is set
|
87
113
|
fail ArgumentError, "Missing the required parameter 'lti_message_type' when calling LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if lti_message_type.nil?
|
114
|
+
|
88
115
|
# verify enum value
|
89
116
|
unless ['basic-lti-launch-request'].include?(lti_message_type)
|
90
117
|
fail ArgumentError, "invalid value for 'lti_message_type', must be one of basic-lti-launch-request"
|
91
118
|
end
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
92
125
|
# verify the required parameter 'lti_version' is set
|
93
126
|
fail ArgumentError, "Missing the required parameter 'lti_version' when calling LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if lti_version.nil?
|
127
|
+
|
94
128
|
# verify enum value
|
95
129
|
unless ['LTI-1p0'].include?(lti_version)
|
96
130
|
fail ArgumentError, "invalid value for 'lti_version', must be one of LTI-1p0"
|
97
131
|
end
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
98
138
|
# verify the required parameter 'resource_link_id' is set
|
99
139
|
fail ArgumentError, "Missing the required parameter 'resource_link_id' when calling LTIApi.namespace_integrations_lti1_integration_id_assets_asset_type_asset_id_post" if resource_link_id.nil?
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
100
160
|
if opts[:'oauth_signature_method'] && !['HMAC-SHA1'].include?(opts[:'oauth_signature_method'])
|
101
161
|
fail ArgumentError, 'invalid value for "oauth_signature_method", must be one of HMAC-SHA1'
|
102
162
|
end
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
103
170
|
if opts[:'oauth_signature_method2'] && !['HMAC-SHA1'].include?(opts[:'oauth_signature_method2'])
|
104
171
|
fail ArgumentError, 'invalid value for "oauth_signature_method2", must be one of HMAC-SHA1'
|
105
172
|
end
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
106
225
|
# resource path
|
107
226
|
local_var_path = "/{namespace}/integrations/lti1/{integrationId}/assets/{assetType}/{assetId}".sub('{format}','json').sub('{' + 'namespace' + '}', namespace.to_s).sub('{' + 'integrationId' + '}', integration_id.to_s).sub('{' + 'assetType' + '}', asset_type.to_s).sub('{' + 'assetId' + '}', asset_id.to_s)
|
108
227
|
|
@@ -140,7 +259,8 @@ module BlueprintClient
|
|
140
259
|
|
141
260
|
# http body (model)
|
142
261
|
post_body = nil
|
143
|
-
|
262
|
+
|
263
|
+
auth_names = []
|
144
264
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
145
265
|
:header_params => header_params,
|
146
266
|
:query_params => query_params,
|
@@ -37,6 +37,7 @@ module BlueprintClient
|
|
37
37
|
if @api_client.config.debugging
|
38
38
|
@api_client.config.logger.debug "Calling API: SecurityApi.get_public_certificate ..."
|
39
39
|
end
|
40
|
+
|
40
41
|
# resource path
|
41
42
|
local_var_path = "/keys/public".sub('{format}','json')
|
42
43
|
|
@@ -59,7 +60,8 @@ module BlueprintClient
|
|
59
60
|
|
60
61
|
# http body (model)
|
61
62
|
post_body = nil
|
62
|
-
|
63
|
+
|
64
|
+
auth_names = []
|
63
65
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
64
66
|
:header_params => header_params,
|
65
67
|
:query_params => query_params,
|
@@ -24,18 +24,26 @@ module BlueprintClient
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
27
|
+
|
27
28
|
:'id' => :'id',
|
29
|
+
|
28
30
|
:'type' => :'type',
|
31
|
+
|
29
32
|
:'attributes' => :'attributes'
|
33
|
+
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
33
37
|
# Attribute type mapping.
|
34
38
|
def self.swagger_types
|
35
39
|
{
|
40
|
+
|
36
41
|
:'id' => :'String',
|
42
|
+
|
37
43
|
:'type' => :'String',
|
44
|
+
|
38
45
|
:'attributes' => :'Object'
|
46
|
+
|
39
47
|
}
|
40
48
|
end
|
41
49
|
|
@@ -47,40 +55,89 @@ module BlueprintClient
|
|
47
55
|
# convert string to symbol for hash key
|
48
56
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
49
57
|
|
58
|
+
|
50
59
|
if attributes.has_key?(:'id')
|
60
|
+
|
61
|
+
|
51
62
|
self.id = attributes[:'id']
|
63
|
+
|
64
|
+
|
52
65
|
end
|
53
66
|
|
67
|
+
|
54
68
|
if attributes.has_key?(:'type')
|
69
|
+
|
70
|
+
|
55
71
|
self.type = attributes[:'type']
|
72
|
+
|
73
|
+
|
56
74
|
end
|
57
75
|
|
76
|
+
|
58
77
|
if attributes.has_key?(:'attributes')
|
78
|
+
|
79
|
+
|
59
80
|
self.attributes = attributes[:'attributes']
|
81
|
+
|
82
|
+
|
60
83
|
end
|
61
84
|
|
85
|
+
|
62
86
|
end
|
63
87
|
|
64
88
|
# Show invalid properties with the reasons. Usually used together with valid?
|
65
89
|
# @return Array for valid properies with the reasons
|
66
90
|
def list_invalid_properties
|
67
91
|
invalid_properties = Array.new
|
92
|
+
|
93
|
+
|
68
94
|
return invalid_properties
|
69
95
|
end
|
70
96
|
|
71
97
|
# Check to see if the all the properties in the model are valid
|
72
98
|
# @return true if the model is valid
|
73
99
|
def valid?
|
100
|
+
|
101
|
+
|
74
102
|
if @id.nil?
|
75
103
|
return false
|
76
104
|
end
|
77
105
|
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
78
111
|
if @type.nil?
|
79
112
|
return false
|
80
113
|
end
|
81
114
|
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
82
123
|
end
|
83
124
|
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
84
141
|
# Checks equality by comparing each attribute.
|
85
142
|
# @param [Object] Object to be compared
|
86
143
|
def ==(o)
|