xbim_identity 2.0.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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +174 -0
- data/Rakefile +10 -0
- data/lib/xbim_identity/api/authentication_api.rb +118 -0
- data/lib/xbim_identity/api/client_applications_api.rb +315 -0
- data/lib/xbim_identity/api/invitations_api.rb +489 -0
- data/lib/xbim_identity/api/me_api.rb +148 -0
- data/lib/xbim_identity/api/members_api.rb +406 -0
- data/lib/xbim_identity/api/registration_api.rb +85 -0
- data/lib/xbim_identity/api/tenants_api.rb +709 -0
- data/lib/xbim_identity/api/users_api.rb +308 -0
- data/lib/xbim_identity/api_client.rb +390 -0
- data/lib/xbim_identity/api_error.rb +57 -0
- data/lib/xbim_identity/configuration.rb +278 -0
- data/lib/xbim_identity/models/application_type.rb +39 -0
- data/lib/xbim_identity/models/client_app.rb +351 -0
- data/lib/xbim_identity/models/client_app_endpoint.rb +239 -0
- data/lib/xbim_identity/models/draft_invitation.rb +379 -0
- data/lib/xbim_identity/models/invitation.rb +379 -0
- data/lib/xbim_identity/models/invitation_create.rb +253 -0
- data/lib/xbim_identity/models/invitation_edit.rb +239 -0
- data/lib/xbim_identity/models/invite_status.rb +41 -0
- data/lib/xbim_identity/models/master.rb +331 -0
- data/lib/xbim_identity/models/master_base.rb +243 -0
- data/lib/xbim_identity/models/master_subscription.rb +323 -0
- data/lib/xbim_identity/models/o_data_boolean.rb +230 -0
- data/lib/xbim_identity/models/o_data_client_app_endpoint_list.rb +252 -0
- data/lib/xbim_identity/models/o_data_client_app_list.rb +252 -0
- data/lib/xbim_identity/models/o_data_invitation_list.rb +252 -0
- data/lib/xbim_identity/models/o_data_string.rb +230 -0
- data/lib/xbim_identity/models/o_data_tenant_list.rb +252 -0
- data/lib/xbim_identity/models/o_data_tenant_user_list.rb +252 -0
- data/lib/xbim_identity/models/o_data_user_list.rb +252 -0
- data/lib/xbim_identity/models/problem_details.rb +259 -0
- data/lib/xbim_identity/models/region.rb +280 -0
- data/lib/xbim_identity/models/region_info.rb +256 -0
- data/lib/xbim_identity/models/subscription.rb +309 -0
- data/lib/xbim_identity/models/team_member_create.rb +229 -0
- data/lib/xbim_identity/models/team_member_edit.rb +219 -0
- data/lib/xbim_identity/models/tenancy_type.rb +38 -0
- data/lib/xbim_identity/models/tenant.rb +383 -0
- data/lib/xbim_identity/models/tenant_create.rb +267 -0
- data/lib/xbim_identity/models/tenant_edit.rb +229 -0
- data/lib/xbim_identity/models/tenant_role.rb +39 -0
- data/lib/xbim_identity/models/tenant_user.rb +299 -0
- data/lib/xbim_identity/models/token_err_response.rb +219 -0
- data/lib/xbim_identity/models/token_response.rb +259 -0
- data/lib/xbim_identity/models/user.rb +261 -0
- data/lib/xbim_identity/models/user_create.rb +247 -0
- data/lib/xbim_identity/models/user_tenant.rb +279 -0
- data/lib/xbim_identity/version.rb +15 -0
- data/lib/xbim_identity.rb +83 -0
- data/spec/api/authentication_api_spec.rb +52 -0
- data/spec/api/client_applications_api_spec.rb +101 -0
- data/spec/api/invitations_api_spec.rb +130 -0
- data/spec/api/me_api_spec.rb +61 -0
- data/spec/api/members_api_spec.rb +113 -0
- data/spec/api/registration_api_spec.rb +48 -0
- data/spec/api/tenants_api_spec.rb +176 -0
- data/spec/api/users_api_spec.rb +95 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/application_type_spec.rb +28 -0
- data/spec/models/client_app_endpoint_spec.rb +46 -0
- data/spec/models/client_app_spec.rb +112 -0
- data/spec/models/draft_invitation_spec.rb +130 -0
- data/spec/models/invitation_create_spec.rb +52 -0
- data/spec/models/invitation_edit_spec.rb +46 -0
- data/spec/models/invitation_spec.rb +130 -0
- data/spec/models/invite_status_spec.rb +28 -0
- data/spec/models/master_base_spec.rb +46 -0
- data/spec/models/master_spec.rb +94 -0
- data/spec/models/master_subscription_spec.rb +94 -0
- data/spec/models/o_data_boolean_spec.rb +40 -0
- data/spec/models/o_data_client_app_endpoint_list_spec.rb +52 -0
- data/spec/models/o_data_client_app_list_spec.rb +52 -0
- data/spec/models/o_data_invitation_list_spec.rb +52 -0
- data/spec/models/o_data_string_spec.rb +40 -0
- data/spec/models/o_data_tenant_list_spec.rb +52 -0
- data/spec/models/o_data_tenant_user_list_spec.rb +52 -0
- data/spec/models/o_data_user_list_spec.rb +52 -0
- data/spec/models/problem_details_spec.rb +58 -0
- data/spec/models/region_info_spec.rb +46 -0
- data/spec/models/region_spec.rb +58 -0
- data/spec/models/subscription_spec.rb +88 -0
- data/spec/models/team_member_create_spec.rb +40 -0
- data/spec/models/team_member_edit_spec.rb +34 -0
- data/spec/models/tenancy_type_spec.rb +28 -0
- data/spec/models/tenant_create_spec.rb +58 -0
- data/spec/models/tenant_edit_spec.rb +40 -0
- data/spec/models/tenant_role_spec.rb +28 -0
- data/spec/models/tenant_spec.rb +130 -0
- data/spec/models/tenant_user_spec.rb +82 -0
- data/spec/models/token_err_response_spec.rb +34 -0
- data/spec/models/token_response_spec.rb +58 -0
- data/spec/models/user_create_spec.rb +46 -0
- data/spec/models/user_spec.rb +58 -0
- data/spec/models/user_tenant_spec.rb +70 -0
- data/spec/spec_helper.rb +111 -0
- data/xbim_identity-1.0.0.gem +0 -0
- data/xbim_identity.gemspec +38 -0
- metadata +184 -0
@@ -0,0 +1,279 @@
|
|
1
|
+
=begin
|
2
|
+
#Xbim Flex Identity API 2.0
|
3
|
+
|
4
|
+
#Communication centralised around construction data
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: info@xbim.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module XbimIdentity
|
17
|
+
class UserTenant
|
18
|
+
attr_accessor :tenant_id
|
19
|
+
|
20
|
+
attr_accessor :tenant_name
|
21
|
+
|
22
|
+
attr_accessor :role
|
23
|
+
|
24
|
+
attr_accessor :last_modified_by
|
25
|
+
|
26
|
+
attr_accessor :created_by
|
27
|
+
|
28
|
+
attr_accessor :date_created
|
29
|
+
|
30
|
+
attr_accessor :date_modified
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'tenant_id' => :'tenantId',
|
36
|
+
:'tenant_name' => :'tenantName',
|
37
|
+
:'role' => :'role',
|
38
|
+
:'last_modified_by' => :'lastModifiedBy',
|
39
|
+
:'created_by' => :'createdBy',
|
40
|
+
:'date_created' => :'dateCreated',
|
41
|
+
:'date_modified' => :'dateModified'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns all the JSON keys this model knows about
|
46
|
+
def self.acceptable_attributes
|
47
|
+
attribute_map.values
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'tenant_id' => :'String',
|
54
|
+
:'tenant_name' => :'String',
|
55
|
+
:'role' => :'TenantRole',
|
56
|
+
:'last_modified_by' => :'User',
|
57
|
+
:'created_by' => :'User',
|
58
|
+
:'date_created' => :'Time',
|
59
|
+
:'date_modified' => :'Time'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# List of attributes with nullable: true
|
64
|
+
def self.openapi_nullable
|
65
|
+
Set.new([
|
66
|
+
:'tenant_id',
|
67
|
+
:'tenant_name',
|
68
|
+
:'role',
|
69
|
+
:'last_modified_by',
|
70
|
+
:'created_by',
|
71
|
+
:'date_created',
|
72
|
+
:'date_modified'
|
73
|
+
])
|
74
|
+
end
|
75
|
+
|
76
|
+
# Initializes the object
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
78
|
+
def initialize(attributes = {})
|
79
|
+
if (!attributes.is_a?(Hash))
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `XbimIdentity::UserTenant` initialize method"
|
81
|
+
end
|
82
|
+
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `XbimIdentity::UserTenant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
|
+
end
|
88
|
+
h[k.to_sym] = v
|
89
|
+
}
|
90
|
+
|
91
|
+
if attributes.key?(:'tenant_id')
|
92
|
+
self.tenant_id = attributes[:'tenant_id']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'tenant_name')
|
96
|
+
self.tenant_name = attributes[:'tenant_name']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'role')
|
100
|
+
self.role = attributes[:'role']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'last_modified_by')
|
104
|
+
self.last_modified_by = attributes[:'last_modified_by']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'created_by')
|
108
|
+
self.created_by = attributes[:'created_by']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'date_created')
|
112
|
+
self.date_created = attributes[:'date_created']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'date_modified')
|
116
|
+
self.date_modified = attributes[:'date_modified']
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
121
|
+
# @return Array for valid properties with the reasons
|
122
|
+
def list_invalid_properties
|
123
|
+
invalid_properties = Array.new
|
124
|
+
invalid_properties
|
125
|
+
end
|
126
|
+
|
127
|
+
# Check to see if the all the properties in the model are valid
|
128
|
+
# @return true if the model is valid
|
129
|
+
def valid?
|
130
|
+
true
|
131
|
+
end
|
132
|
+
|
133
|
+
# Checks equality by comparing each attribute.
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def ==(o)
|
136
|
+
return true if self.equal?(o)
|
137
|
+
self.class == o.class &&
|
138
|
+
tenant_id == o.tenant_id &&
|
139
|
+
tenant_name == o.tenant_name &&
|
140
|
+
role == o.role &&
|
141
|
+
last_modified_by == o.last_modified_by &&
|
142
|
+
created_by == o.created_by &&
|
143
|
+
date_created == o.date_created &&
|
144
|
+
date_modified == o.date_modified
|
145
|
+
end
|
146
|
+
|
147
|
+
# @see the `==` method
|
148
|
+
# @param [Object] Object to be compared
|
149
|
+
def eql?(o)
|
150
|
+
self == o
|
151
|
+
end
|
152
|
+
|
153
|
+
# Calculates hash code according to all attributes.
|
154
|
+
# @return [Integer] Hash code
|
155
|
+
def hash
|
156
|
+
[tenant_id, tenant_name, role, last_modified_by, created_by, date_created, date_modified].hash
|
157
|
+
end
|
158
|
+
|
159
|
+
# Builds the object from hash
|
160
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
161
|
+
# @return [Object] Returns the model itself
|
162
|
+
def self.build_from_hash(attributes)
|
163
|
+
new.build_from_hash(attributes)
|
164
|
+
end
|
165
|
+
|
166
|
+
# Builds the object from hash
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
168
|
+
# @return [Object] Returns the model itself
|
169
|
+
def build_from_hash(attributes)
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
171
|
+
self.class.openapi_types.each_pair do |key, type|
|
172
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
173
|
+
self.send("#{key}=", nil)
|
174
|
+
elsif type =~ /\AArray<(.*)>/i
|
175
|
+
# check to ensure the input is an array given that the attribute
|
176
|
+
# is documented as an array but the input is not
|
177
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
178
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
179
|
+
end
|
180
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
181
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
self
|
186
|
+
end
|
187
|
+
|
188
|
+
# Deserializes the data based on type
|
189
|
+
# @param string type Data type
|
190
|
+
# @param string value Value to be deserialized
|
191
|
+
# @return [Object] Deserialized data
|
192
|
+
def _deserialize(type, value)
|
193
|
+
case type.to_sym
|
194
|
+
when :Time
|
195
|
+
Time.parse(value)
|
196
|
+
when :Date
|
197
|
+
Date.parse(value)
|
198
|
+
when :String
|
199
|
+
value.to_s
|
200
|
+
when :Integer
|
201
|
+
value.to_i
|
202
|
+
when :Float
|
203
|
+
value.to_f
|
204
|
+
when :Boolean
|
205
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
206
|
+
true
|
207
|
+
else
|
208
|
+
false
|
209
|
+
end
|
210
|
+
when :Object
|
211
|
+
# generic object (usually a Hash), return directly
|
212
|
+
value
|
213
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
214
|
+
inner_type = Regexp.last_match[:inner_type]
|
215
|
+
value.map { |v| _deserialize(inner_type, v) }
|
216
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
217
|
+
k_type = Regexp.last_match[:k_type]
|
218
|
+
v_type = Regexp.last_match[:v_type]
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each do |k, v|
|
221
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
else # model
|
225
|
+
# models (e.g. Pet) or oneOf
|
226
|
+
klass = XbimIdentity.const_get(type)
|
227
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# Returns the string representation of the object
|
232
|
+
# @return [String] String presentation of the object
|
233
|
+
def to_s
|
234
|
+
to_hash.to_s
|
235
|
+
end
|
236
|
+
|
237
|
+
# to_body is an alias to to_hash (backward compatibility)
|
238
|
+
# @return [Hash] Returns the object in the form of hash
|
239
|
+
def to_body
|
240
|
+
to_hash
|
241
|
+
end
|
242
|
+
|
243
|
+
# Returns the object in the form of hash
|
244
|
+
# @return [Hash] Returns the object in the form of hash
|
245
|
+
def to_hash
|
246
|
+
hash = {}
|
247
|
+
self.class.attribute_map.each_pair do |attr, param|
|
248
|
+
value = self.send(attr)
|
249
|
+
if value.nil?
|
250
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
251
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
252
|
+
end
|
253
|
+
|
254
|
+
hash[param] = _to_hash(value)
|
255
|
+
end
|
256
|
+
hash
|
257
|
+
end
|
258
|
+
|
259
|
+
# Outputs non-array value in the form of hash
|
260
|
+
# For object, use to_hash. Otherwise, just return the value
|
261
|
+
# @param [Object] value Any valid value
|
262
|
+
# @return [Hash] Returns the value in the form of hash
|
263
|
+
def _to_hash(value)
|
264
|
+
if value.is_a?(Array)
|
265
|
+
value.compact.map { |v| _to_hash(v) }
|
266
|
+
elsif value.is_a?(Hash)
|
267
|
+
{}.tap do |hash|
|
268
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
269
|
+
end
|
270
|
+
elsif value.respond_to? :to_hash
|
271
|
+
value.to_hash
|
272
|
+
else
|
273
|
+
value
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
end
|
278
|
+
|
279
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
#Xbim Flex Identity API 2.0
|
3
|
+
|
4
|
+
#Communication centralised around construction data
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: info@xbim.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module XbimIdentity
|
14
|
+
VERSION = '2.0.0'
|
15
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#Xbim Flex Identity API 2.0
|
3
|
+
|
4
|
+
#Communication centralised around construction data
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: info@xbim.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'xbim_identity/api_client'
|
15
|
+
require 'xbim_identity/api_error'
|
16
|
+
require 'xbim_identity/version'
|
17
|
+
require 'xbim_identity/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'xbim_identity/models/application_type'
|
21
|
+
require 'xbim_identity/models/client_app'
|
22
|
+
require 'xbim_identity/models/client_app_endpoint'
|
23
|
+
require 'xbim_identity/models/draft_invitation'
|
24
|
+
require 'xbim_identity/models/invitation'
|
25
|
+
require 'xbim_identity/models/invitation_create'
|
26
|
+
require 'xbim_identity/models/invitation_edit'
|
27
|
+
require 'xbim_identity/models/invite_status'
|
28
|
+
require 'xbim_identity/models/master'
|
29
|
+
require 'xbim_identity/models/master_base'
|
30
|
+
require 'xbim_identity/models/master_subscription'
|
31
|
+
require 'xbim_identity/models/o_data_boolean'
|
32
|
+
require 'xbim_identity/models/o_data_client_app_endpoint_list'
|
33
|
+
require 'xbim_identity/models/o_data_client_app_list'
|
34
|
+
require 'xbim_identity/models/o_data_invitation_list'
|
35
|
+
require 'xbim_identity/models/o_data_string'
|
36
|
+
require 'xbim_identity/models/o_data_tenant_list'
|
37
|
+
require 'xbim_identity/models/o_data_tenant_user_list'
|
38
|
+
require 'xbim_identity/models/o_data_user_list'
|
39
|
+
require 'xbim_identity/models/problem_details'
|
40
|
+
require 'xbim_identity/models/region'
|
41
|
+
require 'xbim_identity/models/region_info'
|
42
|
+
require 'xbim_identity/models/subscription'
|
43
|
+
require 'xbim_identity/models/team_member_create'
|
44
|
+
require 'xbim_identity/models/team_member_edit'
|
45
|
+
require 'xbim_identity/models/tenancy_type'
|
46
|
+
require 'xbim_identity/models/tenant'
|
47
|
+
require 'xbim_identity/models/tenant_create'
|
48
|
+
require 'xbim_identity/models/tenant_edit'
|
49
|
+
require 'xbim_identity/models/tenant_role'
|
50
|
+
require 'xbim_identity/models/tenant_user'
|
51
|
+
require 'xbim_identity/models/token_err_response'
|
52
|
+
require 'xbim_identity/models/token_response'
|
53
|
+
require 'xbim_identity/models/user'
|
54
|
+
require 'xbim_identity/models/user_create'
|
55
|
+
require 'xbim_identity/models/user_tenant'
|
56
|
+
|
57
|
+
# APIs
|
58
|
+
require 'xbim_identity/api/authentication_api'
|
59
|
+
require 'xbim_identity/api/client_applications_api'
|
60
|
+
require 'xbim_identity/api/invitations_api'
|
61
|
+
require 'xbim_identity/api/me_api'
|
62
|
+
require 'xbim_identity/api/members_api'
|
63
|
+
require 'xbim_identity/api/registration_api'
|
64
|
+
require 'xbim_identity/api/tenants_api'
|
65
|
+
require 'xbim_identity/api/users_api'
|
66
|
+
|
67
|
+
module XbimIdentity
|
68
|
+
class << self
|
69
|
+
# Customize default settings for the SDK using block.
|
70
|
+
# XbimIdentity.configure do |config|
|
71
|
+
# config.username = "xxx"
|
72
|
+
# config.password = "xxx"
|
73
|
+
# end
|
74
|
+
# If no block given, return the default Configuration object.
|
75
|
+
def configure
|
76
|
+
if block_given?
|
77
|
+
yield(Configuration.default)
|
78
|
+
else
|
79
|
+
Configuration.default
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
=begin
|
2
|
+
#Xbim Flex Identity API 2.0
|
3
|
+
|
4
|
+
#Communication centralised around construction data
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: info@xbim.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for XbimIdentity::AuthenticationApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AuthenticationApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = XbimIdentity::AuthenticationApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AuthenticationApi' do
|
30
|
+
it 'should create an instance of AuthenticationApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(XbimIdentity::AuthenticationApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for get_authorization_token
|
36
|
+
# Post Authentication get authorization token
|
37
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets an access token using a non-interactive flow. Only available for clients with secrets and owning Master. When no user ID is supplied, master owner user is logged in. Client can only sign in a user created in the same Master..<br/>Return Type: <b>TokenResponse</b><br/><br/>
|
38
|
+
# @param client_id Client ID
|
39
|
+
# @param client_secret Client secret (password)
|
40
|
+
# @param grant_type Grant type must be 'master'
|
41
|
+
# @param scope Required API scopes
|
42
|
+
# @param [Hash] opts the optional parameters
|
43
|
+
# @option opts [String] :user_id Xbim Flex user ID
|
44
|
+
# @option opts [String] :idp_id External identity provider user ID
|
45
|
+
# @return [TokenResponse]
|
46
|
+
describe 'get_authorization_token test' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
=begin
|
2
|
+
#Xbim Flex Identity API 2.0
|
3
|
+
|
4
|
+
#Communication centralised around construction data
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: info@xbim.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for XbimIdentity::ClientApplicationsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ClientApplicationsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = XbimIdentity::ClientApplicationsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ClientApplicationsApi' do
|
30
|
+
it 'should create an instance of ClientApplicationsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(XbimIdentity::ClientApplicationsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for id20_client_applications_client_id_endpoints_get
|
36
|
+
# Gets Endpointsfor the given client
|
37
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets Endpointsfor the given client.<br/>Return Type: <b>ODataClientAppEndpointList</b><br/>For more information about OData responses <a href='https://www.odata.org/getting-started/understand-odata-in-6-steps/'>link</a>.<br/><br/>
|
38
|
+
# @param client_id The client Id
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
41
|
+
# @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 100. The allowed functions are: allfunctions.
|
42
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
43
|
+
# @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
|
44
|
+
# @option opts [Integer] :top Limits the number of items returned from a collection.
|
45
|
+
# @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
|
46
|
+
# @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
|
47
|
+
# @return [ODataClientAppEndpointList]
|
48
|
+
describe 'id20_client_applications_client_id_endpoints_get test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for id20_client_applications_client_id_endpoints_post
|
55
|
+
# Adds an Endpoints to the given client
|
56
|
+
# <span style='font-size: 17px;'>Summary:</span>Adds an Endpoints to the given client.<br/>Return Type: <b></b><br/><br/>
|
57
|
+
# @param client_id The client Id
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
60
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
61
|
+
# @option opts [ClientAppEndpoint] :client_app_endpoint
|
62
|
+
# @return [nil]
|
63
|
+
describe 'id20_client_applications_client_id_endpoints_post test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for id20_client_applications_client_id_get
|
70
|
+
# Gets the specified Client Application by its client id
|
71
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets the specified Client Application by its client id.<br/>Return Type: <b>ClientApp</b><br/><br/>
|
72
|
+
# @param client_id The client Id.
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
75
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
76
|
+
# @return [ClientApp]
|
77
|
+
describe 'id20_client_applications_client_id_get test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# unit tests for id20_client_applications_get
|
84
|
+
# Operations to query a set of data
|
85
|
+
# <span style='font-size: 17px;'>Summary:</span>Operations to query a set of data.<br/>Queries support: $filter, $orderby, $select, $expand(including nested filters, selects and expands), $top, $skip.<br/>Return Type: <b>ODataClientAppList</b><br/>For more information about OData responses <a href='https://www.odata.org/getting-started/understand-odata-in-6-steps/'>link</a>.<br/><br/>
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
88
|
+
# @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
|
89
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
90
|
+
# @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
|
91
|
+
# @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
|
92
|
+
# @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
|
93
|
+
# @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
|
94
|
+
# @return [ODataClientAppList]
|
95
|
+
describe 'id20_client_applications_get test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
=begin
|
2
|
+
#Xbim Flex Identity API 2.0
|
3
|
+
|
4
|
+
#Communication centralised around construction data
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: info@xbim.net
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for XbimIdentity::InvitationsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'InvitationsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = XbimIdentity::InvitationsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of InvitationsApi' do
|
30
|
+
it 'should create an instance of InvitationsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(XbimIdentity::InvitationsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for id20_tenants_tenant_id_invitations_get
|
36
|
+
# Operations to query the invitations
|
37
|
+
# <span style='font-size: 17px;'>Summary:</span>Operations to query the invitations.<br/>Queries support: $filter, $orderby, $select, $expand(including nested filters, selects and expands), $top, $skip.<br/>Return Type: <b>ODataInvitationList</b><br/>For more information about OData responses <a href='https://www.odata.org/getting-started/understand-odata-in-6-steps/'>link</a>.<br/><br/>
|
38
|
+
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 5.
|
41
|
+
# @option opts [String] :filter Restricts the set of items returned. The maximum number of expressions is 1000. The allowed functions are: allfunctions.
|
42
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
43
|
+
# @option opts [String] :orderby Specifies the order in which items are returned. The maximum number of expressions is 5.
|
44
|
+
# @option opts [Integer] :top Limits the number of items returned from a collection. The maximum value is 1000.
|
45
|
+
# @option opts [Integer] :skip Excludes the specified number of items of the queried collection from the result.
|
46
|
+
# @option opts [Boolean] :count Indicates whether the total count of items within a collection are returned in the result.
|
47
|
+
# @return [ODataInvitationList]
|
48
|
+
describe 'id20_tenants_tenant_id_invitations_get test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for id20_tenants_tenant_id_invitations_invitation_id_despatch_post
|
55
|
+
# Sends or Resends an Invitation Email.
|
56
|
+
# <span style='font-size: 17px;'>Summary:</span>Sends or Resends an Invitation Email..<br/>Return Type: <b>Invitation</b><br/><br/>
|
57
|
+
# @param invitation_id The Invitation Guid
|
58
|
+
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
59
|
+
# @param [Hash] opts the optional parameters
|
60
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
61
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
62
|
+
# @return [Invitation]
|
63
|
+
describe 'id20_tenants_tenant_id_invitations_invitation_id_despatch_post test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for id20_tenants_tenant_id_invitations_invitation_id_get
|
70
|
+
# Gets the specified Invitation by its key
|
71
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets the specified Invitation by its key.<br/>Return Type: <b>Invitation</b><br/><br/>
|
72
|
+
# @param invitation_id
|
73
|
+
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
76
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
77
|
+
# @return [Invitation]
|
78
|
+
describe 'id20_tenants_tenant_id_invitations_invitation_id_get test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# unit tests for id20_tenants_tenant_id_invitations_invitation_id_patch
|
85
|
+
# Amend an existing invitation and send an email
|
86
|
+
# <span style='font-size: 17px;'>Summary:</span>Amend an existing invitation and send an email.<br/>Open invitation can be amended by authorised users.<br/>Return Type: <b>Invitation</b><br/><br/>
|
87
|
+
# @param invitation_id The Invitation ID to patch
|
88
|
+
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
91
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
92
|
+
# @option opts [InvitationEdit] :invitation_edit The partial Invitation record
|
93
|
+
# @return [Invitation]
|
94
|
+
describe 'id20_tenants_tenant_id_invitations_invitation_id_patch test' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# unit tests for id20_tenants_tenant_id_invitations_invitation_id_revoke_post
|
101
|
+
# Revokes an Invitation.
|
102
|
+
# <span style='font-size: 17px;'>Summary:</span>Revokes an Invitation..<br/>Return Type: <b>Invitation</b><br/><br/>
|
103
|
+
# @param invitation_id The Invitation Guid
|
104
|
+
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
107
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
108
|
+
# @return [Invitation]
|
109
|
+
describe 'id20_tenants_tenant_id_invitations_invitation_id_revoke_post test' do
|
110
|
+
it 'should work' do
|
111
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# unit tests for id20_tenants_tenant_id_invitations_post
|
116
|
+
# Creates a new Invitation. The Invitation will only be sent if 'DraftOnly' is false
|
117
|
+
# <span style='font-size: 17px;'>Summary:</span>Creates a new Invitation. The Invitation will only be sent if 'DraftOnly' is false.<br/>The ability to create Tenants is limited by tenant role.<br/>Return Type: <b>DraftInvitation</b><br/><br/>
|
118
|
+
# @param tenant_id The unique Tenant ID (UUID or Identifier string)
|
119
|
+
# @param [Hash] opts the optional parameters
|
120
|
+
# @option opts [String] :expand Indicates the related entities to be represented inline. The maximum depth is 2.
|
121
|
+
# @option opts [String] :select Limits the properties returned in the result.
|
122
|
+
# @option opts [InvitationCreate] :invitation_create
|
123
|
+
# @return [DraftInvitation]
|
124
|
+
describe 'id20_tenants_tenant_id_invitations_post test' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
end
|