xbim_aim 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 +413 -0
- data/Rakefile +10 -0
- data/lib/xbim_aim/api/admin_api.rb +358 -0
- data/lib/xbim_aim/api/applications_api.rb +203 -0
- data/lib/xbim_aim/api/assemblies_api.rb +690 -0
- data/lib/xbim_aim/api/assets_api.rb +926 -0
- data/lib/xbim_aim/api/attributes_api.rb +789 -0
- data/lib/xbim_aim/api/component_types_api.rb +690 -0
- data/lib/xbim_aim/api/components_api.rb +803 -0
- data/lib/xbim_aim/api/contacts_api.rb +690 -0
- data/lib/xbim_aim/api/diagnostics_api.rb +109 -0
- data/lib/xbim_aim/api/document_files_api.rb +224 -0
- data/lib/xbim_aim/api/documents_api.rb +690 -0
- data/lib/xbim_aim/api/entities_api.rb +904 -0
- data/lib/xbim_aim/api/facilities_api.rb +690 -0
- data/lib/xbim_aim/api/issues_api.rb +690 -0
- data/lib/xbim_aim/api/jobs_api.rb +690 -0
- data/lib/xbim_aim/api/levels_api.rb +690 -0
- data/lib/xbim_aim/api/logs_api.rb +90 -0
- data/lib/xbim_aim/api/model_files_api.rb +219 -0
- data/lib/xbim_aim/api/model_mapping_api.rb +203 -0
- data/lib/xbim_aim/api/models_api.rb +1308 -0
- data/lib/xbim_aim/api/resources_api.rb +690 -0
- data/lib/xbim_aim/api/schedules_api.rb +496 -0
- data/lib/xbim_aim/api/sites_api.rb +690 -0
- data/lib/xbim_aim/api/spaces_api.rb +803 -0
- data/lib/xbim_aim/api/spares_api.rb +690 -0
- data/lib/xbim_aim/api/stats_api.rb +170 -0
- data/lib/xbim_aim/api/systems_api.rb +690 -0
- data/lib/xbim_aim/api/thumbnails_api.rb +182 -0
- data/lib/xbim_aim/api/wexbim_api.rb +849 -0
- data/lib/xbim_aim/api/zones_api.rb +690 -0
- data/lib/xbim_aim/api_client.rb +390 -0
- data/lib/xbim_aim/api_error.rb +57 -0
- data/lib/xbim_aim/configuration.rb +278 -0
- data/lib/xbim_aim/models/application.rb +277 -0
- data/lib/xbim_aim/models/assembly_diagnostics.rb +299 -0
- data/lib/xbim_aim/models/assembly_info.rb +308 -0
- data/lib/xbim_aim/models/assembly_item.rb +454 -0
- data/lib/xbim_aim/models/asset.rb +339 -0
- data/lib/xbim_aim/models/asset_create.rb +268 -0
- data/lib/xbim_aim/models/asset_edit.rb +263 -0
- data/lib/xbim_aim/models/asset_segment.rb +304 -0
- data/lib/xbim_aim/models/attribute_definition.rb +354 -0
- data/lib/xbim_aim/models/attribute_definition_create.rb +338 -0
- data/lib/xbim_aim/models/attribute_definition_edit.rb +288 -0
- data/lib/xbim_aim/models/attribute_definition_entity.rb +392 -0
- data/lib/xbim_aim/models/attribute_value.rb +333 -0
- data/lib/xbim_aim/models/attribute_value_entity.rb +272 -0
- data/lib/xbim_aim/models/cell.rb +236 -0
- data/lib/xbim_aim/models/classification_node.rb +254 -0
- data/lib/xbim_aim/models/column_definition.rb +297 -0
- data/lib/xbim_aim/models/complex_value_base.rb +261 -0
- data/lib/xbim_aim/models/component.rb +535 -0
- data/lib/xbim_aim/models/component_create.rb +283 -0
- data/lib/xbim_aim/models/component_edit.rb +248 -0
- data/lib/xbim_aim/models/component_info.rb +326 -0
- data/lib/xbim_aim/models/component_type.rb +498 -0
- data/lib/xbim_aim/models/component_type_info.rb +308 -0
- data/lib/xbim_aim/models/contact.rb +443 -0
- data/lib/xbim_aim/models/contact_entity.rb +333 -0
- data/lib/xbim_aim/models/contact_info.rb +308 -0
- data/lib/xbim_aim/models/db_update.rb +227 -0
- data/lib/xbim_aim/models/document.rb +421 -0
- data/lib/xbim_aim/models/document_create.rb +345 -0
- data/lib/xbim_aim/models/document_edit.rb +310 -0
- data/lib/xbim_aim/models/document_info.rb +308 -0
- data/lib/xbim_aim/models/entity.rb +421 -0
- data/lib/xbim_aim/models/entity_base.rb +308 -0
- data/lib/xbim_aim/models/entity_contact.rb +333 -0
- data/lib/xbim_aim/models/entity_create.rb +274 -0
- data/lib/xbim_aim/models/entity_edit.rb +239 -0
- data/lib/xbim_aim/models/entity_mapping_info.rb +299 -0
- data/lib/xbim_aim/models/entity_match_descriptor.rb +245 -0
- data/lib/xbim_aim/models/entity_match_info.rb +238 -0
- data/lib/xbim_aim/models/entity_ref.rb +281 -0
- data/lib/xbim_aim/models/facility.rb +432 -0
- data/lib/xbim_aim/models/facility_info.rb +308 -0
- data/lib/xbim_aim/models/file_upload_result.rb +300 -0
- data/lib/xbim_aim/models/footprint.rb +254 -0
- data/lib/xbim_aim/models/i_metered_resource.rb +254 -0
- data/lib/xbim_aim/models/ifc_type.rb +247 -0
- data/lib/xbim_aim/models/inline_object.rb +294 -0
- data/lib/xbim_aim/models/inline_object1.rb +294 -0
- data/lib/xbim_aim/models/inline_object2.rb +220 -0
- data/lib/xbim_aim/models/inline_object3.rb +223 -0
- data/lib/xbim_aim/models/inline_object4.rb +294 -0
- data/lib/xbim_aim/models/inline_object5.rb +294 -0
- data/lib/xbim_aim/models/issue.rb +443 -0
- data/lib/xbim_aim/models/issue_info.rb +308 -0
- data/lib/xbim_aim/models/job.rb +483 -0
- data/lib/xbim_aim/models/job_create.rb +283 -0
- data/lib/xbim_aim/models/job_edit.rb +248 -0
- data/lib/xbim_aim/models/job_info.rb +308 -0
- data/lib/xbim_aim/models/level.rb +463 -0
- data/lib/xbim_aim/models/level_create.rb +274 -0
- data/lib/xbim_aim/models/level_edit.rb +239 -0
- data/lib/xbim_aim/models/level_info.rb +308 -0
- data/lib/xbim_aim/models/mapping_message_info.rb +281 -0
- data/lib/xbim_aim/models/mapping_properties.rb +227 -0
- data/lib/xbim_aim/models/member_permission.rb +292 -0
- data/lib/xbim_aim/models/member_role.rb +320 -0
- data/lib/xbim_aim/models/model.rb +617 -0
- data/lib/xbim_aim/models/model_create.rb +318 -0
- data/lib/xbim_aim/models/model_edit.rb +284 -0
- data/lib/xbim_aim/models/model_info.rb +380 -0
- data/lib/xbim_aim/models/model_mapping.rb +363 -0
- data/lib/xbim_aim/models/model_mapping_report.rb +354 -0
- data/lib/xbim_aim/models/o_data_list_response_of_application.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_assembly_diagnostics.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_assembly_item.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_asset.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_attribute_definition.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_attribute_definition_entity.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_attribute_value.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_complex_value_base.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_component.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_component_type.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_contact.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_document.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_entity.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_entity_ref.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_facility.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_issue.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_job.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_level.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_member_permission.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_model.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_model_mapping.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_model_mapping_report.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_resource.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_role.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_row.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_schedule.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_site.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_space.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_spare.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_system_item.rb +247 -0
- data/lib/xbim_aim/models/o_data_list_response_of_zone.rb +247 -0
- data/lib/xbim_aim/models/o_data_response_of_boolean.rb +227 -0
- data/lib/xbim_aim/models/quota_status.rb +300 -0
- data/lib/xbim_aim/models/related_entity.rb +432 -0
- data/lib/xbim_aim/models/resource.rb +443 -0
- data/lib/xbim_aim/models/resource_info.rb +308 -0
- data/lib/xbim_aim/models/role.rb +331 -0
- data/lib/xbim_aim/models/role_member.rb +279 -0
- data/lib/xbim_aim/models/row.rb +229 -0
- data/lib/xbim_aim/models/schedule.rb +258 -0
- data/lib/xbim_aim/models/site.rb +432 -0
- data/lib/xbim_aim/models/space.rb +491 -0
- data/lib/xbim_aim/models/space_create.rb +283 -0
- data/lib/xbim_aim/models/space_edit.rb +248 -0
- data/lib/xbim_aim/models/space_info.rb +326 -0
- data/lib/xbim_aim/models/spare.rb +450 -0
- data/lib/xbim_aim/models/spare_create.rb +283 -0
- data/lib/xbim_aim/models/spare_edit.rb +248 -0
- data/lib/xbim_aim/models/spare_info.rb +308 -0
- data/lib/xbim_aim/models/system_info.rb +319 -0
- data/lib/xbim_aim/models/system_item.rb +454 -0
- data/lib/xbim_aim/models/user_permissions.rb +275 -0
- data/lib/xbim_aim/models/value_container.rb +308 -0
- data/lib/xbim_aim/models/zone.rb +454 -0
- data/lib/xbim_aim/models/zone_info.rb +308 -0
- data/lib/xbim_aim/version.rb +15 -0
- data/lib/xbim_aim.rb +197 -0
- data/spec/api/admin_api_spec.rb +95 -0
- data/spec/api/applications_api_spec.rb +71 -0
- data/spec/api/assemblies_api_spec.rb +160 -0
- data/spec/api/assets_api_spec.rb +203 -0
- data/spec/api/attributes_api_spec.rb +177 -0
- data/spec/api/component_types_api_spec.rb +160 -0
- data/spec/api/components_api_spec.rb +184 -0
- data/spec/api/contacts_api_spec.rb +160 -0
- data/spec/api/diagnostics_api_spec.rb +54 -0
- data/spec/api/document_files_api_spec.rb +69 -0
- data/spec/api/documents_api_spec.rb +160 -0
- data/spec/api/entities_api_spec.rb +203 -0
- data/spec/api/facilities_api_spec.rb +160 -0
- data/spec/api/issues_api_spec.rb +160 -0
- data/spec/api/jobs_api_spec.rb +160 -0
- data/spec/api/levels_api_spec.rb +160 -0
- data/spec/api/logs_api_spec.rb +47 -0
- data/spec/api/model_files_api_spec.rb +71 -0
- data/spec/api/model_mapping_api_spec.rb +71 -0
- data/spec/api/models_api_spec.rb +273 -0
- data/spec/api/resources_api_spec.rb +160 -0
- data/spec/api/schedules_api_spec.rb +126 -0
- data/spec/api/sites_api_spec.rb +160 -0
- data/spec/api/spaces_api_spec.rb +184 -0
- data/spec/api/spares_api_spec.rb +160 -0
- data/spec/api/stats_api_spec.rb +61 -0
- data/spec/api/systems_api_spec.rb +160 -0
- data/spec/api/thumbnails_api_spec.rb +63 -0
- data/spec/api/wexbim_api_spec.rb +175 -0
- data/spec/api/zones_api_spec.rb +160 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/application_spec.rb +70 -0
- data/spec/models/assembly_diagnostics_spec.rb +88 -0
- data/spec/models/assembly_info_spec.rb +94 -0
- data/spec/models/assembly_item_spec.rb +178 -0
- data/spec/models/asset_create_spec.rb +44 -0
- data/spec/models/asset_edit_spec.rb +44 -0
- data/spec/models/asset_segment_spec.rb +88 -0
- data/spec/models/asset_spec.rb +92 -0
- data/spec/models/attribute_definition_create_spec.rb +78 -0
- data/spec/models/attribute_definition_edit_spec.rb +62 -0
- data/spec/models/attribute_definition_entity_spec.rb +126 -0
- data/spec/models/attribute_definition_spec.rb +102 -0
- data/spec/models/attribute_value_entity_spec.rb +70 -0
- data/spec/models/attribute_value_spec.rb +92 -0
- data/spec/models/cell_spec.rb +46 -0
- data/spec/models/classification_node_spec.rb +58 -0
- data/spec/models/column_definition_spec.rb +68 -0
- data/spec/models/complex_value_base_spec.rb +44 -0
- data/spec/models/component_create_spec.rb +70 -0
- data/spec/models/component_edit_spec.rb +52 -0
- data/spec/models/component_info_spec.rb +106 -0
- data/spec/models/component_spec.rb +226 -0
- data/spec/models/component_type_info_spec.rb +94 -0
- data/spec/models/component_type_spec.rb +202 -0
- data/spec/models/contact_entity_spec.rb +92 -0
- data/spec/models/contact_info_spec.rb +94 -0
- data/spec/models/contact_spec.rb +172 -0
- data/spec/models/db_update_spec.rb +40 -0
- data/spec/models/document_create_spec.rb +106 -0
- data/spec/models/document_edit_spec.rb +88 -0
- data/spec/models/document_info_spec.rb +94 -0
- data/spec/models/document_spec.rb +160 -0
- data/spec/models/entity_base_spec.rb +94 -0
- data/spec/models/entity_contact_spec.rb +92 -0
- data/spec/models/entity_create_spec.rb +64 -0
- data/spec/models/entity_edit_spec.rb +46 -0
- data/spec/models/entity_mapping_info_spec.rb +88 -0
- data/spec/models/entity_match_descriptor_spec.rb +52 -0
- data/spec/models/entity_match_info_spec.rb +46 -0
- data/spec/models/entity_ref_spec.rb +76 -0
- data/spec/models/entity_spec.rb +160 -0
- data/spec/models/facility_info_spec.rb +94 -0
- data/spec/models/facility_spec.rb +166 -0
- data/spec/models/file_upload_result_spec.rb +82 -0
- data/spec/models/footprint_spec.rb +58 -0
- data/spec/models/i_metered_resource_spec.rb +58 -0
- data/spec/models/ifc_type_spec.rb +52 -0
- data/spec/models/inline_object1_spec.rb +56 -0
- data/spec/models/inline_object2_spec.rb +34 -0
- data/spec/models/inline_object3_spec.rb +34 -0
- data/spec/models/inline_object4_spec.rb +56 -0
- data/spec/models/inline_object5_spec.rb +56 -0
- data/spec/models/inline_object_spec.rb +56 -0
- data/spec/models/issue_info_spec.rb +94 -0
- data/spec/models/issue_spec.rb +172 -0
- data/spec/models/job_create_spec.rb +70 -0
- data/spec/models/job_edit_spec.rb +52 -0
- data/spec/models/job_info_spec.rb +94 -0
- data/spec/models/job_spec.rb +196 -0
- data/spec/models/level_create_spec.rb +64 -0
- data/spec/models/level_edit_spec.rb +46 -0
- data/spec/models/level_info_spec.rb +94 -0
- data/spec/models/level_spec.rb +184 -0
- data/spec/models/mapping_message_info_spec.rb +76 -0
- data/spec/models/mapping_properties_spec.rb +40 -0
- data/spec/models/member_permission_spec.rb +66 -0
- data/spec/models/member_role_spec.rb +82 -0
- data/spec/models/model_create_spec.rb +68 -0
- data/spec/models/model_edit_spec.rb +56 -0
- data/spec/models/model_info_spec.rb +142 -0
- data/spec/models/model_mapping_report_spec.rb +118 -0
- data/spec/models/model_mapping_spec.rb +124 -0
- data/spec/models/model_spec.rb +260 -0
- data/spec/models/o_data_list_response_of_application_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_assembly_diagnostics_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_assembly_item_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_asset_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_attribute_definition_entity_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_attribute_definition_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_attribute_value_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_complex_value_base_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_component_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_component_type_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_contact_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_document_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_entity_ref_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_entity_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_facility_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_issue_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_job_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_level_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_member_permission_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_model_mapping_report_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_model_mapping_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_model_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_resource_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_role_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_row_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_schedule_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_site_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_space_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_spare_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_system_item_spec.rb +52 -0
- data/spec/models/o_data_list_response_of_zone_spec.rb +52 -0
- data/spec/models/o_data_response_of_boolean_spec.rb +40 -0
- data/spec/models/quota_status_spec.rb +66 -0
- data/spec/models/related_entity_spec.rb +166 -0
- data/spec/models/resource_info_spec.rb +94 -0
- data/spec/models/resource_spec.rb +172 -0
- data/spec/models/role_member_spec.rb +56 -0
- data/spec/models/role_spec.rb +88 -0
- data/spec/models/row_spec.rb +40 -0
- data/spec/models/schedule_spec.rb +58 -0
- data/spec/models/site_spec.rb +166 -0
- data/spec/models/space_create_spec.rb +70 -0
- data/spec/models/space_edit_spec.rb +52 -0
- data/spec/models/space_info_spec.rb +106 -0
- data/spec/models/space_spec.rb +202 -0
- data/spec/models/spare_create_spec.rb +70 -0
- data/spec/models/spare_edit_spec.rb +52 -0
- data/spec/models/spare_info_spec.rb +94 -0
- data/spec/models/spare_spec.rb +178 -0
- data/spec/models/system_info_spec.rb +100 -0
- data/spec/models/system_item_spec.rb +178 -0
- data/spec/models/user_permissions_spec.rb +56 -0
- data/spec/models/value_container_spec.rb +78 -0
- data/spec/models/zone_info_spec.rb +94 -0
- data/spec/models/zone_spec.rb +178 -0
- data/spec/spec_helper.rb +111 -0
- data/xbim_aim-1.0.0.gem +0 -0
- data/xbim_aim.gemspec +38 -0
- metadata +413 -0
|
@@ -0,0 +1,803 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#XBIM Flex API v2
|
|
3
|
+
|
|
4
|
+
#This is the XBIM Flex Swagger service where you can explore the REST API for the platform.
|
|
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 XbimAim
|
|
16
|
+
class SpacesApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Adds a new document to a model entity
|
|
23
|
+
# <span style='font-size: 17px;'>Summary:</span>Adds a new document to a model entity.<br/>Return Type: <b>Document</b><br/><br/>
|
|
24
|
+
# @param asset_model_id [Integer] The model Id
|
|
25
|
+
# @param entity_id [Integer] The unique identifier for the target entity (Entity Label)
|
|
26
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
27
|
+
# @param region [String] The data center region the data resides in
|
|
28
|
+
# @param document [DocumentCreate] A document to create
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Document]
|
|
31
|
+
def spaces_add_document_by_assetmodelid_and_entityid_and_tenantid(asset_model_id, entity_id, tenant_id, region, document, opts = {})
|
|
32
|
+
data, _status_code, _headers = spaces_add_document_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, document, opts)
|
|
33
|
+
data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Adds a new document to a model entity
|
|
37
|
+
# <span style='font-size: 17px;'>Summary:</span>Adds a new document to a model entity.<br/>Return Type: <b>Document</b><br/><br/>
|
|
38
|
+
# @param asset_model_id [Integer] The model Id
|
|
39
|
+
# @param entity_id [Integer] The unique identifier for the target entity (Entity Label)
|
|
40
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
41
|
+
# @param region [String] The data center region the data resides in
|
|
42
|
+
# @param document [DocumentCreate] A document to create
|
|
43
|
+
# @param [Hash] opts the optional parameters
|
|
44
|
+
# @return [Array<(Document, Integer, Hash)>] Document data, response status code and response headers
|
|
45
|
+
def spaces_add_document_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, document, opts = {})
|
|
46
|
+
if @api_client.config.debugging
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_add_document_by_assetmodelid_and_entityid_and_tenantid ...'
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'asset_model_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && asset_model_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'asset_model_id' when calling SpacesApi.spaces_add_document_by_assetmodelid_and_entityid_and_tenantid"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'entity_id' is set
|
|
54
|
+
if @api_client.config.client_side_validation && entity_id.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'entity_id' when calling SpacesApi.spaces_add_document_by_assetmodelid_and_entityid_and_tenantid"
|
|
56
|
+
end
|
|
57
|
+
# verify the required parameter 'tenant_id' is set
|
|
58
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_add_document_by_assetmodelid_and_entityid_and_tenantid"
|
|
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 SpacesApi.spaces_add_document_by_assetmodelid_and_entityid_and_tenantid"
|
|
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
|
+
# verify the required parameter 'document' is set
|
|
71
|
+
if @api_client.config.client_side_validation && document.nil?
|
|
72
|
+
fail ArgumentError, "Missing the required parameter 'document' when calling SpacesApi.spaces_add_document_by_assetmodelid_and_entityid_and_tenantid"
|
|
73
|
+
end
|
|
74
|
+
# resource path
|
|
75
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces(AssetModelId={assetModelId}, EntityId={entityId})/DocumentEntities'.sub('{' + 'assetModelId' + '}', CGI.escape(asset_model_id.to_s)).sub('{' + 'entityId' + '}', CGI.escape(entity_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
76
|
+
|
|
77
|
+
# query parameters
|
|
78
|
+
query_params = opts[:query_params] || {}
|
|
79
|
+
|
|
80
|
+
# header parameters
|
|
81
|
+
header_params = opts[:header_params] || {}
|
|
82
|
+
# HTTP header 'Accept' (if needed)
|
|
83
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
84
|
+
# HTTP header 'Content-Type'
|
|
85
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
86
|
+
if !content_type.nil?
|
|
87
|
+
header_params['Content-Type'] = content_type
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# form parameters
|
|
91
|
+
form_params = opts[:form_params] || {}
|
|
92
|
+
|
|
93
|
+
# http body (model)
|
|
94
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(document)
|
|
95
|
+
|
|
96
|
+
# return_type
|
|
97
|
+
return_type = opts[:debug_return_type] || 'Document'
|
|
98
|
+
|
|
99
|
+
# auth_names
|
|
100
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
101
|
+
|
|
102
|
+
new_options = opts.merge(
|
|
103
|
+
:operation => :"SpacesApi.spaces_add_document_by_assetmodelid_and_entityid_and_tenantid",
|
|
104
|
+
:header_params => header_params,
|
|
105
|
+
:query_params => query_params,
|
|
106
|
+
:form_params => form_params,
|
|
107
|
+
:body => post_body,
|
|
108
|
+
:auth_names => auth_names,
|
|
109
|
+
:return_type => return_type
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
113
|
+
if @api_client.config.debugging
|
|
114
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_add_document_by_assetmodelid_and_entityid_and_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
115
|
+
end
|
|
116
|
+
return data, status_code, headers
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Get Spaces as of by date and tenantid
|
|
120
|
+
# <span style='font-size: 17px;'>Summary:</span>Return Type: <b>ODataListResponseOfEntity</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/>
|
|
121
|
+
# @param date [Time]
|
|
122
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
123
|
+
# @param region [String] The data center region the data resides in
|
|
124
|
+
# @param [Hash] opts the optional parameters
|
|
125
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
126
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
127
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
128
|
+
# @option opts [String] :orderby Sorts the results.
|
|
129
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
130
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
131
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
132
|
+
# @return [ODataListResponseOfEntity]
|
|
133
|
+
def spaces_as_of_by_date_and_tenantid(date, tenant_id, region, opts = {})
|
|
134
|
+
data, _status_code, _headers = spaces_as_of_by_date_and_tenantid_with_http_info(date, tenant_id, region, opts)
|
|
135
|
+
data
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Get Spaces as of by date and tenantid
|
|
139
|
+
# <span style='font-size: 17px;'>Summary:</span>Return Type: <b>ODataListResponseOfEntity</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/>
|
|
140
|
+
# @param date [Time]
|
|
141
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
142
|
+
# @param region [String] The data center region the data resides in
|
|
143
|
+
# @param [Hash] opts the optional parameters
|
|
144
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
145
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
146
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
147
|
+
# @option opts [String] :orderby Sorts the results.
|
|
148
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
149
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
150
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
151
|
+
# @return [Array<(ODataListResponseOfEntity, Integer, Hash)>] ODataListResponseOfEntity data, response status code and response headers
|
|
152
|
+
def spaces_as_of_by_date_and_tenantid_with_http_info(date, tenant_id, region, opts = {})
|
|
153
|
+
if @api_client.config.debugging
|
|
154
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_as_of_by_date_and_tenantid ...'
|
|
155
|
+
end
|
|
156
|
+
# verify the required parameter 'date' is set
|
|
157
|
+
if @api_client.config.client_side_validation && date.nil?
|
|
158
|
+
fail ArgumentError, "Missing the required parameter 'date' when calling SpacesApi.spaces_as_of_by_date_and_tenantid"
|
|
159
|
+
end
|
|
160
|
+
# verify the required parameter 'tenant_id' is set
|
|
161
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
162
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_as_of_by_date_and_tenantid"
|
|
163
|
+
end
|
|
164
|
+
# verify the required parameter 'region' is set
|
|
165
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
166
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling SpacesApi.spaces_as_of_by_date_and_tenantid"
|
|
167
|
+
end
|
|
168
|
+
# verify enum value
|
|
169
|
+
allowable_values = ["UK", "WestEurope", "Sandbox"]
|
|
170
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(region)
|
|
171
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
172
|
+
end
|
|
173
|
+
# resource path
|
|
174
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces/AsOf(date={date})'.sub('{' + 'date' + '}', CGI.escape(date.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
175
|
+
|
|
176
|
+
# query parameters
|
|
177
|
+
query_params = opts[:query_params] || {}
|
|
178
|
+
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
179
|
+
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
180
|
+
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
|
|
181
|
+
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
182
|
+
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
|
|
183
|
+
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
|
184
|
+
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
185
|
+
|
|
186
|
+
# header parameters
|
|
187
|
+
header_params = opts[:header_params] || {}
|
|
188
|
+
# HTTP header 'Accept' (if needed)
|
|
189
|
+
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', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
|
|
190
|
+
|
|
191
|
+
# form parameters
|
|
192
|
+
form_params = opts[:form_params] || {}
|
|
193
|
+
|
|
194
|
+
# http body (model)
|
|
195
|
+
post_body = opts[:debug_body]
|
|
196
|
+
|
|
197
|
+
# return_type
|
|
198
|
+
return_type = opts[:debug_return_type] || 'ODataListResponseOfEntity'
|
|
199
|
+
|
|
200
|
+
# auth_names
|
|
201
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
202
|
+
|
|
203
|
+
new_options = opts.merge(
|
|
204
|
+
:operation => :"SpacesApi.spaces_as_of_by_date_and_tenantid",
|
|
205
|
+
:header_params => header_params,
|
|
206
|
+
:query_params => query_params,
|
|
207
|
+
:form_params => form_params,
|
|
208
|
+
:body => post_body,
|
|
209
|
+
:auth_names => auth_names,
|
|
210
|
+
:return_type => return_type
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
214
|
+
if @api_client.config.debugging
|
|
215
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_as_of_by_date_and_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
|
+
end
|
|
217
|
+
return data, status_code, headers
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Gets the set of Components which are placed within the Geometry footprint of this Space
|
|
221
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets the set of Components which are placed within the Geometry footprint of this Space.<br/>Returns all Components with geometry contained wholly or partly within the footprint of the space, and wholly or party within the Z-axis.<br /> A 'tolerance' can be provided to extend or reduce the spaces included at the boundary of the space<br />.<br/>Return Type: <b>ODataListResponseOfComponent</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/>
|
|
222
|
+
# @param asset_model_id [Integer] The assetModel ID of the Space
|
|
223
|
+
# @param entity_id [Integer] The ID of the space entity
|
|
224
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
225
|
+
# @param region [String] The data center region the data resides in
|
|
226
|
+
# @param [Hash] opts the optional parameters
|
|
227
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
228
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
229
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
230
|
+
# @option opts [String] :orderby Sorts the results.
|
|
231
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
232
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
233
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
234
|
+
# @option opts [Float] :tolerance Tolerance in millimeters. Can be negative. Default: 10mm (default to 10.0)
|
|
235
|
+
# @option opts [Boolean] :in_same_asset Limit the results to spaces in the same Asset (default to true)
|
|
236
|
+
# @return [ODataListResponseOfComponent]
|
|
237
|
+
def spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid(asset_model_id, entity_id, tenant_id, region, opts = {})
|
|
238
|
+
data, _status_code, _headers = spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, opts)
|
|
239
|
+
data
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Gets the set of Components which are placed within the Geometry footprint of this Space
|
|
243
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets the set of Components which are placed within the Geometry footprint of this Space.<br/>Returns all Components with geometry contained wholly or partly within the footprint of the space, and wholly or party within the Z-axis.<br /> A 'tolerance' can be provided to extend or reduce the spaces included at the boundary of the space<br />.<br/>Return Type: <b>ODataListResponseOfComponent</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/>
|
|
244
|
+
# @param asset_model_id [Integer] The assetModel ID of the Space
|
|
245
|
+
# @param entity_id [Integer] The ID of the space entity
|
|
246
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
247
|
+
# @param region [String] The data center region the data resides in
|
|
248
|
+
# @param [Hash] opts the optional parameters
|
|
249
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
250
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
251
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
252
|
+
# @option opts [String] :orderby Sorts the results.
|
|
253
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
254
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
255
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
256
|
+
# @option opts [Float] :tolerance Tolerance in millimeters. Can be negative. Default: 10mm
|
|
257
|
+
# @option opts [Boolean] :in_same_asset Limit the results to spaces in the same Asset
|
|
258
|
+
# @return [Array<(ODataListResponseOfComponent, Integer, Hash)>] ODataListResponseOfComponent data, response status code and response headers
|
|
259
|
+
def spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, opts = {})
|
|
260
|
+
if @api_client.config.debugging
|
|
261
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid ...'
|
|
262
|
+
end
|
|
263
|
+
# verify the required parameter 'asset_model_id' is set
|
|
264
|
+
if @api_client.config.client_side_validation && asset_model_id.nil?
|
|
265
|
+
fail ArgumentError, "Missing the required parameter 'asset_model_id' when calling SpacesApi.spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid"
|
|
266
|
+
end
|
|
267
|
+
# verify the required parameter 'entity_id' is set
|
|
268
|
+
if @api_client.config.client_side_validation && entity_id.nil?
|
|
269
|
+
fail ArgumentError, "Missing the required parameter 'entity_id' when calling SpacesApi.spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid"
|
|
270
|
+
end
|
|
271
|
+
# verify the required parameter 'tenant_id' is set
|
|
272
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
273
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid"
|
|
274
|
+
end
|
|
275
|
+
# verify the required parameter 'region' is set
|
|
276
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
277
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling SpacesApi.spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid"
|
|
278
|
+
end
|
|
279
|
+
# verify enum value
|
|
280
|
+
allowable_values = ["UK", "WestEurope", "Sandbox"]
|
|
281
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(region)
|
|
282
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
283
|
+
end
|
|
284
|
+
# resource path
|
|
285
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces(AssetModelId={assetModelId}, EntityId={entityId})/ContainedComponents'.sub('{' + 'assetModelId' + '}', CGI.escape(asset_model_id.to_s)).sub('{' + 'entityId' + '}', CGI.escape(entity_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
286
|
+
|
|
287
|
+
# query parameters
|
|
288
|
+
query_params = opts[:query_params] || {}
|
|
289
|
+
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
290
|
+
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
291
|
+
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
|
|
292
|
+
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
293
|
+
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
|
|
294
|
+
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
|
295
|
+
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
296
|
+
query_params[:'tolerance'] = opts[:'tolerance'] if !opts[:'tolerance'].nil?
|
|
297
|
+
query_params[:'inSameAsset'] = opts[:'in_same_asset'] if !opts[:'in_same_asset'].nil?
|
|
298
|
+
|
|
299
|
+
# header parameters
|
|
300
|
+
header_params = opts[:header_params] || {}
|
|
301
|
+
# HTTP header 'Accept' (if needed)
|
|
302
|
+
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', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
|
|
303
|
+
|
|
304
|
+
# form parameters
|
|
305
|
+
form_params = opts[:form_params] || {}
|
|
306
|
+
|
|
307
|
+
# http body (model)
|
|
308
|
+
post_body = opts[:debug_body]
|
|
309
|
+
|
|
310
|
+
# return_type
|
|
311
|
+
return_type = opts[:debug_return_type] || 'ODataListResponseOfComponent'
|
|
312
|
+
|
|
313
|
+
# auth_names
|
|
314
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
315
|
+
|
|
316
|
+
new_options = opts.merge(
|
|
317
|
+
:operation => :"SpacesApi.spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid",
|
|
318
|
+
:header_params => header_params,
|
|
319
|
+
:query_params => query_params,
|
|
320
|
+
:form_params => form_params,
|
|
321
|
+
:body => post_body,
|
|
322
|
+
:auth_names => auth_names,
|
|
323
|
+
:return_type => return_type
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
327
|
+
if @api_client.config.debugging
|
|
328
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_contained_components_by_assetmodelid_and_entityid_and_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
329
|
+
end
|
|
330
|
+
return data, status_code, headers
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Gets the Properties available on this Model
|
|
334
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets the Properties available on this Model.<br/>Return Type: <b>ODataListResponseOfAttributeDefinition</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/>
|
|
335
|
+
# @param asset_id [Integer] The unique key for the asset
|
|
336
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
337
|
+
# @param region [String] The data center region the data resides in
|
|
338
|
+
# @param [Hash] opts the optional parameters
|
|
339
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
340
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
341
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
342
|
+
# @option opts [String] :orderby Sorts the results.
|
|
343
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
344
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
345
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
346
|
+
# @return [ODataListResponseOfAttributeDefinition]
|
|
347
|
+
def spaces_get_available_properties_by_assetid_and_tenantid(asset_id, tenant_id, region, opts = {})
|
|
348
|
+
data, _status_code, _headers = spaces_get_available_properties_by_assetid_and_tenantid_with_http_info(asset_id, tenant_id, region, opts)
|
|
349
|
+
data
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Gets the Properties available on this Model
|
|
353
|
+
# <span style='font-size: 17px;'>Summary:</span>Gets the Properties available on this Model.<br/>Return Type: <b>ODataListResponseOfAttributeDefinition</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/>
|
|
354
|
+
# @param asset_id [Integer] The unique key for the asset
|
|
355
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
356
|
+
# @param region [String] The data center region the data resides in
|
|
357
|
+
# @param [Hash] opts the optional parameters
|
|
358
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
359
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
360
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
361
|
+
# @option opts [String] :orderby Sorts the results.
|
|
362
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
363
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
364
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
365
|
+
# @return [Array<(ODataListResponseOfAttributeDefinition, Integer, Hash)>] ODataListResponseOfAttributeDefinition data, response status code and response headers
|
|
366
|
+
def spaces_get_available_properties_by_assetid_and_tenantid_with_http_info(asset_id, tenant_id, region, opts = {})
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_get_available_properties_by_assetid_and_tenantid ...'
|
|
369
|
+
end
|
|
370
|
+
# verify the required parameter 'asset_id' is set
|
|
371
|
+
if @api_client.config.client_side_validation && asset_id.nil?
|
|
372
|
+
fail ArgumentError, "Missing the required parameter 'asset_id' when calling SpacesApi.spaces_get_available_properties_by_assetid_and_tenantid"
|
|
373
|
+
end
|
|
374
|
+
# verify the required parameter 'tenant_id' is set
|
|
375
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
376
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_get_available_properties_by_assetid_and_tenantid"
|
|
377
|
+
end
|
|
378
|
+
# verify the required parameter 'region' is set
|
|
379
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
380
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling SpacesApi.spaces_get_available_properties_by_assetid_and_tenantid"
|
|
381
|
+
end
|
|
382
|
+
# verify enum value
|
|
383
|
+
allowable_values = ["UK", "WestEurope", "Sandbox"]
|
|
384
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(region)
|
|
385
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
386
|
+
end
|
|
387
|
+
# resource path
|
|
388
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces/GetAvailableProperties(assetId={assetId})'.sub('{' + 'assetId' + '}', CGI.escape(asset_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
389
|
+
|
|
390
|
+
# query parameters
|
|
391
|
+
query_params = opts[:query_params] || {}
|
|
392
|
+
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
393
|
+
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
394
|
+
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
|
|
395
|
+
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
396
|
+
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
|
|
397
|
+
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
|
398
|
+
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
399
|
+
|
|
400
|
+
# header parameters
|
|
401
|
+
header_params = opts[:header_params] || {}
|
|
402
|
+
# HTTP header 'Accept' (if needed)
|
|
403
|
+
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', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
|
|
404
|
+
|
|
405
|
+
# form parameters
|
|
406
|
+
form_params = opts[:form_params] || {}
|
|
407
|
+
|
|
408
|
+
# http body (model)
|
|
409
|
+
post_body = opts[:debug_body]
|
|
410
|
+
|
|
411
|
+
# return_type
|
|
412
|
+
return_type = opts[:debug_return_type] || 'ODataListResponseOfAttributeDefinition'
|
|
413
|
+
|
|
414
|
+
# auth_names
|
|
415
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
416
|
+
|
|
417
|
+
new_options = opts.merge(
|
|
418
|
+
:operation => :"SpacesApi.spaces_get_available_properties_by_assetid_and_tenantid",
|
|
419
|
+
:header_params => header_params,
|
|
420
|
+
:query_params => query_params,
|
|
421
|
+
:form_params => form_params,
|
|
422
|
+
:body => post_body,
|
|
423
|
+
:auth_names => auth_names,
|
|
424
|
+
:return_type => return_type
|
|
425
|
+
)
|
|
426
|
+
|
|
427
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
428
|
+
if @api_client.config.debugging
|
|
429
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_get_available_properties_by_assetid_and_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
430
|
+
end
|
|
431
|
+
return data, status_code, headers
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# Returns the EntitySet Spaces
|
|
435
|
+
# <span style='font-size: 17px;'>Summary:</span>Returns the EntitySet Spaces.<br/>Return Type: <b>ODataListResponseOfSpace</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/>
|
|
436
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
437
|
+
# @param region [String] The data center region the data resides in
|
|
438
|
+
# @param [Hash] opts the optional parameters
|
|
439
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
440
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
441
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
442
|
+
# @option opts [String] :orderby Sorts the results.
|
|
443
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
444
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
445
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
446
|
+
# @return [ODataListResponseOfSpace]
|
|
447
|
+
def spaces_get_by_tenantid(tenant_id, region, opts = {})
|
|
448
|
+
data, _status_code, _headers = spaces_get_by_tenantid_with_http_info(tenant_id, region, opts)
|
|
449
|
+
data
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Returns the EntitySet Spaces
|
|
453
|
+
# <span style='font-size: 17px;'>Summary:</span>Returns the EntitySet Spaces.<br/>Return Type: <b>ODataListResponseOfSpace</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/>
|
|
454
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
455
|
+
# @param region [String] The data center region the data resides in
|
|
456
|
+
# @param [Hash] opts the optional parameters
|
|
457
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
458
|
+
# @option opts [String] :filter Filters the results, based on a Boolean condition.
|
|
459
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
460
|
+
# @option opts [String] :orderby Sorts the results.
|
|
461
|
+
# @option opts [Integer] :top Returns only the first n results.
|
|
462
|
+
# @option opts [Integer] :skip Skips the first n results.
|
|
463
|
+
# @option opts [Boolean] :count Includes a count of the matching results in the response.
|
|
464
|
+
# @return [Array<(ODataListResponseOfSpace, Integer, Hash)>] ODataListResponseOfSpace data, response status code and response headers
|
|
465
|
+
def spaces_get_by_tenantid_with_http_info(tenant_id, region, opts = {})
|
|
466
|
+
if @api_client.config.debugging
|
|
467
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_get_by_tenantid ...'
|
|
468
|
+
end
|
|
469
|
+
# verify the required parameter 'tenant_id' is set
|
|
470
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
471
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_get_by_tenantid"
|
|
472
|
+
end
|
|
473
|
+
# verify the required parameter 'region' is set
|
|
474
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
475
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling SpacesApi.spaces_get_by_tenantid"
|
|
476
|
+
end
|
|
477
|
+
# verify enum value
|
|
478
|
+
allowable_values = ["UK", "WestEurope", "Sandbox"]
|
|
479
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(region)
|
|
480
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
481
|
+
end
|
|
482
|
+
# resource path
|
|
483
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
484
|
+
|
|
485
|
+
# query parameters
|
|
486
|
+
query_params = opts[:query_params] || {}
|
|
487
|
+
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
488
|
+
query_params[:'$filter'] = opts[:'filter'] if !opts[:'filter'].nil?
|
|
489
|
+
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
|
|
490
|
+
query_params[:'$orderby'] = opts[:'orderby'] if !opts[:'orderby'].nil?
|
|
491
|
+
query_params[:'$top'] = opts[:'top'] if !opts[:'top'].nil?
|
|
492
|
+
query_params[:'$skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
|
493
|
+
query_params[:'$count'] = opts[:'count'] if !opts[:'count'].nil?
|
|
494
|
+
|
|
495
|
+
# header parameters
|
|
496
|
+
header_params = opts[:header_params] || {}
|
|
497
|
+
# HTTP header 'Accept' (if needed)
|
|
498
|
+
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', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'])
|
|
499
|
+
|
|
500
|
+
# form parameters
|
|
501
|
+
form_params = opts[:form_params] || {}
|
|
502
|
+
|
|
503
|
+
# http body (model)
|
|
504
|
+
post_body = opts[:debug_body]
|
|
505
|
+
|
|
506
|
+
# return_type
|
|
507
|
+
return_type = opts[:debug_return_type] || 'ODataListResponseOfSpace'
|
|
508
|
+
|
|
509
|
+
# auth_names
|
|
510
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
511
|
+
|
|
512
|
+
new_options = opts.merge(
|
|
513
|
+
:operation => :"SpacesApi.spaces_get_by_tenantid",
|
|
514
|
+
:header_params => header_params,
|
|
515
|
+
:query_params => query_params,
|
|
516
|
+
:form_params => form_params,
|
|
517
|
+
:body => post_body,
|
|
518
|
+
:auth_names => auth_names,
|
|
519
|
+
:return_type => return_type
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
523
|
+
if @api_client.config.debugging
|
|
524
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_get_by_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
525
|
+
end
|
|
526
|
+
return data, status_code, headers
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# Get Spaces single entity by assetmodelid, entityid and tenantid
|
|
530
|
+
# <span style='font-size: 17px;'>Summary:</span>Return Type: <b>Space</b><br/><br/>
|
|
531
|
+
# @param asset_model_id [Integer]
|
|
532
|
+
# @param entity_id [Integer]
|
|
533
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
534
|
+
# @param region [String] The data center region the data resides in
|
|
535
|
+
# @param [Hash] opts the optional parameters
|
|
536
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
537
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
538
|
+
# @return [Space]
|
|
539
|
+
def spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid(asset_model_id, entity_id, tenant_id, region, opts = {})
|
|
540
|
+
data, _status_code, _headers = spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, opts)
|
|
541
|
+
data
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Get Spaces single entity by assetmodelid, entityid and tenantid
|
|
545
|
+
# <span style='font-size: 17px;'>Summary:</span>Return Type: <b>Space</b><br/><br/>
|
|
546
|
+
# @param asset_model_id [Integer]
|
|
547
|
+
# @param entity_id [Integer]
|
|
548
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
549
|
+
# @param region [String] The data center region the data resides in
|
|
550
|
+
# @param [Hash] opts the optional parameters
|
|
551
|
+
# @option opts [String] :expand Expands related entities inline.
|
|
552
|
+
# @option opts [String] :select Selects which properties to include in the response.
|
|
553
|
+
# @return [Array<(Space, Integer, Hash)>] Space data, response status code and response headers
|
|
554
|
+
def spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, opts = {})
|
|
555
|
+
if @api_client.config.debugging
|
|
556
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid ...'
|
|
557
|
+
end
|
|
558
|
+
# verify the required parameter 'asset_model_id' is set
|
|
559
|
+
if @api_client.config.client_side_validation && asset_model_id.nil?
|
|
560
|
+
fail ArgumentError, "Missing the required parameter 'asset_model_id' when calling SpacesApi.spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid"
|
|
561
|
+
end
|
|
562
|
+
# verify the required parameter 'entity_id' is set
|
|
563
|
+
if @api_client.config.client_side_validation && entity_id.nil?
|
|
564
|
+
fail ArgumentError, "Missing the required parameter 'entity_id' when calling SpacesApi.spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid"
|
|
565
|
+
end
|
|
566
|
+
# verify the required parameter 'tenant_id' is set
|
|
567
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
568
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid"
|
|
569
|
+
end
|
|
570
|
+
# verify the required parameter 'region' is set
|
|
571
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
572
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling SpacesApi.spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid"
|
|
573
|
+
end
|
|
574
|
+
# verify enum value
|
|
575
|
+
allowable_values = ["UK", "WestEurope", "Sandbox"]
|
|
576
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(region)
|
|
577
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
578
|
+
end
|
|
579
|
+
# resource path
|
|
580
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces(AssetModelId={assetModelId}, EntityId={entityId})'.sub('{' + 'assetModelId' + '}', CGI.escape(asset_model_id.to_s)).sub('{' + 'entityId' + '}', CGI.escape(entity_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
581
|
+
|
|
582
|
+
# query parameters
|
|
583
|
+
query_params = opts[:query_params] || {}
|
|
584
|
+
query_params[:'$expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
585
|
+
query_params[:'$select'] = opts[:'select'] if !opts[:'select'].nil?
|
|
586
|
+
|
|
587
|
+
# header parameters
|
|
588
|
+
header_params = opts[:header_params] || {}
|
|
589
|
+
# HTTP header 'Accept' (if needed)
|
|
590
|
+
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'])
|
|
591
|
+
|
|
592
|
+
# form parameters
|
|
593
|
+
form_params = opts[:form_params] || {}
|
|
594
|
+
|
|
595
|
+
# http body (model)
|
|
596
|
+
post_body = opts[:debug_body]
|
|
597
|
+
|
|
598
|
+
# return_type
|
|
599
|
+
return_type = opts[:debug_return_type] || 'Space'
|
|
600
|
+
|
|
601
|
+
# auth_names
|
|
602
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
603
|
+
|
|
604
|
+
new_options = opts.merge(
|
|
605
|
+
:operation => :"SpacesApi.spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid",
|
|
606
|
+
:header_params => header_params,
|
|
607
|
+
:query_params => query_params,
|
|
608
|
+
:form_params => form_params,
|
|
609
|
+
:body => post_body,
|
|
610
|
+
:auth_names => auth_names,
|
|
611
|
+
:return_type => return_type
|
|
612
|
+
)
|
|
613
|
+
|
|
614
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
615
|
+
if @api_client.config.debugging
|
|
616
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_get_single_entity_by_assetmodelid_and_entityid_and_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
617
|
+
end
|
|
618
|
+
return data, status_code, headers
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# Edit an existing space
|
|
622
|
+
# <span style='font-size: 17px;'>Summary:</span>Edit an existing space.<br/>Return Type: <b>Entity</b><br/><br/>
|
|
623
|
+
# @param asset_model_id [Integer]
|
|
624
|
+
# @param entity_id [Integer]
|
|
625
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
626
|
+
# @param region [String] The data center region the data resides in
|
|
627
|
+
# @param patch [SpaceEdit]
|
|
628
|
+
# @param [Hash] opts the optional parameters
|
|
629
|
+
# @return [Entity]
|
|
630
|
+
def spaces_patch_by_assetmodelid_and_entityid_and_tenantid(asset_model_id, entity_id, tenant_id, region, patch, opts = {})
|
|
631
|
+
data, _status_code, _headers = spaces_patch_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, patch, opts)
|
|
632
|
+
data
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
# Edit an existing space
|
|
636
|
+
# <span style='font-size: 17px;'>Summary:</span>Edit an existing space.<br/>Return Type: <b>Entity</b><br/><br/>
|
|
637
|
+
# @param asset_model_id [Integer]
|
|
638
|
+
# @param entity_id [Integer]
|
|
639
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
640
|
+
# @param region [String] The data center region the data resides in
|
|
641
|
+
# @param patch [SpaceEdit]
|
|
642
|
+
# @param [Hash] opts the optional parameters
|
|
643
|
+
# @return [Array<(Entity, Integer, Hash)>] Entity data, response status code and response headers
|
|
644
|
+
def spaces_patch_by_assetmodelid_and_entityid_and_tenantid_with_http_info(asset_model_id, entity_id, tenant_id, region, patch, opts = {})
|
|
645
|
+
if @api_client.config.debugging
|
|
646
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_patch_by_assetmodelid_and_entityid_and_tenantid ...'
|
|
647
|
+
end
|
|
648
|
+
# verify the required parameter 'asset_model_id' is set
|
|
649
|
+
if @api_client.config.client_side_validation && asset_model_id.nil?
|
|
650
|
+
fail ArgumentError, "Missing the required parameter 'asset_model_id' when calling SpacesApi.spaces_patch_by_assetmodelid_and_entityid_and_tenantid"
|
|
651
|
+
end
|
|
652
|
+
# verify the required parameter 'entity_id' is set
|
|
653
|
+
if @api_client.config.client_side_validation && entity_id.nil?
|
|
654
|
+
fail ArgumentError, "Missing the required parameter 'entity_id' when calling SpacesApi.spaces_patch_by_assetmodelid_and_entityid_and_tenantid"
|
|
655
|
+
end
|
|
656
|
+
# verify the required parameter 'tenant_id' is set
|
|
657
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
658
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_patch_by_assetmodelid_and_entityid_and_tenantid"
|
|
659
|
+
end
|
|
660
|
+
# verify the required parameter 'region' is set
|
|
661
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
662
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling SpacesApi.spaces_patch_by_assetmodelid_and_entityid_and_tenantid"
|
|
663
|
+
end
|
|
664
|
+
# verify enum value
|
|
665
|
+
allowable_values = ["UK", "WestEurope", "Sandbox"]
|
|
666
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(region)
|
|
667
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
668
|
+
end
|
|
669
|
+
# verify the required parameter 'patch' is set
|
|
670
|
+
if @api_client.config.client_side_validation && patch.nil?
|
|
671
|
+
fail ArgumentError, "Missing the required parameter 'patch' when calling SpacesApi.spaces_patch_by_assetmodelid_and_entityid_and_tenantid"
|
|
672
|
+
end
|
|
673
|
+
# resource path
|
|
674
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces(AssetModelId={AssetModelId}, EntityId={EntityId})'.sub('{' + 'AssetModelId' + '}', CGI.escape(asset_model_id.to_s)).sub('{' + 'EntityId' + '}', CGI.escape(entity_id.to_s)).sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
675
|
+
|
|
676
|
+
# query parameters
|
|
677
|
+
query_params = opts[:query_params] || {}
|
|
678
|
+
|
|
679
|
+
# header parameters
|
|
680
|
+
header_params = opts[:header_params] || {}
|
|
681
|
+
# HTTP header 'Accept' (if needed)
|
|
682
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
683
|
+
# HTTP header 'Content-Type'
|
|
684
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
685
|
+
if !content_type.nil?
|
|
686
|
+
header_params['Content-Type'] = content_type
|
|
687
|
+
end
|
|
688
|
+
|
|
689
|
+
# form parameters
|
|
690
|
+
form_params = opts[:form_params] || {}
|
|
691
|
+
|
|
692
|
+
# http body (model)
|
|
693
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(patch)
|
|
694
|
+
|
|
695
|
+
# return_type
|
|
696
|
+
return_type = opts[:debug_return_type] || 'Entity'
|
|
697
|
+
|
|
698
|
+
# auth_names
|
|
699
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
700
|
+
|
|
701
|
+
new_options = opts.merge(
|
|
702
|
+
:operation => :"SpacesApi.spaces_patch_by_assetmodelid_and_entityid_and_tenantid",
|
|
703
|
+
:header_params => header_params,
|
|
704
|
+
:query_params => query_params,
|
|
705
|
+
:form_params => form_params,
|
|
706
|
+
:body => post_body,
|
|
707
|
+
:auth_names => auth_names,
|
|
708
|
+
:return_type => return_type
|
|
709
|
+
)
|
|
710
|
+
|
|
711
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
712
|
+
if @api_client.config.debugging
|
|
713
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_patch_by_assetmodelid_and_entityid_and_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
714
|
+
end
|
|
715
|
+
return data, status_code, headers
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
# Adds a new Space to a model
|
|
719
|
+
# <span style='font-size: 17px;'>Summary:</span>Adds a new Space to a model.<br/>Return Type: <b>Space</b><br/><br/>
|
|
720
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
721
|
+
# @param region [String] The data center region the data resides in
|
|
722
|
+
# @param space [SpaceCreate] The entity to post
|
|
723
|
+
# @param [Hash] opts the optional parameters
|
|
724
|
+
# @return [Space]
|
|
725
|
+
def spaces_post_by_tenantid(tenant_id, region, space, opts = {})
|
|
726
|
+
data, _status_code, _headers = spaces_post_by_tenantid_with_http_info(tenant_id, region, space, opts)
|
|
727
|
+
data
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
# Adds a new Space to a model
|
|
731
|
+
# <span style='font-size: 17px;'>Summary:</span>Adds a new Space to a model.<br/>Return Type: <b>Space</b><br/><br/>
|
|
732
|
+
# @param tenant_id [String] The unique Tenant ID (UUID or Identifier string)
|
|
733
|
+
# @param region [String] The data center region the data resides in
|
|
734
|
+
# @param space [SpaceCreate] The entity to post
|
|
735
|
+
# @param [Hash] opts the optional parameters
|
|
736
|
+
# @return [Array<(Space, Integer, Hash)>] Space data, response status code and response headers
|
|
737
|
+
def spaces_post_by_tenantid_with_http_info(tenant_id, region, space, opts = {})
|
|
738
|
+
if @api_client.config.debugging
|
|
739
|
+
@api_client.config.logger.debug 'Calling API: SpacesApi.spaces_post_by_tenantid ...'
|
|
740
|
+
end
|
|
741
|
+
# verify the required parameter 'tenant_id' is set
|
|
742
|
+
if @api_client.config.client_side_validation && tenant_id.nil?
|
|
743
|
+
fail ArgumentError, "Missing the required parameter 'tenant_id' when calling SpacesApi.spaces_post_by_tenantid"
|
|
744
|
+
end
|
|
745
|
+
# verify the required parameter 'region' is set
|
|
746
|
+
if @api_client.config.client_side_validation && region.nil?
|
|
747
|
+
fail ArgumentError, "Missing the required parameter 'region' when calling SpacesApi.spaces_post_by_tenantid"
|
|
748
|
+
end
|
|
749
|
+
# verify enum value
|
|
750
|
+
allowable_values = ["UK", "WestEurope", "Sandbox"]
|
|
751
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(region)
|
|
752
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{allowable_values}"
|
|
753
|
+
end
|
|
754
|
+
# verify the required parameter 'space' is set
|
|
755
|
+
if @api_client.config.client_side_validation && space.nil?
|
|
756
|
+
fail ArgumentError, "Missing the required parameter 'space' when calling SpacesApi.spaces_post_by_tenantid"
|
|
757
|
+
end
|
|
758
|
+
# resource path
|
|
759
|
+
local_var_path = '/{region}/aim/2.0/{tenantId}/Spaces'.sub('{' + 'tenantId' + '}', CGI.escape(tenant_id.to_s)).sub('{' + 'region' + '}', CGI.escape(region.to_s))
|
|
760
|
+
|
|
761
|
+
# query parameters
|
|
762
|
+
query_params = opts[:query_params] || {}
|
|
763
|
+
|
|
764
|
+
# header parameters
|
|
765
|
+
header_params = opts[:header_params] || {}
|
|
766
|
+
# HTTP header 'Accept' (if needed)
|
|
767
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
768
|
+
# HTTP header 'Content-Type'
|
|
769
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
770
|
+
if !content_type.nil?
|
|
771
|
+
header_params['Content-Type'] = content_type
|
|
772
|
+
end
|
|
773
|
+
|
|
774
|
+
# form parameters
|
|
775
|
+
form_params = opts[:form_params] || {}
|
|
776
|
+
|
|
777
|
+
# http body (model)
|
|
778
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(space)
|
|
779
|
+
|
|
780
|
+
# return_type
|
|
781
|
+
return_type = opts[:debug_return_type] || 'Space'
|
|
782
|
+
|
|
783
|
+
# auth_names
|
|
784
|
+
auth_names = opts[:debug_auth_names] || ['oauth2']
|
|
785
|
+
|
|
786
|
+
new_options = opts.merge(
|
|
787
|
+
:operation => :"SpacesApi.spaces_post_by_tenantid",
|
|
788
|
+
:header_params => header_params,
|
|
789
|
+
:query_params => query_params,
|
|
790
|
+
:form_params => form_params,
|
|
791
|
+
:body => post_body,
|
|
792
|
+
:auth_names => auth_names,
|
|
793
|
+
:return_type => return_type
|
|
794
|
+
)
|
|
795
|
+
|
|
796
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
797
|
+
if @api_client.config.debugging
|
|
798
|
+
@api_client.config.logger.debug "API called: SpacesApi#spaces_post_by_tenantid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
799
|
+
end
|
|
800
|
+
return data, status_code, headers
|
|
801
|
+
end
|
|
802
|
+
end
|
|
803
|
+
end
|