Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.14.0] - 2021-09-27

### Added

- Adds mechanism, tagline, state, latitude, longitude, and technology_type to project responses

## [1.13.0] - 2021-09-10

### Added
Expand Down
2 changes: 1 addition & 1 deletion patch_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from __future__ import absolute_import

__version__ = "1.13.0"
__version__ = "1.14.0"

# import ApiClient
from patch_api.api_client import ApiClient
Expand Down
2 changes: 1 addition & 1 deletion patch_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "patch-python/1.13.0"
self.user_agent = "patch-python/1.14.0"

def __del__(self):
if self._pool:
Expand Down
2 changes: 1 addition & 1 deletion patch_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: v1\n"
"SDK Package Version: 1.13.0".format(
"SDK Package Version: 1.14.0".format(
env=sys.platform, pyversion=sys.version
)
)
Expand Down
2 changes: 2 additions & 0 deletions patch_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from patch_api.models.order import Order
from patch_api.models.order_list_response import OrderListResponse
from patch_api.models.order_response import OrderResponse
from patch_api.models.parent_technology_type import ParentTechnologyType
from patch_api.models.photo import Photo
from patch_api.models.preference import Preference
from patch_api.models.preference_list_response import PreferenceListResponse
Expand All @@ -50,3 +51,4 @@
from patch_api.models.project_response import ProjectResponse
from patch_api.models.sdg import Sdg
from patch_api.models.standard import Standard
from patch_api.models.technology_type import TechnologyType
149 changes: 149 additions & 0 deletions patch_api/models/parent_technology_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# coding: utf-8

"""
Patch API V1

The core API used to integrate with Patch's service # noqa: E501

The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Generated by: https://openapi-generator.tech
"""


import pprint
import re # noqa: F401

import six

from patch_api.configuration import Configuration


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

Do not edit the class manually.
"""

"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definition.
"""
openapi_types = {"slug": "str", "name": "str"}

attribute_map = {"slug": "slug", "name": "name"}

def __init__(
self, slug=None, name=None, local_vars_configuration=None
): # noqa: E501
"""ParentTechnologyType - 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._slug = None
self._name = None
self.discriminator = None

if slug is not None:
self.slug = slug
if name is not None:
self.name = name

@property
def slug(self):
"""Gets the slug of this ParentTechnologyType. # noqa: E501

Unique identifier for this type of technology. # noqa: E501

:return: The slug of this ParentTechnologyType. # noqa: E501
:rtype: str
"""
return self._slug

@slug.setter
def slug(self, slug):
"""Sets the slug of this ParentTechnologyType.

Unique identifier for this type of technology. # noqa: E501

:param slug: The slug of this ParentTechnologyType. # noqa: E501
:type: str
"""

self._slug = slug

@property
def name(self):
"""Gets the name of this ParentTechnologyType. # noqa: E501

Name of this technology type. # noqa: E501

:return: The name of this ParentTechnologyType. # noqa: E501
:rtype: str
"""
return self._name

@name.setter
def name(self, name):
"""Sets the name of this ParentTechnologyType.

Name of this technology type. # noqa: E501

:param name: The name of this ParentTechnologyType. # noqa: E501
:type: str
"""

self._name = name

def to_dict(self):
"""Returns the model properties as a dict"""
result = {}

for attr, _ in six.iteritems(self.openapi_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(
map(lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value)
)
elif hasattr(value, "to_dict"):
result[attr] = value.to_dict()
elif isinstance(value, dict):
result[attr] = dict(
map(
lambda item: (item[0], item[1].to_dict())
if hasattr(item[1], "to_dict")
else item,
value.items(),
)
)
else:
result[attr] = value

return result

def to_str(self):
"""Returns the string representation of the model"""
return pprint.pformat(self.to_dict())

def __repr__(self):
"""For `print` and `pprint`"""
return self.to_str()

def __eq__(self, other):
"""Returns true if both objects are equal"""
if not isinstance(other, ParentTechnologyType):
return False

return self.to_dict() == other.to_dict()

def __ne__(self, other):
"""Returns true if both objects are not equal"""
if not isinstance(other, ParentTechnologyType):
return True

return self.to_dict() != other.to_dict()
Loading