Skip to content

Update generated source code #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2021
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
10 changes: 0 additions & 10 deletions ibmcloudant/cloudant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9050,30 +9050,24 @@ class BulkGetQueryDocument():
:attr List[str] atts_since: (optional) Includes attachments only since specified
revisions.
:attr str id: Schema for a document ID.
:attr List[str] open_revs: (optional) Retrieves documents of specified leaf
revisions.
:attr str rev: (optional) Schema for a document revision identifier.
"""

def __init__(self,
id: str,
*,
atts_since: List[str] = None,
open_revs: List[str] = None,
rev: str = None) -> None:
"""
Initialize a BulkGetQueryDocument object.

:param str id: Schema for a document ID.
:param List[str] atts_since: (optional) Includes attachments only since
specified revisions.
:param List[str] open_revs: (optional) Retrieves documents of specified
leaf revisions.
:param str rev: (optional) Schema for a document revision identifier.
"""
self.atts_since = atts_since
self.id = id
self.open_revs = open_revs
self.rev = rev

@classmethod
Expand All @@ -9086,8 +9080,6 @@ def from_dict(cls, _dict: Dict) -> 'BulkGetQueryDocument':
args['id'] = _dict.get('id')
else:
raise ValueError('Required property \'id\' not present in BulkGetQueryDocument JSON')
if 'open_revs' in _dict:
args['open_revs'] = _dict.get('open_revs')
if 'rev' in _dict:
args['rev'] = _dict.get('rev')
return cls(**args)
Expand All @@ -9104,8 +9096,6 @@ def to_dict(self) -> Dict:
_dict['atts_since'] = self.atts_since
if hasattr(self, 'id') and self.id is not None:
_dict['id'] = self.id
if hasattr(self, 'open_revs') and self.open_revs is not None:
_dict['open_revs'] = self.open_revs
if hasattr(self, 'rev') and self.rev is not None:
_dict['rev'] = self.rev
return _dict
Expand Down
39 changes: 13 additions & 26 deletions test/unit/test_cloudant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -2254,9 +2254,8 @@ def test_post_bulk_get_all_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'testString'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = 'testString'

# Set up parameter values
Expand Down Expand Up @@ -2312,9 +2311,8 @@ def test_post_bulk_get_required_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'testString'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = 'testString'

# Set up parameter values
Expand Down Expand Up @@ -2355,9 +2353,8 @@ def test_post_bulk_get_value_error(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'testString'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = 'testString'

# Set up parameter values
Expand Down Expand Up @@ -2406,9 +2403,8 @@ def test_post_bulk_get_as_mixed_all_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2464,9 +2460,8 @@ def test_post_bulk_get_as_mixed_required_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2507,9 +2502,8 @@ def test_post_bulk_get_as_mixed_value_error(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2558,9 +2552,8 @@ def test_post_bulk_get_as_related_all_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2616,9 +2609,8 @@ def test_post_bulk_get_as_related_required_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2659,9 +2651,8 @@ def test_post_bulk_get_as_related_value_error(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2710,9 +2701,8 @@ def test_post_bulk_get_as_stream_all_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2774,9 +2764,8 @@ def test_post_bulk_get_as_stream_required_params(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -2823,9 +2812,8 @@ def test_post_bulk_get_as_stream_value_error(self):

# Construct a dict representation of a BulkGetQueryDocument model
bulk_get_query_document_model = {}
bulk_get_query_document_model['atts_since'] = ['testString']
bulk_get_query_document_model['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model['id'] = 'order00067'
bulk_get_query_document_model['open_revs'] = ['testString']
bulk_get_query_document_model['rev'] = '3-917fa2381192822767f010b95b45325b'

# Set up parameter values
Expand Down Expand Up @@ -12437,9 +12425,8 @@ def test_bulk_get_query_document_serialization(self):

# Construct a json representation of a BulkGetQueryDocument model
bulk_get_query_document_model_json = {}
bulk_get_query_document_model_json['atts_since'] = ['testString']
bulk_get_query_document_model_json['atts_since'] = ['1-99b02e08da151943c2dcb40090160bb8']
bulk_get_query_document_model_json['id'] = 'testString'
bulk_get_query_document_model_json['open_revs'] = ['testString']
bulk_get_query_document_model_json['rev'] = 'testString'

# Construct a model instance of BulkGetQueryDocument by calling from_dict on the json representation
Expand Down