[python] Update Markdown files for Models with fixed Python print() syntax (#17993)

* Update Markdown file with fixed Python example

* ./bin/generate-samples.sh ./bin/configs/*.yaml
This commit is contained in:
Kathryn DiPippo 2024-02-28 21:54:54 -05:00 committed by GitHub
parent d801bfdb84
commit c10c9146b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
187 changed files with 187 additions and 187 deletions

View File

@ -21,7 +21,7 @@ json = "{}"
# create an instance of {{classname}} from a JSON string
{{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_instance = {{classname}}.from_json(json)
# print the JSON string representation of the object
print {{classname}}.to_json()
print({{classname}}.to_json())
# convert the object into a dict
{{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_dict = {{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Bird from a JSON string
bird_instance = Bird.from_json(json)
# print the JSON string representation of the object
print Bird.to_json()
print(Bird.to_json())
# convert the object into a dict
bird_dict = bird_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Category from a JSON string
category_instance = Category.from_json(json)
# print the JSON string representation of the object
print Category.to_json()
print(Category.to_json())
# convert the object into a dict
category_dict = category_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of DataQuery from a JSON string
data_query_instance = DataQuery.from_json(json)
# print the JSON string representation of the object
print DataQuery.to_json()
print(DataQuery.to_json())
# convert the object into a dict
data_query_dict = data_query_instance.to_dict()

View File

@ -25,7 +25,7 @@ json = "{}"
# create an instance of DefaultValue from a JSON string
default_value_instance = DefaultValue.from_json(json)
# print the JSON string representation of the object
print DefaultValue.to_json()
print(DefaultValue.to_json())
# convert the object into a dict
default_value_dict = default_value_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of NumberPropertiesOnly from a JSON string
number_properties_only_instance = NumberPropertiesOnly.from_json(json)
# print the JSON string representation of the object
print NumberPropertiesOnly.to_json()
print(NumberPropertiesOnly.to_json())
# convert the object into a dict
number_properties_only_dict = number_properties_only_instance.to_dict()

View File

@ -22,7 +22,7 @@ json = "{}"
# create an instance of Pet from a JSON string
pet_instance = Pet.from_json(json)
# print the JSON string representation of the object
print Pet.to_json()
print(Pet.to_json())
# convert the object into a dict
pet_dict = pet_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Query from a JSON string
query_instance = Query.from_json(json)
# print the JSON string representation of the object
print Query.to_json()
print(Query.to_json())
# convert the object into a dict
query_dict = query_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Tag from a JSON string
tag_instance = Tag.from_json(json)
# print the JSON string representation of the object
print Tag.to_json()
print(Tag.to_json())
# convert the object into a dict
tag_dict = tag_instance.to_dict()

View File

@ -20,7 +20,7 @@ json = "{}"
# create an instance of TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter from a JSON string
test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_instance = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.from_json(json)
# print the JSON string representation of the object
print TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.to_json()
print(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.to_json())
# convert the object into a dict
test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_dict = test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter from a JSON string
test_query_style_form_explode_true_array_string_query_object_parameter_instance = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.from_json(json)
# print the JSON string representation of the object
print TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.to_json()
print(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.to_json())
# convert the object into a dict
test_query_style_form_explode_true_array_string_query_object_parameter_dict = test_query_style_form_explode_true_array_string_query_object_parameter_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Bird from a JSON string
bird_instance = Bird.from_json(json)
# print the JSON string representation of the object
print Bird.to_json()
print(Bird.to_json())
# convert the object into a dict
bird_dict = bird_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Category from a JSON string
category_instance = Category.from_json(json)
# print the JSON string representation of the object
print Category.to_json()
print(Category.to_json())
# convert the object into a dict
category_dict = category_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of DataQuery from a JSON string
data_query_instance = DataQuery.from_json(json)
# print the JSON string representation of the object
print DataQuery.to_json()
print(DataQuery.to_json())
# convert the object into a dict
data_query_dict = data_query_instance.to_dict()

View File

@ -25,7 +25,7 @@ json = "{}"
# create an instance of DefaultValue from a JSON string
default_value_instance = DefaultValue.from_json(json)
# print the JSON string representation of the object
print DefaultValue.to_json()
print(DefaultValue.to_json())
# convert the object into a dict
default_value_dict = default_value_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of NumberPropertiesOnly from a JSON string
number_properties_only_instance = NumberPropertiesOnly.from_json(json)
# print the JSON string representation of the object
print NumberPropertiesOnly.to_json()
print(NumberPropertiesOnly.to_json())
# convert the object into a dict
number_properties_only_dict = number_properties_only_instance.to_dict()

View File

@ -22,7 +22,7 @@ json = "{}"
# create an instance of Pet from a JSON string
pet_instance = Pet.from_json(json)
# print the JSON string representation of the object
print Pet.to_json()
print(Pet.to_json())
# convert the object into a dict
pet_dict = pet_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Query from a JSON string
query_instance = Query.from_json(json)
# print the JSON string representation of the object
print Query.to_json()
print(Query.to_json())
# convert the object into a dict
query_dict = query_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Tag from a JSON string
tag_instance = Tag.from_json(json)
# print the JSON string representation of the object
print Tag.to_json()
print(Tag.to_json())
# convert the object into a dict
tag_dict = tag_instance.to_dict()

View File

@ -20,7 +20,7 @@ json = "{}"
# create an instance of TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter from a JSON string
test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_instance = TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.from_json(json)
# print the JSON string representation of the object
print TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.to_json()
print(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.to_json())
# convert the object into a dict
test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_dict = test_query_style_deep_object_explode_true_object_all_of_query_object_parameter_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter from a JSON string
test_query_style_form_explode_true_array_string_query_object_parameter_instance = TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.from_json(json)
# print the JSON string representation of the object
print TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.to_json()
print(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.to_json())
# convert the object into a dict
test_query_style_form_explode_true_array_string_query_object_parameter_dict = test_query_style_form_explode_true_array_string_query_object_parameter_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of AdditionalPropertiesAnyType from a JSON string
additional_properties_any_type_instance = AdditionalPropertiesAnyType.from_json(json)
# print the JSON string representation of the object
print AdditionalPropertiesAnyType.to_json()
print(AdditionalPropertiesAnyType.to_json())
# convert the object into a dict
additional_properties_any_type_dict = additional_properties_any_type_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of AdditionalPropertiesClass from a JSON string
additional_properties_class_instance = AdditionalPropertiesClass.from_json(json)
# print the JSON string representation of the object
print AdditionalPropertiesClass.to_json()
print(AdditionalPropertiesClass.to_json())
# convert the object into a dict
additional_properties_class_dict = additional_properties_class_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of AdditionalPropertiesObject from a JSON string
additional_properties_object_instance = AdditionalPropertiesObject.from_json(json)
# print the JSON string representation of the object
print AdditionalPropertiesObject.to_json()
print(AdditionalPropertiesObject.to_json())
# convert the object into a dict
additional_properties_object_dict = additional_properties_object_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of AdditionalPropertiesWithDescriptionOnly from a JSON string
additional_properties_with_description_only_instance = AdditionalPropertiesWithDescriptionOnly.from_json(json)
# print the JSON string representation of the object
print AdditionalPropertiesWithDescriptionOnly.to_json()
print(AdditionalPropertiesWithDescriptionOnly.to_json())
# convert the object into a dict
additional_properties_with_description_only_dict = additional_properties_with_description_only_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of AllOfWithSingleRef from a JSON string
all_of_with_single_ref_instance = AllOfWithSingleRef.from_json(json)
# print the JSON string representation of the object
print AllOfWithSingleRef.to_json()
print(AllOfWithSingleRef.to_json())
# convert the object into a dict
all_of_with_single_ref_dict = all_of_with_single_ref_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Animal from a JSON string
animal_instance = Animal.from_json(json)
# print the JSON string representation of the object
print Animal.to_json()
print(Animal.to_json())
# convert the object into a dict
animal_dict = animal_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of AnyOfColor from a JSON string
any_of_color_instance = AnyOfColor.from_json(json)
# print the JSON string representation of the object
print AnyOfColor.to_json()
print(AnyOfColor.to_json())
# convert the object into a dict
any_of_color_dict = any_of_color_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of AnyOfPig from a JSON string
any_of_pig_instance = AnyOfPig.from_json(json)
# print the JSON string representation of the object
print AnyOfPig.to_json()
print(AnyOfPig.to_json())
# convert the object into a dict
any_of_pig_dict = any_of_pig_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of ArrayOfArrayOfModel from a JSON string
array_of_array_of_model_instance = ArrayOfArrayOfModel.from_json(json)
# print the JSON string representation of the object
print ArrayOfArrayOfModel.to_json()
print(ArrayOfArrayOfModel.to_json())
# convert the object into a dict
array_of_array_of_model_dict = array_of_array_of_model_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of ArrayOfArrayOfNumberOnly from a JSON string
array_of_array_of_number_only_instance = ArrayOfArrayOfNumberOnly.from_json(json)
# print the JSON string representation of the object
print ArrayOfArrayOfNumberOnly.to_json()
print(ArrayOfArrayOfNumberOnly.to_json())
# convert the object into a dict
array_of_array_of_number_only_dict = array_of_array_of_number_only_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of ArrayOfNumberOnly from a JSON string
array_of_number_only_instance = ArrayOfNumberOnly.from_json(json)
# print the JSON string representation of the object
print ArrayOfNumberOnly.to_json()
print(ArrayOfNumberOnly.to_json())
# convert the object into a dict
array_of_number_only_dict = array_of_number_only_instance.to_dict()

View File

@ -20,7 +20,7 @@ json = "{}"
# create an instance of ArrayTest from a JSON string
array_test_instance = ArrayTest.from_json(json)
# print the JSON string representation of the object
print ArrayTest.to_json()
print(ArrayTest.to_json())
# convert the object into a dict
array_test_dict = array_test_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of BasquePig from a JSON string
basque_pig_instance = BasquePig.from_json(json)
# print the JSON string representation of the object
print BasquePig.to_json()
print(BasquePig.to_json())
# convert the object into a dict
basque_pig_dict = basque_pig_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of Bathing from a JSON string
bathing_instance = Bathing.from_json(json)
# print the JSON string representation of the object
print Bathing.to_json()
print(Bathing.to_json())
# convert the object into a dict
bathing_dict = bathing_instance.to_dict()

View File

@ -22,7 +22,7 @@ json = "{}"
# create an instance of Capitalization from a JSON string
capitalization_instance = Capitalization.from_json(json)
# print the JSON string representation of the object
print Capitalization.to_json()
print(Capitalization.to_json())
# convert the object into a dict
capitalization_dict = capitalization_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of Cat from a JSON string
cat_instance = Cat.from_json(json)
# print the JSON string representation of the object
print Cat.to_json()
print(Cat.to_json())
# convert the object into a dict
cat_dict = cat_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Category from a JSON string
category_instance = Category.from_json(json)
# print the JSON string representation of the object
print Category.to_json()
print(Category.to_json())
# convert the object into a dict
category_dict = category_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of CircularReferenceModel from a JSON string
circular_reference_model_instance = CircularReferenceModel.from_json(json)
# print the JSON string representation of the object
print CircularReferenceModel.to_json()
print(CircularReferenceModel.to_json())
# convert the object into a dict
circular_reference_model_dict = circular_reference_model_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of ClassModel from a JSON string
class_model_instance = ClassModel.from_json(json)
# print the JSON string representation of the object
print ClassModel.to_json()
print(ClassModel.to_json())
# convert the object into a dict
class_model_dict = class_model_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of Client from a JSON string
client_instance = Client.from_json(json)
# print the JSON string representation of the object
print Client.to_json()
print(Client.to_json())
# convert the object into a dict
client_dict = client_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of Color from a JSON string
color_instance = Color.from_json(json)
# print the JSON string representation of the object
print Color.to_json()
print(Color.to_json())
# convert the object into a dict
color_dict = color_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Creature from a JSON string
creature_instance = Creature.from_json(json)
# print the JSON string representation of the object
print Creature.to_json()
print(Creature.to_json())
# convert the object into a dict
creature_dict = creature_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of CreatureInfo from a JSON string
creature_info_instance = CreatureInfo.from_json(json)
# print the JSON string representation of the object
print CreatureInfo.to_json()
print(CreatureInfo.to_json())
# convert the object into a dict
creature_info_dict = creature_info_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of DanishPig from a JSON string
danish_pig_instance = DanishPig.from_json(json)
# print the JSON string representation of the object
print DanishPig.to_json()
print(DanishPig.to_json())
# convert the object into a dict
danish_pig_dict = danish_pig_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of DeprecatedObject from a JSON string
deprecated_object_instance = DeprecatedObject.from_json(json)
# print the JSON string representation of the object
print DeprecatedObject.to_json()
print(DeprecatedObject.to_json())
# convert the object into a dict
deprecated_object_dict = deprecated_object_instance.to_dict()

View File

@ -16,7 +16,7 @@ json = "{}"
# create an instance of DiscriminatorAllOfSub from a JSON string
discriminator_all_of_sub_instance = DiscriminatorAllOfSub.from_json(json)
# print the JSON string representation of the object
print DiscriminatorAllOfSub.to_json()
print(DiscriminatorAllOfSub.to_json())
# convert the object into a dict
discriminator_all_of_sub_dict = discriminator_all_of_sub_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of DiscriminatorAllOfSuper from a JSON string
discriminator_all_of_super_instance = DiscriminatorAllOfSuper.from_json(json)
# print the JSON string representation of the object
print DiscriminatorAllOfSuper.to_json()
print(DiscriminatorAllOfSuper.to_json())
# convert the object into a dict
discriminator_all_of_super_dict = discriminator_all_of_super_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of Dog from a JSON string
dog_instance = Dog.from_json(json)
# print the JSON string representation of the object
print Dog.to_json()
print(Dog.to_json())
# convert the object into a dict
dog_dict = dog_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of DummyModel from a JSON string
dummy_model_instance = DummyModel.from_json(json)
# print the JSON string representation of the object
print DummyModel.to_json()
print(DummyModel.to_json())
# convert the object into a dict
dummy_model_dict = dummy_model_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of EnumArrays from a JSON string
enum_arrays_instance = EnumArrays.from_json(json)
# print the JSON string representation of the object
print EnumArrays.to_json()
print(EnumArrays.to_json())
# convert the object into a dict
enum_arrays_dict = enum_arrays_instance.to_dict()

View File

@ -25,7 +25,7 @@ json = "{}"
# create an instance of EnumTest from a JSON string
enum_test_instance = EnumTest.from_json(json)
# print the JSON string representation of the object
print EnumTest.to_json()
print(EnumTest.to_json())
# convert the object into a dict
enum_test_dict = enum_test_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of Feeding from a JSON string
feeding_instance = Feeding.from_json(json)
# print the JSON string representation of the object
print Feeding.to_json()
print(Feeding.to_json())
# convert the object into a dict
feeding_dict = feeding_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of File from a JSON string
file_instance = File.from_json(json)
# print the JSON string representation of the object
print File.to_json()
print(File.to_json())
# convert the object into a dict
file_dict = file_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of FileSchemaTestClass from a JSON string
file_schema_test_class_instance = FileSchemaTestClass.from_json(json)
# print the JSON string representation of the object
print FileSchemaTestClass.to_json()
print(FileSchemaTestClass.to_json())
# convert the object into a dict
file_schema_test_class_dict = file_schema_test_class_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of FirstRef from a JSON string
first_ref_instance = FirstRef.from_json(json)
# print the JSON string representation of the object
print FirstRef.to_json()
print(FirstRef.to_json())
# convert the object into a dict
first_ref_dict = first_ref_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of Foo from a JSON string
foo_instance = Foo.from_json(json)
# print the JSON string representation of the object
print Foo.to_json()
print(Foo.to_json())
# convert the object into a dict
foo_dict = foo_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of FooGetDefaultResponse from a JSON string
foo_get_default_response_instance = FooGetDefaultResponse.from_json(json)
# print the JSON string representation of the object
print FooGetDefaultResponse.to_json()
print(FooGetDefaultResponse.to_json())
# convert the object into a dict
foo_get_default_response_dict = foo_get_default_response_instance.to_dict()

View File

@ -33,7 +33,7 @@ json = "{}"
# create an instance of FormatTest from a JSON string
format_test_instance = FormatTest.from_json(json)
# print the JSON string representation of the object
print FormatTest.to_json()
print(FormatTest.to_json())
# convert the object into a dict
format_test_dict = format_test_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of HasOnlyReadOnly from a JSON string
has_only_read_only_instance = HasOnlyReadOnly.from_json(json)
# print the JSON string representation of the object
print HasOnlyReadOnly.to_json()
print(HasOnlyReadOnly.to_json())
# convert the object into a dict
has_only_read_only_dict = has_only_read_only_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of HealthCheckResult from a JSON string
health_check_result_instance = HealthCheckResult.from_json(json)
# print the JSON string representation of the object
print HealthCheckResult.to_json()
print(HealthCheckResult.to_json())
# convert the object into a dict
health_check_result_dict = health_check_result_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of InnerDictWithProperty from a JSON string
inner_dict_with_property_instance = InnerDictWithProperty.from_json(json)
# print the JSON string representation of the object
print InnerDictWithProperty.to_json()
print(InnerDictWithProperty.to_json())
# convert the object into a dict
inner_dict_with_property_dict = inner_dict_with_property_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of InputAllOf from a JSON string
input_all_of_instance = InputAllOf.from_json(json)
# print the JSON string representation of the object
print InputAllOf.to_json()
print(InputAllOf.to_json())
# convert the object into a dict
input_all_of_dict = input_all_of_instance.to_dict()

View File

@ -16,7 +16,7 @@ json = "{}"
# create an instance of IntOrString from a JSON string
int_or_string_instance = IntOrString.from_json(json)
# print the JSON string representation of the object
print IntOrString.to_json()
print(IntOrString.to_json())
# convert the object into a dict
int_or_string_dict = int_or_string_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of ListClass from a JSON string
list_class_instance = ListClass.from_json(json)
# print the JSON string representation of the object
print ListClass.to_json()
print(ListClass.to_json())
# convert the object into a dict
list_class_dict = list_class_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of MapOfArrayOfModel from a JSON string
map_of_array_of_model_instance = MapOfArrayOfModel.from_json(json)
# print the JSON string representation of the object
print MapOfArrayOfModel.to_json()
print(MapOfArrayOfModel.to_json())
# convert the object into a dict
map_of_array_of_model_dict = map_of_array_of_model_instance.to_dict()

View File

@ -20,7 +20,7 @@ json = "{}"
# create an instance of MapTest from a JSON string
map_test_instance = MapTest.from_json(json)
# print the JSON string representation of the object
print MapTest.to_json()
print(MapTest.to_json())
# convert the object into a dict
map_test_dict = map_test_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of MixedPropertiesAndAdditionalPropertiesClass from a JSON string
mixed_properties_and_additional_properties_class_instance = MixedPropertiesAndAdditionalPropertiesClass.from_json(json)
# print the JSON string representation of the object
print MixedPropertiesAndAdditionalPropertiesClass.to_json()
print(MixedPropertiesAndAdditionalPropertiesClass.to_json())
# convert the object into a dict
mixed_properties_and_additional_properties_class_dict = mixed_properties_and_additional_properties_class_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of Model200Response from a JSON string
model200_response_instance = Model200Response.from_json(json)
# print the JSON string representation of the object
print Model200Response.to_json()
print(Model200Response.to_json())
# convert the object into a dict
model200_response_dict = model200_response_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of ModelApiResponse from a JSON string
model_api_response_instance = ModelApiResponse.from_json(json)
# print the JSON string representation of the object
print ModelApiResponse.to_json()
print(ModelApiResponse.to_json())
# convert the object into a dict
model_api_response_dict = model_api_response_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of ModelReturn from a JSON string
model_return_instance = ModelReturn.from_json(json)
# print the JSON string representation of the object
print ModelReturn.to_json()
print(ModelReturn.to_json())
# convert the object into a dict
model_return_dict = model_return_instance.to_dict()

View File

@ -21,7 +21,7 @@ json = "{}"
# create an instance of Name from a JSON string
name_instance = Name.from_json(json)
# print the JSON string representation of the object
print Name.to_json()
print(Name.to_json())
# convert the object into a dict
name_dict = name_instance.to_dict()

View File

@ -29,7 +29,7 @@ json = "{}"
# create an instance of NullableClass from a JSON string
nullable_class_instance = NullableClass.from_json(json)
# print the JSON string representation of the object
print NullableClass.to_json()
print(NullableClass.to_json())
# convert the object into a dict
nullable_class_dict = nullable_class_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of NullableProperty from a JSON string
nullable_property_instance = NullableProperty.from_json(json)
# print the JSON string representation of the object
print NullableProperty.to_json()
print(NullableProperty.to_json())
# convert the object into a dict
nullable_property_dict = nullable_property_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of NumberOnly from a JSON string
number_only_instance = NumberOnly.from_json(json)
# print the JSON string representation of the object
print NumberOnly.to_json()
print(NumberOnly.to_json())
# convert the object into a dict
number_only_dict = number_only_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of ObjectToTestAdditionalProperties from a JSON string
object_to_test_additional_properties_instance = ObjectToTestAdditionalProperties.from_json(json)
# print the JSON string representation of the object
print ObjectToTestAdditionalProperties.to_json()
print(ObjectToTestAdditionalProperties.to_json())
# convert the object into a dict
object_to_test_additional_properties_dict = object_to_test_additional_properties_instance.to_dict()

View File

@ -20,7 +20,7 @@ json = "{}"
# create an instance of ObjectWithDeprecatedFields from a JSON string
object_with_deprecated_fields_instance = ObjectWithDeprecatedFields.from_json(json)
# print the JSON string representation of the object
print ObjectWithDeprecatedFields.to_json()
print(ObjectWithDeprecatedFields.to_json())
# convert the object into a dict
object_with_deprecated_fields_dict = object_with_deprecated_fields_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of OneOfEnumString from a JSON string
one_of_enum_string_instance = OneOfEnumString.from_json(json)
# print the JSON string representation of the object
print OneOfEnumString.to_json()
print(OneOfEnumString.to_json())
# convert the object into a dict
one_of_enum_string_dict = one_of_enum_string_instance.to_dict()

View File

@ -22,7 +22,7 @@ json = "{}"
# create an instance of Order from a JSON string
order_instance = Order.from_json(json)
# print the JSON string representation of the object
print Order.to_json()
print(Order.to_json())
# convert the object into a dict
order_dict = order_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of OuterComposite from a JSON string
outer_composite_instance = OuterComposite.from_json(json)
# print the JSON string representation of the object
print OuterComposite.to_json()
print(OuterComposite.to_json())
# convert the object into a dict
outer_composite_dict = outer_composite_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of OuterObjectWithEnumProperty from a JSON string
outer_object_with_enum_property_instance = OuterObjectWithEnumProperty.from_json(json)
# print the JSON string representation of the object
print OuterObjectWithEnumProperty.to_json()
print(OuterObjectWithEnumProperty.to_json())
# convert the object into a dict
outer_object_with_enum_property_dict = outer_object_with_enum_property_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of Parent from a JSON string
parent_instance = Parent.from_json(json)
# print the JSON string representation of the object
print Parent.to_json()
print(Parent.to_json())
# convert the object into a dict
parent_dict = parent_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of ParentWithOptionalDict from a JSON string
parent_with_optional_dict_instance = ParentWithOptionalDict.from_json(json)
# print the JSON string representation of the object
print ParentWithOptionalDict.to_json()
print(ParentWithOptionalDict.to_json())
# convert the object into a dict
parent_with_optional_dict_dict = parent_with_optional_dict_instance.to_dict()

View File

@ -22,7 +22,7 @@ json = "{}"
# create an instance of Pet from a JSON string
pet_instance = Pet.from_json(json)
# print the JSON string representation of the object
print Pet.to_json()
print(Pet.to_json())
# convert the object into a dict
pet_dict = pet_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of Pig from a JSON string
pig_instance = Pig.from_json(json)
# print the JSON string representation of the object
print Pig.to_json()
print(Pig.to_json())
# convert the object into a dict
pig_dict = pig_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of PoopCleaning from a JSON string
poop_cleaning_instance = PoopCleaning.from_json(json)
# print the JSON string representation of the object
print PoopCleaning.to_json()
print(PoopCleaning.to_json())
# convert the object into a dict
poop_cleaning_dict = poop_cleaning_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of PropertyMap from a JSON string
property_map_instance = PropertyMap.from_json(json)
# print the JSON string representation of the object
print PropertyMap.to_json()
print(PropertyMap.to_json())
# convert the object into a dict
property_map_dict = property_map_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of PropertyNameCollision from a JSON string
property_name_collision_instance = PropertyNameCollision.from_json(json)
# print the JSON string representation of the object
print PropertyNameCollision.to_json()
print(PropertyNameCollision.to_json())
# convert the object into a dict
property_name_collision_dict = property_name_collision_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of ReadOnlyFirst from a JSON string
read_only_first_instance = ReadOnlyFirst.from_json(json)
# print the JSON string representation of the object
print ReadOnlyFirst.to_json()
print(ReadOnlyFirst.to_json())
# convert the object into a dict
read_only_first_dict = read_only_first_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of SecondRef from a JSON string
second_ref_instance = SecondRef.from_json(json)
# print the JSON string representation of the object
print SecondRef.to_json()
print(SecondRef.to_json())
# convert the object into a dict
second_ref_dict = second_ref_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of SelfReferenceModel from a JSON string
self_reference_model_instance = SelfReferenceModel.from_json(json)
# print the JSON string representation of the object
print SelfReferenceModel.to_json()
print(SelfReferenceModel.to_json())
# convert the object into a dict
self_reference_model_dict = self_reference_model_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of SpecialModelName from a JSON string
special_model_name_instance = SpecialModelName.from_json(json)
# print the JSON string representation of the object
print SpecialModelName.to_json()
print(SpecialModelName.to_json())
# convert the object into a dict
special_model_name_dict = special_model_name_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of SpecialName from a JSON string
special_name_instance = SpecialName.from_json(json)
# print the JSON string representation of the object
print SpecialName.to_json()
print(SpecialName.to_json())
# convert the object into a dict
special_name_dict = special_name_instance.to_dict()

View File

@ -18,7 +18,7 @@ json = "{}"
# create an instance of Tag from a JSON string
tag_instance = Tag.from_json(json)
# print the JSON string representation of the object
print Tag.to_json()
print(Tag.to_json())
# convert the object into a dict
tag_dict = tag_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of Task from a JSON string
task_instance = Task.from_json(json)
# print the JSON string representation of the object
print Task.to_json()
print(Task.to_json())
# convert the object into a dict
task_dict = task_instance.to_dict()

View File

@ -19,7 +19,7 @@ json = "{}"
# create an instance of TaskActivity from a JSON string
task_activity_instance = TaskActivity.from_json(json)
# print the JSON string representation of the object
print TaskActivity.to_json()
print(TaskActivity.to_json())
# convert the object into a dict
task_activity_dict = task_activity_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of TestErrorResponsesWithModel400Response from a JSON string
test_error_responses_with_model400_response_instance = TestErrorResponsesWithModel400Response.from_json(json)
# print the JSON string representation of the object
print TestErrorResponsesWithModel400Response.to_json()
print(TestErrorResponsesWithModel400Response.to_json())
# convert the object into a dict
test_error_responses_with_model400_response_dict = test_error_responses_with_model400_response_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of TestErrorResponsesWithModel404Response from a JSON string
test_error_responses_with_model404_response_instance = TestErrorResponsesWithModel404Response.from_json(json)
# print the JSON string representation of the object
print TestErrorResponsesWithModel404Response.to_json()
print(TestErrorResponsesWithModel404Response.to_json())
# convert the object into a dict
test_error_responses_with_model404_response_dict = test_error_responses_with_model404_response_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of TestInlineFreeformAdditionalPropertiesRequest from a JSON string
test_inline_freeform_additional_properties_request_instance = TestInlineFreeformAdditionalPropertiesRequest.from_json(json)
# print the JSON string representation of the object
print TestInlineFreeformAdditionalPropertiesRequest.to_json()
print(TestInlineFreeformAdditionalPropertiesRequest.to_json())
# convert the object into a dict
test_inline_freeform_additional_properties_request_dict = test_inline_freeform_additional_properties_request_instance.to_dict()

View File

@ -17,7 +17,7 @@ json = "{}"
# create an instance of Tiger from a JSON string
tiger_instance = Tiger.from_json(json)
# print the JSON string representation of the object
print Tiger.to_json()
print(Tiger.to_json())
# convert the object into a dict
tiger_dict = tiger_instance.to_dict()

Some files were not shown because too many files have changed in this diff Show More