xbim_comms 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.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +210 -0
  4. data/Rakefile +10 -0
  5. data/lib/xbim_comms/api/contacts_api.rb +206 -0
  6. data/lib/xbim_comms/api/conversations_api.rb +2670 -0
  7. data/lib/xbim_comms/api/files_api.rb +107 -0
  8. data/lib/xbim_comms/api/snapshots_api.rb +100 -0
  9. data/lib/xbim_comms/api_client.rb +390 -0
  10. data/lib/xbim_comms/api_error.rb +57 -0
  11. data/lib/xbim_comms/configuration.rb +278 -0
  12. data/lib/xbim_comms/models/aggregate.rb +227 -0
  13. data/lib/xbim_comms/models/aggregate_list_value.rb +220 -0
  14. data/lib/xbim_comms/models/analytical_result.rb +270 -0
  15. data/lib/xbim_comms/models/analytical_result_all_of.rb +258 -0
  16. data/lib/xbim_comms/models/animation.rb +232 -0
  17. data/lib/xbim_comms/models/animation_all_of.rb +220 -0
  18. data/lib/xbim_comms/models/bitmap.rb +303 -0
  19. data/lib/xbim_comms/models/blob.rb +245 -0
  20. data/lib/xbim_comms/models/boolean_value.rb +218 -0
  21. data/lib/xbim_comms/models/clipping_plane.rb +231 -0
  22. data/lib/xbim_comms/models/coloring.rb +229 -0
  23. data/lib/xbim_comms/models/column_request.rb +279 -0
  24. data/lib/xbim_comms/models/component.rb +236 -0
  25. data/lib/xbim_comms/models/components.rb +240 -0
  26. data/lib/xbim_comms/models/contact.rb +227 -0
  27. data/lib/xbim_comms/models/contact_list.rb +238 -0
  28. data/lib/xbim_comms/models/conversation.rb +392 -0
  29. data/lib/xbim_comms/models/conversation_create.rb +273 -0
  30. data/lib/xbim_comms/models/conversation_list.rb +238 -0
  31. data/lib/xbim_comms/models/conversation_tenant.rb +254 -0
  32. data/lib/xbim_comms/models/conversation_update.rb +302 -0
  33. data/lib/xbim_comms/models/entity_key.rb +227 -0
  34. data/lib/xbim_comms/models/exception_message.rb +245 -0
  35. data/lib/xbim_comms/models/file.rb +266 -0
  36. data/lib/xbim_comms/models/file_all_of.rb +254 -0
  37. data/lib/xbim_comms/models/int32_value.rb +218 -0
  38. data/lib/xbim_comms/models/key_frame.rb +236 -0
  39. data/lib/xbim_comms/models/line.rb +231 -0
  40. data/lib/xbim_comms/models/message.rb +416 -0
  41. data/lib/xbim_comms/models/message_content.rb +220 -0
  42. data/lib/xbim_comms/models/message_create.rb +273 -0
  43. data/lib/xbim_comms/models/message_list.rb +238 -0
  44. data/lib/xbim_comms/models/message_part.rb +246 -0
  45. data/lib/xbim_comms/models/message_update.rb +297 -0
  46. data/lib/xbim_comms/models/orthogonal_camera.rb +269 -0
  47. data/lib/xbim_comms/models/participant.rb +232 -0
  48. data/lib/xbim_comms/models/participant_with_role.rb +293 -0
  49. data/lib/xbim_comms/models/participant_with_role_create.rb +266 -0
  50. data/lib/xbim_comms/models/participant_with_role_list.rb +238 -0
  51. data/lib/xbim_comms/models/participant_with_role_update.rb +261 -0
  52. data/lib/xbim_comms/models/perspective_camera.rb +269 -0
  53. data/lib/xbim_comms/models/pie_chart.rb +257 -0
  54. data/lib/xbim_comms/models/pie_chart_all_of.rb +245 -0
  55. data/lib/xbim_comms/models/point.rb +227 -0
  56. data/lib/xbim_comms/models/preview_row.rb +220 -0
  57. data/lib/xbim_comms/models/schedule.rb +270 -0
  58. data/lib/xbim_comms/models/schedule_all_of.rb +258 -0
  59. data/lib/xbim_comms/models/schedule_column.rb +384 -0
  60. data/lib/xbim_comms/models/schedule_request.rb +252 -0
  61. data/lib/xbim_comms/models/schedule_request_all_of.rb +240 -0
  62. data/lib/xbim_comms/models/section_box.rb +274 -0
  63. data/lib/xbim_comms/models/sheet.rb +268 -0
  64. data/lib/xbim_comms/models/sheet_all_of.rb +256 -0
  65. data/lib/xbim_comms/models/sheet_part.rb +254 -0
  66. data/lib/xbim_comms/models/snapshot.rb +270 -0
  67. data/lib/xbim_comms/models/text.rb +220 -0
  68. data/lib/xbim_comms/models/view.rb +239 -0
  69. data/lib/xbim_comms/models/view_all_of.rb +227 -0
  70. data/lib/xbim_comms/models/view_setup_hints.rb +236 -0
  71. data/lib/xbim_comms/models/viewpoint.rb +296 -0
  72. data/lib/xbim_comms/models/visibility.rb +238 -0
  73. data/lib/xbim_comms/version.rb +15 -0
  74. data/lib/xbim_comms.rb +104 -0
  75. data/spec/api/contacts_api_spec.rb +74 -0
  76. data/spec/api/conversations_api_spec.rb +521 -0
  77. data/spec/api/files_api_spec.rb +50 -0
  78. data/spec/api/snapshots_api_spec.rb +49 -0
  79. data/spec/api_client_spec.rb +226 -0
  80. data/spec/configuration_spec.rb +42 -0
  81. data/spec/models/aggregate_list_value_spec.rb +34 -0
  82. data/spec/models/aggregate_spec.rb +40 -0
  83. data/spec/models/analytical_result_all_of_spec.rb +58 -0
  84. data/spec/models/analytical_result_spec.rb +58 -0
  85. data/spec/models/animation_all_of_spec.rb +34 -0
  86. data/spec/models/animation_spec.rb +34 -0
  87. data/spec/models/bitmap_spec.rb +68 -0
  88. data/spec/models/blob_spec.rb +52 -0
  89. data/spec/models/boolean_value_spec.rb +34 -0
  90. data/spec/models/clipping_plane_spec.rb +40 -0
  91. data/spec/models/coloring_spec.rb +40 -0
  92. data/spec/models/column_request_spec.rb +56 -0
  93. data/spec/models/component_spec.rb +46 -0
  94. data/spec/models/components_spec.rb +46 -0
  95. data/spec/models/contact_list_spec.rb +46 -0
  96. data/spec/models/contact_spec.rb +40 -0
  97. data/spec/models/conversation_create_spec.rb +64 -0
  98. data/spec/models/conversation_list_spec.rb +46 -0
  99. data/spec/models/conversation_spec.rb +122 -0
  100. data/spec/models/conversation_tenant_spec.rb +58 -0
  101. data/spec/models/conversation_update_spec.rb +68 -0
  102. data/spec/models/entity_key_spec.rb +40 -0
  103. data/spec/models/exception_message_spec.rb +52 -0
  104. data/spec/models/file_all_of_spec.rb +58 -0
  105. data/spec/models/file_spec.rb +58 -0
  106. data/spec/models/int32_value_spec.rb +34 -0
  107. data/spec/models/key_frame_spec.rb +46 -0
  108. data/spec/models/line_spec.rb +40 -0
  109. data/spec/models/message_content_spec.rb +34 -0
  110. data/spec/models/message_create_spec.rb +64 -0
  111. data/spec/models/message_list_spec.rb +46 -0
  112. data/spec/models/message_part_spec.rb +46 -0
  113. data/spec/models/message_spec.rb +146 -0
  114. data/spec/models/message_update_spec.rb +68 -0
  115. data/spec/models/orthogonal_camera_spec.rb +64 -0
  116. data/spec/models/participant_spec.rb +40 -0
  117. data/spec/models/participant_with_role_create_spec.rb +44 -0
  118. data/spec/models/participant_with_role_list_spec.rb +46 -0
  119. data/spec/models/participant_with_role_spec.rb +62 -0
  120. data/spec/models/participant_with_role_update_spec.rb +44 -0
  121. data/spec/models/perspective_camera_spec.rb +64 -0
  122. data/spec/models/pie_chart_all_of_spec.rb +52 -0
  123. data/spec/models/pie_chart_spec.rb +52 -0
  124. data/spec/models/point_spec.rb +40 -0
  125. data/spec/models/preview_row_spec.rb +34 -0
  126. data/spec/models/schedule_all_of_spec.rb +58 -0
  127. data/spec/models/schedule_column_spec.rb +118 -0
  128. data/spec/models/schedule_request_all_of_spec.rb +46 -0
  129. data/spec/models/schedule_request_spec.rb +46 -0
  130. data/spec/models/schedule_spec.rb +58 -0
  131. data/spec/models/section_box_spec.rb +70 -0
  132. data/spec/models/sheet_all_of_spec.rb +58 -0
  133. data/spec/models/sheet_part_spec.rb +58 -0
  134. data/spec/models/sheet_spec.rb +58 -0
  135. data/spec/models/snapshot_spec.rb +50 -0
  136. data/spec/models/text_spec.rb +28 -0
  137. data/spec/models/view_all_of_spec.rb +40 -0
  138. data/spec/models/view_setup_hints_spec.rb +46 -0
  139. data/spec/models/view_spec.rb +40 -0
  140. data/spec/models/viewpoint_spec.rb +82 -0
  141. data/spec/models/visibility_spec.rb +46 -0
  142. data/spec/spec_helper.rb +111 -0
  143. data/xbim_comms-1.0.0.gem +0 -0
  144. data/xbim_comms.gemspec +38 -0
  145. metadata +226 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c0c7519850251ddd372ab6f339577eaeda6ec5f95bf01f5d633655502c349681
4
+ data.tar.gz: 6c761703794206cc33f17ac972791b39d680a0ed2a986a58ea7188f511f4b17b
5
+ SHA512:
6
+ metadata.gz: 3141161f328b00404f6e4ea85419dee928b8ef6dec6636d32540eac3a8066a66bfd2b5ccd6161e8e4107e5d56c167094e355cb901a16c50728727ff934a75403
7
+ data.tar.gz: dd89e247184c504e6f9acab04c9f6b1b2949e3a3afd5c8533e8935282b8d4946eddf72414bd28eacb73aa570b49b3a484528c311cab388cdef16057a598d5466
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md ADDED
@@ -0,0 +1,210 @@
1
+ # xbim_comms
2
+
3
+ XbimComms - the Ruby gem for the Flex Comms API 2.0
4
+
5
+ Communication centralised around construction data
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: 2.0
10
+ - Package version: 1.0.0
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+ For more information, please visit [https://xbim.net](https://xbim.net)
13
+
14
+ ## Installation
15
+
16
+ ### Build a gem
17
+
18
+ To build the Ruby code into a gem:
19
+
20
+ ```shell
21
+ gem build xbim_comms.gemspec
22
+ ```
23
+
24
+ Then either install the gem locally:
25
+
26
+ ```shell
27
+ gem install ./xbim_comms-1.0.0.gem
28
+ ```
29
+
30
+ (for development, run `gem install --dev ./xbim_comms-1.0.0.gem` to install the development dependencies)
31
+
32
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
+
34
+ Finally add this to the Gemfile:
35
+
36
+ gem 'xbim_comms', '~> 1.0.0'
37
+
38
+ ### Install from Git
39
+
40
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
41
+
42
+ gem 'xbim_comms', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
43
+
44
+ ### Include the Ruby code directly
45
+
46
+ Include the Ruby code directly using `-I` as follows:
47
+
48
+ ```shell
49
+ ruby -Ilib script.rb
50
+ ```
51
+
52
+ ## Getting Started
53
+
54
+ Please follow the [installation](#installation) procedure and then run the following code:
55
+
56
+ ```ruby
57
+ # Load the gem
58
+ require 'xbim_comms'
59
+
60
+ # Setup authorization
61
+ XbimComms.configure do |config|
62
+ # Configure OAuth2 access token for authorization: oauth2
63
+ config.access_token = 'YOUR ACCESS TOKEN'
64
+ end
65
+
66
+ api_instance = XbimComms::ContactsApi.new
67
+ term = 'term_example' # String |
68
+ region = 'UK' # String | The data center region the data resides in
69
+ opts = {
70
+ expand: 'expand_example', # String |
71
+ filter: 'filter_example', # String |
72
+ select: 'select_example', # String |
73
+ orderby: 'orderby_example', # String |
74
+ top: 56, # Integer |
75
+ skip: 56, # Integer |
76
+ count: true # Boolean |
77
+ }
78
+
79
+ begin
80
+ #Get Contacts search
81
+ result = api_instance.contacts_search(term, region, opts)
82
+ p result
83
+ rescue XbimComms::ApiError => e
84
+ puts "Exception when calling ContactsApi->contacts_search: #{e}"
85
+ end
86
+
87
+ ```
88
+
89
+ ## Documentation for API Endpoints
90
+
91
+ All URIs are relative to *https://apis.xbim-dev.net*
92
+
93
+ Class | Method | HTTP request | Description
94
+ ------------ | ------------- | ------------- | -------------
95
+ *XbimComms::ContactsApi* | [**contacts_search**](docs/ContactsApi.md#contacts_search) | **GET** /{region}/comms/2.0/Contacts/Search(Term={term}) | Get Contacts search
96
+ *XbimComms::ContactsApi* | [**get_contacts**](docs/ContactsApi.md#get_contacts) | **GET** /{region}/comms/2.0/Contacts | Get Contacts
97
+ *XbimComms::ConversationsApi* | [**aggregate_data**](docs/ConversationsApi.md#aggregate_data) | **GET** /{region}/comms/2.0/Conversations/Aggregate() | Aggregates conversation data efficiently for reporting purposes
98
+ *XbimComms::ConversationsApi* | [**clone_conversation**](docs/ConversationsApi.md#clone_conversation) | **GET** /{region}/comms/2.0/Conversations/{key}/Clone | Get Conversations clone conversation
99
+ *XbimComms::ConversationsApi* | [**delete_conversation**](docs/ConversationsApi.md#delete_conversation) | **DELETE** /{region}/comms/2.0/Conversations/{key} | Delete Conversations conversation
100
+ *XbimComms::ConversationsApi* | [**delete_file**](docs/ConversationsApi.md#delete_file) | **DELETE** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Files({fileId}) | Delete Conversations file
101
+ *XbimComms::ConversationsApi* | [**delete_message**](docs/ConversationsApi.md#delete_message) | **DELETE** /{region}/comms/2.0/Conversations({conversationId})/Messages({id}) | Delete Conversations message
102
+ *XbimComms::ConversationsApi* | [**delete_message_part**](docs/ConversationsApi.md#delete_message_part) | **DELETE** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Delete | Delete Conversations message part
103
+ *XbimComms::ConversationsApi* | [**delete_participant**](docs/ConversationsApi.md#delete_participant) | **DELETE** /{region}/comms/2.0/Conversations({conversationId})/Participants({id}) | Delete Conversations participant
104
+ *XbimComms::ConversationsApi* | [**get_conversations**](docs/ConversationsApi.md#get_conversations) | **GET** /{region}/comms/2.0/Conversations | Get Conversations
105
+ *XbimComms::ConversationsApi* | [**get_conversations_by_id**](docs/ConversationsApi.md#get_conversations_by_id) | **GET** /{region}/comms/2.0/Conversations/{key} | Get Conversations by id
106
+ *XbimComms::ConversationsApi* | [**get_demo_conversation**](docs/ConversationsApi.md#get_demo_conversation) | **GET** /{region}/comms/2.0/Conversations/Demo | Get Conversations demo conversation
107
+ *XbimComms::ConversationsApi* | [**get_file**](docs/ConversationsApi.md#get_file) | **GET** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Files({fileId}) | Get Conversations file
108
+ *XbimComms::ConversationsApi* | [**get_files**](docs/ConversationsApi.md#get_files) | **GET** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Files | Get Conversations files
109
+ *XbimComms::ConversationsApi* | [**get_message_by_id**](docs/ConversationsApi.md#get_message_by_id) | **GET** /{region}/comms/2.0/Conversations({conversationId})/Messages({id}) | Get Conversations message by id
110
+ *XbimComms::ConversationsApi* | [**get_messages**](docs/ConversationsApi.md#get_messages) | **GET** /{region}/comms/2.0/Conversations({conversationId})/Messages | Get Conversations messages
111
+ *XbimComms::ConversationsApi* | [**get_participiants**](docs/ConversationsApi.md#get_participiants) | **GET** /{region}/comms/2.0/Conversations({conversationId})/Participants | Get Conversations participiants
112
+ *XbimComms::ConversationsApi* | [**import_bcf_file**](docs/ConversationsApi.md#import_bcf_file) | **POST** /{region}/comms/2.0/Conversations/ImportBcf | Imports a BCF File's Topics and Markup as one or more Flex conversations
113
+ *XbimComms::ConversationsApi* | [**insert_message_part**](docs/ConversationsApi.md#insert_message_part) | **POST** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Insert | Post Conversations insert message part
114
+ *XbimComms::ConversationsApi* | [**mode_message_part**](docs/ConversationsApi.md#mode_message_part) | **POST** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Move | Post Conversations mode message part
115
+ *XbimComms::ConversationsApi* | [**patch_conversation**](docs/ConversationsApi.md#patch_conversation) | **PATCH** /{region}/comms/2.0/Conversations/{key} | Patch Conversations conversation
116
+ *XbimComms::ConversationsApi* | [**patch_message**](docs/ConversationsApi.md#patch_message) | **PATCH** /{region}/comms/2.0/Conversations({conversationId})/Messages({id}) | Patch Conversations message
117
+ *XbimComms::ConversationsApi* | [**patch_participant**](docs/ConversationsApi.md#patch_participant) | **PATCH** /{region}/comms/2.0/Conversations({conversationId})/Participants({id}) | Patch Conversations participant
118
+ *XbimComms::ConversationsApi* | [**post_conversation**](docs/ConversationsApi.md#post_conversation) | **POST** /{region}/comms/2.0/Conversations | Post Conversations conversation
119
+ *XbimComms::ConversationsApi* | [**post_file**](docs/ConversationsApi.md#post_file) | **POST** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Files | Post Conversations file
120
+ *XbimComms::ConversationsApi* | [**post_message**](docs/ConversationsApi.md#post_message) | **POST** /{region}/comms/2.0/Conversations({conversationId})/Messages | Post Conversations message
121
+ *XbimComms::ConversationsApi* | [**post_participant**](docs/ConversationsApi.md#post_participant) | **POST** /{region}/comms/2.0/Conversations({conversationId})/Participants | Post Conversations participant
122
+ *XbimComms::ConversationsApi* | [**put_message_part**](docs/ConversationsApi.md#put_message_part) | **PUT** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Set | Put Conversations message part
123
+ *XbimComms::ConversationsApi* | [**put_participants**](docs/ConversationsApi.md#put_participants) | **PUT** /{region}/comms/2.0/Conversations({conversationId})/Participants | Put Conversations participants
124
+ *XbimComms::ConversationsApi* | [**send_clone_conversation**](docs/ConversationsApi.md#send_clone_conversation) | **GET** /{region}/comms/2.0/Conversations/{key}/SendClone | Get Conversations send clone conversation
125
+ *XbimComms::ConversationsApi* | [**send_message**](docs/ConversationsApi.md#send_message) | **POST** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Send | Post Conversations send message
126
+ *XbimComms::ConversationsApi* | [**set_message_state**](docs/ConversationsApi.md#set_message_state) | **PUT** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/SetState | Put Conversations set message state
127
+ *XbimComms::ConversationsApi* | [**swap_message_parts**](docs/ConversationsApi.md#swap_message_parts) | **POST** /{region}/comms/2.0/Conversations({conversationId})/Messages({id})/Swap | Post Conversations swap message parts
128
+ *XbimComms::FilesApi* | [**files_get_file**](docs/FilesApi.md#files_get_file) | **GET** /{region}/comms/2.0/Files/{hash}/{fileId} | Gets a File Blob from a Message
129
+ *XbimComms::SnapshotsApi* | [**snapshots_get_snapshot**](docs/SnapshotsApi.md#snapshots_get_snapshot) | **GET** /{region}/comms/2.0/Snapshots/{hash}/{fileId} | Gets a File Blob from a Message
130
+
131
+
132
+ ## Documentation for Models
133
+
134
+ - [XbimComms::Aggregate](docs/Aggregate.md)
135
+ - [XbimComms::AggregateListValue](docs/AggregateListValue.md)
136
+ - [XbimComms::AnalyticalResult](docs/AnalyticalResult.md)
137
+ - [XbimComms::AnalyticalResultAllOf](docs/AnalyticalResultAllOf.md)
138
+ - [XbimComms::Animation](docs/Animation.md)
139
+ - [XbimComms::AnimationAllOf](docs/AnimationAllOf.md)
140
+ - [XbimComms::Bitmap](docs/Bitmap.md)
141
+ - [XbimComms::Blob](docs/Blob.md)
142
+ - [XbimComms::BooleanValue](docs/BooleanValue.md)
143
+ - [XbimComms::ClippingPlane](docs/ClippingPlane.md)
144
+ - [XbimComms::Coloring](docs/Coloring.md)
145
+ - [XbimComms::ColumnRequest](docs/ColumnRequest.md)
146
+ - [XbimComms::Component](docs/Component.md)
147
+ - [XbimComms::Components](docs/Components.md)
148
+ - [XbimComms::Contact](docs/Contact.md)
149
+ - [XbimComms::ContactList](docs/ContactList.md)
150
+ - [XbimComms::Conversation](docs/Conversation.md)
151
+ - [XbimComms::ConversationCreate](docs/ConversationCreate.md)
152
+ - [XbimComms::ConversationList](docs/ConversationList.md)
153
+ - [XbimComms::ConversationTenant](docs/ConversationTenant.md)
154
+ - [XbimComms::ConversationUpdate](docs/ConversationUpdate.md)
155
+ - [XbimComms::EntityKey](docs/EntityKey.md)
156
+ - [XbimComms::ExceptionMessage](docs/ExceptionMessage.md)
157
+ - [XbimComms::File](docs/File.md)
158
+ - [XbimComms::FileAllOf](docs/FileAllOf.md)
159
+ - [XbimComms::Int32Value](docs/Int32Value.md)
160
+ - [XbimComms::KeyFrame](docs/KeyFrame.md)
161
+ - [XbimComms::Line](docs/Line.md)
162
+ - [XbimComms::Message](docs/Message.md)
163
+ - [XbimComms::MessageContent](docs/MessageContent.md)
164
+ - [XbimComms::MessageCreate](docs/MessageCreate.md)
165
+ - [XbimComms::MessageList](docs/MessageList.md)
166
+ - [XbimComms::MessagePart](docs/MessagePart.md)
167
+ - [XbimComms::MessageUpdate](docs/MessageUpdate.md)
168
+ - [XbimComms::OrthogonalCamera](docs/OrthogonalCamera.md)
169
+ - [XbimComms::Participant](docs/Participant.md)
170
+ - [XbimComms::ParticipantWithRole](docs/ParticipantWithRole.md)
171
+ - [XbimComms::ParticipantWithRoleCreate](docs/ParticipantWithRoleCreate.md)
172
+ - [XbimComms::ParticipantWithRoleList](docs/ParticipantWithRoleList.md)
173
+ - [XbimComms::ParticipantWithRoleUpdate](docs/ParticipantWithRoleUpdate.md)
174
+ - [XbimComms::PerspectiveCamera](docs/PerspectiveCamera.md)
175
+ - [XbimComms::PieChart](docs/PieChart.md)
176
+ - [XbimComms::PieChartAllOf](docs/PieChartAllOf.md)
177
+ - [XbimComms::Point](docs/Point.md)
178
+ - [XbimComms::PreviewRow](docs/PreviewRow.md)
179
+ - [XbimComms::Schedule](docs/Schedule.md)
180
+ - [XbimComms::ScheduleAllOf](docs/ScheduleAllOf.md)
181
+ - [XbimComms::ScheduleColumn](docs/ScheduleColumn.md)
182
+ - [XbimComms::ScheduleRequest](docs/ScheduleRequest.md)
183
+ - [XbimComms::ScheduleRequestAllOf](docs/ScheduleRequestAllOf.md)
184
+ - [XbimComms::SectionBox](docs/SectionBox.md)
185
+ - [XbimComms::Sheet](docs/Sheet.md)
186
+ - [XbimComms::SheetAllOf](docs/SheetAllOf.md)
187
+ - [XbimComms::SheetPart](docs/SheetPart.md)
188
+ - [XbimComms::Snapshot](docs/Snapshot.md)
189
+ - [XbimComms::Text](docs/Text.md)
190
+ - [XbimComms::View](docs/View.md)
191
+ - [XbimComms::ViewAllOf](docs/ViewAllOf.md)
192
+ - [XbimComms::ViewSetupHints](docs/ViewSetupHints.md)
193
+ - [XbimComms::Viewpoint](docs/Viewpoint.md)
194
+ - [XbimComms::Visibility](docs/Visibility.md)
195
+
196
+
197
+ ## Documentation for Authorization
198
+
199
+
200
+ ### oauth2
201
+
202
+
203
+ - **Type**: OAuth
204
+ - **Flow**: implicit
205
+ - **Authorization URL**: https://apis.xbim-dev.net/connect/authorize
206
+ - **Scopes**:
207
+ - comms.read: Reading from Comms API
208
+ - comms.write: Writing to Comms API
209
+ - api.admin: Super-user administrator
210
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,206 @@
1
+ =begin
2
+ #Flex Comms 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 'cgi'
14
+
15
+ module XbimComms
16
+ class ContactsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get Contacts search
23
+ # <span style='font-size: 17px;'>Summary:</span>Return Type: <b>ContactList</b><br/><br/>
24
+ # @param term [String]
25
+ # @param region [String] The data center region the data resides in
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :expand
28
+ # @option opts [String] :filter
29
+ # @option opts [String] :select
30
+ # @option opts [String] :orderby
31
+ # @option opts [Integer] :top
32
+ # @option opts [Integer] :skip
33
+ # @option opts [Boolean] :count
34
+ # @return [ContactList]
35
+ def contacts_search(term, region, opts = {})
36
+ data, _status_code, _headers = contacts_search_with_http_info(term, region, opts)
37
+ data
38
+ end
39
+
40
+ # Get Contacts search
41
+ # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Return Type: &lt;b&gt;ContactList&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
42
+ # @param term [String]
43
+ # @param region [String] The data center region the data resides in
44
+ # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :expand
46
+ # @option opts [String] :filter
47
+ # @option opts [String] :select
48
+ # @option opts [String] :orderby
49
+ # @option opts [Integer] :top
50
+ # @option opts [Integer] :skip
51
+ # @option opts [Boolean] :count
52
+ # @return [Array<(ContactList, Integer, Hash)>] ContactList data, response status code and response headers
53
+ def contacts_search_with_http_info(term, region, opts = {})
54
+ if @api_client.config.debugging
55
+ @api_client.config.logger.debug 'Calling API: ContactsApi.contacts_search ...'
56
+ end
57
+ # verify the required parameter 'term' is set
58
+ if @api_client.config.client_side_validation && term.nil?
59
+ fail ArgumentError, "Missing the required parameter 'term' when calling ContactsApi.contacts_search"
60
+ end
61
+ # verify the required parameter 'region' is set
62
+ if @api_client.config.client_side_validation && region.nil?
63
+ fail ArgumentError, "Missing the required parameter 'region' when calling ContactsApi.contacts_search"
64
+ end
65
+ # verify enum value
66
+ allowable_values = ["UK", "WestEurope", "Sandbox"]
67
+ if @api_client.config.client_side_validation && !allowable_values.include?(region)
68
+ fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
69
+ end
70
+ # resource path
71
+ local_var_path = '/{region}/comms/2.0/Contacts/Search(Term={term})'.sub('{' + 'term' + '}', CGI.escape(term.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
72
+
73
+ # query parameters
74
+ query_params = opts[:query_params] || {}
75
+ query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
76
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
77
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
78
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
79
+ query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
80
+ query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
81
+ query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
82
+
83
+ # header parameters
84
+ header_params = opts[:header_params] || {}
85
+ # HTTP header 'Accept' (if needed)
86
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json;odata.metadata=none', 'application/json;odata.metadata=minimal', 'application/json;odata.metadata=full'])
87
+
88
+ # form parameters
89
+ form_params = opts[:form_params] || {}
90
+
91
+ # http body (model)
92
+ post_body = opts[:debug_body]
93
+
94
+ # return_type
95
+ return_type = opts[:debug_return_type] || 'ContactList'
96
+
97
+ # auth_names
98
+ auth_names = opts[:debug_auth_names] || ['oauth2']
99
+
100
+ new_options = opts.merge(
101
+ :operation => :"ContactsApi.contacts_search",
102
+ :header_params => header_params,
103
+ :query_params => query_params,
104
+ :form_params => form_params,
105
+ :body => post_body,
106
+ :auth_names => auth_names,
107
+ :return_type => return_type
108
+ )
109
+
110
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug "API called: ContactsApi#contacts_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
113
+ end
114
+ return data, status_code, headers
115
+ end
116
+
117
+ # Get Contacts
118
+ # <span style='font-size: 17px;'>Summary:</span>Return Type: <b>ContactList</b><br/><br/>
119
+ # @param region [String] The data center region the data resides in
120
+ # @param [Hash] opts the optional parameters
121
+ # @option opts [String] :expand
122
+ # @option opts [String] :filter
123
+ # @option opts [String] :select
124
+ # @option opts [String] :orderby
125
+ # @option opts [Integer] :top
126
+ # @option opts [Integer] :skip
127
+ # @option opts [Boolean] :count
128
+ # @return [ContactList]
129
+ def get_contacts(region, opts = {})
130
+ data, _status_code, _headers = get_contacts_with_http_info(region, opts)
131
+ data
132
+ end
133
+
134
+ # Get Contacts
135
+ # &lt;span style&#x3D;&#39;font-size: 17px;&#39;&gt;Summary:&lt;/span&gt;Return Type: &lt;b&gt;ContactList&lt;/b&gt;&lt;br/&gt;&lt;br/&gt;
136
+ # @param region [String] The data center region the data resides in
137
+ # @param [Hash] opts the optional parameters
138
+ # @option opts [String] :expand
139
+ # @option opts [String] :filter
140
+ # @option opts [String] :select
141
+ # @option opts [String] :orderby
142
+ # @option opts [Integer] :top
143
+ # @option opts [Integer] :skip
144
+ # @option opts [Boolean] :count
145
+ # @return [Array<(ContactList, Integer, Hash)>] ContactList data, response status code and response headers
146
+ def get_contacts_with_http_info(region, opts = {})
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug 'Calling API: ContactsApi.get_contacts ...'
149
+ end
150
+ # verify the required parameter 'region' is set
151
+ if @api_client.config.client_side_validation && region.nil?
152
+ fail ArgumentError, "Missing the required parameter 'region' when calling ContactsApi.get_contacts"
153
+ end
154
+ # verify enum value
155
+ allowable_values = ["UK", "WestEurope", "Sandbox"]
156
+ if @api_client.config.client_side_validation && !allowable_values.include?(region)
157
+ fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
158
+ end
159
+ # resource path
160
+ local_var_path = '/{region}/comms/2.0/Contacts'.sub('{' + 'region' + '}', CGI.escape(region.to_s))
161
+
162
+ # query parameters
163
+ query_params = opts[:query_params] || {}
164
+ query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
165
+ query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
166
+ query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
167
+ query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
168
+ query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
169
+ query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
170
+ query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
171
+
172
+ # header parameters
173
+ header_params = opts[:header_params] || {}
174
+ # HTTP header 'Accept' (if needed)
175
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json;odata.metadata=none', 'application/json;odata.metadata=minimal', 'application/json;odata.metadata=full'])
176
+
177
+ # form parameters
178
+ form_params = opts[:form_params] || {}
179
+
180
+ # http body (model)
181
+ post_body = opts[:debug_body]
182
+
183
+ # return_type
184
+ return_type = opts[:debug_return_type] || 'ContactList'
185
+
186
+ # auth_names
187
+ auth_names = opts[:debug_auth_names] || ['oauth2']
188
+
189
+ new_options = opts.merge(
190
+ :operation => :"ContactsApi.get_contacts",
191
+ :header_params => header_params,
192
+ :query_params => query_params,
193
+ :form_params => form_params,
194
+ :body => post_body,
195
+ :auth_names => auth_names,
196
+ :return_type => return_type
197
+ )
198
+
199
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
200
+ if @api_client.config.debugging
201
+ @api_client.config.logger.debug "API called: ContactsApi#get_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
202
+ end
203
+ return data, status_code, headers
204
+ end
205
+ end
206
+ end