"""
    PA Engine API

    Allow clients to fetch Analytics through APIs.  # noqa: E501

    The version of the OpenAPI document: 3
    Contact: <EMAIL>
    Generated by: https://openapi-generator.tech
"""


import re  # noqa: F401
import sys  # noqa: F401
from multiprocessing.pool import ApplyResult
import typing

from fds.sdk.PAEngine.api_client import ApiClient, Endpoint as _Endpoint
from fds.sdk.PAEngine.model_utils import (  # noqa: F401
    check_allowed_values,
    check_validations,
    date,
    datetime,
    file_type,
    none_type,
    validate_and_convert_types
)
from fds.sdk.PAEngine.exceptions import ApiException
from fds.sdk.PAEngine.model.client_error_response import ClientErrorResponse
from fds.sdk.PAEngine.model.linked_pa_template_parameters_root import LinkedPATemplateParametersRoot
from fds.sdk.PAEngine.model.linked_pa_template_post_summary_root import LinkedPATemplatePostSummaryRoot
from fds.sdk.PAEngine.model.linked_pa_template_root import LinkedPATemplateRoot
from fds.sdk.PAEngine.model.linked_pa_template_summary_root import LinkedPATemplateSummaryRoot
from fds.sdk.PAEngine.model.linked_pa_template_update_parameters_root import LinkedPATemplateUpdateParametersRoot





class LinkedPATemplatesApi(object):
    """NOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client
        self.create_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 201: (LinkedPATemplatePostSummaryRoot,), 400: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates',
                'operation_id': 'create_linked_pa_templates',
                'http_method': 'POST',
                'servers': None,
            },
            params_map={
                'all': [
                    'linked_pa_template_parameters_root',
                ],
                'required': [
                    'linked_pa_template_parameters_root',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'linked_pa_template_parameters_root':
                        (LinkedPATemplateParametersRoot,),
                },
                'attribute_map': {
                },
                'location_map': {
                    'linked_pa_template_parameters_root': 'body',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [
                    'application/json'
                ]
            },
            api_client=api_client
        )
        self.delete_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': None,
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates/{id}',
                'operation_id': 'delete_linked_pa_templates',
                'http_method': 'DELETE',
                'servers': None,
            },
            params_map={
                'all': [
                    'id',
                ],
                'required': [
                    'id',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'id':
                        (str,),
                },
                'attribute_map': {
                    'id': 'id',
                },
                'location_map': {
                    'id': 'path',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'text/plain',
                    'application/json',
                    'text/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )
        self.get_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 200: (LinkedPATemplateSummaryRoot,), 400: (ClientErrorResponse,), 404: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates',
                'operation_id': 'get_linked_pa_templates',
                'http_method': 'GET',
                'servers': None,
            },
            params_map={
                'all': [
                    'directory',
                    'document_directory',
                    'document_name',
                ],
                'required': [],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'directory':
                        (str,),
                    'document_directory':
                        (str,),
                    'document_name':
                        (str,),
                },
                'attribute_map': {
                    'directory': 'directory',
                    'document_directory': 'documentDirectory',
                    'document_name': 'documentName',
                },
                'location_map': {
                    'directory': 'query',
                    'document_directory': 'query',
                    'document_name': 'query',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )
        self.get_linked_pa_templates_by_id_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 200: (LinkedPATemplateRoot,), 400: (ClientErrorResponse,), 404: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates/{id}',
                'operation_id': 'get_linked_pa_templates_by_id',
                'http_method': 'GET',
                'servers': None,
            },
            params_map={
                'all': [
                    'id',
                ],
                'required': [
                    'id',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'id':
                        (str,),
                },
                'attribute_map': {
                    'id': 'id',
                },
                'location_map': {
                    'id': 'path',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )
        self.update_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 200: (LinkedPATemplatePostSummaryRoot,), 400: (ClientErrorResponse,), 404: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates/{id}',
                'operation_id': 'update_linked_pa_templates',
                'http_method': 'PUT',
                'servers': None,
            },
            params_map={
                'all': [
                    'id',
                    'linked_pa_template_update_parameters_root',
                ],
                'required': [
                    'id',
                    'linked_pa_template_update_parameters_root',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'id':
                        (str,),
                    'linked_pa_template_update_parameters_root':
                        (LinkedPATemplateUpdateParametersRoot,),
                },
                'attribute_map': {
                    'id': 'id',
                },
                'location_map': {
                    'id': 'path',
                    'linked_pa_template_update_parameters_root': 'body',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [
                    'application/json'
                ]
            },
            api_client=api_client
        )

    @staticmethod
    def apply_kwargs_defaults(kwargs, return_http_data_only, async_req):
        kwargs["async_req"] = async_req
        kwargs["_return_http_data_only"] = return_http_data_only
        kwargs["_preload_content"] = kwargs.get("_preload_content", True)
        kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
        kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
        kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
        kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
        kwargs["_content_type"] = kwargs.get("_content_type")
        kwargs["_host_index"] = kwargs.get("_host_index")

    def create_linked_pa_templates(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> LinkedPATemplatePostSummaryRoot:
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def create_linked_pa_templates_with_http_info(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]:
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def create_linked_pa_templates_async(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> "ApplyResult[LinkedPATemplatePostSummaryRoot]":
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplatePostSummaryRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def create_linked_pa_templates_with_http_info_async(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]]":
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplatePostSummaryRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> None:
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            None
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates_with_http_info(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> typing.Tuple[None, int, typing.MutableMapping]:
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            None
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[None]":
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[None]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates_with_http_info_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[typing.Tuple[None, int, typing.MutableMapping]]":
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(None, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates(
        self,
        **kwargs
    ) -> LinkedPATemplateSummaryRoot:
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateSummaryRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_with_http_info(
        self,
        **kwargs
    ) -> typing.Tuple[LinkedPATemplateSummaryRoot, int, typing.MutableMapping]:
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateSummaryRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_async(
        self,
        **kwargs
    ) -> "ApplyResult[LinkedPATemplateSummaryRoot]":
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplateSummaryRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_with_http_info_async(
        self,
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplateSummaryRoot, int, typing.MutableMapping]]":
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplateSummaryRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> LinkedPATemplateRoot:
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id_with_http_info(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> typing.Tuple[LinkedPATemplateRoot, int, typing.MutableMapping]:
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[LinkedPATemplateRoot]":
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplateRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id_with_http_info_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplateRoot, int, typing.MutableMapping]]":
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplateRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> LinkedPATemplatePostSummaryRoot:
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates_with_http_info(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]:
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates_async(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[LinkedPATemplatePostSummaryRoot]":
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplatePostSummaryRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates_with_http_info_async(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]]":
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplatePostSummaryRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)


"""
    PA Engine API

    Allow clients to fetch Analytics through APIs.  # noqa: E501

    The version of the OpenAPI document: 3
    Contact: <EMAIL>
    Generated by: https://openapi-generator.tech
"""


import re  # noqa: F401
import sys  # noqa: F401
from multiprocessing.pool import ApplyResult
import typing

from fds.sdk.PAEngine.api_client import ApiClient, Endpoint as _Endpoint
from fds.sdk.PAEngine.model_utils import (  # noqa: F401
    check_allowed_values,
    check_validations,
    date,
    datetime,
    file_type,
    none_type,
    validate_and_convert_types
)
from fds.sdk.PAEngine.exceptions import ApiException
from fds.sdk.PAEngine.model.client_error_response import ClientErrorResponse
from fds.sdk.PAEngine.model.linked_pa_template_parameters_root import LinkedPATemplateParametersRoot
from fds.sdk.PAEngine.model.linked_pa_template_post_summary_root import LinkedPATemplatePostSummaryRoot
from fds.sdk.PAEngine.model.linked_pa_template_root import LinkedPATemplateRoot
from fds.sdk.PAEngine.model.linked_pa_template_summary_root import LinkedPATemplateSummaryRoot
from fds.sdk.PAEngine.model.linked_pa_template_update_parameters_root import LinkedPATemplateUpdateParametersRoot





class LinkedPATemplatesApi(object):
    """NOTE: This class is auto generated by OpenAPI Generator
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    def __init__(self, api_client=None):
        if api_client is None:
            api_client = ApiClient()
        self.api_client = api_client
        self.create_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 201: (LinkedPATemplatePostSummaryRoot,), 400: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates',
                'operation_id': 'create_linked_pa_templates',
                'http_method': 'POST',
                'servers': None,
            },
            params_map={
                'all': [
                    'linked_pa_template_parameters_root',
                ],
                'required': [
                    'linked_pa_template_parameters_root',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'linked_pa_template_parameters_root':
                        (LinkedPATemplateParametersRoot,),
                },
                'attribute_map': {
                },
                'location_map': {
                    'linked_pa_template_parameters_root': 'body',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [
                    'application/json'
                ]
            },
            api_client=api_client
        )
        self.delete_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': None,
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates/{id}',
                'operation_id': 'delete_linked_pa_templates',
                'http_method': 'DELETE',
                'servers': None,
            },
            params_map={
                'all': [
                    'id',
                ],
                'required': [
                    'id',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'id':
                        (str,),
                },
                'attribute_map': {
                    'id': 'id',
                },
                'location_map': {
                    'id': 'path',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'text/plain',
                    'application/json',
                    'text/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )
        self.get_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 200: (LinkedPATemplateSummaryRoot,), 400: (ClientErrorResponse,), 404: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates',
                'operation_id': 'get_linked_pa_templates',
                'http_method': 'GET',
                'servers': None,
            },
            params_map={
                'all': [
                    'directory',
                    'document_directory',
                    'document_name',
                ],
                'required': [],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'directory':
                        (str,),
                    'document_directory':
                        (str,),
                    'document_name':
                        (str,),
                },
                'attribute_map': {
                    'directory': 'directory',
                    'document_directory': 'documentDirectory',
                    'document_name': 'documentName',
                },
                'location_map': {
                    'directory': 'query',
                    'document_directory': 'query',
                    'document_name': 'query',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )
        self.get_linked_pa_templates_by_id_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 200: (LinkedPATemplateRoot,), 400: (ClientErrorResponse,), 404: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates/{id}',
                'operation_id': 'get_linked_pa_templates_by_id',
                'http_method': 'GET',
                'servers': None,
            },
            params_map={
                'all': [
                    'id',
                ],
                'required': [
                    'id',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'id':
                        (str,),
                },
                'attribute_map': {
                    'id': 'id',
                },
                'location_map': {
                    'id': 'path',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [],
            },
            api_client=api_client
        )
        self.update_linked_pa_templates_endpoint = _Endpoint(
            settings={
                'response_type': (
                  { 200: (LinkedPATemplatePostSummaryRoot,), 400: (ClientErrorResponse,), 404: (ClientErrorResponse,),  },
                  None
                ),
                'auth': [
                    'FactSetApiKey',
                    'FactSetOAuth2'
                ],
                'endpoint_path': '/analytics/engines/pa/v3/linked-templates/{id}',
                'operation_id': 'update_linked_pa_templates',
                'http_method': 'PUT',
                'servers': None,
            },
            params_map={
                'all': [
                    'id',
                    'linked_pa_template_update_parameters_root',
                ],
                'required': [
                    'id',
                    'linked_pa_template_update_parameters_root',
                ],
                'nullable': [
                ],
                'enum': [
                ],
                'validation': [
                ]
            },
            root_map={
                'validations': {
                },
                'allowed_values': {
                },
                'openapi_types': {
                    'id':
                        (str,),
                    'linked_pa_template_update_parameters_root':
                        (LinkedPATemplateUpdateParametersRoot,),
                },
                'attribute_map': {
                    'id': 'id',
                },
                'location_map': {
                    'id': 'path',
                    'linked_pa_template_update_parameters_root': 'body',
                },
                'collection_format_map': {
                }
            },
            headers_map={
                'accept': [
                    'application/json'
                ],
                'content_type': [
                    'application/json'
                ]
            },
            api_client=api_client
        )

    @staticmethod
    def apply_kwargs_defaults(kwargs, return_http_data_only, async_req):
        kwargs["async_req"] = async_req
        kwargs["_return_http_data_only"] = return_http_data_only
        kwargs["_preload_content"] = kwargs.get("_preload_content", True)
        kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
        kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
        kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
        kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
        kwargs["_content_type"] = kwargs.get("_content_type")
        kwargs["_host_index"] = kwargs.get("_host_index")

    def create_linked_pa_templates(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> LinkedPATemplatePostSummaryRoot:
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def create_linked_pa_templates_with_http_info(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]:
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def create_linked_pa_templates_async(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> "ApplyResult[LinkedPATemplatePostSummaryRoot]":
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplatePostSummaryRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def create_linked_pa_templates_with_http_info_async(
        self,
        linked_pa_template_parameters_root,
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]]":
        """Create a linked PA template  # noqa: E501

        This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplatePostSummaryRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['linked_pa_template_parameters_root'] = \
            linked_pa_template_parameters_root
        return self.create_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> None:
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            None
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates_with_http_info(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> typing.Tuple[None, int, typing.MutableMapping]:
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            None
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[None]":
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[None]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def delete_linked_pa_templates_with_http_info_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[typing.Tuple[None, int, typing.MutableMapping]]":
        """Delete a linked PA template.  # noqa: E501

        This endpoint deletes an existing linked PA template.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(None, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['id'] = \
            id
        return self.delete_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates(
        self,
        **kwargs
    ) -> LinkedPATemplateSummaryRoot:
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateSummaryRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_with_http_info(
        self,
        **kwargs
    ) -> typing.Tuple[LinkedPATemplateSummaryRoot, int, typing.MutableMapping]:
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateSummaryRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_async(
        self,
        **kwargs
    ) -> "ApplyResult[LinkedPATemplateSummaryRoot]":
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplateSummaryRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_with_http_info_async(
        self,
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplateSummaryRoot, int, typing.MutableMapping]]":
        """Get linked PA templates  # noqa: E501

        This endpoint returns the list of linked PA templates in given path.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult


        Keyword Args:
            directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"
            document_directory (str): Get linked PA templates for documents in document path. [optional]
            document_name (str): Get linked PA templates for documents by document name. [optional]
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplateSummaryRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        return self.get_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> LinkedPATemplateRoot:
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id_with_http_info(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> typing.Tuple[LinkedPATemplateRoot, int, typing.MutableMapping]:
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplateRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[LinkedPATemplateRoot]":
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplateRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def get_linked_pa_templates_by_id_with_http_info_async(
        self,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplateRoot, int, typing.MutableMapping]]":
        """Get linked PA template by id  # noqa: E501

        This endpoint fetches the linked PA template settings.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplateRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['id'] = \
            id
        return self.get_linked_pa_templates_by_id_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> LinkedPATemplatePostSummaryRoot:
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns the http data only

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=False)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates_with_http_info(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]:
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a synchronous HTTP request. Returns http data, http status and headers

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            LinkedPATemplatePostSummaryRoot
                Response Object
            int
                Http Status Code
            dict
                Dictionary of the response headers
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=False)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates_async(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[LinkedPATemplatePostSummaryRoot]":
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[LinkedPATemplatePostSummaryRoot]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, async_req=True)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)

    def update_linked_pa_templates_with_http_info_async(
        self,
        linked_pa_template_update_parameters_root,
        id="01234567890123456789012345678901",
        **kwargs
    ) -> "ApplyResult[typing.Tuple[LinkedPATemplatePostSummaryRoot, int, typing.MutableMapping]]":
        """Update a linked PA template  # noqa: E501

        This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501
        This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult

        Args:
            linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters
            id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]

        Keyword Args:
            _preload_content (bool): if False, the urllib3.HTTPResponse object
                will be returned without reading/decoding response data.
                Default is True.
            _request_timeout (int/float/tuple): timeout setting for this request. If
                one number provided, it will be total request timeout. It can also
                be a pair (tuple) of (connection, read) timeouts.
                Default is None.
            _check_input_type (bool): specifies if type checking
                should be done one the data sent to the server.
                Default is True.
            _check_return_type (bool): specifies if type checking
                should be done one the data received from the server.
                Default is True.
            _spec_property_naming (bool): True if the variable names in the input data
                are serialized names, as specified in the OpenAPI document.
                False if the variable names in the input data
                are pythonic names, e.g. snake case (default)
            _content_type (str/None): force body content-type.
                Default is None and content-type will be predicted by allowed
                content-types and body.
            _host_index (int/None): specifies the index of the server
                that we want to use.
                Default is read from the configuration.
        Returns:
            ApplyResult[(LinkedPATemplatePostSummaryRoot, int, typing.Dict)]
        """
        self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=False, async_req=True)
        kwargs['id'] = \
            id
        kwargs['linked_pa_template_update_parameters_root'] = \
            linked_pa_template_update_parameters_root
        return self.update_linked_pa_templates_endpoint.call_with_http_info(**kwargs)


PA Engine API      Allow clients to fetch Analytics through APIs.  # noqa: E501      The version of the OpenAPI document: 3     Contact: <EMAIL>     Generated by: https://openapi-generator.tech # noqa: F401 # noqa: F401 # noqa: F401 NOTE: This class is auto generated by OpenAPI Generator     Ref: https://openapi-generator.tech      Do not edit the class manually. Create a linked PA template  # noqa: E501          This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a synchronous HTTP request. Returns the http data only          Args:             linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplatePostSummaryRoot                 Response Object Create a linked PA template  # noqa: E501          This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a synchronous HTTP request. Returns http data, http status and headers          Args:             linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplatePostSummaryRoot                 Response Object             int                 Http Status Code             dict                 Dictionary of the response headers Create a linked PA template  # noqa: E501          This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult          Args:             linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[LinkedPATemplatePostSummaryRoot] Create a linked PA template  # noqa: E501          This endpoint creates a template from an **existing portfolio analysis tile**, allowing the user to replicate and fetch reports settings.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult          Args:             linked_pa_template_parameters_root (LinkedPATemplateParametersRoot): Request Parameters          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[(LinkedPATemplatePostSummaryRoot, int, typing.Dict)] Delete a linked PA template.  # noqa: E501          This endpoint deletes an existing linked PA template.  # noqa: E501         This method makes a synchronous HTTP request. Returns the http data only          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             None                 Response Object Delete a linked PA template.  # noqa: E501          This endpoint deletes an existing linked PA template.  # noqa: E501         This method makes a synchronous HTTP request. Returns http data, http status and headers          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             None                 Response Object             int                 Http Status Code             dict                 Dictionary of the response headers Delete a linked PA template.  # noqa: E501          This endpoint deletes an existing linked PA template.  # noqa: E501         This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[None] Delete a linked PA template.  # noqa: E501          This endpoint deletes an existing linked PA template.  # noqa: E501         This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[(None, int, typing.Dict)] Get linked PA templates  # noqa: E501          This endpoint returns the list of linked PA templates in given path.  # noqa: E501         This method makes a synchronous HTTP request. Returns the http data only           Keyword Args:             directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"             document_directory (str): Get linked PA templates for documents in document path. [optional]             document_name (str): Get linked PA templates for documents by document name. [optional]             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplateSummaryRoot                 Response Object Get linked PA templates  # noqa: E501          This endpoint returns the list of linked PA templates in given path.  # noqa: E501         This method makes a synchronous HTTP request. Returns http data, http status and headers           Keyword Args:             directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"             document_directory (str): Get linked PA templates for documents in document path. [optional]             document_name (str): Get linked PA templates for documents by document name. [optional]             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplateSummaryRoot                 Response Object             int                 Http Status Code             dict                 Dictionary of the response headers Get linked PA templates  # noqa: E501          This endpoint returns the list of linked PA templates in given path.  # noqa: E501         This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult           Keyword Args:             directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"             document_directory (str): Get linked PA templates for documents in document path. [optional]             document_name (str): Get linked PA templates for documents by document name. [optional]             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[LinkedPATemplateSummaryRoot] Get linked PA templates  # noqa: E501          This endpoint returns the list of linked PA templates in given path.  # noqa: E501         This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult           Keyword Args:             directory (str): Get linked PA templates in path.. [optional] if omitted the server will use the default value of "Personal:LinkedPATemplates/"             document_directory (str): Get linked PA templates for documents in document path. [optional]             document_name (str): Get linked PA templates for documents by document name. [optional]             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[(LinkedPATemplateSummaryRoot, int, typing.Dict)] Get linked PA template by id  # noqa: E501          This endpoint fetches the linked PA template settings.  # noqa: E501         This method makes a synchronous HTTP request. Returns the http data only          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplateRoot                 Response Object Get linked PA template by id  # noqa: E501          This endpoint fetches the linked PA template settings.  # noqa: E501         This method makes a synchronous HTTP request. Returns http data, http status and headers          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplateRoot                 Response Object             int                 Http Status Code             dict                 Dictionary of the response headers Get linked PA template by id  # noqa: E501          This endpoint fetches the linked PA template settings.  # noqa: E501         This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[LinkedPATemplateRoot] Get linked PA template by id  # noqa: E501          This endpoint fetches the linked PA template settings.  # noqa: E501         This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult          Args:             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[(LinkedPATemplateRoot, int, typing.Dict)] Update a linked PA template  # noqa: E501          This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a synchronous HTTP request. Returns the http data only          Args:             linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplatePostSummaryRoot                 Response Object Update a linked PA template  # noqa: E501          This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a synchronous HTTP request. Returns http data, http status and headers          Args:             linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             LinkedPATemplatePostSummaryRoot                 Response Object             int                 Http Status Code             dict                 Dictionary of the response headers Update a linked PA template  # noqa: E501          This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a asynchronous HTTP request. Returns the http data, wrapped in ApplyResult          Args:             linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[LinkedPATemplatePostSummaryRoot] Update a linked PA template  # noqa: E501          This endpoint allows the user to change the request body and description from an existing template.    Remarks:    *   Mandatory fields are required to be passed in POST requests and Optional fields are not necessary.       If no mandatory fields are passed, then we can use the template as a component and skip the component creation.        *   Mandatory, optional and locked fields can be  \"accounts\", \"benchmarks\", \"groups\", \"columns\", \"datasources\", \"dates\", \"currencyisocode\" and \"componentdetail\".    *   We cannot override the Locked fields when creating the Component.    *   Mandatory and locked strings are mutually exclusive.    *   Multi-horizon frequencies are not supported through this endpoint.  # noqa: E501         This method makes a asynchronous HTTP request. Returns http data, http status and headers, wrapped in ApplyResult          Args:             linked_pa_template_update_parameters_root (LinkedPATemplateUpdateParametersRoot): Request Parameters             id (str): Unique identifier for a linked PA template. defaults to "01234567890123456789012345678901", must be one of ["01234567890123456789012345678901"]          Keyword Args:             _preload_content (bool): if False, the urllib3.HTTPResponse object                 will be returned without reading/decoding response data.                 Default is True.             _request_timeout (int/float/tuple): timeout setting for this request. If                 one number provided, it will be total request timeout. It can also                 be a pair (tuple) of (connection, read) timeouts.                 Default is None.             _check_input_type (bool): specifies if type checking                 should be done one the data sent to the server.                 Default is True.             _check_return_type (bool): specifies if type checking                 should be done one the data received from the server.                 Default is True.             _spec_property_naming (bool): True if the variable names in the input data                 are serialized names, as specified in the OpenAPI document.                 False if the variable names in the input data                 are pythonic names, e.g. snake case (default)             _content_type (str/None): force body content-type.                 Default is None and content-type will be predicted by allowed                 content-types and body.             _host_index (int/None): specifies the index of the server                 that we want to use.                 Default is read from the configuration.         Returns:             ApplyResult[(LinkedPATemplatePostSummaryRoot, int, typing.Dict)]