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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +5 -5
  4. data/config.json +1 -1
  5. data/docs/AssetsApi.md +3 -3
  6. data/docs/HierarchyApi.md +19 -19
  7. data/docs/IntegrationTransformExample.md +1 -1
  8. data/docs/IntegrationsApi.md +4 -4
  9. data/docs/LTIApi.md +4 -4
  10. data/generate.sh +1 -1
  11. data/lib/blueprint_ruby_client/api/asset_type_configs_api.rb +15 -1
  12. data/lib/blueprint_ruby_client/api/asset_type_templates_api.rb +55 -1
  13. data/lib/blueprint_ruby_client/api/assets_api.rb +175 -7
  14. data/lib/blueprint_ruby_client/api/hierarchy_api.rb +393 -33
  15. data/lib/blueprint_ruby_client/api/integrations_api.rb +203 -3
  16. data/lib/blueprint_ruby_client/api/lti_api.rb +121 -1
  17. data/lib/blueprint_ruby_client/api/security_api.rb +3 -1
  18. data/lib/blueprint_ruby_client/api_client.rb +2 -0
  19. data/lib/blueprint_ruby_client/models/asset.rb +57 -0
  20. data/lib/blueprint_ruby_client/models/asset_body.rb +40 -0
  21. data/lib/blueprint_ruby_client/models/asset_relationship.rb +55 -0
  22. data/lib/blueprint_ruby_client/models/asset_result_set.rb +55 -0
  23. data/lib/blueprint_ruby_client/models/error.rb +57 -0
  24. data/lib/blueprint_ruby_client/models/errors.rb +23 -0
  25. data/lib/blueprint_ruby_client/models/integration.rb +57 -0
  26. data/lib/blueprint_ruby_client/models/integration_body.rb +40 -0
  27. data/lib/blueprint_ruby_client/models/integration_transform.rb +73 -0
  28. data/lib/blueprint_ruby_client/models/integration_transform_example.rb +53 -13
  29. data/lib/blueprint_ruby_client/models/links.rb +55 -0
  30. data/lib/blueprint_ruby_client/models/lti1_integration_attributes.rb +74 -0
  31. data/lib/blueprint_ruby_client/models/meta.rb +55 -0
  32. data/lib/blueprint_ruby_client/models/namespace.rb +41 -0
  33. data/lib/blueprint_ruby_client/models/namespace_relationship.rb +23 -0
  34. data/lib/blueprint_ruby_client/models/node.rb +73 -0
  35. data/lib/blueprint_ruby_client/models/node_attributes.rb +135 -0
  36. data/lib/blueprint_ruby_client/models/node_body.rb +40 -0
  37. data/lib/blueprint_ruby_client/models/node_relationship.rb +55 -0
  38. data/lib/blueprint_ruby_client/models/node_relationships.rb +71 -0
  39. data/lib/blueprint_ruby_client/models/node_result_set.rb +55 -0
  40. data/lib/blueprint_ruby_client/models/resource.rb +57 -0
  41. data/lib/blueprint_ruby_client/models/template.rb +58 -0
  42. data/lib/blueprint_ruby_client/models/template_attributes.rb +40 -18
  43. data/lib/blueprint_ruby_client/models/template_body.rb +40 -0
  44. data/lib/blueprint_ruby_client/models/template_variables.rb +43 -38
  45. data/lib/blueprint_ruby_client/version.rb +1 -1
  46. data/spec/api/assets_api_spec.rb +1 -1
  47. data/spec/api/hierarchy_api_spec.rb +9 -9
  48. data/spec/models/integration_transform_example_spec.rb +2 -2
  49. metadata +4 -11
  50. data/git_push.sh +0 -67
  51. data/spec/api_client_spec.rb +0 -226
  52. data/spec/configuration_spec.rb +0 -42
  53. data/spec/spec_helper.rb +0 -111
  54. data/swagger-codegen-cli.jar +0 -0
@@ -25,20 +25,30 @@ module BlueprintClient
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
+
28
29
  :'field' => :'field',
30
+
29
31
  :'regex' => :'regex',
32
+
30
33
  :'refs' => :'refs',
34
+
31
35
  :'example' => :'example'
36
+
32
37
  }
33
38
  end
34
39
 
35
40
  # Attribute type mapping.
36
41
  def self.swagger_types
37
42
  {
43
+
38
44
  :'field' => :'String',
45
+
39
46
  :'regex' => :'String',
47
+
40
48
  :'refs' => :'Array<String>',
49
+
41
50
  :'example' => :'IntegrationTransformExample'
51
+
42
52
  }
43
53
  end
44
54
 
@@ -50,46 +60,109 @@ module BlueprintClient
50
60
  # convert string to symbol for hash key
51
61
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
62
 
63
+
53
64
  if attributes.has_key?(:'field')
65
+
66
+
54
67
  self.field = attributes[:'field']
68
+
69
+
55
70
  end
56
71
 
72
+
57
73
  if attributes.has_key?(:'regex')
74
+
75
+
58
76
  self.regex = attributes[:'regex']
77
+
78
+
59
79
  end
60
80
 
81
+
61
82
  if attributes.has_key?(:'refs')
83
+
62
84
  if (value = attributes[:'refs']).is_a?(Array)
63
85
  self.refs = value
64
86
  end
87
+
88
+
89
+
65
90
  end
66
91
 
92
+
67
93
  if attributes.has_key?(:'example')
94
+
95
+
68
96
  self.example = attributes[:'example']
97
+
98
+
69
99
  end
70
100
 
101
+
71
102
  end
72
103
 
73
104
  # Show invalid properties with the reasons. Usually used together with valid?
74
105
  # @return Array for valid properies with the reasons
75
106
  def list_invalid_properties
76
107
  invalid_properties = Array.new
108
+
109
+
77
110
  return invalid_properties
78
111
  end
79
112
 
80
113
  # Check to see if the all the properties in the model are valid
81
114
  # @return true if the model is valid
82
115
  def valid?
116
+
117
+
83
118
  if @field.nil?
84
119
  return false
85
120
  end
86
121
 
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
87
131
  if @refs.nil?
88
132
  return false
89
133
  end
90
134
 
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
91
143
  end
92
144
 
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
93
166
  # Checks equality by comparing each attribute.
94
167
  # @param [Object] Object to be compared
95
168
  def ==(o)
@@ -14,23 +14,29 @@ require 'date'
14
14
 
15
15
  module BlueprintClient
16
16
  class IntegrationTransformExample
17
- attr_accessor :input
18
-
19
17
  attr_accessor :output
20
18
 
19
+ attr_accessor :input
20
+
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
- :'input' => :'input',
25
- :'output' => :'output'
24
+
25
+ :'output' => :'output',
26
+
27
+ :'input' => :'input'
28
+
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
32
- :'input' => :'Object',
33
- :'output' => :'Object'
35
+
36
+ :'output' => :'Object',
37
+
38
+ :'input' => :'Object'
39
+
34
40
  }
35
41
  end
36
42
 
@@ -42,39 +48,73 @@ module BlueprintClient
42
48
  # convert string to symbol for hash key
43
49
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
44
50
 
45
- if attributes.has_key?(:'input')
46
- self.input = attributes[:'input']
47
- end
48
-
51
+
49
52
  if attributes.has_key?(:'output')
53
+
54
+
50
55
  self.output = attributes[:'output']
56
+
57
+
58
+ end
59
+
60
+
61
+ if attributes.has_key?(:'input')
62
+
63
+
64
+ self.input = attributes[:'input']
65
+
66
+
51
67
  end
52
68
 
69
+
53
70
  end
54
71
 
55
72
  # Show invalid properties with the reasons. Usually used together with valid?
56
73
  # @return Array for valid properies with the reasons
57
74
  def list_invalid_properties
58
75
  invalid_properties = Array.new
76
+
77
+
59
78
  return invalid_properties
60
79
  end
61
80
 
62
81
  # Check to see if the all the properties in the model are valid
63
82
  # @return true if the model is valid
64
83
  def valid?
84
+
85
+
86
+
87
+
88
+
89
+
65
90
  if @input.nil?
66
91
  return false
67
92
  end
68
93
 
94
+
95
+
96
+
97
+
69
98
  end
70
99
 
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
71
111
  # Checks equality by comparing each attribute.
72
112
  # @param [Object] Object to be compared
73
113
  def ==(o)
74
114
  return true if self.equal?(o)
75
115
  self.class == o.class &&
76
- input == o.input &&
77
- output == o.output
116
+ output == o.output &&
117
+ input == o.input
78
118
  end
79
119
 
80
120
  # @see the `==` method
@@ -86,7 +126,7 @@ module BlueprintClient
86
126
  # Calculates hash code according to all attributes.
87
127
  # @return [Fixnum] Hash code
88
128
  def hash
89
- [input, output].hash
129
+ [output, input].hash
90
130
  end
91
131
 
92
132
  # Builds the object from hash
@@ -23,18 +23,26 @@ module BlueprintClient
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
+
26
27
  :'_self' => :'self',
28
+
27
29
  :'_next' => :'next',
30
+
28
31
  :'previous' => :'previous'
32
+
29
33
  }
30
34
  end
31
35
 
32
36
  # Attribute type mapping.
33
37
  def self.swagger_types
34
38
  {
39
+
35
40
  :'_self' => :'String',
41
+
36
42
  :'_next' => :'String',
43
+
37
44
  :'previous' => :'String'
45
+
38
46
  }
39
47
  end
40
48
 
@@ -46,32 +54,79 @@ module BlueprintClient
46
54
  # convert string to symbol for hash key
47
55
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
56
 
57
+
49
58
  if attributes.has_key?(:'self')
59
+
60
+
50
61
  self._self = attributes[:'self']
62
+
63
+
51
64
  end
52
65
 
66
+
53
67
  if attributes.has_key?(:'next')
68
+
69
+
54
70
  self._next = attributes[:'next']
71
+
72
+
55
73
  end
56
74
 
75
+
57
76
  if attributes.has_key?(:'previous')
77
+
78
+
58
79
  self.previous = attributes[:'previous']
80
+
81
+
59
82
  end
60
83
 
84
+
61
85
  end
62
86
 
63
87
  # Show invalid properties with the reasons. Usually used together with valid?
64
88
  # @return Array for valid properies with the reasons
65
89
  def list_invalid_properties
66
90
  invalid_properties = Array.new
91
+
92
+
67
93
  return invalid_properties
68
94
  end
69
95
 
70
96
  # Check to see if the all the properties in the model are valid
71
97
  # @return true if the model is valid
72
98
  def valid?
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
73
112
  end
74
113
 
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
75
130
  # Checks equality by comparing each attribute.
76
131
  # @param [Object] Object to be compared
77
132
  def ==(o)
@@ -25,20 +25,30 @@ module BlueprintClient
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
+
28
29
  :'consumer_key' => :'consumer_key',
30
+
29
31
  :'shared_secret' => :'shared_secret',
32
+
30
33
  :'taught_unit_type' => :'taught_unit_type',
34
+
31
35
  :'transforms' => :'transforms'
36
+
32
37
  }
33
38
  end
34
39
 
35
40
  # Attribute type mapping.
36
41
  def self.swagger_types
37
42
  {
43
+
38
44
  :'consumer_key' => :'String',
45
+
39
46
  :'shared_secret' => :'String',
47
+
40
48
  :'taught_unit_type' => :'String',
49
+
41
50
  :'transforms' => :'Array<IntegrationTransform>'
51
+
42
52
  }
43
53
  end
44
54
 
@@ -50,50 +60,114 @@ module BlueprintClient
50
60
  # convert string to symbol for hash key
51
61
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
62
 
63
+
53
64
  if attributes.has_key?(:'consumer_key')
65
+
66
+
54
67
  self.consumer_key = attributes[:'consumer_key']
68
+
69
+
55
70
  end
56
71
 
72
+
57
73
  if attributes.has_key?(:'shared_secret')
74
+
75
+
58
76
  self.shared_secret = attributes[:'shared_secret']
77
+
78
+
59
79
  end
60
80
 
81
+
61
82
  if attributes.has_key?(:'taught_unit_type')
83
+
84
+
62
85
  self.taught_unit_type = attributes[:'taught_unit_type']
86
+
87
+
63
88
  end
64
89
 
90
+
65
91
  if attributes.has_key?(:'transforms')
92
+
66
93
  if (value = attributes[:'transforms']).is_a?(Array)
67
94
  self.transforms = value
68
95
  end
96
+
97
+
98
+
69
99
  end
70
100
 
101
+
71
102
  end
72
103
 
73
104
  # Show invalid properties with the reasons. Usually used together with valid?
74
105
  # @return Array for valid properies with the reasons
75
106
  def list_invalid_properties
76
107
  invalid_properties = Array.new
108
+
109
+
77
110
  return invalid_properties
78
111
  end
79
112
 
80
113
  # Check to see if the all the properties in the model are valid
81
114
  # @return true if the model is valid
82
115
  def valid?
116
+
117
+
83
118
  if @consumer_key.nil?
84
119
  return false
85
120
  end
86
121
 
122
+
123
+
124
+
125
+
126
+
87
127
  if @shared_secret.nil?
88
128
  return false
89
129
  end
90
130
 
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
91
140
  if @transforms.nil?
92
141
  return false
93
142
  end
94
143
 
144
+
145
+
146
+
147
+
95
148
  end
96
149
 
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
97
171
  # Checks equality by comparing each attribute.
98
172
  # @param [Object] Object to be compared
99
173
  def ==(o)
@@ -26,18 +26,26 @@ module BlueprintClient
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
+
29
30
  :'offset' => :'offset',
31
+
30
32
  :'limit' => :'limit',
33
+
31
34
  :'count' => :'count'
35
+
32
36
  }
33
37
  end
34
38
 
35
39
  # Attribute type mapping.
36
40
  def self.swagger_types
37
41
  {
42
+
38
43
  :'offset' => :'Float',
44
+
39
45
  :'limit' => :'Float',
46
+
40
47
  :'count' => :'Float'
48
+
41
49
  }
42
50
  end
43
51
 
@@ -49,32 +57,79 @@ module BlueprintClient
49
57
  # convert string to symbol for hash key
50
58
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
59
 
60
+
52
61
  if attributes.has_key?(:'offset')
62
+
63
+
53
64
  self.offset = attributes[:'offset']
65
+
66
+
54
67
  end
55
68
 
69
+
56
70
  if attributes.has_key?(:'limit')
71
+
72
+
57
73
  self.limit = attributes[:'limit']
74
+
75
+
58
76
  end
59
77
 
78
+
60
79
  if attributes.has_key?(:'count')
80
+
81
+
61
82
  self.count = attributes[:'count']
83
+
84
+
62
85
  end
63
86
 
87
+
64
88
  end
65
89
 
66
90
  # Show invalid properties with the reasons. Usually used together with valid?
67
91
  # @return Array for valid properies with the reasons
68
92
  def list_invalid_properties
69
93
  invalid_properties = Array.new
94
+
95
+
70
96
  return invalid_properties
71
97
  end
72
98
 
73
99
  # Check to see if the all the properties in the model are valid
74
100
  # @return true if the model is valid
75
101
  def valid?
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
76
115
  end
77
116
 
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
78
133
  # Checks equality by comparing each attribute.
79
134
  # @param [Object] Object to be compared
80
135
  def ==(o)
@@ -21,16 +21,22 @@ module BlueprintClient
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
+
24
25
  :'id' => :'id',
26
+
25
27
  :'type' => :'type'
28
+
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
35
+
32
36
  :'id' => :'String',
37
+
33
38
  :'type' => :'String'
39
+
34
40
  }
35
41
  end
36
42
 
@@ -42,36 +48,71 @@ module BlueprintClient
42
48
  # convert string to symbol for hash key
43
49
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
44
50
 
51
+
45
52
  if attributes.has_key?(:'id')
53
+
54
+
46
55
  self.id = attributes[:'id']
56
+
57
+
47
58
  end
48
59
 
60
+
49
61
  if attributes.has_key?(:'type')
62
+
63
+
50
64
  self.type = attributes[:'type']
65
+
66
+
51
67
  end
52
68
 
69
+
53
70
  end
54
71
 
55
72
  # Show invalid properties with the reasons. Usually used together with valid?
56
73
  # @return Array for valid properies with the reasons
57
74
  def list_invalid_properties
58
75
  invalid_properties = Array.new
76
+
77
+
59
78
  return invalid_properties
60
79
  end
61
80
 
62
81
  # Check to see if the all the properties in the model are valid
63
82
  # @return true if the model is valid
64
83
  def valid?
84
+
85
+
65
86
  if @id.nil?
66
87
  return false
67
88
  end
68
89
 
90
+
91
+
92
+
93
+
94
+
69
95
  if @type.nil?
70
96
  return false
71
97
  end
72
98
 
99
+
100
+
101
+
102
+
73
103
  end
74
104
 
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
75
116
  # Checks equality by comparing each attribute.
76
117
  # @param [Object] Object to be compared
77
118
  def ==(o)