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
  :'children' => :'children',
30
+
29
31
  :'parents' => :'parents',
32
+
30
33
  :'assets' => :'assets',
34
+
31
35
  :'namespace' => :'namespace'
36
+
32
37
  }
33
38
  end
34
39
 
35
40
  # Attribute type mapping.
36
41
  def self.swagger_types
37
42
  {
43
+
38
44
  :'children' => :'NodeRelationship',
45
+
39
46
  :'parents' => :'NodeRelationship',
47
+
40
48
  :'assets' => :'AssetRelationship',
49
+
41
50
  :'namespace' => :'NamespaceRelationship'
51
+
42
52
  }
43
53
  end
44
54
 
@@ -50,36 +60,97 @@ 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?(:'children')
65
+
66
+
54
67
  self.children = attributes[:'children']
68
+
69
+
55
70
  end
56
71
 
72
+
57
73
  if attributes.has_key?(:'parents')
74
+
75
+
58
76
  self.parents = attributes[:'parents']
77
+
78
+
59
79
  end
60
80
 
81
+
61
82
  if attributes.has_key?(:'assets')
83
+
84
+
62
85
  self.assets = attributes[:'assets']
86
+
87
+
63
88
  end
64
89
 
90
+
65
91
  if attributes.has_key?(:'namespace')
92
+
93
+
66
94
  self.namespace = attributes[:'namespace']
95
+
96
+
67
97
  end
68
98
 
99
+
69
100
  end
70
101
 
71
102
  # Show invalid properties with the reasons. Usually used together with valid?
72
103
  # @return Array for valid properies with the reasons
73
104
  def list_invalid_properties
74
105
  invalid_properties = Array.new
106
+
107
+
75
108
  return invalid_properties
76
109
  end
77
110
 
78
111
  # Check to see if the all the properties in the model are valid
79
112
  # @return true if the model is valid
80
113
  def valid?
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
81
131
  end
82
132
 
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
83
154
  # Checks equality by comparing each attribute.
84
155
  # @param [Object] Object to be compared
85
156
  def ==(o)
@@ -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
  :'meta' => :'meta',
28
+
27
29
  :'data' => :'data',
30
+
28
31
  :'included' => :'included'
32
+
29
33
  }
30
34
  end
31
35
 
32
36
  # Attribute type mapping.
33
37
  def self.swagger_types
34
38
  {
39
+
35
40
  :'meta' => :'Meta',
41
+
36
42
  :'data' => :'Array<Node>',
43
+
37
44
  :'included' => :'Array<Resource>'
45
+
38
46
  }
39
47
  end
40
48
 
@@ -46,36 +54,83 @@ 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?(:'meta')
59
+
60
+
50
61
  self.meta = attributes[:'meta']
62
+
63
+
51
64
  end
52
65
 
66
+
53
67
  if attributes.has_key?(:'data')
68
+
54
69
  if (value = attributes[:'data']).is_a?(Array)
55
70
  self.data = value
56
71
  end
72
+
73
+
74
+
57
75
  end
58
76
 
77
+
59
78
  if attributes.has_key?(:'included')
79
+
60
80
  if (value = attributes[:'included']).is_a?(Array)
61
81
  self.included = value
62
82
  end
83
+
84
+
85
+
63
86
  end
64
87
 
88
+
65
89
  end
66
90
 
67
91
  # Show invalid properties with the reasons. Usually used together with valid?
68
92
  # @return Array for valid properies with the reasons
69
93
  def list_invalid_properties
70
94
  invalid_properties = Array.new
95
+
96
+
71
97
  return invalid_properties
72
98
  end
73
99
 
74
100
  # Check to see if the all the properties in the model are valid
75
101
  # @return true if the model is valid
76
102
  def valid?
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
77
116
  end
78
117
 
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
79
134
  # Checks equality by comparing each attribute.
80
135
  # @param [Object] Object to be compared
81
136
  def ==(o)
@@ -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)
@@ -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' => :'TemplateAttributes'
46
+
39
47
  }
40
48
  end
41
49
 
@@ -47,44 +55,94 @@ 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
+
82
120
  if @attributes.nil?
83
121
  return false
84
122
  end
85
123
 
124
+
125
+
126
+
127
+
86
128
  end
87
129
 
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
88
146
  # Checks equality by comparing each attribute.
89
147
  # @param [Object] Object to be compared
90
148
  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
  :'redirect_uri' => :'redirect_uri',
26
+
25
27
  :'template_vars' => :'template_vars'
28
+
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
35
+
32
36
  :'redirect_uri' => :'String',
37
+
33
38
  :'template_vars' => :'Array<TemplateVariables>'
39
+
34
40
  }
35
41
  end
36
42
 
@@ -42,52 +48,68 @@ 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?(:'redirect_uri')
53
+
54
+
46
55
  self.redirect_uri = attributes[:'redirect_uri']
56
+
57
+
47
58
  end
48
59
 
60
+
49
61
  if attributes.has_key?(:'template_vars')
62
+
50
63
  if (value = attributes[:'template_vars']).is_a?(Array)
51
64
  self.template_vars = value
52
65
  end
66
+
67
+
68
+
53
69
  end
54
70
 
71
+
55
72
  end
56
73
 
57
74
  # Show invalid properties with the reasons. Usually used together with valid?
58
75
  # @return Array for valid properies with the reasons
59
76
  def list_invalid_properties
60
77
  invalid_properties = Array.new
78
+
79
+
61
80
  return invalid_properties
62
81
  end
63
82
 
64
83
  # Check to see if the all the properties in the model are valid
65
84
  # @return true if the model is valid
66
85
  def valid?
86
+
87
+
67
88
  if @redirect_uri.nil?
68
89
  return false
69
90
  end
70
91
 
71
- if @redirect_uri !~ Regexp.new(/^.+$/)
72
- return false
73
- end
74
-
75
- end
76
-
77
- # Custom attribute writer method with validation
78
- # @param [Object] redirect_uri Value to be assigned
79
- def redirect_uri=(redirect_uri)
80
- if redirect_uri.nil?
81
- fail ArgumentError, "redirect_uri cannot be nil"
82
- end
83
-
84
- if @redirect_uri !~ Regexp.new(/^.+$/)
85
- fail ArgumentError, "invalid value for 'redirect_uri', must conform to the pattern ^.+$."
86
- end
87
-
88
- @redirect_uri = redirect_uri
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
89
100
  end
90
101
 
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
91
113
  # Checks equality by comparing each attribute.
92
114
  # @param [Object] Object to be compared
93
115
  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
  :'data' => :'data',
26
+
25
27
  :'meta' => :'meta'
28
+
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
35
+
32
36
  :'data' => :'Template',
37
+
33
38
  :'meta' => :'Meta'
39
+
34
40
  }
35
41
  end
36
42
 
@@ -42,32 +48,66 @@ 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?(:'data')
53
+
54
+
46
55
  self.data = attributes[:'data']
56
+
57
+
47
58
  end
48
59
 
60
+
49
61
  if attributes.has_key?(:'meta')
62
+
63
+
50
64
  self.meta = attributes[:'meta']
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 @data.nil?
66
87
  return false
67
88
  end
68
89
 
90
+
91
+
92
+
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)