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
@@ -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
  :'meta' => :'meta',
26
+
25
27
  :'data' => :'data'
28
+
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
35
+
32
36
  :'meta' => :'Meta',
37
+
33
38
  :'data' => :'Asset'
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?(:'meta')
53
+
54
+
46
55
  self.meta = attributes[:'meta']
56
+
57
+
47
58
  end
48
59
 
60
+
49
61
  if attributes.has_key?(:'data')
62
+
63
+
50
64
  self.data = attributes[:'data']
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 @data.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)
@@ -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
  :'links' => :'links',
30
+
28
31
  :'data' => :'data'
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
  :'links' => :'Links',
43
+
37
44
  :'data' => :'Array<Asset>'
45
+
38
46
  }
39
47
  end
40
48
 
@@ -46,34 +54,81 @@ 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?(:'links')
68
+
69
+
54
70
  self.links = attributes[:'links']
71
+
72
+
55
73
  end
56
74
 
75
+
57
76
  if attributes.has_key?(:'data')
77
+
58
78
  if (value = attributes[:'data']).is_a?(Array)
59
79
  self.data = value
60
80
  end
81
+
82
+
83
+
61
84
  end
62
85
 
86
+
63
87
  end
64
88
 
65
89
  # Show invalid properties with the reasons. Usually used together with valid?
66
90
  # @return Array for valid properies with the reasons
67
91
  def list_invalid_properties
68
92
  invalid_properties = Array.new
93
+
94
+
69
95
  return invalid_properties
70
96
  end
71
97
 
72
98
  # Check to see if the all the properties in the model are valid
73
99
  # @return true if the model is valid
74
100
  def valid?
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
75
114
  end
76
115
 
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
77
132
  # Checks equality by comparing each attribute.
78
133
  # @param [Object] Object to be compared
79
134
  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<Asset>',
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)
@@ -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
  :'status' => :'status',
28
+
27
29
  :'title' => :'title',
30
+
28
31
  :'detail' => :'detail'
32
+
29
33
  }
30
34
  end
31
35
 
32
36
  # Attribute type mapping.
33
37
  def self.swagger_types
34
38
  {
39
+
35
40
  :'status' => :'Float',
41
+
36
42
  :'title' => :'String',
43
+
37
44
  :'detail' => :'String'
45
+
38
46
  }
39
47
  end
40
48
 
@@ -46,40 +54,89 @@ 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?(:'status')
59
+
60
+
50
61
  self.status = attributes[:'status']
62
+
63
+
51
64
  end
52
65
 
66
+
53
67
  if attributes.has_key?(:'title')
68
+
69
+
54
70
  self.title = attributes[:'title']
71
+
72
+
55
73
  end
56
74
 
75
+
57
76
  if attributes.has_key?(:'detail')
77
+
78
+
58
79
  self.detail = attributes[:'detail']
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
+
73
101
  if @status.nil?
74
102
  return false
75
103
  end
76
104
 
105
+
106
+
107
+
108
+
109
+
77
110
  if @title.nil?
78
111
  return false
79
112
  end
80
113
 
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
81
122
  end
82
123
 
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
83
140
  # Checks equality by comparing each attribute.
84
141
  # @param [Object] Object to be compared
85
142
  def ==(o)
@@ -19,14 +19,18 @@ module BlueprintClient
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
+
22
23
  :'errors' => :'errors'
24
+
23
25
  }
24
26
  end
25
27
 
26
28
  # Attribute type mapping.
27
29
  def self.swagger_types
28
30
  {
31
+
29
32
  :'errors' => :'Array<Error>'
33
+
30
34
  }
31
35
  end
32
36
 
@@ -38,26 +42,45 @@ module BlueprintClient
38
42
  # convert string to symbol for hash key
39
43
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
40
44
 
45
+
41
46
  if attributes.has_key?(:'errors')
47
+
42
48
  if (value = attributes[:'errors']).is_a?(Array)
43
49
  self.errors = value
44
50
  end
51
+
52
+
53
+
45
54
  end
46
55
 
56
+
47
57
  end
48
58
 
49
59
  # Show invalid properties with the reasons. Usually used together with valid?
50
60
  # @return Array for valid properies with the reasons
51
61
  def list_invalid_properties
52
62
  invalid_properties = Array.new
63
+
64
+
53
65
  return invalid_properties
54
66
  end
55
67
 
56
68
  # Check to see if the all the properties in the model are valid
57
69
  # @return true if the model is valid
58
70
  def valid?
71
+
72
+
73
+
74
+
75
+
59
76
  end
60
77
 
78
+
79
+
80
+
81
+
82
+
83
+
61
84
  # Checks equality by comparing each attribute.
62
85
  # @param [Object] Object to be compared
63
86
  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' => :'Lti1IntegrationAttributes'
46
+
39
47
  }
40
48
  end
41
49
 
@@ -47,44 +55,85 @@ 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
+
82
117
  allowed_values = ["lti1"]
83
118
  if @type && !allowed_values.include?(@type)
84
119
  return false
85
120
  end
121
+
122
+
123
+
124
+
125
+
126
+
127
+
86
128
  end
87
129
 
130
+
131
+
132
+
133
+
134
+
135
+
136
+
88
137
  # Custom attribute writer method checking allowed values (enum).
89
138
  # @param [Object] type Object to be assigned
90
139
  def type=(type)
@@ -95,6 +144,14 @@ module BlueprintClient
95
144
  @type = type
96
145
  end
97
146
 
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
98
155
  # Checks equality by comparing each attribute.
99
156
  # @param [Object] Object to be compared
100
157
  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
  :'meta' => :'meta',
26
+
25
27
  :'data' => :'data'
28
+
26
29
  }
27
30
  end
28
31
 
29
32
  # Attribute type mapping.
30
33
  def self.swagger_types
31
34
  {
35
+
32
36
  :'meta' => :'Meta',
37
+
33
38
  :'data' => :'Integration'
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?(:'meta')
53
+
54
+
46
55
  self.meta = attributes[:'meta']
56
+
57
+
47
58
  end
48
59
 
60
+
49
61
  if attributes.has_key?(:'data')
62
+
63
+
50
64
  self.data = attributes[:'data']
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 @data.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)