Skip to content

Commit f8e8e85

Browse files
authored
Remove allowed values restriction for ConnectionStepProps.property_type (#17)
1 parent 64d3c95 commit f8e8e85

File tree

7 files changed

+9
-24
lines changed

7 files changed

+9
-24
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.4.1
10-
- Package version: 0.4.1
10+
- Package version: 0.5.0
1111
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1212

1313
Table of Contents:
@@ -150,6 +150,6 @@ npx openapi-generator generate \
150150
--package-name stitch_connect_client \
151151
--git-user-id NarrativeScience \
152152
--git-repo-id stitch-connect-python \
153-
-p packageVersion=0.4.1 \
153+
-p packageVersion=0.5.0 \
154154
-t templates
155155
```

docs/ConnectionStepProps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**name** | **str** | The name of the property. | [optional]
88
**is_required** | **bool** | If true, the property is required for complete configuration. | [optional]
99
**is_credential** | **bool** | If true, the property is a credential or otherwise sensitive data. | [optional]
10-
**property_type** | **str** | Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. | [optional]
10+
**property_type** | **str** | Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. user_provided_advanced - Indicates the property is set by the user but may be configured by the Stitch support team in the event that the integration is failing to work properly. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. | [optional]
1111
**json_schema** | [**list[ConnectionStepPropsJsonSchema]**](ConnectionStepPropsJsonSchema.md) | Note: Data will only be returned for this array if property_type: user_provided or property_type: system_provided_by_default. If property_type: read_only, this property will be null. An array containing: type - A string indicating the expected data type of the property's value. For example: boolean pattern - A string indicating the expected pattern of the property's value. For example: ^\\\\d+$ anyOf - A series of arrays containing key-value pairs for the type and format combinations Stitch will accept as the property's value | [optional]
1212
**provided** | **bool** | If true, the property has been provided. For properties where property_type: user_provided, this indicates that the user has provided the property. | [optional]
1313

setup.py

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

1515
NAME = "stitch-connect-client"
16-
VERSION = "0.4.1"
16+
VERSION = "0.5.0"
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
@@ -88,4 +88,4 @@
8888
from stitch_connect_client.models.streams_update_list import StreamsUpdateList
8989
from stitch_connect_client.models.update_source_body import UpdateSourceBody
9090

91-
__version__ = "0.4.1"
91+
__version__ = "0.5.0"

stitch_connect_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(
8383
self.default_headers[header_name] = header_value
8484
self.cookie = cookie
8585
# Set default User-Agent.
86-
self.user_agent = "OpenAPI-Generator/0.4.1/python"
86+
self.user_agent = "OpenAPI-Generator/0.5.0/python"
8787
self.client_side_validation = configuration.client_side_validation
8888

8989
def __del__(self):

stitch_connect_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def to_debug_report(self):
265265
"OS: {env}\n"
266266
"Python Version: {pyversion}\n"
267267
"Version of the API: 0.4.1\n"
268-
"SDK Package Version: 0.4.1".format(env=sys.platform, pyversion=sys.version)
268+
"SDK Package Version: 0.5.0".format(env=sys.platform, pyversion=sys.version)
269269
)
270270

271271
def get_host_settings(self):

stitch_connect_client/models/connection_step_props.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def is_credential(self, is_credential):
159159
def property_type(self):
160160
"""Gets the property_type of this ConnectionStepProps. # noqa: E501
161161
162-
Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. # noqa: E501
162+
Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. user_provided_advanced - Indicates the property is set by the user but may be configured by the Stitch support team in the event that the integration is failing to work properly. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. # noqa: E501
163163
164164
:return: The property_type of this ConnectionStepProps. # noqa: E501
165165
:rtype: str
@@ -170,26 +170,11 @@ def property_type(self):
170170
def property_type(self, property_type):
171171
"""Sets the property_type of this ConnectionStepProps.
172172
173-
Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. # noqa: E501
173+
Indicates the type of the property. Possible values are: user_provided - Indicates the property must be set by the user. read_only - Indicates the property is read-only and is not settable by the Generally, this is an internal field set inside of Stitch. system_provided_by_default - Indicates the property used to be system_provided: true, but can now be set by the API consumer. These are generally properties associated with OAuth for generating refresh and access tokens. user_provided_advanced - Indicates the property is set by the user but may be configured by the Stitch support team in the event that the integration is failing to work properly. Note: Use caution when setting these properties, as using incorrect values can put the source into a non-functioning state. # noqa: E501
174174
175175
:param property_type: The property_type of this ConnectionStepProps. # noqa: E501
176176
:type: str
177177
"""
178-
allowed_values = [
179-
"user_provided",
180-
"read_only",
181-
"system_provided_by_default",
182-
"user_provided_immutable",
183-
] # noqa: E501
184-
if (
185-
self.local_vars_configuration.client_side_validation
186-
and property_type not in allowed_values
187-
): # noqa: E501
188-
raise ValueError(
189-
"Invalid value for `property_type` ({0}), must be one of {1}".format( # noqa: E501
190-
property_type, allowed_values
191-
)
192-
)
193178

194179
self._property_type = property_type
195180

0 commit comments

Comments
 (0)