doorflow 1.0.0 → 1.1.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 +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +222 -316
- data/bin/post-generate +3 -1
- data/doorflow.gemspec +1 -1
- data/lib/doorflow/client/credentials_proxy.rb +6 -9
- data/lib/doorflow/client/element_sessions_proxy.rb +91 -0
- data/lib/doorflow/client.rb +13 -0
- data/lib/doorflow/errors/doorflow_error.rb +1 -1
- data/lib/doorflow/resources/credential.rb +4 -3
- data/lib/doorflow/resources/element_session.rb +28 -0
- data/lib/doorflow/webhooks/handler.rb +6 -6
- data/lib/doorflow/webhooks/signature_verifier.rb +8 -5
- data/lib/doorflow-api/api/accounts_api.rb +1 -1
- data/lib/doorflow-api/api/admission_requests_api.rb +2 -2
- data/lib/doorflow-api/api/card_designs_api.rb +347 -0
- data/lib/doorflow-api/api/card_template_types_api.rb +350 -0
- data/lib/doorflow-api/api/card_templates_api.rb +811 -0
- data/lib/doorflow-api/api/channels_api.rb +11 -11
- data/lib/doorflow-api/api/credential_types_api.rb +1 -1
- data/lib/doorflow-api/api/credentials_api.rb +6 -6
- data/lib/doorflow-api/api/element_sessions_api.rb +90 -0
- data/lib/doorflow-api/api/events_api.rb +2 -2
- data/lib/doorflow-api/api/group_reservations_api.rb +68 -5
- data/lib/doorflow-api/api/groups_api.rb +1 -1
- data/lib/doorflow-api/api/notification_rules_api.rb +7 -7
- data/lib/doorflow-api/api/oauth_api.rb +1 -1
- data/lib/doorflow-api/api/people_api.rb +7 -7
- data/lib/doorflow-api/api/reservations_api.rb +5 -5
- data/lib/doorflow-api/api/roles_api.rb +1 -1
- data/lib/doorflow-api/api/sites_api.rb +1 -1
- data/lib/doorflow-api/api/sync_api.rb +4 -4
- data/lib/doorflow-api/api_client.rb +8 -4
- data/lib/doorflow-api/api_error.rb +9 -14
- data/lib/doorflow-api/api_model_base.rb +1 -1
- data/lib/doorflow-api/configuration.rb +1 -1
- data/lib/doorflow-api/models/account.rb +1 -1
- data/lib/doorflow-api/models/account_passport.rb +1 -1
- data/lib/doorflow-api/models/account_reseller.rb +1 -1
- data/lib/doorflow-api/models/account_sync.rb +1 -1
- data/lib/doorflow-api/models/account_user.rb +1 -1
- data/lib/doorflow-api/models/admission_request.rb +1 -1
- data/lib/doorflow-api/models/admission_request_door_controller.rb +1 -1
- data/lib/doorflow-api/models/admission_request_person.rb +1 -1
- data/lib/doorflow-api/models/admit_channel202_response.rb +1 -1
- data/lib/doorflow-api/models/admit_person202_response.rb +1 -1
- data/lib/doorflow-api/models/admit_person403_response.rb +1 -1
- data/lib/doorflow-api/models/admit_person_request.rb +1 -1
- data/lib/doorflow-api/models/auto_unlock_channel400_response.rb +1 -1
- data/lib/doorflow-api/models/auto_unlock_channel_request.rb +1 -1
- data/lib/doorflow-api/models/card_design.rb +243 -0
- data/lib/doorflow-api/models/card_design_image_back.rb +179 -0
- data/lib/doorflow-api/models/card_design_image_front.rb +179 -0
- data/lib/doorflow-api/models/card_design_input.rb +181 -0
- data/lib/doorflow-api/models/card_template.rb +475 -0
- data/lib/doorflow-api/models/card_template_input.rb +147 -0
- data/lib/doorflow-api/models/card_template_input_card_template.rb +347 -0
- data/lib/doorflow-api/models/card_template_type.rb +321 -0
- data/lib/doorflow-api/models/card_template_type_input.rb +147 -0
- data/lib/doorflow-api/models/card_template_type_input_card_template_type.rb +251 -0
- data/lib/doorflow-api/models/card_template_type_input_card_template_type_non_printable_zones_inner.rb +183 -0
- data/lib/doorflow-api/models/card_template_type_non_printable_zones_inner.rb +188 -0
- data/lib/doorflow-api/models/channel.rb +1 -1
- data/lib/doorflow-api/models/channel_auto_unlock.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown_aux_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown_card_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_lockdown_rex_lockdown.rb +1 -1
- data/lib/doorflow-api/models/channel_mode.rb +1 -1
- data/lib/doorflow-api/models/channel_sync.rb +5 -2
- data/lib/doorflow-api/models/{create_credential422_response.rb → create_card_design422_response.rb} +5 -5
- data/lib/doorflow-api/models/{create_credential422_response_errors.rb → create_card_design422_response_errors.rb} +4 -4
- data/lib/doorflow-api/models/credential.rb +4 -4
- data/lib/doorflow-api/models/credential_input.rb +1 -1
- data/lib/doorflow-api/models/credential_input_person_credential.rb +1 -1
- data/lib/doorflow-api/models/credential_type.rb +1 -1
- data/lib/doorflow-api/models/credential_update_input.rb +1 -1
- data/lib/doorflow-api/models/credential_update_input_person_credential.rb +1 -1
- data/lib/doorflow-api/models/{delete_group_reservation200_response.rb → delete_card_design200_response.rb} +4 -4
- data/lib/doorflow-api/models/delete_card_template_type409_response.rb +147 -0
- data/lib/doorflow-api/models/element_session.rb +192 -0
- data/lib/doorflow-api/models/element_session_config.rb +265 -0
- data/lib/doorflow-api/models/element_session_error.rb +199 -0
- data/lib/doorflow-api/models/element_session_input.rb +271 -0
- data/lib/doorflow-api/models/element_session_member.rb +186 -0
- data/lib/doorflow-api/models/error.rb +1 -1
- data/lib/doorflow-api/models/event.rb +1 -1
- data/lib/doorflow-api/models/get_access_token200_response.rb +1 -1
- data/lib/doorflow-api/models/get_access_token400_response.rb +1 -1
- data/lib/doorflow-api/models/get_access_token401_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request401_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request403_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request404_response.rb +1 -1
- data/lib/doorflow-api/models/get_admission_request500_response.rb +1 -1
- data/lib/doorflow-api/models/get_token_info200_response.rb +1 -1
- data/lib/doorflow-api/models/get_token_info200_response_application.rb +1 -1
- data/lib/doorflow-api/models/get_token_info401_response.rb +1 -1
- data/lib/doorflow-api/models/group.rb +1 -1
- data/lib/doorflow-api/models/group_reservation.rb +1 -1
- data/lib/doorflow-api/models/group_reservation_input.rb +1 -1
- data/lib/doorflow-api/models/group_reservation_input_group_reservation.rb +1 -1
- data/lib/doorflow-api/models/initiate_sync429_response.rb +1 -1
- data/lib/doorflow-api/models/linked_file.rb +217 -0
- data/lib/doorflow-api/models/list_events400_response.rb +1 -1
- data/lib/doorflow-api/models/lockdown_channel_request.rb +1 -1
- data/lib/doorflow-api/models/notification_rule.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_actions_inner.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_conditions_inner.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_events_inner.rb +1 -1
- data/lib/doorflow-api/models/notification_rule_input.rb +1 -1
- data/lib/doorflow-api/models/person.rb +30 -8
- data/lib/doorflow-api/models/person_input.rb +1 -1
- data/lib/doorflow-api/models/reservation.rb +1 -1
- data/lib/doorflow-api/models/reservation_input.rb +1 -1
- data/lib/doorflow-api/models/revoke_token403_response.rb +1 -1
- data/lib/doorflow-api/models/role.rb +1 -1
- data/lib/doorflow-api/models/site.rb +1 -1
- data/lib/doorflow-api/models/site_site_ips_inner.rb +1 -1
- data/lib/doorflow-api/models/unlock_channel_request.rb +1 -1
- data/lib/doorflow-api/version.rb +2 -2
- data/lib/doorflow-api.rb +28 -9
- data/lib/doorflow.rb +8 -2
- metadata +45 -154
- data/spec/api/admission_requests_api_spec.rb +0 -47
- data/spec/api/channels_api_spec.rb +0 -174
- data/spec/api/credential_types_api_spec.rb +0 -49
- data/spec/api/group_reservations_api_spec.rb +0 -75
- data/spec/api/oauth_api_spec.rb +0 -97
- data/spec/doorflow/client_spec.rb +0 -109
- data/spec/doorflow_spec.rb +0 -22
- data/spec/fixtures/vcr_cassettes/channel/list.yml +0 -70
- data/spec/fixtures/vcr_cassettes/channel/retrieve.yml +0 -131
- data/spec/fixtures/vcr_cassettes/person/auto_pagination.yml +0 -87
- data/spec/fixtures/vcr_cassettes/person/create.yml +0 -64
- data/spec/fixtures/vcr_cassettes/person/delete.yml +0 -125
- data/spec/fixtures/vcr_cassettes/person/list.yml +0 -90
- data/spec/fixtures/vcr_cassettes/person/not_found.yml +0 -62
- data/spec/fixtures/vcr_cassettes/person/retrieve.yml +0 -136
- data/spec/fixtures/vcr_cassettes/person/update.yml +0 -260
- data/spec/fixtures/vcr_cassettes/person/validation_error.yml +0 -62
- data/spec/integration/channel_spec.rb +0 -88
- data/spec/integration/person_spec.rb +0 -99
- data/spec/models/account_passport_spec.rb +0 -42
- data/spec/models/account_reseller_spec.rb +0 -60
- data/spec/models/account_sync_spec.rb +0 -52
- data/spec/models/account_user_spec.rb +0 -54
- data/spec/models/admission_request_door_controller_spec.rb +0 -42
- data/spec/models/admission_request_person_spec.rb +0 -42
- data/spec/models/admission_request_spec.rb +0 -82
- data/spec/models/admit_channel202_response_spec.rb +0 -46
- data/spec/models/admit_person202_response_spec.rb +0 -46
- data/spec/models/admit_person403_response_spec.rb +0 -42
- data/spec/models/admit_person_request_spec.rb +0 -36
- data/spec/models/auto_unlock_channel400_response_spec.rb +0 -42
- data/spec/models/auto_unlock_channel_request_spec.rb +0 -36
- data/spec/models/channel_auto_unlock_spec.rb +0 -42
- data/spec/models/channel_lockdown_aux_lockdown_spec.rb +0 -36
- data/spec/models/channel_lockdown_card_lockdown_spec.rb +0 -36
- data/spec/models/channel_lockdown_rex_lockdown_spec.rb +0 -36
- data/spec/models/channel_lockdown_spec.rb +0 -54
- data/spec/models/channel_mode_spec.rb +0 -52
- data/spec/models/channel_sync_spec.rb +0 -46
- data/spec/models/create_credential422_response_errors_spec.rb +0 -48
- data/spec/models/create_credential422_response_spec.rb +0 -42
- data/spec/models/credential_input_person_credential_spec.rb +0 -48
- data/spec/models/credential_input_spec.rb +0 -36
- data/spec/models/credential_spec.rb +0 -86
- data/spec/models/credential_update_input_person_credential_spec.rb +0 -36
- data/spec/models/credential_update_input_spec.rb +0 -36
- data/spec/models/delete_group_reservation200_response_spec.rb +0 -36
- data/spec/models/error_spec.rb +0 -42
- data/spec/models/get_access_token200_response_spec.rb +0 -66
- data/spec/models/get_access_token400_response_spec.rb +0 -46
- data/spec/models/get_access_token401_response_spec.rb +0 -42
- data/spec/models/get_admission_request401_response_spec.rb +0 -42
- data/spec/models/get_admission_request403_response_spec.rb +0 -42
- data/spec/models/get_admission_request404_response_spec.rb +0 -42
- data/spec/models/get_admission_request500_response_spec.rb +0 -42
- data/spec/models/get_token_info200_response_application_spec.rb +0 -36
- data/spec/models/get_token_info200_response_spec.rb +0 -66
- data/spec/models/get_token_info401_response_spec.rb +0 -42
- data/spec/models/group_reservation_input_group_reservation_spec.rb +0 -54
- data/spec/models/group_reservation_input_spec.rb +0 -36
- data/spec/models/group_reservation_spec.rb +0 -82
- data/spec/models/initiate_sync429_response_spec.rb +0 -52
- data/spec/models/list_events400_response_spec.rb +0 -42
- data/spec/models/lockdown_channel_request_spec.rb +0 -48
- data/spec/models/notification_rule_actions_inner_spec.rb +0 -48
- data/spec/models/notification_rule_conditions_inner_spec.rb +0 -48
- data/spec/models/notification_rule_events_inner_spec.rb +0 -42
- data/spec/models/notification_rule_input_spec.rb +0 -60
- data/spec/models/person_input_spec.rb +0 -180
- data/spec/models/reservation_input_spec.rb +0 -60
- data/spec/models/revoke_token403_response_spec.rb +0 -42
- data/spec/models/site_site_ips_inner_spec.rb +0 -36
- data/spec/models/unlock_channel_request_spec.rb +0 -36
- data/spec/spec_helper.rb +0 -160
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#DoorFlow API
|
|
3
|
+
|
|
4
|
+
#Access control and door management API for DoorFlow
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 3.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.24.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DoorFlow
|
|
17
|
+
class LinkedFile < ApiModelBase
|
|
18
|
+
# Unique identifier for this linked file
|
|
19
|
+
attr_accessor :uuid
|
|
20
|
+
|
|
21
|
+
# Type of the parent entity
|
|
22
|
+
attr_accessor :entity_type
|
|
23
|
+
|
|
24
|
+
# UUID of the parent entity
|
|
25
|
+
attr_accessor :entity_uuid
|
|
26
|
+
|
|
27
|
+
# Role of this file (e.g. background_front, background_back, logo)
|
|
28
|
+
attr_accessor :file_role
|
|
29
|
+
|
|
30
|
+
# URL to download the file, or null if not yet uploaded
|
|
31
|
+
attr_accessor :url
|
|
32
|
+
|
|
33
|
+
# MIME type of the file
|
|
34
|
+
attr_accessor :content_type
|
|
35
|
+
|
|
36
|
+
attr_accessor :created_at
|
|
37
|
+
|
|
38
|
+
attr_accessor :updated_at
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'uuid' => :'uuid',
|
|
44
|
+
:'entity_type' => :'entity_type',
|
|
45
|
+
:'entity_uuid' => :'entity_uuid',
|
|
46
|
+
:'file_role' => :'file_role',
|
|
47
|
+
:'url' => :'url',
|
|
48
|
+
:'content_type' => :'content_type',
|
|
49
|
+
:'created_at' => :'created_at',
|
|
50
|
+
:'updated_at' => :'updated_at'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Returns attribute mapping this model knows about
|
|
55
|
+
def self.acceptable_attribute_map
|
|
56
|
+
attribute_map
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Returns all the JSON keys this model knows about
|
|
60
|
+
def self.acceptable_attributes
|
|
61
|
+
acceptable_attribute_map.values
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Attribute type mapping.
|
|
65
|
+
def self.openapi_types
|
|
66
|
+
{
|
|
67
|
+
:'uuid' => :'String',
|
|
68
|
+
:'entity_type' => :'String',
|
|
69
|
+
:'entity_uuid' => :'String',
|
|
70
|
+
:'file_role' => :'String',
|
|
71
|
+
:'url' => :'String',
|
|
72
|
+
:'content_type' => :'String',
|
|
73
|
+
:'created_at' => :'Time',
|
|
74
|
+
:'updated_at' => :'Time'
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# List of attributes with nullable: true
|
|
79
|
+
def self.openapi_nullable
|
|
80
|
+
Set.new([
|
|
81
|
+
:'url',
|
|
82
|
+
])
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Initializes the object
|
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
87
|
+
def initialize(attributes = {})
|
|
88
|
+
if (!attributes.is_a?(Hash))
|
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DoorFlow::LinkedFile` initialize method"
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
93
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
94
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
95
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
96
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DoorFlow::LinkedFile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
97
|
+
end
|
|
98
|
+
h[k.to_sym] = v
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'uuid')
|
|
102
|
+
self.uuid = attributes[:'uuid']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'entity_type')
|
|
106
|
+
self.entity_type = attributes[:'entity_type']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'entity_uuid')
|
|
110
|
+
self.entity_uuid = attributes[:'entity_uuid']
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'file_role')
|
|
114
|
+
self.file_role = attributes[:'file_role']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'url')
|
|
118
|
+
self.url = attributes[:'url']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'content_type')
|
|
122
|
+
self.content_type = attributes[:'content_type']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'created_at')
|
|
126
|
+
self.created_at = attributes[:'created_at']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'updated_at')
|
|
130
|
+
self.updated_at = attributes[:'updated_at']
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
135
|
+
# @return Array for valid properties with the reasons
|
|
136
|
+
def list_invalid_properties
|
|
137
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
138
|
+
invalid_properties = Array.new
|
|
139
|
+
invalid_properties
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Check to see if the all the properties in the model are valid
|
|
143
|
+
# @return true if the model is valid
|
|
144
|
+
def valid?
|
|
145
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
true
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Checks equality by comparing each attribute.
|
|
150
|
+
# @param [Object] Object to be compared
|
|
151
|
+
def ==(o)
|
|
152
|
+
return true if self.equal?(o)
|
|
153
|
+
self.class == o.class &&
|
|
154
|
+
uuid == o.uuid &&
|
|
155
|
+
entity_type == o.entity_type &&
|
|
156
|
+
entity_uuid == o.entity_uuid &&
|
|
157
|
+
file_role == o.file_role &&
|
|
158
|
+
url == o.url &&
|
|
159
|
+
content_type == o.content_type &&
|
|
160
|
+
created_at == o.created_at &&
|
|
161
|
+
updated_at == o.updated_at
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# @see the `==` method
|
|
165
|
+
# @param [Object] Object to be compared
|
|
166
|
+
def eql?(o)
|
|
167
|
+
self == o
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Calculates hash code according to all attributes.
|
|
171
|
+
# @return [Integer] Hash code
|
|
172
|
+
def hash
|
|
173
|
+
[uuid, entity_type, entity_uuid, file_role, url, content_type, created_at, updated_at].hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Builds the object from hash
|
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
178
|
+
# @return [Object] Returns the model itself
|
|
179
|
+
def self.build_from_hash(attributes)
|
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
|
181
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
182
|
+
transformed_hash = {}
|
|
183
|
+
openapi_types.each_pair do |key, type|
|
|
184
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
185
|
+
transformed_hash["#{key}"] = nil
|
|
186
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
187
|
+
# check to ensure the input is an array given that the attribute
|
|
188
|
+
# is documented as an array but the input is not
|
|
189
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
190
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
191
|
+
end
|
|
192
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
193
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
new(transformed_hash)
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Returns the object in the form of hash
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_hash
|
|
202
|
+
hash = {}
|
|
203
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
204
|
+
value = self.send(attr)
|
|
205
|
+
if value.nil?
|
|
206
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
207
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
hash[param] = _to_hash(value)
|
|
211
|
+
end
|
|
212
|
+
hash
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -355,7 +355,18 @@ module DoorFlow
|
|
|
355
355
|
invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
|
|
356
356
|
end
|
|
357
357
|
|
|
358
|
-
|
|
358
|
+
if @enabled.nil?
|
|
359
|
+
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
if @groups.nil?
|
|
363
|
+
invalid_properties.push('invalid value for "groups", groups cannot be nil.')
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
if @roles.nil?
|
|
367
|
+
invalid_properties.push('invalid value for "roles", roles cannot be nil.')
|
|
368
|
+
end
|
|
369
|
+
|
|
359
370
|
invalid_properties
|
|
360
371
|
end
|
|
361
372
|
|
|
@@ -366,7 +377,9 @@ module DoorFlow
|
|
|
366
377
|
return false if @id.nil?
|
|
367
378
|
return false if @first_name.nil?
|
|
368
379
|
return false if @last_name.nil?
|
|
369
|
-
|
|
380
|
+
return false if @enabled.nil?
|
|
381
|
+
return false if @groups.nil?
|
|
382
|
+
return false if @roles.nil?
|
|
370
383
|
true
|
|
371
384
|
end
|
|
372
385
|
|
|
@@ -403,22 +416,31 @@ module DoorFlow
|
|
|
403
416
|
# Custom attribute writer method with validation
|
|
404
417
|
# @param [Object] enabled Value to be assigned
|
|
405
418
|
def enabled=(enabled)
|
|
406
|
-
|
|
419
|
+
if enabled.nil?
|
|
420
|
+
fail ArgumentError, 'enabled cannot be nil'
|
|
421
|
+
end
|
|
422
|
+
|
|
407
423
|
@enabled = enabled
|
|
408
424
|
end
|
|
409
425
|
|
|
410
426
|
# Custom attribute writer method with validation
|
|
411
427
|
# @param [Object] groups Value to be assigned
|
|
412
428
|
def groups=(groups)
|
|
413
|
-
|
|
414
|
-
|
|
429
|
+
if groups.nil?
|
|
430
|
+
fail ArgumentError, 'groups cannot be nil'
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
@groups = groups
|
|
415
434
|
end
|
|
416
435
|
|
|
417
436
|
# Custom attribute writer method with validation
|
|
418
437
|
# @param [Object] roles Value to be assigned
|
|
419
438
|
def roles=(roles)
|
|
420
|
-
|
|
421
|
-
|
|
439
|
+
if roles.nil?
|
|
440
|
+
fail ArgumentError, 'roles cannot be nil'
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
@roles = roles
|
|
422
444
|
end
|
|
423
445
|
|
|
424
446
|
# Checks equality by comparing each attribute.
|
data/lib/doorflow-api/version.rb
CHANGED
data/lib/doorflow-api.rb
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 3.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.24.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ require 'doorflow-api/api_model_base'
|
|
|
17
17
|
require 'doorflow-api/version'
|
|
18
18
|
require 'doorflow-api/configuration'
|
|
19
19
|
|
|
20
|
-
# Models
|
|
20
|
+
# Models
|
|
21
21
|
require 'doorflow-api/models/account'
|
|
22
22
|
require 'doorflow-api/models/account_passport'
|
|
23
23
|
require 'doorflow-api/models/account_reseller'
|
|
@@ -32,6 +32,18 @@ require 'doorflow-api/models/admit_person403_response'
|
|
|
32
32
|
require 'doorflow-api/models/admit_person_request'
|
|
33
33
|
require 'doorflow-api/models/auto_unlock_channel400_response'
|
|
34
34
|
require 'doorflow-api/models/auto_unlock_channel_request'
|
|
35
|
+
require 'doorflow-api/models/card_design'
|
|
36
|
+
require 'doorflow-api/models/card_design_image_back'
|
|
37
|
+
require 'doorflow-api/models/card_design_image_front'
|
|
38
|
+
require 'doorflow-api/models/card_design_input'
|
|
39
|
+
require 'doorflow-api/models/card_template'
|
|
40
|
+
require 'doorflow-api/models/card_template_input'
|
|
41
|
+
require 'doorflow-api/models/card_template_input_card_template'
|
|
42
|
+
require 'doorflow-api/models/card_template_type'
|
|
43
|
+
require 'doorflow-api/models/card_template_type_input'
|
|
44
|
+
require 'doorflow-api/models/card_template_type_input_card_template_type'
|
|
45
|
+
require 'doorflow-api/models/card_template_type_input_card_template_type_non_printable_zones_inner'
|
|
46
|
+
require 'doorflow-api/models/card_template_type_non_printable_zones_inner'
|
|
35
47
|
require 'doorflow-api/models/channel'
|
|
36
48
|
require 'doorflow-api/models/channel_auto_unlock'
|
|
37
49
|
require 'doorflow-api/models/channel_lockdown'
|
|
@@ -40,15 +52,21 @@ require 'doorflow-api/models/channel_lockdown_card_lockdown'
|
|
|
40
52
|
require 'doorflow-api/models/channel_lockdown_rex_lockdown'
|
|
41
53
|
require 'doorflow-api/models/channel_mode'
|
|
42
54
|
require 'doorflow-api/models/channel_sync'
|
|
43
|
-
require 'doorflow-api/models/
|
|
44
|
-
require 'doorflow-api/models/
|
|
55
|
+
require 'doorflow-api/models/create_card_design422_response'
|
|
56
|
+
require 'doorflow-api/models/create_card_design422_response_errors'
|
|
45
57
|
require 'doorflow-api/models/credential'
|
|
46
58
|
require 'doorflow-api/models/credential_input'
|
|
47
59
|
require 'doorflow-api/models/credential_input_person_credential'
|
|
48
60
|
require 'doorflow-api/models/credential_type'
|
|
49
61
|
require 'doorflow-api/models/credential_update_input'
|
|
50
62
|
require 'doorflow-api/models/credential_update_input_person_credential'
|
|
51
|
-
require 'doorflow-api/models/
|
|
63
|
+
require 'doorflow-api/models/delete_card_design200_response'
|
|
64
|
+
require 'doorflow-api/models/delete_card_template_type409_response'
|
|
65
|
+
require 'doorflow-api/models/element_session'
|
|
66
|
+
require 'doorflow-api/models/element_session_config'
|
|
67
|
+
require 'doorflow-api/models/element_session_error'
|
|
68
|
+
require 'doorflow-api/models/element_session_input'
|
|
69
|
+
require 'doorflow-api/models/element_session_member'
|
|
52
70
|
require 'doorflow-api/models/error'
|
|
53
71
|
require 'doorflow-api/models/event'
|
|
54
72
|
require 'doorflow-api/models/get_access_token200_response'
|
|
@@ -66,6 +84,7 @@ require 'doorflow-api/models/group_reservation'
|
|
|
66
84
|
require 'doorflow-api/models/group_reservation_input'
|
|
67
85
|
require 'doorflow-api/models/group_reservation_input_group_reservation'
|
|
68
86
|
require 'doorflow-api/models/initiate_sync429_response'
|
|
87
|
+
require 'doorflow-api/models/linked_file'
|
|
69
88
|
require 'doorflow-api/models/list_events400_response'
|
|
70
89
|
require 'doorflow-api/models/lockdown_channel_request'
|
|
71
90
|
require 'doorflow-api/models/notification_rule'
|
|
@@ -85,14 +104,14 @@ require 'doorflow-api/models/unlock_channel_request'
|
|
|
85
104
|
|
|
86
105
|
# APIs
|
|
87
106
|
require 'doorflow-api/api/accounts_api'
|
|
88
|
-
|
|
89
|
-
# High-level client and auth
|
|
90
|
-
require 'doorflow/auth'
|
|
91
|
-
require 'doorflow/client'
|
|
92
107
|
require 'doorflow-api/api/admission_requests_api'
|
|
108
|
+
require 'doorflow-api/api/card_designs_api'
|
|
109
|
+
require 'doorflow-api/api/card_template_types_api'
|
|
110
|
+
require 'doorflow-api/api/card_templates_api'
|
|
93
111
|
require 'doorflow-api/api/channels_api'
|
|
94
112
|
require 'doorflow-api/api/credential_types_api'
|
|
95
113
|
require 'doorflow-api/api/credentials_api'
|
|
114
|
+
require 'doorflow-api/api/element_sessions_api'
|
|
96
115
|
require 'doorflow-api/api/events_api'
|
|
97
116
|
require 'doorflow-api/api/group_reservations_api'
|
|
98
117
|
require 'doorflow-api/api/groups_api'
|
data/lib/doorflow.rb
CHANGED
|
@@ -28,6 +28,7 @@ require 'doorflow/resources/person'
|
|
|
28
28
|
require 'doorflow/resources/reservation'
|
|
29
29
|
require 'doorflow/resources/role'
|
|
30
30
|
require 'doorflow/resources/site'
|
|
31
|
+
require 'doorflow/resources/element_session'
|
|
31
32
|
|
|
32
33
|
# DoorFlow Ruby SDK for access control and door management
|
|
33
34
|
#
|
|
@@ -142,10 +143,15 @@ module DoorFlow
|
|
|
142
143
|
DoorFlow.configure do |config|
|
|
143
144
|
config.access_token = @access_token if @access_token
|
|
144
145
|
if @api_base
|
|
145
|
-
# Parse the URL to extract scheme and host
|
|
146
|
+
# Parse the URL to extract scheme and host, keeping any non-default
|
|
147
|
+
# port (e.g. http://localhost:3000) in the host.
|
|
146
148
|
uri = URI.parse(@api_base)
|
|
147
149
|
config.scheme = uri.scheme if uri.scheme
|
|
148
|
-
|
|
150
|
+
if uri.host
|
|
151
|
+
host = uri.host
|
|
152
|
+
host += ":#{uri.port}" if uri.port && uri.port != uri.default_port
|
|
153
|
+
config.host = host
|
|
154
|
+
end
|
|
149
155
|
end
|
|
150
156
|
end
|
|
151
157
|
end
|