Skip to content

Commit a0b6333

Browse files
committed
regenerate
1 parent 96289de commit a0b6333

File tree

6 files changed

+140
-21
lines changed

6 files changed

+140
-21
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
9494
- [ErrorObjectError](docs/ErrorObjectError.md)
9595
- [FieldLevelMetadata](docs/FieldLevelMetadata.md)
9696
- [ForcedReplicationMethod](docs/ForcedReplicationMethod.md)
97+
- [ForcedReplicationMethodObject](docs/ForcedReplicationMethodObject.md)
9798
- [HookNotification](docs/HookNotification.md)
9899
- [HookNotificationConfig](docs/HookNotificationConfig.md)
99100
- [Metadata](docs/Metadata.md)

docs/Metadata.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ A Metadata object describes a stream’s schema and the current state of its con
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**breadcrumb** | **list[str]** | An array of strings describing a path into the schema. For example: A value of [] refers to the entire schema, or stream A value of [\"properties\", \"<FIELD_NAME>\"] refers to the properties.<FIELD_NAME> portion of the schema. For example: [\"properties\", \"id\"] would refer to a field named `id` | [optional]
8-
**metadata_object** | [**MetadataObject**](MetadataObject.md) | | [optional]
7+
**breadcrumbs** | **list[str]** | An array of strings describing a path into the schema. For example: A value of [] refers to the entire schema, or stream A value of [\"properties\", \"<FIELD_NAME>\"] refers to the properties.<FIELD_NAME> portion of the schema. For example: [\"properties\", \"id\"] would refer to a field named `id` |
8+
**metadata_object** | [**MetadataObject**](MetadataObject.md) | |
99

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

docs/SalesforceSourceFormProperties.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**anchor_time** | **str** | Defines the time that frequency_in_minutes is “anchored” to, which Stitch will use to create the integration’s replication schedule. In Stitch, this is referred to as Anchor Scheduling. This field must contain an ISO 8601-compliant date. Note: When Stitch stores this value, it will be in UTC. You should provide this value in UTC to ensure the desired anchor time is retained. For example: You want to create a schedule that is anchored to 1:00PM EST and runs every 6 hours (360 minutes). To do this, you can set anchor_time to something like 2018-04-30T17:00:00Z and frequency_in_minutes to 360. This means jobs would run at 23:00:00, 05:00:00, 11:00:00, and so on. | [optional]
88
**api_type** | **str** | The Salesforce API Stitch should use to extract data. Possible values are REST or BULK. |
9+
**client_id** | **str** | The secure OAuth 2.0 identifier for the client application. | [optional]
10+
**client_secret** | **str** | The secure OAuth 2.0 secret key for the client application. | [optional]
911
**cron_expression** | **str** | Note: Advanced Scheduling using Cron is not yet supported for this source. A value may be submitted for this property if the account is on an Enterprise plan, but Stitch will not use the expression submitted. A valid Quartz cron expression representing the replication schedule for the integration. Refer to the Advanced Scheduling documentation for more info. Note: If neither a cron_expression or frequency_in_minutes property is provided, Stitch will use the source’s default frequency_in_minutes value (60). | [optional]
1012
**frequency_in_minutes** | **str** | Defines how often, in minutes, Stitch should attempt to replicate data from Salesforce. Accepted values are: - 30 - 60 - 360 - 720 - 1440 |
13+
**instance_url** | **str** | The url of the instance to connect to. | [optional]
1114
**is_sandbox** | **str** | If `true`, the Salesforce account being connected is a sandbox. | [optional]
1215
**quota_percent_per_run** | **str** | The maximum percentage of Salesforce API quota allowed per replication job. | [optional]
1316
**quota_percent_total** | **str** | The maximum percentage of Salesforce API quota allowed per day. | [optional]
17+
**refresh_token** | **str** | The OAuth 2.0 refresh token used to access the Salesforce API. | [optional]
1418
**select_fields_by_default** | **str** | If `true`, Stitch will automatically set new fields added in Salesforce to replicate. |
1519
**start_date** | **str** | The date from which Stitch should begin replicating data from Salesforce. Data from this date forward will be replicated. This field must contain an ISO 8601-compliant date, and the timestamp must be midnight. For example: 2018-01-01T00:00:00Z |
1620

git_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if [ "$git_user_id" = "" ]; then
1919
fi
2020

2121
if [ "$git_repo_id" = "" ]; then
22-
git_repo_id="stitch-connect-python"
22+
git_repo_id="stitch_connect_client"
2323
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
2424
fi
2525

stitch_connect_client/models/metadata.py

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,52 +33,52 @@ class Metadata(object):
3333
and the value is json key in definition.
3434
"""
3535
openapi_types = {
36-
'breadcrumb': 'list[str]',
36+
'breadcrumbs': 'list[str]',
3737
'metadata_object': 'MetadataObject'
3838
}
3939

4040
attribute_map = {
41-
'breadcrumb': 'breadcrumb',
41+
'breadcrumbs': 'breadcrumbs',
4242
'metadata_object': 'metadata-object'
4343
}
4444

45-
def __init__(self, breadcrumb=None, metadata_object=None, local_vars_configuration=None): # noqa: E501
45+
def __init__(self, breadcrumbs=None, metadata_object=None, local_vars_configuration=None): # noqa: E501
4646
"""Metadata - a model defined in OpenAPI""" # noqa: E501
4747
if local_vars_configuration is None:
4848
local_vars_configuration = Configuration()
4949
self.local_vars_configuration = local_vars_configuration
5050

51-
self._breadcrumb = None
51+
self._breadcrumbs = None
5252
self._metadata_object = None
5353
self.discriminator = None
5454

55-
if breadcrumb is not None:
56-
self.breadcrumb = breadcrumb
57-
if metadata_object is not None:
58-
self.metadata_object = metadata_object
55+
self.breadcrumbs = breadcrumbs
56+
self.metadata_object = metadata_object
5957

6058
@property
61-
def breadcrumb(self):
62-
"""Gets the breadcrumb of this Metadata. # noqa: E501
59+
def breadcrumbs(self):
60+
"""Gets the breadcrumbs of this Metadata. # noqa: E501
6361
6462
An array of strings describing a path into the schema. For example: A value of [] refers to the entire schema, or stream A value of [\"properties\", \"<FIELD_NAME>\"] refers to the properties.<FIELD_NAME> portion of the schema. For example: [\"properties\", \"id\"] would refer to a field named `id` # noqa: E501
6563
66-
:return: The breadcrumb of this Metadata. # noqa: E501
64+
:return: The breadcrumbs of this Metadata. # noqa: E501
6765
:rtype: list[str]
6866
"""
69-
return self._breadcrumb
67+
return self._breadcrumbs
7068

71-
@breadcrumb.setter
72-
def breadcrumb(self, breadcrumb):
73-
"""Sets the breadcrumb of this Metadata.
69+
@breadcrumbs.setter
70+
def breadcrumbs(self, breadcrumbs):
71+
"""Sets the breadcrumbs of this Metadata.
7472
7573
An array of strings describing a path into the schema. For example: A value of [] refers to the entire schema, or stream A value of [\"properties\", \"<FIELD_NAME>\"] refers to the properties.<FIELD_NAME> portion of the schema. For example: [\"properties\", \"id\"] would refer to a field named `id` # noqa: E501
7674
77-
:param breadcrumb: The breadcrumb of this Metadata. # noqa: E501
75+
:param breadcrumbs: The breadcrumbs of this Metadata. # noqa: E501
7876
:type: list[str]
7977
"""
78+
if self.local_vars_configuration.client_side_validation and breadcrumbs is None: # noqa: E501
79+
raise ValueError("Invalid value for `breadcrumbs`, must not be `None`") # noqa: E501
8080

81-
self._breadcrumb = breadcrumb
81+
self._breadcrumbs = breadcrumbs
8282

8383
@property
8484
def metadata_object(self):
@@ -98,6 +98,8 @@ def metadata_object(self, metadata_object):
9898
:param metadata_object: The metadata_object of this Metadata. # noqa: E501
9999
:type: MetadataObject
100100
"""
101+
if self.local_vars_configuration.client_side_validation and metadata_object is None: # noqa: E501
102+
raise ValueError("Invalid value for `metadata_object`, must not be `None`") # noqa: E501
101103

102104
self._metadata_object = metadata_object
103105

stitch_connect_client/models/salesforce_source_form_properties.py

Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,56 +35,76 @@ class SalesforceSourceFormProperties(object):
3535
openapi_types = {
3636
'anchor_time': 'str',
3737
'api_type': 'str',
38+
'client_id': 'str',
39+
'client_secret': 'str',
3840
'cron_expression': 'str',
3941
'frequency_in_minutes': 'str',
42+
'instance_url': 'str',
4043
'is_sandbox': 'str',
4144
'quota_percent_per_run': 'str',
4245
'quota_percent_total': 'str',
46+
'refresh_token': 'str',
4347
'select_fields_by_default': 'str',
4448
'start_date': 'str'
4549
}
4650

4751
attribute_map = {
4852
'anchor_time': 'anchor_time',
4953
'api_type': 'api_type',
54+
'client_id': 'client_id',
55+
'client_secret': 'client_secret',
5056
'cron_expression': 'cron_expression',
5157
'frequency_in_minutes': 'frequency_in_minutes',
58+
'instance_url': 'instance_url',
5259
'is_sandbox': 'is_sandbox',
5360
'quota_percent_per_run': 'quota_percent_per_run',
5461
'quota_percent_total': 'quota_percent_total',
62+
'refresh_token': 'refresh_token',
5563
'select_fields_by_default': 'select_fields_by_default',
5664
'start_date': 'start_date'
5765
}
5866

59-
def __init__(self, anchor_time=None, api_type=None, cron_expression=None, frequency_in_minutes=None, is_sandbox=None, quota_percent_per_run=None, quota_percent_total=None, select_fields_by_default=None, start_date=None, local_vars_configuration=None): # noqa: E501
67+
def __init__(self, anchor_time=None, api_type=None, client_id=None, client_secret=None, cron_expression=None, frequency_in_minutes=None, instance_url=None, is_sandbox=None, quota_percent_per_run=None, quota_percent_total=None, refresh_token=None, select_fields_by_default=None, start_date=None, local_vars_configuration=None): # noqa: E501
6068
"""SalesforceSourceFormProperties - a model defined in OpenAPI""" # noqa: E501
6169
if local_vars_configuration is None:
6270
local_vars_configuration = Configuration()
6371
self.local_vars_configuration = local_vars_configuration
6472

6573
self._anchor_time = None
6674
self._api_type = None
75+
self._client_id = None
76+
self._client_secret = None
6777
self._cron_expression = None
6878
self._frequency_in_minutes = None
79+
self._instance_url = None
6980
self._is_sandbox = None
7081
self._quota_percent_per_run = None
7182
self._quota_percent_total = None
83+
self._refresh_token = None
7284
self._select_fields_by_default = None
7385
self._start_date = None
7486
self.discriminator = None
7587

7688
if anchor_time is not None:
7789
self.anchor_time = anchor_time
7890
self.api_type = api_type
91+
if client_id is not None:
92+
self.client_id = client_id
93+
if client_secret is not None:
94+
self.client_secret = client_secret
7995
if cron_expression is not None:
8096
self.cron_expression = cron_expression
8197
self.frequency_in_minutes = frequency_in_minutes
98+
if instance_url is not None:
99+
self.instance_url = instance_url
82100
if is_sandbox is not None:
83101
self.is_sandbox = is_sandbox
84102
if quota_percent_per_run is not None:
85103
self.quota_percent_per_run = quota_percent_per_run
86104
if quota_percent_total is not None:
87105
self.quota_percent_total = quota_percent_total
106+
if refresh_token is not None:
107+
self.refresh_token = refresh_token
88108
self.select_fields_by_default = select_fields_by_default
89109
self.start_date = start_date
90110

@@ -136,6 +156,52 @@ def api_type(self, api_type):
136156

137157
self._api_type = api_type
138158

159+
@property
160+
def client_id(self):
161+
"""Gets the client_id of this SalesforceSourceFormProperties. # noqa: E501
162+
163+
The secure OAuth 2.0 identifier for the client application. # noqa: E501
164+
165+
:return: The client_id of this SalesforceSourceFormProperties. # noqa: E501
166+
:rtype: str
167+
"""
168+
return self._client_id
169+
170+
@client_id.setter
171+
def client_id(self, client_id):
172+
"""Sets the client_id of this SalesforceSourceFormProperties.
173+
174+
The secure OAuth 2.0 identifier for the client application. # noqa: E501
175+
176+
:param client_id: The client_id of this SalesforceSourceFormProperties. # noqa: E501
177+
:type: str
178+
"""
179+
180+
self._client_id = client_id
181+
182+
@property
183+
def client_secret(self):
184+
"""Gets the client_secret of this SalesforceSourceFormProperties. # noqa: E501
185+
186+
The secure OAuth 2.0 secret key for the client application. # noqa: E501
187+
188+
:return: The client_secret of this SalesforceSourceFormProperties. # noqa: E501
189+
:rtype: str
190+
"""
191+
return self._client_secret
192+
193+
@client_secret.setter
194+
def client_secret(self, client_secret):
195+
"""Sets the client_secret of this SalesforceSourceFormProperties.
196+
197+
The secure OAuth 2.0 secret key for the client application. # noqa: E501
198+
199+
:param client_secret: The client_secret of this SalesforceSourceFormProperties. # noqa: E501
200+
:type: str
201+
"""
202+
203+
self._client_secret = client_secret
204+
139205
@property
140206
def cron_expression(self):
141207
"""Gets the cron_expression of this SalesforceSourceFormProperties. # noqa: E501
@@ -190,6 +256,29 @@ def frequency_in_minutes(self, frequency_in_minutes):
190256

191257
self._frequency_in_minutes = frequency_in_minutes
192258

259+
@property
260+
def instance_url(self):
261+
"""Gets the instance_url of this SalesforceSourceFormProperties. # noqa: E501
262+
263+
The url of the instance to connect to. # noqa: E501
264+
265+
:return: The instance_url of this SalesforceSourceFormProperties. # noqa: E501
266+
:rtype: str
267+
"""
268+
return self._instance_url
269+
270+
@instance_url.setter
271+
def instance_url(self, instance_url):
272+
"""Sets the instance_url of this SalesforceSourceFormProperties.
273+
274+
The url of the instance to connect to. # noqa: E501
275+
276+
:param instance_url: The instance_url of this SalesforceSourceFormProperties. # noqa: E501
277+
:type: str
278+
"""
279+
280+
self._instance_url = instance_url
281+
193282
@property
194283
def is_sandbox(self):
195284
"""Gets the is_sandbox of this SalesforceSourceFormProperties. # noqa: E501
@@ -259,6 +348,29 @@ def quota_percent_total(self, quota_percent_total):
259348

260349
self._quota_percent_total = quota_percent_total
261350

351+
@property
352+
def refresh_token(self):
353+
"""Gets the refresh_token of this SalesforceSourceFormProperties. # noqa: E501
354+
355+
The OAuth 2.0 refresh token used to access the Salesforce API. # noqa: E501
356+
357+
:return: The refresh_token of this SalesforceSourceFormProperties. # noqa: E501
358+
:rtype: str
359+
"""
360+
return self._refresh_token
361+
362+
@refresh_token.setter
363+
def refresh_token(self, refresh_token):
364+
"""Sets the refresh_token of this SalesforceSourceFormProperties.
365+
366+
The OAuth 2.0 refresh token used to access the Salesforce API. # noqa: E501
367+
368+
:param refresh_token: The refresh_token of this SalesforceSourceFormProperties. # noqa: E501
369+
:type: str
370+
"""
371+
372+
self._refresh_token = refresh_token
373+
262374
@property
263375
def select_fields_by_default(self):
264376
"""Gets the select_fields_by_default of this SalesforceSourceFormProperties. # noqa: E501

0 commit comments

Comments
 (0)