コード例 #1
0
    def __init__(self, geolookup_id=None, geolookup_value=None, local_vars_configuration=None):  # noqa: E501
        """GeolookupResult - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._geolookup_id = None
        self._geolookup_value = None
        self.discriminator = None

        self.geolookup_id = geolookup_id
        self.geolookup_value = geolookup_value
コード例 #2
0
    def __init__(self, id=None, timestamp=None, results=None, local_vars_configuration=None):  # noqa: E501
        """GeocodeResults - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._id = None
        self._timestamp = None
        self._results = None
        self.discriminator = None

        self.id = id
        self.timestamp = timestamp
        self.results = results
コード例 #3
0
    def __init__(self,
                 code=None,
                 message=None,
                 local_vars_configuration=None):  # noqa: E501
        """Error - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._code = None
        self._message = None
        self.discriminator = None

        self.code = code
        self.message = message
コード例 #4
0
    def __init__(self,
                 scrubber_id=None,
                 scrubbed_value=None,
                 confidence=None,
                 local_vars_configuration=None):  # noqa: E501
        """ScrubResult - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._scrubber_id = None
        self._scrubbed_value = None
        self._confidence = None
        self.discriminator = None

        self.scrubber_id = scrubber_id
        self.scrubbed_value = scrubbed_value
        self.confidence = confidence
コード例 #5
0
    def __init__(self,
                 configuration=None,
                 header_name=None,
                 header_value=None,
                 cookie=None,
                 pool_threads=1):
        if configuration is None:
            configuration = Configuration.get_default_copy()
        self.configuration = configuration
        self.pool_threads = pool_threads

        self.rest_client = rest.RESTClientObject(configuration)
        self.default_headers = {}
        if header_name is not None:
            self.default_headers[header_name] = header_value
        self.cookie = cookie
        # Set default User-Agent.
        self.user_agent = 'OpenAPI-Generator/0.1.0/python'
        self.client_side_validation = configuration.client_side_validation