@@ -8016,6 +8016,121 @@ def delete_task_with_http_info(self, request, **kwargs): # noqa: E501
80168016 _request_timeout = params .get ('_request_timeout' ),
80178017 collection_formats = collection_formats )
80188018
8019+ def get_primavera_task_properties (self , request , ** kwargs ): # noqa: E501
8020+ """Get primavera properties for a task with the specified Uid. # noqa: E501
8021+
8022+ This method makes a synchronous HTTP request by default. To make an
8023+ asynchronous HTTP request, please pass is_async=True
8024+
8025+ :param is_async bool
8026+ :param name str : The name of the file. (required)
8027+ :param task_uid int : Uid of task to get primavera properties for. (required)
8028+ :param folder str : The document folder.
8029+ :param storage str : The document storage.
8030+ :return: PrimaveraTaskPropertiesResponse
8031+ If the method is called asynchronously,
8032+ returns the request thread.
8033+ """
8034+ kwargs ['_return_http_data_only' ] = True
8035+ try :
8036+ if kwargs .get ('is_async' ):
8037+ return self .get_primavera_task_properties_with_http_info (request , ** kwargs ) # noqa: E501
8038+ (data ) = self .get_primavera_task_properties_with_http_info (request , ** kwargs ) # noqa: E501
8039+ return data
8040+ except ApiException as e :
8041+ if e .status == 401 :
8042+ self .__request_token ()
8043+ if kwargs .get ('is_async' ):
8044+ return self .get_primavera_task_properties_with_http_info (request , ** kwargs ) # noqa: E501
8045+ (data ) = self .get_primavera_task_properties_with_http_info (request , ** kwargs ) # noqa: E501
8046+ return data
8047+
8048+ def get_primavera_task_properties_with_http_info (self , request , ** kwargs ): # noqa: E501
8049+ """Get primavera properties for a task with the specified Uid. # noqa: E501
8050+
8051+ This method makes a synchronous HTTP request by default. To make an
8052+ asynchronous HTTP request, please pass is_async=True
8053+
8054+ :param is_async bool
8055+ :param request get_primavera_task_properties_request object with parameters
8056+ :return: PrimaveraTaskPropertiesResponse
8057+ If the method is called asynchronously,
8058+ returns the request thread.
8059+ """
8060+
8061+ params = locals ()
8062+ params ['is_async' ] = ''
8063+ params ['_return_http_data_only' ] = False
8064+ params ['_preload_content' ] = True
8065+ params ['_request_timeout' ] = ''
8066+ for key , val in six .iteritems (params ['kwargs' ]):
8067+ if key not in params :
8068+ raise TypeError (
8069+ "Got an unexpected keyword argument '%s'"
8070+ " to method get_primavera_task_properties" % key
8071+ )
8072+ params [key ] = val
8073+ del params ['kwargs' ]
8074+ # verify the required parameter 'name' is set
8075+ if request .name is None :
8076+ raise ValueError ("Missing the required parameter `name` when calling `get_primavera_task_properties`" ) # noqa: E501
8077+ # verify the required parameter 'task_uid' is set
8078+ if request .task_uid is None :
8079+ raise ValueError ("Missing the required parameter `task_uid` when calling `get_primavera_task_properties`" ) # noqa: E501
8080+
8081+ collection_formats = {}
8082+ path = '/tasks/{name}/tasks/{taskUid}/primaveraProperties'
8083+ path_params = {}
8084+ if request .name is not None :
8085+ path_params [self .__downcase_first_letter ('name' )] = request .name # noqa: E501
8086+ if request .task_uid is not None :
8087+ path_params [self .__downcase_first_letter ('taskUid' )] = request .task_uid # noqa: E501
8088+
8089+ query_params = []
8090+ if '{' + self .__downcase_first_letter ('folder' ) + '}' in path :
8091+ path = path .replace ('{' + self .__downcase_first_letter ('folder' + '}' ), request .folder if request .folder is not None else '' )
8092+ else :
8093+ if request .folder is not None :
8094+ query_params .append ((self .__downcase_first_letter ('folder' ), request .folder )) # noqa: E501
8095+ if '{' + self .__downcase_first_letter ('storage' ) + '}' in path :
8096+ path = path .replace ('{' + self .__downcase_first_letter ('storage' + '}' ), request .storage if request .storage is not None else '' )
8097+ else :
8098+ if request .storage is not None :
8099+ query_params .append ((self .__downcase_first_letter ('storage' ), request .storage )) # noqa: E501
8100+
8101+ header_params = {}
8102+
8103+ form_params = []
8104+ local_var_files = []
8105+
8106+ body_params = None
8107+ # HTTP header `Accept`
8108+ header_params ['Accept' ] = self .api_client .select_header_accept (
8109+ ['application/json' ]) # noqa: E501
8110+
8111+ # HTTP header `Content-Type`
8112+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
8113+ ['application/json' ]) # noqa: E501
8114+
8115+ # Authentication setting
8116+ auth_settings = ['JWT' ] # noqa: E501
8117+
8118+ return self .api_client .call_api (
8119+ path , 'GET' ,
8120+ path_params ,
8121+ query_params ,
8122+ header_params ,
8123+ body = body_params ,
8124+ post_params = form_params ,
8125+ files = local_var_files ,
8126+ response_type = 'PrimaveraTaskPropertiesResponse' , # noqa: E501
8127+ auth_settings = auth_settings ,
8128+ is_async = params .get ('is_async' ),
8129+ _return_http_data_only = params .get ('_return_http_data_only' ),
8130+ _preload_content = params .get ('_preload_content' , True ),
8131+ _request_timeout = params .get ('_request_timeout' ),
8132+ collection_formats = collection_formats )
8133+
80198134 def get_task (self , request , ** kwargs ): # noqa: E501
80208135 """Read project task. # noqa: E501
80218136
0 commit comments