|
89 | 89 | from bimdata_api_client.model.system_request import SystemRequest |
90 | 90 | from bimdata_api_client.model.unit import Unit |
91 | 91 | from bimdata_api_client.model.unit_request import UnitRequest |
| 92 | +from bimdata_api_client.model.xkt_file import XktFile |
92 | 93 | from bimdata_api_client.model.zone import Zone |
93 | 94 | from bimdata_api_client.model.zone_request import ZoneRequest |
94 | 95 | from bimdata_api_client.model.zone_space import ZoneSpace |
@@ -3126,6 +3127,93 @@ def __init__(self, api_client=None): |
3126 | 3127 | }, |
3127 | 3128 | api_client=api_client |
3128 | 3129 | ) |
| 3130 | + self.create_xkt_file_deprecated_endpoint = _Endpoint( |
| 3131 | + settings={ |
| 3132 | + 'response_type': (XktFile,), |
| 3133 | + 'auth': [ |
| 3134 | + 'ApiKey', |
| 3135 | + 'BIMData_Connect', |
| 3136 | + 'BIMData_Connect', |
| 3137 | + 'Bearer' |
| 3138 | + ], |
| 3139 | + 'endpoint_path': '/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/xkt-file', |
| 3140 | + 'operation_id': 'create_xkt_file_deprecated', |
| 3141 | + 'http_method': 'POST', |
| 3142 | + 'servers': None, |
| 3143 | + }, |
| 3144 | + params_map={ |
| 3145 | + 'all': [ |
| 3146 | + 'cloud_pk', |
| 3147 | + 'id', |
| 3148 | + 'project_pk', |
| 3149 | + 'version', |
| 3150 | + 'file', |
| 3151 | + ], |
| 3152 | + 'required': [ |
| 3153 | + 'cloud_pk', |
| 3154 | + 'id', |
| 3155 | + 'project_pk', |
| 3156 | + 'version', |
| 3157 | + 'file', |
| 3158 | + ], |
| 3159 | + 'nullable': [ |
| 3160 | + ], |
| 3161 | + 'enum': [ |
| 3162 | + ], |
| 3163 | + 'validation': [ |
| 3164 | + 'version', |
| 3165 | + ] |
| 3166 | + }, |
| 3167 | + root_map={ |
| 3168 | + 'validations': { |
| 3169 | + ('version',): { |
| 3170 | + |
| 3171 | + 'inclusive_maximum': 2147483647, |
| 3172 | + 'inclusive_minimum': 0, |
| 3173 | + }, |
| 3174 | + }, |
| 3175 | + 'allowed_values': { |
| 3176 | + }, |
| 3177 | + 'openapi_types': { |
| 3178 | + 'cloud_pk': |
| 3179 | + (int,), |
| 3180 | + 'id': |
| 3181 | + (int,), |
| 3182 | + 'project_pk': |
| 3183 | + (int,), |
| 3184 | + 'version': |
| 3185 | + (int,), |
| 3186 | + 'file': |
| 3187 | + (file_type,), |
| 3188 | + }, |
| 3189 | + 'attribute_map': { |
| 3190 | + 'cloud_pk': 'cloud_pk', |
| 3191 | + 'id': 'id', |
| 3192 | + 'project_pk': 'project_pk', |
| 3193 | + 'version': 'version', |
| 3194 | + 'file': 'file', |
| 3195 | + }, |
| 3196 | + 'location_map': { |
| 3197 | + 'cloud_pk': 'path', |
| 3198 | + 'id': 'path', |
| 3199 | + 'project_pk': 'path', |
| 3200 | + 'version': 'form', |
| 3201 | + 'file': 'form', |
| 3202 | + }, |
| 3203 | + 'collection_format_map': { |
| 3204 | + } |
| 3205 | + }, |
| 3206 | + headers_map={ |
| 3207 | + 'accept': [ |
| 3208 | + 'application/json' |
| 3209 | + ], |
| 3210 | + 'content_type': [ |
| 3211 | + 'multipart/form-data', |
| 3212 | + 'application/x-www-form-urlencoded' |
| 3213 | + ] |
| 3214 | + }, |
| 3215 | + api_client=api_client |
| 3216 | + ) |
3129 | 3217 | self.create_zone_deprecated_endpoint = _Endpoint( |
3130 | 3218 | settings={ |
3131 | 3219 | 'response_type': ([Zone],), |
@@ -13206,7 +13294,7 @@ def create_access_token_deprecated( |
13206 | 13294 | ): |
13207 | 13295 | """Create a token for this model # noqa: E501 |
13208 | 13296 |
|
13209 | | - Tokens are read_only by default and are valid 1 day Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
| 13297 | + DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
13210 | 13298 | This method makes a synchronous HTTP request by default. To make an |
13211 | 13299 | asynchronous HTTP request, please pass async_req=True |
13212 | 13300 |
|
@@ -15569,6 +15657,100 @@ def create_tileset_deprecated( |
15569 | 15657 | project_pk |
15570 | 15658 | return self.create_tileset_deprecated_endpoint.call_with_http_info(**kwargs) |
15571 | 15659 |
|
| 15660 | + def create_xkt_file_deprecated( |
| 15661 | + self, |
| 15662 | + cloud_pk, |
| 15663 | + id, |
| 15664 | + project_pk, |
| 15665 | + version, |
| 15666 | + file, |
| 15667 | + **kwargs |
| 15668 | + ): |
| 15669 | + """Create an xkt file for the model. Overrides existing file with same version # noqa: E501 |
| 15670 | + |
| 15671 | + This route does not accept JSON, only files as x-www-form-urlencoded Required scopes: ifc:write, model:write # noqa: E501 |
| 15672 | + This method makes a synchronous HTTP request by default. To make an |
| 15673 | + asynchronous HTTP request, please pass async_req=True |
| 15674 | + |
| 15675 | + >>> thread = api.create_xkt_file_deprecated(cloud_pk, id, project_pk, version, file, async_req=True) |
| 15676 | + >>> result = thread.get() |
| 15677 | + |
| 15678 | + Args: |
| 15679 | + cloud_pk (int): |
| 15680 | + id (int): A unique integer value identifying this model. |
| 15681 | + project_pk (int): |
| 15682 | + version (int): |
| 15683 | + file (file_type): |
| 15684 | + |
| 15685 | + Keyword Args: |
| 15686 | + _return_http_data_only (bool): response data without head status |
| 15687 | + code and headers. Default is True. |
| 15688 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 15689 | + will be returned without reading/decoding response data. |
| 15690 | + Default is True. |
| 15691 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 15692 | + one number provided, it will be total request timeout. It can also |
| 15693 | + be a pair (tuple) of (connection, read) timeouts. |
| 15694 | + Default is None. |
| 15695 | + _check_input_type (bool): specifies if type checking |
| 15696 | + should be done one the data sent to the server. |
| 15697 | + Default is True. |
| 15698 | + _check_return_type (bool): specifies if type checking |
| 15699 | + should be done one the data received from the server. |
| 15700 | + Default is True. |
| 15701 | + _spec_property_naming (bool): True if the variable names in the input data |
| 15702 | + are serialized names, as specified in the OpenAPI document. |
| 15703 | + False if the variable names in the input data |
| 15704 | + are pythonic names, e.g. snake case (default) |
| 15705 | + _content_type (str/None): force body content-type. |
| 15706 | + Default is None and content-type will be predicted by allowed |
| 15707 | + content-types and body. |
| 15708 | + _host_index (int/None): specifies the index of the server |
| 15709 | + that we want to use. |
| 15710 | + Default is read from the configuration. |
| 15711 | + async_req (bool): execute request asynchronously |
| 15712 | + |
| 15713 | + Returns: |
| 15714 | + XktFile |
| 15715 | + If the method is called asynchronously, returns the request |
| 15716 | + thread. |
| 15717 | + """ |
| 15718 | + kwargs['async_req'] = kwargs.get( |
| 15719 | + 'async_req', False |
| 15720 | + ) |
| 15721 | + kwargs['_return_http_data_only'] = kwargs.get( |
| 15722 | + '_return_http_data_only', True |
| 15723 | + ) |
| 15724 | + kwargs['_preload_content'] = kwargs.get( |
| 15725 | + '_preload_content', True |
| 15726 | + ) |
| 15727 | + kwargs['_request_timeout'] = kwargs.get( |
| 15728 | + '_request_timeout', None |
| 15729 | + ) |
| 15730 | + kwargs['_check_input_type'] = kwargs.get( |
| 15731 | + '_check_input_type', True |
| 15732 | + ) |
| 15733 | + kwargs['_check_return_type'] = kwargs.get( |
| 15734 | + '_check_return_type', True |
| 15735 | + ) |
| 15736 | + kwargs['_spec_property_naming'] = kwargs.get( |
| 15737 | + '_spec_property_naming', False |
| 15738 | + ) |
| 15739 | + kwargs['_content_type'] = kwargs.get( |
| 15740 | + '_content_type') |
| 15741 | + kwargs['_host_index'] = kwargs.get('_host_index') |
| 15742 | + kwargs['cloud_pk'] = \ |
| 15743 | + cloud_pk |
| 15744 | + kwargs['id'] = \ |
| 15745 | + id |
| 15746 | + kwargs['project_pk'] = \ |
| 15747 | + project_pk |
| 15748 | + kwargs['version'] = \ |
| 15749 | + version |
| 15750 | + kwargs['file'] = \ |
| 15751 | + file |
| 15752 | + return self.create_xkt_file_deprecated_endpoint.call_with_http_info(**kwargs) |
| 15753 | + |
15572 | 15754 | def create_zone_deprecated( |
15573 | 15755 | self, |
15574 | 15756 | cloud_pk, |
@@ -15764,7 +15946,7 @@ def delete_access_token_deprecated( |
15764 | 15946 | ): |
15765 | 15947 | """Delete a token # noqa: E501 |
15766 | 15948 |
|
15767 | | - Deleting a token will revoke it. Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
| 15949 | + DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
15768 | 15950 | This method makes a synchronous HTTP request by default. To make an |
15769 | 15951 | asynchronous HTTP request, please pass async_req=True |
15770 | 15952 |
|
@@ -17666,7 +17848,7 @@ def get_access_token_deprecated( |
17666 | 17848 | ): |
17667 | 17849 | """Retrieve one token created for this model # noqa: E501 |
17668 | 17850 |
|
17669 | | - Retrieve one token created for this model Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
| 17851 | + DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
17670 | 17852 | This method makes a synchronous HTTP request by default. To make an |
17671 | 17853 | asynchronous HTTP request, please pass async_req=True |
17672 | 17854 |
|
@@ -17755,7 +17937,7 @@ def get_access_tokens_deprecated( |
17755 | 17937 | ): |
17756 | 17938 | """Retrieve all tokens created for this model # noqa: E501 |
17757 | 17939 |
|
17758 | | - Retrieve all tokens created for this model Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
| 17940 | + DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
17759 | 17941 | This method makes a synchronous HTTP request by default. To make an |
17760 | 17942 | asynchronous HTTP request, please pass async_req=True |
17761 | 17943 |
|
@@ -24101,7 +24283,7 @@ def update_access_token_deprecated( |
24101 | 24283 | ): |
24102 | 24284 | """Update some fields of a token # noqa: E501 |
24103 | 24285 |
|
24104 | | - You can update the expiration date or the read_only field Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
| 24286 | + DEPECRATED: Use ProjectAccessToken instead Required scopes: ifc:token_manage, model:token_manage # noqa: E501 |
24105 | 24287 | This method makes a synchronous HTTP request by default. To make an |
24106 | 24288 | asynchronous HTTP request, please pass async_req=True |
24107 | 24289 |
|
@@ -24858,7 +25040,7 @@ def update_ifc_files_deprecated( |
24858 | 25040 | map_file (file_type, none_type): [optional] |
24859 | 25041 | gltf_file (file_type, none_type): [optional] |
24860 | 25042 | preview_file (file_type, none_type): [optional] |
24861 | | - xkt_file (file_type, none_type): [optional] |
| 25043 | + xkt_file (file_type, none_type): DEPRECATED. xkt file url is now in xkt_files field with its version number. [optional] |
24862 | 25044 | binary_2d_file (file_type, none_type): [optional] |
24863 | 25045 | _return_http_data_only (bool): response data without head status |
24864 | 25046 | code and headers. Default is True. |
|
0 commit comments