Skip to content

Commit 961d748

Browse files
committed
add name to create source body model
1 parent f02a8eb commit 961d748

File tree

7 files changed

+36
-7
lines changed

7 files changed

+36
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ https://www.stitchdata.com/docs/developers/stitch-connect/api
77
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

99
- API version: 0.1
10-
- Package version: 0.1.3
10+
- Package version: 0.1.4
1111
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1212

1313
Table of Contents:
@@ -146,6 +146,6 @@ npx openapi-generator generate \
146146
--package-name stitch_connect_client \
147147
--git-user-id NarrativeScience \
148148
--git-repo-id stitch-connect-python \
149-
-p packageVersion=0.1.3 \
149+
-p packageVersion=0.1.4 \
150150
-t templates
151151
```

docs/CreateSourceBody.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**display_name** | **str** | A descriptive name for the source. This will be used to dynamically generate the name corresponding to the schema name or dataset name that the data from this source will be loaded into. |
88
**type** | **str** | The source type. For example: platform.marketo or platform.hubspot. |
9+
**name** | **str** | The destination schema name that the data from this source will be loaded into. Names must: - Contain only lowercase alphanumerics and underscores - Be unique within each Stitch client account | [optional]
910
**properties** | [**SourceFormProperties**](SourceFormProperties.md) | | [optional]
1011

1112
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from setuptools import setup, find_packages # noqa: H301
1414

1515
NAME = "stitch-connect-client"
16-
VERSION = "0.1.3"
16+
VERSION = "0.1.4"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

stitch_connect_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from __future__ import absolute_import
1616

17-
__version__ = "0.1.3"
17+
__version__ = "0.1.4"
1818

1919
# import apis into sdk package
2020
from stitch_connect_client.api.destinations_api import DestinationsApi

stitch_connect_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'OpenAPI-Generator/0.1.3/python'
80+
self.user_agent = 'OpenAPI-Generator/0.1.4/python'
8181
self.client_side_validation = configuration.client_side_validation
8282

8383
def __del__(self):

stitch_connect_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def to_debug_report(self):
260260
"OS: {env}\n"\
261261
"Python Version: {pyversion}\n"\
262262
"Version of the API: 0.1\n"\
263-
"SDK Package Version: 0.1.3".\
263+
"SDK Package Version: 0.1.4".\
264264
format(env=sys.platform, pyversion=sys.version)
265265

266266
def get_host_settings(self):

stitch_connect_client/models/create_source_body.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,33 @@ class CreateSourceBody(object):
3535
openapi_types = {
3636
'display_name': 'str',
3737
'type': 'str',
38+
'name': 'str',
3839
'properties': 'SourceFormProperties'
3940
}
4041

4142
attribute_map = {
4243
'display_name': 'display_name',
4344
'type': 'type',
45+
'name': 'name',
4446
'properties': 'properties'
4547
}
4648

47-
def __init__(self, display_name=None, type=None, properties=None, local_vars_configuration=None): # noqa: E501
49+
def __init__(self, display_name=None, type=None, name=None, properties=None, local_vars_configuration=None): # noqa: E501
4850
"""CreateSourceBody - a model defined in OpenAPI""" # noqa: E501
4951
if local_vars_configuration is None:
5052
local_vars_configuration = Configuration()
5153
self.local_vars_configuration = local_vars_configuration
5254

5355
self._display_name = None
5456
self._type = None
57+
self._name = None
5558
self._properties = None
5659
self.discriminator = None
5760

5861
self.display_name = display_name
5962
self.type = type
63+
if name is not None:
64+
self.name = name
6065
if properties is not None:
6166
self.properties = properties
6267

@@ -110,6 +115,29 @@ def type(self, type):
110115

111116
self._type = type
112117

118+
@property
119+
def name(self):
120+
"""Gets the name of this CreateSourceBody. # noqa: E501
121+
122+
The destination schema name that the data from this source will be loaded into. Names must: - Contain only lowercase alphanumerics and underscores - Be unique within each Stitch client account # noqa: E501
123+
124+
:return: The name of this CreateSourceBody. # noqa: E501
125+
:rtype: str
126+
"""
127+
return self._name
128+
129+
@name.setter
130+
def name(self, name):
131+
"""Sets the name of this CreateSourceBody.
132+
133+
The destination schema name that the data from this source will be loaded into. Names must: - Contain only lowercase alphanumerics and underscores - Be unique within each Stitch client account # noqa: E501
134+
135+
:param name: The name of this CreateSourceBody. # noqa: E501
136+
:type: str
137+
"""
138+
139+
self._name = name
140+
113141
@property
114142
def properties(self):
115143
"""Gets the properties of this CreateSourceBody. # noqa: E501

0 commit comments

Comments
 (0)