blueprint_ruby_client 0.4.1 → 0.5.0

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 (84) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +65 -0
  3. data/LICENSE +201 -0
  4. data/README.md +25 -11
  5. data/docs/AssetTypeConfigsApi.md +63 -0
  6. data/docs/AssetTypeTemplatesApi.md +179 -0
  7. data/docs/AssetsApi.md +19 -19
  8. data/docs/HierarchyApi.md +35 -35
  9. data/docs/Integration.md +10 -0
  10. data/docs/IntegrationBody.md +9 -0
  11. data/docs/IntegrationTransform.md +11 -0
  12. data/docs/IntegrationTransformExample.md +9 -0
  13. data/docs/IntegrationsApi.md +329 -0
  14. data/docs/LTIApi.md +98 -0
  15. data/docs/Lti1IntegrationAttributes.md +11 -0
  16. data/docs/NodeAttributes.md +2 -0
  17. data/docs/SecurityApi.md +48 -0
  18. data/docs/Template.md +10 -0
  19. data/docs/TemplateAttributes.md +9 -0
  20. data/docs/TemplateBody.md +9 -0
  21. data/docs/{AssetAttributes.md → TemplateVariables.md} +3 -2
  22. data/generate.sh +1 -2
  23. data/git_push.sh +16 -1
  24. data/lib/blueprint_ruby_client/api/asset_type_configs_api.rb +84 -0
  25. data/lib/blueprint_ruby_client/api/asset_type_templates_api.rb +214 -0
  26. data/lib/blueprint_ruby_client/api/assets_api.rb +23 -191
  27. data/lib/blueprint_ruby_client/api/hierarchy_api.rb +49 -409
  28. data/lib/blueprint_ruby_client/api/integrations_api.rb +415 -0
  29. data/lib/blueprint_ruby_client/api/lti_api.rb +156 -0
  30. data/lib/blueprint_ruby_client/api/security_api.rb +75 -0
  31. data/lib/blueprint_ruby_client/api_client.rb +0 -2
  32. data/lib/blueprint_ruby_client/models/asset.rb +2 -59
  33. data/lib/blueprint_ruby_client/models/asset_body.rb +2 -42
  34. data/lib/blueprint_ruby_client/models/asset_relationship.rb +2 -57
  35. data/lib/blueprint_ruby_client/models/asset_result_set.rb +2 -57
  36. data/lib/blueprint_ruby_client/models/error.rb +2 -59
  37. data/lib/blueprint_ruby_client/models/errors.rb +2 -25
  38. data/lib/blueprint_ruby_client/models/integration.rb +225 -0
  39. data/lib/blueprint_ruby_client/models/{mixed_resource_result_set.rb → integration_body.rb} +27 -12
  40. data/lib/blueprint_ruby_client/models/integration_transform.rb +221 -0
  41. data/lib/blueprint_ruby_client/models/integration_transform_example.rb +197 -0
  42. data/lib/blueprint_ruby_client/models/links.rb +2 -57
  43. data/lib/blueprint_ruby_client/models/lti1_integration_attributes.rb +225 -0
  44. data/lib/blueprint_ruby_client/models/meta.rb +2 -57
  45. data/lib/blueprint_ruby_client/models/namespace.rb +2 -43
  46. data/lib/blueprint_ruby_client/models/namespace_relationship.rb +2 -25
  47. data/lib/blueprint_ruby_client/models/node.rb +2 -75
  48. data/lib/blueprint_ruby_client/models/node_attributes.rb +26 -109
  49. data/lib/blueprint_ruby_client/models/node_body.rb +2 -42
  50. data/lib/blueprint_ruby_client/models/node_relationship.rb +2 -57
  51. data/lib/blueprint_ruby_client/models/node_relationships.rb +2 -73
  52. data/lib/blueprint_ruby_client/models/node_result_set.rb +2 -57
  53. data/lib/blueprint_ruby_client/models/resource.rb +2 -59
  54. data/lib/blueprint_ruby_client/models/template.rb +215 -0
  55. data/lib/blueprint_ruby_client/models/template_attributes.rb +217 -0
  56. data/lib/blueprint_ruby_client/models/{asset_attributes.rb → template_body.rb} +23 -33
  57. data/lib/blueprint_ruby_client/models/template_variables.rb +237 -0
  58. data/lib/blueprint_ruby_client/version.rb +1 -1
  59. data/lib/blueprint_ruby_client.rb +14 -0
  60. data/spec/api/asset_type_configs_api_spec.rb +52 -0
  61. data/spec/api/asset_type_templates_api_spec.rb +88 -0
  62. data/spec/api/assets_api_spec.rb +9 -9
  63. data/spec/api/hierarchy_api_spec.rb +17 -17
  64. data/spec/api/integrations_api_spec.rb +141 -0
  65. data/spec/api/lti_api_spec.rb +69 -0
  66. data/spec/api/security_api_spec.rb +50 -0
  67. data/spec/api_client_spec.rb +226 -0
  68. data/spec/configuration_spec.rb +42 -0
  69. data/spec/models/integration_body_spec.rb +56 -0
  70. data/spec/models/integration_spec.rb +66 -0
  71. data/spec/models/integration_transform_example_spec.rb +56 -0
  72. data/spec/models/integration_transform_spec.rb +76 -0
  73. data/spec/models/lti1_integration_attributes_spec.rb +76 -0
  74. data/spec/models/node_attributes_spec.rb +20 -0
  75. data/spec/models/template_attributes_spec.rb +56 -0
  76. data/spec/models/{asset_attributes_spec.rb → template_body_spec.rb} +17 -7
  77. data/spec/models/template_spec.rb +66 -0
  78. data/spec/models/template_variables_spec.rb +56 -0
  79. data/spec/spec_helper.rb +111 -0
  80. data/swagger-codegen-cli.jar +0 -0
  81. data/templates/model.mustache +5 -5
  82. metadata +67 -12
  83. data/docs/MixedResourceResultSet.md +0 -7
  84. data/spec/models/mixed_resource_result_set_spec.rb +0 -36
@@ -24,26 +24,18 @@ module BlueprintClient
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
-
28
27
  :'id' => :'id',
29
-
30
28
  :'type' => :'type',
31
-
32
29
  :'attributes' => :'attributes'
33
-
34
30
  }
35
31
  end
36
32
 
37
33
  # Attribute type mapping.
38
34
  def self.swagger_types
39
35
  {
40
-
41
36
  :'id' => :'String',
42
-
43
37
  :'type' => :'String',
44
-
45
38
  :'attributes' => :'Object'
46
-
47
39
  }
48
40
  end
49
41
 
@@ -55,91 +47,42 @@ module BlueprintClient
55
47
  # convert string to symbol for hash key
56
48
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
57
49
 
58
-
59
50
  if attributes.has_key?(:'id')
60
-
61
-
62
51
  self.id = attributes[:'id']
63
-
64
-
65
52
  end
66
53
 
67
-
68
54
  if attributes.has_key?(:'type')
69
-
70
-
71
55
  self.type = attributes[:'type']
72
-
73
-
74
56
  end
75
57
 
76
-
77
58
  if attributes.has_key?(:'attributes')
78
-
79
-
80
59
  self.attributes = attributes[:'attributes']
81
-
82
-
83
60
  end
84
61
 
85
-
86
62
  end
87
63
 
88
64
  # Show invalid properties with the reasons. Usually used together with valid?
89
65
  # @return Array for valid properies with the reasons
90
66
  def list_invalid_properties
91
67
  invalid_properties = Array.new
92
-
93
-
94
68
  return invalid_properties
95
69
  end
96
70
 
97
71
  # Check to see if the all the properties in the model are valid
98
72
  # @return true if the model is valid
99
73
  def valid?
100
-
101
-
102
74
  if @id.nil?
103
75
  return false
104
76
  end
105
77
 
106
-
107
-
108
-
109
-
110
-
111
78
  if @type.nil?
112
79
  return false
113
80
  end
114
81
 
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
82
  end
124
83
 
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
84
  # Checks equality by comparing each attribute.
142
- # @param [Object] Object to be compared
85
+ # @param [Object] Object to be compared
143
86
  def ==(o)
144
87
  return true if self.equal?(o)
145
88
  self.class == o.class &&
@@ -149,7 +92,7 @@ module BlueprintClient
149
92
  end
150
93
 
151
94
  # @see the `==` method
152
- # @param [Object] Object to be compared
95
+ # @param [Object] Object to be compared
153
96
  def eql?(o)
154
97
  self == o
155
98
  end
@@ -21,22 +21,16 @@ module BlueprintClient
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
-
25
24
  :'meta' => :'meta',
26
-
27
25
  :'data' => :'data'
28
-
29
26
  }
30
27
  end
31
28
 
32
29
  # Attribute type mapping.
33
30
  def self.swagger_types
34
31
  {
35
-
36
32
  :'meta' => :'Meta',
37
-
38
33
  :'data' => :'Asset'
39
-
40
34
  }
41
35
  end
42
36
 
@@ -48,68 +42,34 @@ module BlueprintClient
48
42
  # convert string to symbol for hash key
49
43
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
50
44
 
51
-
52
45
  if attributes.has_key?(:'meta')
53
-
54
-
55
46
  self.meta = attributes[:'meta']
56
-
57
-
58
47
  end
59
48
 
60
-
61
49
  if attributes.has_key?(:'data')
62
-
63
-
64
50
  self.data = attributes[:'data']
65
-
66
-
67
51
  end
68
52
 
69
-
70
53
  end
71
54
 
72
55
  # Show invalid properties with the reasons. Usually used together with valid?
73
56
  # @return Array for valid properies with the reasons
74
57
  def list_invalid_properties
75
58
  invalid_properties = Array.new
76
-
77
-
78
59
  return invalid_properties
79
60
  end
80
61
 
81
62
  # Check to see if the all the properties in the model are valid
82
63
  # @return true if the model is valid
83
64
  def valid?
84
-
85
-
86
-
87
-
88
-
89
-
90
65
  if @data.nil?
91
66
  return false
92
67
  end
93
68
 
94
-
95
-
96
-
97
-
98
69
  end
99
70
 
100
-
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
71
  # Checks equality by comparing each attribute.
112
- # @param [Object] Object to be compared
72
+ # @param [Object] Object to be compared
113
73
  def ==(o)
114
74
  return true if self.equal?(o)
115
75
  self.class == o.class &&
@@ -118,7 +78,7 @@ module BlueprintClient
118
78
  end
119
79
 
120
80
  # @see the `==` method
121
- # @param [Object] Object to be compared
81
+ # @param [Object] Object to be compared
122
82
  def eql?(o)
123
83
  self == o
124
84
  end
@@ -23,26 +23,18 @@ module BlueprintClient
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
-
27
26
  :'meta' => :'meta',
28
-
29
27
  :'links' => :'links',
30
-
31
28
  :'data' => :'data'
32
-
33
29
  }
34
30
  end
35
31
 
36
32
  # Attribute type mapping.
37
33
  def self.swagger_types
38
34
  {
39
-
40
35
  :'meta' => :'Meta',
41
-
42
36
  :'links' => :'Links',
43
-
44
37
  :'data' => :'Array<Asset>'
45
-
46
38
  }
47
39
  end
48
40
 
@@ -54,83 +46,36 @@ module BlueprintClient
54
46
  # convert string to symbol for hash key
55
47
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
48
 
57
-
58
49
  if attributes.has_key?(:'meta')
59
-
60
-
61
50
  self.meta = attributes[:'meta']
62
-
63
-
64
51
  end
65
52
 
66
-
67
53
  if attributes.has_key?(:'links')
68
-
69
-
70
54
  self.links = attributes[:'links']
71
-
72
-
73
55
  end
74
56
 
75
-
76
57
  if attributes.has_key?(:'data')
77
-
78
58
  if (value = attributes[:'data']).is_a?(Array)
79
59
  self.data = value
80
60
  end
81
-
82
-
83
-
84
61
  end
85
62
 
86
-
87
63
  end
88
64
 
89
65
  # Show invalid properties with the reasons. Usually used together with valid?
90
66
  # @return Array for valid properies with the reasons
91
67
  def list_invalid_properties
92
68
  invalid_properties = Array.new
93
-
94
-
95
69
  return invalid_properties
96
70
  end
97
71
 
98
72
  # Check to see if the all the properties in the model are valid
99
73
  # @return true if the model is valid
100
74
  def valid?
101
-
102
-
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
75
  end
115
76
 
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
77
  # Checks equality by comparing each attribute.
133
- # @param [Object] Object to be compared
78
+ # @param [Object] Object to be compared
134
79
  def ==(o)
135
80
  return true if self.equal?(o)
136
81
  self.class == o.class &&
@@ -140,7 +85,7 @@ module BlueprintClient
140
85
  end
141
86
 
142
87
  # @see the `==` method
143
- # @param [Object] Object to be compared
88
+ # @param [Object] Object to be compared
144
89
  def eql?(o)
145
90
  self == o
146
91
  end
@@ -23,26 +23,18 @@ module BlueprintClient
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
-
27
26
  :'meta' => :'meta',
28
-
29
27
  :'data' => :'data',
30
-
31
28
  :'included' => :'included'
32
-
33
29
  }
34
30
  end
35
31
 
36
32
  # Attribute type mapping.
37
33
  def self.swagger_types
38
34
  {
39
-
40
35
  :'meta' => :'Meta',
41
-
42
36
  :'data' => :'Array<Asset>',
43
-
44
37
  :'included' => :'Array<Resource>'
45
-
46
38
  }
47
39
  end
48
40
 
@@ -54,85 +46,38 @@ module BlueprintClient
54
46
  # convert string to symbol for hash key
55
47
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
48
 
57
-
58
49
  if attributes.has_key?(:'meta')
59
-
60
-
61
50
  self.meta = attributes[:'meta']
62
-
63
-
64
51
  end
65
52
 
66
-
67
53
  if attributes.has_key?(:'data')
68
-
69
54
  if (value = attributes[:'data']).is_a?(Array)
70
55
  self.data = value
71
56
  end
72
-
73
-
74
-
75
57
  end
76
58
 
77
-
78
59
  if attributes.has_key?(:'included')
79
-
80
60
  if (value = attributes[:'included']).is_a?(Array)
81
61
  self.included = value
82
62
  end
83
-
84
-
85
-
86
63
  end
87
64
 
88
-
89
65
  end
90
66
 
91
67
  # Show invalid properties with the reasons. Usually used together with valid?
92
68
  # @return Array for valid properies with the reasons
93
69
  def list_invalid_properties
94
70
  invalid_properties = Array.new
95
-
96
-
97
71
  return invalid_properties
98
72
  end
99
73
 
100
74
  # Check to see if the all the properties in the model are valid
101
75
  # @return true if the model is valid
102
76
  def valid?
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
77
  end
117
78
 
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
79
  # Checks equality by comparing each attribute.
135
- # @param [Object] Object to be compared
80
+ # @param [Object] Object to be compared
136
81
  def ==(o)
137
82
  return true if self.equal?(o)
138
83
  self.class == o.class &&
@@ -142,7 +87,7 @@ module BlueprintClient
142
87
  end
143
88
 
144
89
  # @see the `==` method
145
- # @param [Object] Object to be compared
90
+ # @param [Object] Object to be compared
146
91
  def eql?(o)
147
92
  self == o
148
93
  end
@@ -23,26 +23,18 @@ module BlueprintClient
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
-
27
26
  :'status' => :'status',
28
-
29
27
  :'title' => :'title',
30
-
31
28
  :'detail' => :'detail'
32
-
33
29
  }
34
30
  end
35
31
 
36
32
  # Attribute type mapping.
37
33
  def self.swagger_types
38
34
  {
39
-
40
35
  :'status' => :'Float',
41
-
42
36
  :'title' => :'String',
43
-
44
37
  :'detail' => :'String'
45
-
46
38
  }
47
39
  end
48
40
 
@@ -54,91 +46,42 @@ module BlueprintClient
54
46
  # convert string to symbol for hash key
55
47
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
56
48
 
57
-
58
49
  if attributes.has_key?(:'status')
59
-
60
-
61
50
  self.status = attributes[:'status']
62
-
63
-
64
51
  end
65
52
 
66
-
67
53
  if attributes.has_key?(:'title')
68
-
69
-
70
54
  self.title = attributes[:'title']
71
-
72
-
73
55
  end
74
56
 
75
-
76
57
  if attributes.has_key?(:'detail')
77
-
78
-
79
58
  self.detail = attributes[:'detail']
80
-
81
-
82
59
  end
83
60
 
84
-
85
61
  end
86
62
 
87
63
  # Show invalid properties with the reasons. Usually used together with valid?
88
64
  # @return Array for valid properies with the reasons
89
65
  def list_invalid_properties
90
66
  invalid_properties = Array.new
91
-
92
-
93
67
  return invalid_properties
94
68
  end
95
69
 
96
70
  # Check to see if the all the properties in the model are valid
97
71
  # @return true if the model is valid
98
72
  def valid?
99
-
100
-
101
73
  if @status.nil?
102
74
  return false
103
75
  end
104
76
 
105
-
106
-
107
-
108
-
109
-
110
77
  if @title.nil?
111
78
  return false
112
79
  end
113
80
 
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
81
  end
123
82
 
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
83
  # Checks equality by comparing each attribute.
141
- # @param [Object] Object to be compared
84
+ # @param [Object] Object to be compared
142
85
  def ==(o)
143
86
  return true if self.equal?(o)
144
87
  self.class == o.class &&
@@ -148,7 +91,7 @@ module BlueprintClient
148
91
  end
149
92
 
150
93
  # @see the `==` method
151
- # @param [Object] Object to be compared
94
+ # @param [Object] Object to be compared
152
95
  def eql?(o)
153
96
  self == o
154
97
  end
@@ -19,18 +19,14 @@ module BlueprintClient
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
-
23
22
  :'errors' => :'errors'
24
-
25
23
  }
26
24
  end
27
25
 
28
26
  # Attribute type mapping.
29
27
  def self.swagger_types
30
28
  {
31
-
32
29
  :'errors' => :'Array<Error>'
33
-
34
30
  }
35
31
  end
36
32
 
@@ -42,47 +38,28 @@ module BlueprintClient
42
38
  # convert string to symbol for hash key
43
39
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
44
40
 
45
-
46
41
  if attributes.has_key?(:'errors')
47
-
48
42
  if (value = attributes[:'errors']).is_a?(Array)
49
43
  self.errors = value
50
44
  end
51
-
52
-
53
-
54
45
  end
55
46
 
56
-
57
47
  end
58
48
 
59
49
  # Show invalid properties with the reasons. Usually used together with valid?
60
50
  # @return Array for valid properies with the reasons
61
51
  def list_invalid_properties
62
52
  invalid_properties = Array.new
63
-
64
-
65
53
  return invalid_properties
66
54
  end
67
55
 
68
56
  # Check to see if the all the properties in the model are valid
69
57
  # @return true if the model is valid
70
58
  def valid?
71
-
72
-
73
-
74
-
75
-
76
59
  end
77
60
 
78
-
79
-
80
-
81
-
82
-
83
-
84
61
  # Checks equality by comparing each attribute.
85
- # @param [Object] Object to be compared
62
+ # @param [Object] Object to be compared
86
63
  def ==(o)
87
64
  return true if self.equal?(o)
88
65
  self.class == o.class &&
@@ -90,7 +67,7 @@ module BlueprintClient
90
67
  end
91
68
 
92
69
  # @see the `==` method
93
- # @param [Object] Object to be compared
70
+ # @param [Object] Object to be compared
94
71
  def eql?(o)
95
72
  self == o
96
73
  end