From e53f3764d4247f88bff2d720d246675449019275 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Thu, 25 Jul 2024 12:04:25 +0800 Subject: [PATCH] Fix usage (#2716) * inv * changelog --- .../changes/fix-usage-2024-6-25-11-21-42.md | 7 ++++ .../pygen/codegen/models/model_type.py | 6 ++- .../authentication/apikey/models/_models.py | 1 - .../http/custom/models/_models.py | 1 - .../authentication/oauth2/models/_models.py | 1 - .../core/access/models/_models.py | 11 ------ .../core/usage/models/_models.py | 4 -- .../specs/azure/core/basic/models/_models.py | 4 -- .../azure/core/lro/standard/models/_models.py | 2 - .../specs/azure/core/model/models/_models.py | 1 - .../specs/azure/core/scalar/models/_models.py | 1 - .../specs/azure/core/traits/models/_models.py | 2 - .../azure/example/basic/models/_models.py | 1 - .../azure/mgmt/spheredpg/models/_models.py | 5 --- .../managedidentity/models/_models.py | 4 -- .../models/resources/models/_models.py | 2 - .../azurecore/lro/rpc/models/_models.py | 1 - .../encode/bytes/models/_models.py | 4 -- .../encode/datetime/models/_models.py | 5 --- .../encode/duration/models/_models.py | 6 --- .../headasbooleanfalse/models/_models.py | 1 - .../headasbooleantrue/models/_models.py | 1 - .../contentnegotiation/models/_models.py | 1 - .../payload/jsonmergepatch/models/_models.py | 1 - .../payload/pageable/models/_models.py | 1 - .../encodedname/json/models/_models.py | 1 - .../typetest/array/models/_models.py | 1 - .../typetest/dictionary/models/_models.py | 1 - .../model/enumdiscriminator/models/_models.py | 4 -- .../typetest/model/flatten/models/_models.py | 4 -- .../nesteddiscriminator/models/_models.py | 5 --- .../model/notdiscriminated/models/_models.py | 3 -- .../model/recursive/models/_models.py | 1 - .../singlediscriminator/models/_models.py | 7 ---- .../typetest/model/usage/models/_models.py | 2 - .../model/visibility/models/_models.py | 1 - .../additionalproperties/models/_models.py | 38 ------------------- .../property/nullable/models/_models.py | 8 ---- .../property/optional/models/_models.py | 1 - .../property/valuetypes/models/_models.py | 29 -------------- .../typetest/union/models/_models.py | 16 -------- .../versioning/added/models/_models.py | 2 - .../versioning/madeoptional/models/_models.py | 1 - .../versioning/removed/models/_models.py | 1 - .../versioning/renamedfrom/models/_models.py | 1 - .../typechangedfrom/models/_models.py | 1 - .../authentication/apikey/models/_models.py | 1 - .../http/custom/models/_models.py | 1 - .../authentication/oauth2/models/_models.py | 1 - .../encode/bytes/models/_models.py | 4 -- .../encode/datetime/models/_models.py | 5 --- .../encode/duration/models/_models.py | 6 --- .../headasbooleanfalse/models/_models.py | 1 - .../headasbooleantrue/models/_models.py | 1 - .../contentnegotiation/models/_models.py | 1 - .../payload/jsonmergepatch/models/_models.py | 1 - .../payload/pageable/models/_models.py | 1 - .../encodedname/json/models/_models.py | 1 - .../typetest/array/models/_models.py | 1 - .../typetest/dictionary/models/_models.py | 1 - .../model/enumdiscriminator/models/_models.py | 4 -- .../typetest/model/flatten/models/_models.py | 4 -- .../nesteddiscriminator/models/_models.py | 5 --- .../model/notdiscriminated/models/_models.py | 3 -- .../model/recursive/models/_models.py | 1 - .../singlediscriminator/models/_models.py | 7 ---- .../typetest/model/usage/models/_models.py | 2 - .../model/visibility/models/_models.py | 1 - .../additionalproperties/models/_models.py | 38 ------------------- .../property/nullable/models/_models.py | 8 ---- .../property/optional/models/_models.py | 1 - .../property/valuetypes/models/_models.py | 29 -------------- .../typetest/union/models/_models.py | 16 -------- .../versioning/added/models/_models.py | 2 - .../versioning/madeoptional/models/_models.py | 1 - .../versioning/removed/models/_models.py | 1 - .../versioning/renamedfrom/models/_models.py | 1 - .../typechangedfrom/models/_models.py | 1 - 78 files changed, 12 insertions(+), 341 deletions(-) create mode 100644 .chronus/changes/fix-usage-2024-6-25-11-21-42.md diff --git a/.chronus/changes/fix-usage-2024-6-25-11-21-42.md b/.chronus/changes/fix-usage-2024-6-25-11-21-42.md new file mode 100644 index 0000000000..5a8ba5cc54 --- /dev/null +++ b/.chronus/changes/fix-usage-2024-6-25-11-21-42.md @@ -0,0 +1,7 @@ +--- +changeKind: fix +packages: + - "@azure-tools/typespec-python" +--- + +Fix the logic to judge whether model is output or not \ No newline at end of file diff --git a/packages/typespec-python/generator/pygen/codegen/models/model_type.py b/packages/typespec-python/generator/pygen/codegen/models/model_type.py index f2a7963e07..f510f16ad7 100644 --- a/packages/typespec-python/generator/pygen/codegen/models/model_type.py +++ b/packages/typespec-python/generator/pygen/codegen/models/model_type.py @@ -32,6 +32,10 @@ class UsageFlags(Enum): ApiVersionEnum = 8 JsonMergePatch = 16 MultipartFormData = 32 + Spread = 64 + Error = 128 + Json = 256 + Xml = 512 def _get_properties(type: "ModelType", properties: List[Property]) -> List[Property]: @@ -86,7 +90,7 @@ def __init__( @property def is_usage_output(self) -> bool: - return self.usage == UsageFlags.Output.value + return self.usage & UsageFlags.Output.value @property def flattened_property(self) -> Optional[Property]: diff --git a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/models/_models.py b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/models/_models.py index 628c2d9047..686832c5e2 100644 --- a/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/models/_models.py +++ b/packages/typespec-python/test/azure/generated/authentication-api-key/authentication/apikey/models/_models.py @@ -16,7 +16,6 @@ class InvalidAuth(_model_base.Model): """InvalidAuth. - All required parameters must be populated in order to send to server. :ivar error: Required. :vartype error: str diff --git a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/models/_models.py b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/models/_models.py index 628c2d9047..686832c5e2 100644 --- a/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/models/_models.py +++ b/packages/typespec-python/test/azure/generated/authentication-http-custom/authentication/http/custom/models/_models.py @@ -16,7 +16,6 @@ class InvalidAuth(_model_base.Model): """InvalidAuth. - All required parameters must be populated in order to send to server. :ivar error: Required. :vartype error: str diff --git a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/models/_models.py b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/models/_models.py index 628c2d9047..686832c5e2 100644 --- a/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/models/_models.py +++ b/packages/typespec-python/test/azure/generated/authentication-oauth2/authentication/oauth2/models/_models.py @@ -16,7 +16,6 @@ class InvalidAuth(_model_base.Model): """InvalidAuth. - All required parameters must be populated in order to send to server. :ivar error: Required. :vartype error: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py index d2a2f71aa3..169cec74f1 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-access/specs/azure/clientgenerator/core/access/models/_models.py @@ -23,7 +23,6 @@ class AbstractModel(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: RealModel - All required parameters must be populated in order to send to server. :ivar kind: Discriminator property for AbstractModel. Required. Default value is None. :vartype kind: str @@ -41,7 +40,6 @@ class AbstractModel(_model_base.Model): class BaseModel(_model_base.Model): """Used in internal operations, should be generated but not exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -54,7 +52,6 @@ class BaseModel(_model_base.Model): class InnerModel(_model_base.Model): """Used in internal operations, should be generated but not exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -67,7 +64,6 @@ class InnerModel(_model_base.Model): class InternalDecoratorModelInInternal(_model_base.Model): """Used in an internal operation, should be generated but not exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -80,7 +76,6 @@ class InternalDecoratorModelInInternal(_model_base.Model): class NoDecoratorModelInInternal(_model_base.Model): """Used in an internal operation, should be generated but not exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -93,7 +88,6 @@ class NoDecoratorModelInInternal(_model_base.Model): class NoDecoratorModelInPublic(_model_base.Model): """Used in a public operation, should be generated and exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -123,7 +117,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class OuterModel(BaseModel): """Used in internal operations, should be generated but not exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -138,7 +131,6 @@ class OuterModel(BaseModel): class PublicDecoratorModelInInternal(_model_base.Model): """Used in an internal operation but with public decorator, should be generated and exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -168,7 +160,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class PublicDecoratorModelInPublic(_model_base.Model): """Used in a public operation, should be generated and exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -198,7 +189,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class RealModel(AbstractModel, discriminator="real"): """Used in internal operations, should be generated but not exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -213,7 +203,6 @@ class RealModel(AbstractModel, discriminator="real"): class SharedModel(_model_base.Model): """Used by both public and internal operation. It should be generated and exported. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str diff --git a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py index b307b83371..0faa0774d3 100644 --- a/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-client-generator-core-usage/specs/azure/clientgenerator/core/usage/models/_models.py @@ -20,7 +20,6 @@ class InputModel(_model_base.Model): """Usage override to roundtrip. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -81,7 +80,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class OutputModel(_model_base.Model): """Usage override to roundtrip. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -111,7 +109,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ResultModel(_model_base.Model): """ResultModel. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -143,7 +140,6 @@ class RoundTripModel(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar result: Required. :vartype result: ~specs.azure.clientgenerator.core.usage.models.ResultModel diff --git a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py index f0743b767f..57a205a803 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-basic/specs/azure/core/basic/models/_models.py @@ -22,7 +22,6 @@ class FirstItem(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: The id of the item. Required. :vartype id: int @@ -67,7 +66,6 @@ class SecondItem(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar name: The name of the item. Required. :vartype name: str @@ -82,7 +80,6 @@ class User(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: The user's id. Required. :vartype id: int @@ -127,7 +124,6 @@ class UserOrder(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: The user's id. Required. :vartype id: int diff --git a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py index 3ff18586a6..e5ca2850c0 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-lro-standard/specs/azure/core/lro/standard/models/_models.py @@ -16,7 +16,6 @@ class ExportedUser(_model_base.Model): """The exported user data. - All required parameters must be populated in order to send to server. :ivar name: The name of user. Required. :vartype name: str @@ -53,7 +52,6 @@ class User(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar name: The name of user. Required. :vartype name: str diff --git a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/models/_models.py index 60ec39b753..cc866b6eeb 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-model/specs/azure/core/model/models/_models.py @@ -16,7 +16,6 @@ class AzureEmbeddingModel(_model_base.Model): """AzureEmbeddingModel. - All required parameters must be populated in order to send to server. :ivar embedding: Required. :vartype embedding: list[int] diff --git a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/models/_models.py index 116670ccf7..f41da3a56a 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-scalar/specs/azure/core/scalar/models/_models.py @@ -16,7 +16,6 @@ class AzureLocationModel(_model_base.Model): """AzureLocationModel. - All required parameters must be populated in order to send to server. :ivar location: Required. :vartype location: str diff --git a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py index 63310893e8..39aedab4db 100644 --- a/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-core-traits/specs/azure/core/traits/models/_models.py @@ -18,7 +18,6 @@ class User(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: The user's id. Required. :vartype id: int @@ -82,7 +81,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UserActionResponse(_model_base.Model): """User action response. - All required parameters must be populated in order to send to server. :ivar user_action_result: User action result. Required. :vartype user_action_result: str diff --git a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py index c28d66fd83..9f34bb0bbe 100644 --- a/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-example-basic/specs/azure/example/basic/models/_models.py @@ -62,7 +62,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ActionResponse(_model_base.Model): """ActionResponse. - All required parameters must be populated in order to send to server. :ivar string_property: Required. :vartype string_property: str diff --git a/packages/typespec-python/test/azure/generated/azure-mgmt-spheredpg/azure/mgmt/spheredpg/models/_models.py b/packages/typespec-python/test/azure/generated/azure-mgmt-spheredpg/azure/mgmt/spheredpg/models/_models.py index bd66b4b1fc..c8ca773210 100644 --- a/packages/typespec-python/test/azure/generated/azure-mgmt-spheredpg/azure/mgmt/spheredpg/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-mgmt-spheredpg/azure/mgmt/spheredpg/models/_models.py @@ -54,7 +54,6 @@ class TrackedResource(Resource): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long @@ -102,7 +101,6 @@ class Catalog(TrackedResource): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long @@ -345,7 +343,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CountElementsResponse(_model_base.Model): """Response of the count for elements. - All required parameters must be populated in order to send to server. :ivar value: Number of children resources in parent resource. Required. :vartype value: int @@ -375,7 +372,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CountDevicesResponse(CountElementsResponse): """Response to the action call for count devices in a catalog. - All required parameters must be populated in order to send to server. :ivar value: Number of children resources in parent resource. Required. :vartype value: int @@ -736,7 +732,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DeviceInsight(_model_base.Model): """Device insight report. - All required parameters must be populated in order to send to server. :ivar device_id: Device ID. Required. :vartype device_id: str diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-models-common-types-managed-identity/azure/resourcemanager/models/commontypes/managedidentity/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-models-common-types-managed-identity/azure/resourcemanager/models/commontypes/managedidentity/models/_models.py index 0afd18dfcb..7fad059a60 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-models-common-types-managed-identity/azure/resourcemanager/models/commontypes/managedidentity/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-models-common-types-managed-identity/azure/resourcemanager/models/commontypes/managedidentity/models/_models.py @@ -134,7 +134,6 @@ class TrackedResource(Resource): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long @@ -184,7 +183,6 @@ class ManagedIdentityTrackedResource(TrackedResource): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long @@ -241,7 +239,6 @@ class ManagedIdentityTrackedResourceProperties(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar provisioning_state: The status of the last operation. Required. :vartype provisioning_state: str @@ -256,7 +253,6 @@ class ManagedServiceIdentity(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar principal_id: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. diff --git a/packages/typespec-python/test/azure/generated/azure-resource-manager-models-resources/azure/resourcemanager/models/resources/models/_models.py b/packages/typespec-python/test/azure/generated/azure-resource-manager-models-resources/azure/resourcemanager/models/resources/models/_models.py index 63ebd32488..396c177fe7 100644 --- a/packages/typespec-python/test/azure/generated/azure-resource-manager-models-resources/azure/resourcemanager/models/resources/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azure-resource-manager-models-resources/azure/resourcemanager/models/resources/models/_models.py @@ -291,7 +291,6 @@ class TrackedResource(Resource): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long @@ -340,7 +339,6 @@ class TopLevelTrackedResource(TrackedResource): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long diff --git a/packages/typespec-python/test/azure/generated/azurecore-lro-rpc/azurecore/lro/rpc/models/_models.py b/packages/typespec-python/test/azure/generated/azurecore-lro-rpc/azurecore/lro/rpc/models/_models.py index a4336adbbd..429e3daa2c 100644 --- a/packages/typespec-python/test/azure/generated/azurecore-lro-rpc/azurecore/lro/rpc/models/_models.py +++ b/packages/typespec-python/test/azure/generated/azurecore-lro-rpc/azurecore/lro/rpc/models/_models.py @@ -46,7 +46,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GenerationResult(_model_base.Model): """Result of the generation. - All required parameters must be populated in order to send to server. :ivar data: The data. Required. :vartype data: str diff --git a/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/models/_models.py b/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/models/_models.py index 3c2fca7ae0..193d7f34b6 100644 --- a/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/models/_models.py +++ b/packages/typespec-python/test/azure/generated/encode-bytes/encode/bytes/models/_models.py @@ -16,7 +16,6 @@ class Base64BytesProperty(_model_base.Model): """Base64BytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: bytes @@ -46,7 +45,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Base64urlArrayBytesProperty(_model_base.Model): """Base64urlArrayBytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: list[bytes] @@ -76,7 +74,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Base64urlBytesProperty(_model_base.Model): """Base64urlBytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: bytes @@ -106,7 +103,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DefaultBytesProperty(_model_base.Model): """DefaultBytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: bytes diff --git a/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/models/_models.py b/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/models/_models.py index ee0e5e064a..76729ad09d 100644 --- a/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/models/_models.py +++ b/packages/typespec-python/test/azure/generated/encode-datetime/encode/datetime/models/_models.py @@ -17,7 +17,6 @@ class DefaultDatetimeProperty(_model_base.Model): """DefaultDatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime @@ -47,7 +46,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Rfc3339DatetimeProperty(_model_base.Model): """Rfc3339DatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime @@ -77,7 +75,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Rfc7231DatetimeProperty(_model_base.Model): """Rfc7231DatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime @@ -107,7 +104,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnixTimestampArrayDatetimeProperty(_model_base.Model): """UnixTimestampArrayDatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: list[~datetime.datetime] @@ -137,7 +133,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnixTimestampDatetimeProperty(_model_base.Model): """UnixTimestampDatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime diff --git a/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/models/_models.py b/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/models/_models.py index c56a43c7b3..4d9db64671 100644 --- a/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/models/_models.py +++ b/packages/typespec-python/test/azure/generated/encode-duration/encode/duration/models/_models.py @@ -17,7 +17,6 @@ class DefaultDurationProperty(_model_base.Model): """DefaultDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.timedelta @@ -47,7 +46,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Float64SecondsDurationProperty(_model_base.Model): """Float64SecondsDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: float @@ -77,7 +75,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class FloatSecondsDurationArrayProperty(_model_base.Model): """FloatSecondsDurationArrayProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: list[float] @@ -107,7 +104,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class FloatSecondsDurationProperty(_model_base.Model): """FloatSecondsDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: float @@ -137,7 +133,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Int32SecondsDurationProperty(_model_base.Model): """Int32SecondsDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: int @@ -167,7 +162,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ISO8601DurationProperty(_model_base.Model): """ISO8601DurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.timedelta diff --git a/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py b/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py index 62c9a23adb..5a99a68854 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py +++ b/packages/typespec-python/test/azure/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py @@ -35,7 +35,6 @@ class VisibilityModel(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar read_prop: Required string, illustrating a readonly property. Required. :vartype read_prop: str diff --git a/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py b/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py index 62c9a23adb..5a99a68854 100644 --- a/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py +++ b/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/models/_models.py @@ -35,7 +35,6 @@ class VisibilityModel(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar read_prop: Required string, illustrating a readonly property. Required. :vartype read_prop: str diff --git a/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py b/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py index 3830cdebf9..494ca7fe6b 100644 --- a/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py +++ b/packages/typespec-python/test/azure/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py @@ -16,7 +16,6 @@ class PngImageAsJson(_model_base.Model): """PngImageAsJson. - All required parameters must be populated in order to send to server. :ivar content: Required. :vartype content: bytes diff --git a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py index 8d9317193a..8ccade078b 100644 --- a/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py +++ b/packages/typespec-python/test/azure/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py @@ -51,7 +51,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Resource(_model_base.Model): """Details about a resource. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str diff --git a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py index 6526110ff3..049927c438 100644 --- a/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py +++ b/packages/typespec-python/test/azure/generated/payload-pageable/payload/pageable/models/_models.py @@ -16,7 +16,6 @@ class User(_model_base.Model): """User model. - All required parameters must be populated in order to send to server. :ivar name: User name. Required. :vartype name: str diff --git a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py index d67d5fb9c5..6b44f0f811 100644 --- a/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py +++ b/packages/typespec-python/test/azure/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py @@ -16,7 +16,6 @@ class JsonEncodedNameModel(_model_base.Model): """JsonEncodedNameModel. - All required parameters must be populated in order to send to server. :ivar default_name: Pass in true. Required. :vartype default_name: bool diff --git a/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py index 4223014b01..d1fdd5172d 100644 --- a/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-array/typetest/array/models/_models.py @@ -20,7 +20,6 @@ class InnerModel(_model_base.Model): """Array inner model. - All required parameters must be populated in order to send to server. :ivar property: Required string property. Required. :vartype property: str diff --git a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py index 5892514e7f..e20e1e302e 100644 --- a/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-dictionary/typetest/dictionary/models/_models.py @@ -20,7 +20,6 @@ class InnerModel(_model_base.Model): """Dictionary inner model. - All required parameters must be populated in order to send to server. :ivar property: Required string property. Required. :vartype property: str diff --git a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py index f2b985084e..fff8271243 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py @@ -20,7 +20,6 @@ class Snake(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Cobra - All required parameters must be populated in order to send to server. :ivar kind: discriminator property. Required. "cobra" :vartype kind: str or ~typetest.model.enumdiscriminator.models.SnakeKind @@ -56,7 +55,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Cobra(Snake, discriminator="cobra"): """Cobra model. - All required parameters must be populated in order to send to server. :ivar length: Length of the snake. Required. :vartype length: int @@ -91,7 +89,6 @@ class Dog(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Golden - All required parameters must be populated in order to send to server. :ivar kind: discriminator property. Required. "golden" :vartype kind: str or ~typetest.model.enumdiscriminator.models.DogKind @@ -127,7 +124,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Golden(Dog, discriminator="golden"): """Golden dog model. - All required parameters must be populated in order to send to server. :ivar weight: Weight of the dog. Required. :vartype weight: int diff --git a/packages/typespec-python/test/azure/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py index d862a3b890..8ea4715a50 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py @@ -20,7 +20,6 @@ class ChildFlattenModel(_model_base.Model): """This is the child model to be flattened. And it has flattened property as well. - All required parameters must be populated in order to send to server. :ivar summary: Required. :vartype summary: str @@ -75,7 +74,6 @@ def __setattr__(self, key: str, value: Any) -> None: class ChildModel(_model_base.Model): """This is the child model to be flattened. - All required parameters must be populated in order to send to server. :ivar description: Required. :vartype description: str @@ -110,7 +108,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class FlattenModel(_model_base.Model): """This is the model with one level of flattening. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -165,7 +162,6 @@ def __setattr__(self, key: str, value: Any) -> None: class NestedFlattenModel(_model_base.Model): """This is the model with two levels of flattening. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str diff --git a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py index 73b4b19046..17010fb529 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py @@ -23,7 +23,6 @@ class Fish(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Salmon, Shark - All required parameters must be populated in order to send to server. :ivar kind: Discriminator property for Fish. Required. Default value is None. :vartype kind: str @@ -63,7 +62,6 @@ class Shark(Fish, discriminator="shark"): You probably want to use the sub-classes and not this class directly. Known sub-classes are: GoblinShark, SawShark - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int @@ -101,7 +99,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GoblinShark(Shark, discriminator="goblin"): """The third level model GoblinShark in polymorphic multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int @@ -137,7 +134,6 @@ class Salmon(Fish, discriminator="salmon"): """The second level model in polymorphic multiple levels inheritance which contains references to other polymorphic instances. - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int @@ -181,7 +177,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SawShark(Shark, discriminator="saw"): """The third level model SawShark in polymorphic multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int diff --git a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py index 4f7366dd90..0c61a2fa80 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py @@ -16,7 +16,6 @@ class Pet(_model_base.Model): """This is base model for not-discriminated normal multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -46,7 +45,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Cat(Pet): """The second level model in the normal multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -79,7 +77,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Siamese(Cat): """The third level model in the normal multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str diff --git a/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py index fe5ab7928b..537465c277 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py @@ -47,7 +47,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Extension(Element): """extension. - All required parameters must be populated in order to send to server. :ivar extension: :vartype extension: list[~typetest.model.recursive.models.Extension] diff --git a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py index 348787b0f6..09deb20ede 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py @@ -23,7 +23,6 @@ class Bird(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Eagle, Goose, SeaGull, Sparrow - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is None. :vartype kind: str @@ -63,7 +62,6 @@ class Dinosaur(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: TRex - All required parameters must be populated in order to send to server. :ivar kind: Discriminator property for Dinosaur. Required. Default value is None. :vartype kind: str @@ -100,7 +98,6 @@ class Eagle(Bird, discriminator="eagle"): """The second level model in polymorphic single levels inheritance which contains references to other polymorphic instances. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -144,7 +141,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Goose(Bird, discriminator="goose"): """The second level model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -176,7 +172,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SeaGull(Bird, discriminator="seagull"): """The second level model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -208,7 +203,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Sparrow(Bird, discriminator="sparrow"): """The second level model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -240,7 +234,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class TRex(Dinosaur, discriminator="t-rex"): """The second level legacy model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar size: Required. :vartype size: int diff --git a/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/models/_models.py index 9cb337ae74..1c99b7a84b 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-usage/typetest/model/usage/models/_models.py @@ -16,7 +16,6 @@ class InputOutputRecord(_model_base.Model): """Record used both as operation parameter and return type. - All required parameters must be populated in order to send to server. :ivar required_prop: Required. :vartype required_prop: str @@ -76,7 +75,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class OutputRecord(_model_base.Model): """Record used in operation return type. - All required parameters must be populated in order to send to server. :ivar required_prop: Required. :vartype required_prop: str diff --git a/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py index 62c9a23adb..5a99a68854 100644 --- a/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py @@ -35,7 +35,6 @@ class VisibilityModel(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar read_prop: Required string, illustrating a readonly property. Required. :vartype read_prop: str diff --git a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py index 73c4fbad20..d4f15abf71 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py @@ -21,7 +21,6 @@ class DifferentSpreadFloatRecord(_model_base.Model): """The model spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar name: The id property. Required. :vartype name: str @@ -52,7 +51,6 @@ class DifferentSpreadFloatDerived(DifferentSpreadFloatRecord): """The model extends from a model that spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar name: The id property. Required. :vartype name: str @@ -85,7 +83,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DifferentSpreadModelArrayRecord(_model_base.Model): """The model spread Record with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -116,7 +113,6 @@ class DifferentSpreadModelArrayDerived(DifferentSpreadModelArrayRecord): """The model extends from a model that spread Record with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -149,7 +145,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DifferentSpreadModelRecord(_model_base.Model): """The model spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -180,7 +175,6 @@ class DifferentSpreadModelDerived(DifferentSpreadModelRecord): """The model extends from a model that spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -213,7 +207,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DifferentSpreadStringRecord(_model_base.Model): """The model spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar id: The name property. Required. :vartype id: float @@ -244,7 +237,6 @@ class DifferentSpreadStringDerived(DifferentSpreadStringRecord): """The model extends from a model that spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar id: The name property. Required. :vartype id: float @@ -277,7 +269,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsFloatAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar id: The id property. Required. :vartype id: float @@ -307,7 +298,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsModelAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: ~typetest.property.additionalproperties.models.ModelForRecord @@ -337,7 +327,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsModelArrayAdditionalProperties(_model_base.Model): """The model extends from Record type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: list[~typetest.property.additionalproperties.models.ModelForRecord] @@ -367,7 +356,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsStringAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -397,7 +385,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsUnknownAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -427,7 +414,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsUnknownAdditionalPropertiesDerived(ExtendsUnknownAdditionalProperties): # pylint: disable=name-too-long """The model extends from a type that extends from Record:code:``. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -468,7 +454,6 @@ class ExtendsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pyl You probably want to use the sub-classes and not this class directly. Known sub-classes are: ExtendsUnknownAdditionalPropertiesDiscriminatedDerived - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -506,7 +491,6 @@ class ExtendsUnknownAdditionalPropertiesDiscriminatedDerived( ): # pylint: disable=name-too-long """The derived discriminated type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -548,7 +532,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsFloatAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar id: The id property. Required. :vartype id: float @@ -578,7 +561,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsModelAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: ~typetest.property.additionalproperties.models.ModelForRecord @@ -608,7 +590,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsModelArrayAdditionalProperties(_model_base.Model): """The model is from Record type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: list[~typetest.property.additionalproperties.models.ModelForRecord] @@ -638,7 +619,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsStringAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -668,7 +648,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsUnknownAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -698,7 +677,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsUnknownAdditionalPropertiesDerived(IsUnknownAdditionalProperties): """The model extends from a type that is Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -739,7 +717,6 @@ class IsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pylint: You probably want to use the sub-classes and not this class directly. Known sub-classes are: IsUnknownAdditionalPropertiesDiscriminatedDerived - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -777,7 +754,6 @@ class IsUnknownAdditionalPropertiesDiscriminatedDerived( ): # pylint: disable=name-too-long """The derived discriminated type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -819,7 +795,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ModelForRecord(_model_base.Model): """model for record. - All required parameters must be populated in order to send to server. :ivar state: The state property. Required. :vartype state: str @@ -849,7 +824,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class MultipleSpreadRecord(_model_base.Model): """The model spread Record:code:`` and Record:code:``. - All required parameters must be populated in order to send to server. :ivar flag: The name property. Required. :vartype flag: bool @@ -879,7 +853,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadFloatRecord(_model_base.Model): """The model spread Record:code:`` with the same known property type. - All required parameters must be populated in order to send to server. :ivar id: The id property. Required. :vartype id: float @@ -909,7 +882,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadModelArrayRecord(_model_base.Model): """SpreadModelArrayRecord. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: list[~typetest.property.additionalproperties.models.ModelForRecord] @@ -939,7 +911,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadModelRecord(_model_base.Model): """The model spread Record:code:`` with the same known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: ~typetest.property.additionalproperties.models.ModelForRecord @@ -969,7 +940,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForDiscriminatedUnion(_model_base.Model): """The model spread Record:code:``. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -999,7 +969,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForNonDiscriminatedUnion(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1029,7 +998,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForNonDiscriminatedUnion2(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1059,7 +1027,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForNonDiscriminatedUnion3(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1089,7 +1056,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForUnion(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar flag: The name property. Required. :vartype flag: bool @@ -1119,7 +1085,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadStringRecord(_model_base.Model): """The model spread Record:code:`` with the same known property type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1151,7 +1116,6 @@ class WidgetData0(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is "kind0". :vartype kind: str @@ -1188,7 +1152,6 @@ class WidgetData1(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is "kind1". :vartype kind: str @@ -1229,7 +1192,6 @@ class WidgetData2(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is "kind1". :vartype kind: str diff --git a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py index d070293100..c9b0e033c0 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py @@ -22,7 +22,6 @@ class BytesProperty(_model_base.Model): """Template type for testing models with nullable property. Pass in the type of the property you are looking for. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -57,7 +56,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsByteProperty(_model_base.Model): """Model with collection bytes properties. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -92,7 +90,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsModelProperty(_model_base.Model): """Model with collection models properties. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -127,7 +124,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsStringProperty(_model_base.Model): """Model with collection string properties. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -162,7 +158,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DatetimeProperty(_model_base.Model): """Model with a datetime property. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -197,7 +192,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DurationProperty(_model_base.Model): """Model with a duration property. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -232,7 +226,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class InnerModel(_model_base.Model): """Inner model used in collections model property. - All required parameters must be populated in order to send to server. :ivar property: Inner model property. Required. :vartype property: str @@ -263,7 +256,6 @@ class StringProperty(_model_base.Model): """Template type for testing models with nullable property. Pass in the type of the property you are looking for. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str diff --git a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py index 5c9263bfc4..f9c6095fb4 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-optional/typetest/property/optional/models/_models.py @@ -302,7 +302,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class RequiredAndOptionalProperty(_model_base.Model): """Model with required and optional properties. - All required parameters must be populated in order to send to server. :ivar optional_property: optional string property. :vartype optional_property: str diff --git a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py index 566b7958e9..6c1bab3d97 100644 --- a/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py @@ -25,7 +25,6 @@ class BooleanLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is True. :vartype property: bool @@ -42,7 +41,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class BooleanProperty(_model_base.Model): """Model with a boolean property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: bool @@ -72,7 +70,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class BytesProperty(_model_base.Model): """Model with a bytes property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: bytes @@ -102,7 +99,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsIntProperty(_model_base.Model): """Model with collection int properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: list[int] @@ -132,7 +128,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsModelProperty(_model_base.Model): """Model with collection model properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: list[~typetest.property.valuetypes.models.InnerModel] @@ -162,7 +157,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsStringProperty(_model_base.Model): """Model with collection string properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: list[str] @@ -192,7 +186,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DatetimeProperty(_model_base.Model): """Model with a datetime property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~datetime.datetime @@ -222,7 +215,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Decimal128Property(_model_base.Model): """Model with a decimal128 property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~decimal.Decimal @@ -252,7 +244,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DecimalProperty(_model_base.Model): """Model with a decimal property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~decimal.Decimal @@ -282,7 +273,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DictionaryStringProperty(_model_base.Model): """Model with dictionary string properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: dict[str, str] @@ -312,7 +302,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DurationProperty(_model_base.Model): """Model with a duration property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~datetime.timedelta @@ -342,7 +331,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class EnumProperty(_model_base.Model): """Model with enum properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Known values are: "ValueOne" and "ValueTwo". :vartype property: str or ~typetest.property.valuetypes.models.FixedInnerEnum @@ -372,7 +360,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtensibleEnumProperty(_model_base.Model): """Model with extensible enum properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Known values are: "ValueOne" and "ValueTwo". :vartype property: str or ~typetest.property.valuetypes.models.InnerEnum @@ -404,7 +391,6 @@ class FloatLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is 43.125. :vartype property: float @@ -421,7 +407,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class FloatProperty(_model_base.Model): """Model with a float property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: float @@ -451,7 +436,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class InnerModel(_model_base.Model): """Inner model. Will be a property type for ModelWithModelProperties. - All required parameters must be populated in order to send to server. :ivar property: Required string property. Required. :vartype property: str @@ -483,7 +467,6 @@ class IntLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is 42. :vartype property: int @@ -500,7 +483,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IntProperty(_model_base.Model): """Model with a int property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: int @@ -530,7 +512,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ModelProperty(_model_base.Model): """Model with model properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~typetest.property.valuetypes.models.InnerModel @@ -566,7 +547,6 @@ class StringLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is "hello". :vartype property: str @@ -583,7 +563,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class StringProperty(_model_base.Model): """Model with a string property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: str @@ -614,7 +593,6 @@ class UnionEnumValueProperty(_model_base.Model): """Template type for testing models with specific properties. Pass in the type of the property you are looking for. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: str or ~typetest.property.valuetypes.models.ENUM_VALUE2 @@ -644,7 +622,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnionFloatLiteralProperty(_model_base.Model): """Model with a union of float literal as property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Is either a float type or a float type. :vartype property: float or float @@ -674,7 +651,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnionIntLiteralProperty(_model_base.Model): """Model with a union of int literal as property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Is either a Literal[42] type or a Literal[43] type. :vartype property: int or int @@ -704,7 +680,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnionStringLiteralProperty(_model_base.Model): """Model with a union of string literal as property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Is either a Literal["hello"] type or a Literal["world"] type. @@ -735,7 +710,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownArrayProperty(_model_base.Model): """Model with a property unknown, and the data is an array. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any @@ -765,7 +739,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownDictProperty(_model_base.Model): """Model with a property unknown, and the data is a dictionnary. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any @@ -795,7 +768,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownIntProperty(_model_base.Model): """Model with a property unknown, and the data is a int32. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any @@ -825,7 +797,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownStringProperty(_model_base.Model): """Model with a property unknown, and the data is a string. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any diff --git a/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py b/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py index 85dedd6982..f014086506 100644 --- a/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py +++ b/packages/typespec-python/test/azure/generated/typetest-union/typetest/union/models/_models.py @@ -27,7 +27,6 @@ class Cat(_model_base.Model): """Cat. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -57,7 +56,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Dog(_model_base.Model): """Dog. - All required parameters must be populated in order to send to server. :ivar bark: Required. :vartype bark: str @@ -87,7 +85,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class EnumsOnlyCases(_model_base.Model): """EnumsOnlyCases. - All required parameters must be populated in order to send to server. :ivar lr: This should be receive/send the left variant. Required. Is one of the following types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] @@ -126,7 +123,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse(_model_base.Model): """GetResponse. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.MixedTypesCases @@ -156,7 +152,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse1(_model_base.Model): """GetResponse1. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.MixedLiteralsCases @@ -186,7 +181,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse2(_model_base.Model): """GetResponse2. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.StringAndArrayCases @@ -216,7 +210,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse3(_model_base.Model): """GetResponse3. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.EnumsOnlyCases @@ -246,7 +239,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse4(_model_base.Model): """GetResponse4. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is either a Cat type or a Dog type. :vartype prop: ~typetest.union.models.Cat or ~typetest.union.models.Dog @@ -276,7 +268,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse5(_model_base.Model): """GetResponse5. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: float, float, float :vartype prop: float or float or float @@ -306,7 +297,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse6(_model_base.Model): """GetResponse6. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: Literal[1], Literal[2], Literal[3] :vartype prop: int or int or int @@ -336,7 +326,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse7(_model_base.Model): """GetResponse7. - All required parameters must be populated in order to send to server. :ivar prop: Required. Known values are: "b" and "c". :vartype prop: str or ~typetest.union.models.StringExtensibleNamedUnion @@ -366,7 +355,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse8(_model_base.Model): """GetResponse8. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: Literal["b"], Literal["c"], str :vartype prop: str or str or str @@ -396,7 +384,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse9(_model_base.Model): """GetResponse9. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: Literal["a"], Literal["b"], Literal["c"] :vartype prop: str or str or str @@ -426,7 +413,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class MixedLiteralsCases(_model_base.Model): """MixedLiteralsCases. - All required parameters must be populated in order to send to server. :ivar string_literal: This should be receive/send the "a" variant. Required. Is one of the following types: Literal["a"], Literal[2], float, Literal[True] @@ -479,7 +465,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class MixedTypesCases(_model_base.Model): """MixedTypesCases. - All required parameters must be populated in order to send to server. :ivar model: This should be receive/send the Cat variant. Required. Is one of the following types: Cat, Literal["a"], int, bool @@ -537,7 +522,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class StringAndArrayCases(_model_base.Model): """StringAndArrayCases. - All required parameters must be populated in order to send to server. :ivar string: This should be receive/send the string variant. Required. Is either a str type or a [str] type. diff --git a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py index a169212a84..1262da1da9 100644 --- a/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-added/versioning/added/models/_models.py @@ -20,7 +20,6 @@ class ModelV1(_model_base.Model): """ModelV1. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str @@ -60,7 +59,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ModelV2(_model_base.Model): """ModelV2. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str diff --git a/packages/typespec-python/test/azure/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py index 56c321bbdd..4bc8fc39a5 100644 --- a/packages/typespec-python/test/azure/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py @@ -16,7 +16,6 @@ class TestModel(_model_base.Model): """TestModel. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str diff --git a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py index f45acfaf0d..a7461b93d6 100644 --- a/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-removed/versioning/removed/models/_models.py @@ -20,7 +20,6 @@ class ModelV2(_model_base.Model): """ModelV2. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str diff --git a/packages/typespec-python/test/azure/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py index 8a5fb56721..cac79226a0 100644 --- a/packages/typespec-python/test/azure/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py @@ -20,7 +20,6 @@ class NewModel(_model_base.Model): """NewModel. - All required parameters must be populated in order to send to server. :ivar new_prop: Required. :vartype new_prop: str diff --git a/packages/typespec-python/test/azure/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py b/packages/typespec-python/test/azure/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py index 770416a98c..53dd351c6d 100644 --- a/packages/typespec-python/test/azure/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py +++ b/packages/typespec-python/test/azure/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py @@ -16,7 +16,6 @@ class TestModel(_model_base.Model): """TestModel. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str diff --git a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/models/_models.py b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/models/_models.py index 37896dc960..55d9056bc2 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-api-key/authentication/apikey/models/_models.py @@ -16,7 +16,6 @@ class InvalidAuth(_model_base.Model): """InvalidAuth. - All required parameters must be populated in order to send to server. :ivar error: Required. :vartype error: str diff --git a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/models/_models.py b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/models/_models.py index 37896dc960..55d9056bc2 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-http-custom/authentication/http/custom/models/_models.py @@ -16,7 +16,6 @@ class InvalidAuth(_model_base.Model): """InvalidAuth. - All required parameters must be populated in order to send to server. :ivar error: Required. :vartype error: str diff --git a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/models/_models.py b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/models/_models.py index 37896dc960..55d9056bc2 100644 --- a/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/authentication-oauth2/authentication/oauth2/models/_models.py @@ -16,7 +16,6 @@ class InvalidAuth(_model_base.Model): """InvalidAuth. - All required parameters must be populated in order to send to server. :ivar error: Required. :vartype error: str diff --git a/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/models/_models.py b/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/models/_models.py index 4fd923708b..f8345fed9d 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/encode-bytes/encode/bytes/models/_models.py @@ -16,7 +16,6 @@ class Base64BytesProperty(_model_base.Model): """Base64BytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: bytes @@ -46,7 +45,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Base64urlArrayBytesProperty(_model_base.Model): """Base64urlArrayBytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: list[bytes] @@ -76,7 +74,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Base64urlBytesProperty(_model_base.Model): """Base64urlBytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: bytes @@ -106,7 +103,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DefaultBytesProperty(_model_base.Model): """DefaultBytesProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: bytes diff --git a/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/models/_models.py b/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/models/_models.py index cd7ed395b8..b17a352082 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/encode-datetime/encode/datetime/models/_models.py @@ -17,7 +17,6 @@ class DefaultDatetimeProperty(_model_base.Model): """DefaultDatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime @@ -47,7 +46,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Rfc3339DatetimeProperty(_model_base.Model): """Rfc3339DatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime @@ -77,7 +75,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Rfc7231DatetimeProperty(_model_base.Model): """Rfc7231DatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime @@ -107,7 +104,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnixTimestampArrayDatetimeProperty(_model_base.Model): """UnixTimestampArrayDatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: list[~datetime.datetime] @@ -137,7 +133,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnixTimestampDatetimeProperty(_model_base.Model): """UnixTimestampDatetimeProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.datetime diff --git a/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/models/_models.py b/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/models/_models.py index 7b7c8af456..2631294dee 100644 --- a/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/encode-duration/encode/duration/models/_models.py @@ -17,7 +17,6 @@ class DefaultDurationProperty(_model_base.Model): """DefaultDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.timedelta @@ -47,7 +46,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Float64SecondsDurationProperty(_model_base.Model): """Float64SecondsDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: float @@ -77,7 +75,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class FloatSecondsDurationArrayProperty(_model_base.Model): """FloatSecondsDurationArrayProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: list[float] @@ -107,7 +104,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class FloatSecondsDurationProperty(_model_base.Model): """FloatSecondsDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: float @@ -137,7 +133,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Int32SecondsDurationProperty(_model_base.Model): """Int32SecondsDurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: int @@ -167,7 +162,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ISO8601DurationProperty(_model_base.Model): """ISO8601DurationProperty. - All required parameters must be populated in order to send to server. :ivar value: Required. :vartype value: ~datetime.timedelta diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py index e01f48100a..fd59769949 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/headasbooleanfalse/headasbooleanfalse/models/_models.py @@ -35,7 +35,6 @@ class VisibilityModel(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar read_prop: Required string, illustrating a readonly property. Required. :vartype read_prop: str diff --git a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py index e01f48100a..fd59769949 100644 --- a/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/headasbooleantrue/headasbooleantrue/models/_models.py @@ -35,7 +35,6 @@ class VisibilityModel(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar read_prop: Required string, illustrating a readonly property. Required. :vartype read_prop: str diff --git a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py index d307971ead..ed763a479c 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/payload-content-negotiation/payload/contentnegotiation/models/_models.py @@ -16,7 +16,6 @@ class PngImageAsJson(_model_base.Model): """PngImageAsJson. - All required parameters must be populated in order to send to server. :ivar content: Required. :vartype content: bytes diff --git a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py index 1e14069cf3..d2fb7e8e69 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/payload-json-merge-patch/payload/jsonmergepatch/models/_models.py @@ -51,7 +51,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Resource(_model_base.Model): """Details about a resource. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str diff --git a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py index 85a995323c..fa7c423816 100644 --- a/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/payload-pageable/payload/pageable/models/_models.py @@ -16,7 +16,6 @@ class User(_model_base.Model): """User model. - All required parameters must be populated in order to send to server. :ivar name: User name. Required. :vartype name: str diff --git a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py index 21a9405175..b55d68d706 100644 --- a/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/serialization-encoded-name-json/serialization/encodedname/json/models/_models.py @@ -16,7 +16,6 @@ class JsonEncodedNameModel(_model_base.Model): """JsonEncodedNameModel. - All required parameters must be populated in order to send to server. :ivar default_name: Pass in true. Required. :vartype default_name: bool diff --git a/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py index da56c3634f..a19b6981ac 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-array/typetest/array/models/_models.py @@ -20,7 +20,6 @@ class InnerModel(_model_base.Model): """Array inner model. - All required parameters must be populated in order to send to server. :ivar property: Required string property. Required. :vartype property: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py index 7ff84d1bdb..5301bf1739 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-dictionary/typetest/dictionary/models/_models.py @@ -20,7 +20,6 @@ class InnerModel(_model_base.Model): """Dictionary inner model. - All required parameters must be populated in order to send to server. :ivar property: Required string property. Required. :vartype property: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py index 72221fd7b6..ef2b451d54 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-enumdiscriminator/typetest/model/enumdiscriminator/models/_models.py @@ -20,7 +20,6 @@ class Snake(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Cobra - All required parameters must be populated in order to send to server. :ivar kind: discriminator property. Required. "cobra" :vartype kind: str or ~typetest.model.enumdiscriminator.models.SnakeKind @@ -56,7 +55,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Cobra(Snake, discriminator="cobra"): """Cobra model. - All required parameters must be populated in order to send to server. :ivar length: Length of the snake. Required. :vartype length: int @@ -91,7 +89,6 @@ class Dog(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Golden - All required parameters must be populated in order to send to server. :ivar kind: discriminator property. Required. "golden" :vartype kind: str or ~typetest.model.enumdiscriminator.models.DogKind @@ -127,7 +124,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Golden(Dog, discriminator="golden"): """Golden dog model. - All required parameters must be populated in order to send to server. :ivar weight: Weight of the dog. Required. :vartype weight: int diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py index 769988d693..80ce56b20b 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-flatten/typetest/model/flatten/models/_models.py @@ -20,7 +20,6 @@ class ChildFlattenModel(_model_base.Model): """This is the child model to be flattened. And it has flattened property as well. - All required parameters must be populated in order to send to server. :ivar summary: Required. :vartype summary: str @@ -75,7 +74,6 @@ def __setattr__(self, key: str, value: Any) -> None: class ChildModel(_model_base.Model): """This is the child model to be flattened. - All required parameters must be populated in order to send to server. :ivar description: Required. :vartype description: str @@ -110,7 +108,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class FlattenModel(_model_base.Model): """This is the model with one level of flattening. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -165,7 +162,6 @@ def __setattr__(self, key: str, value: Any) -> None: class NestedFlattenModel(_model_base.Model): """This is the model with two levels of flattening. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py index 3440092f74..2593e47ec0 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-nesteddiscriminator/typetest/model/nesteddiscriminator/models/_models.py @@ -23,7 +23,6 @@ class Fish(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Salmon, Shark - All required parameters must be populated in order to send to server. :ivar kind: Discriminator property for Fish. Required. Default value is None. :vartype kind: str @@ -63,7 +62,6 @@ class Shark(Fish, discriminator="shark"): You probably want to use the sub-classes and not this class directly. Known sub-classes are: GoblinShark, SawShark - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int @@ -101,7 +99,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GoblinShark(Shark, discriminator="goblin"): """The third level model GoblinShark in polymorphic multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int @@ -137,7 +134,6 @@ class Salmon(Fish, discriminator="salmon"): """The second level model in polymorphic multiple levels inheritance which contains references to other polymorphic instances. - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int @@ -181,7 +177,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SawShark(Shark, discriminator="saw"): """The third level model SawShark in polymorphic multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar age: Required. :vartype age: int diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py index fd92bc66fb..d65ac4f73c 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-notdiscriminated/typetest/model/notdiscriminated/models/_models.py @@ -16,7 +16,6 @@ class Pet(_model_base.Model): """This is base model for not-discriminated normal multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -46,7 +45,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Cat(Pet): """The second level model in the normal multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -79,7 +77,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Siamese(Cat): """The third level model in the normal multiple levels inheritance. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py index 5845575ad6..8c3d2d6df6 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-recursive/typetest/model/recursive/models/_models.py @@ -47,7 +47,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Extension(Element): """extension. - All required parameters must be populated in order to send to server. :ivar extension: :vartype extension: list[~typetest.model.recursive.models.Extension] diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py index 71139610d5..465839c5bb 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-singlediscriminator/typetest/model/singlediscriminator/models/_models.py @@ -23,7 +23,6 @@ class Bird(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Eagle, Goose, SeaGull, Sparrow - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is None. :vartype kind: str @@ -63,7 +62,6 @@ class Dinosaur(_model_base.Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: TRex - All required parameters must be populated in order to send to server. :ivar kind: Discriminator property for Dinosaur. Required. Default value is None. :vartype kind: str @@ -100,7 +98,6 @@ class Eagle(Bird, discriminator="eagle"): """The second level model in polymorphic single levels inheritance which contains references to other polymorphic instances. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -144,7 +141,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Goose(Bird, discriminator="goose"): """The second level model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -176,7 +172,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SeaGull(Bird, discriminator="seagull"): """The second level model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -208,7 +203,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Sparrow(Bird, discriminator="sparrow"): """The second level model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar wingspan: Required. :vartype wingspan: int @@ -240,7 +234,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class TRex(Dinosaur, discriminator="t-rex"): """The second level legacy model in polymorphic single level inheritance. - All required parameters must be populated in order to send to server. :ivar size: Required. :vartype size: int diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/models/_models.py index 3358e746dc..1c61d901bf 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-usage/typetest/model/usage/models/_models.py @@ -16,7 +16,6 @@ class InputOutputRecord(_model_base.Model): """Record used both as operation parameter and return type. - All required parameters must be populated in order to send to server. :ivar required_prop: Required. :vartype required_prop: str @@ -76,7 +75,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class OutputRecord(_model_base.Model): """Record used in operation return type. - All required parameters must be populated in order to send to server. :ivar required_prop: Required. :vartype required_prop: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py index e01f48100a..fd59769949 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-model-visibility/typetest/model/visibility/models/_models.py @@ -35,7 +35,6 @@ class VisibilityModel(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar read_prop: Required string, illustrating a readonly property. Required. :vartype read_prop: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py index c23054b77a..fd5716bbcb 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-additionalproperties/typetest/property/additionalproperties/models/_models.py @@ -21,7 +21,6 @@ class DifferentSpreadFloatRecord(_model_base.Model): """The model spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar name: The id property. Required. :vartype name: str @@ -52,7 +51,6 @@ class DifferentSpreadFloatDerived(DifferentSpreadFloatRecord): """The model extends from a model that spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar name: The id property. Required. :vartype name: str @@ -85,7 +83,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DifferentSpreadModelArrayRecord(_model_base.Model): """The model spread Record with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -116,7 +113,6 @@ class DifferentSpreadModelArrayDerived(DifferentSpreadModelArrayRecord): """The model extends from a model that spread Record with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -149,7 +145,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DifferentSpreadModelRecord(_model_base.Model): """The model spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -180,7 +175,6 @@ class DifferentSpreadModelDerived(DifferentSpreadModelRecord): """The model extends from a model that spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: str @@ -213,7 +207,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DifferentSpreadStringRecord(_model_base.Model): """The model spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar id: The name property. Required. :vartype id: float @@ -244,7 +237,6 @@ class DifferentSpreadStringDerived(DifferentSpreadStringRecord): """The model extends from a model that spread Record:code:`` with the different known property type. - All required parameters must be populated in order to send to server. :ivar id: The name property. Required. :vartype id: float @@ -277,7 +269,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsFloatAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar id: The id property. Required. :vartype id: float @@ -307,7 +298,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsModelAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: ~typetest.property.additionalproperties.models.ModelForRecord @@ -337,7 +327,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsModelArrayAdditionalProperties(_model_base.Model): """The model extends from Record type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: list[~typetest.property.additionalproperties.models.ModelForRecord] @@ -367,7 +356,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsStringAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -397,7 +385,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsUnknownAdditionalProperties(_model_base.Model): """The model extends from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -427,7 +414,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtendsUnknownAdditionalPropertiesDerived(ExtendsUnknownAdditionalProperties): # pylint: disable=name-too-long """The model extends from a type that extends from Record:code:``. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -468,7 +454,6 @@ class ExtendsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pyl You probably want to use the sub-classes and not this class directly. Known sub-classes are: ExtendsUnknownAdditionalPropertiesDiscriminatedDerived - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -506,7 +491,6 @@ class ExtendsUnknownAdditionalPropertiesDiscriminatedDerived( ): # pylint: disable=name-too-long """The derived discriminated type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -548,7 +532,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsFloatAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar id: The id property. Required. :vartype id: float @@ -578,7 +561,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsModelAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: ~typetest.property.additionalproperties.models.ModelForRecord @@ -608,7 +590,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsModelArrayAdditionalProperties(_model_base.Model): """The model is from Record type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: list[~typetest.property.additionalproperties.models.ModelForRecord] @@ -638,7 +619,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsStringAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -668,7 +648,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsUnknownAdditionalProperties(_model_base.Model): """The model is from Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -698,7 +677,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class IsUnknownAdditionalPropertiesDerived(IsUnknownAdditionalProperties): """The model extends from a type that is Record:code:`` type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -739,7 +717,6 @@ class IsUnknownAdditionalPropertiesDiscriminated(_model_base.Model): # pylint: You probably want to use the sub-classes and not this class directly. Known sub-classes are: IsUnknownAdditionalPropertiesDiscriminatedDerived - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -777,7 +754,6 @@ class IsUnknownAdditionalPropertiesDiscriminatedDerived( ): # pylint: disable=name-too-long """The derived discriminated type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -819,7 +795,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ModelForRecord(_model_base.Model): """model for record. - All required parameters must be populated in order to send to server. :ivar state: The state property. Required. :vartype state: str @@ -849,7 +824,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class MultipleSpreadRecord(_model_base.Model): """The model spread Record:code:`` and Record:code:``. - All required parameters must be populated in order to send to server. :ivar flag: The name property. Required. :vartype flag: bool @@ -879,7 +853,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadFloatRecord(_model_base.Model): """The model spread Record:code:`` with the same known property type. - All required parameters must be populated in order to send to server. :ivar id: The id property. Required. :vartype id: float @@ -909,7 +882,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadModelArrayRecord(_model_base.Model): """SpreadModelArrayRecord. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: list[~typetest.property.additionalproperties.models.ModelForRecord] @@ -939,7 +911,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadModelRecord(_model_base.Model): """The model spread Record:code:`` with the same known property type. - All required parameters must be populated in order to send to server. :ivar known_prop: Required. :vartype known_prop: ~typetest.property.additionalproperties.models.ModelForRecord @@ -969,7 +940,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForDiscriminatedUnion(_model_base.Model): """The model spread Record:code:``. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -999,7 +969,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForNonDiscriminatedUnion(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1029,7 +998,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForNonDiscriminatedUnion2(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1059,7 +1027,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForNonDiscriminatedUnion3(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1089,7 +1056,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadRecordForUnion(_model_base.Model): """The model spread Record. - All required parameters must be populated in order to send to server. :ivar flag: The name property. Required. :vartype flag: bool @@ -1119,7 +1085,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class SpreadStringRecord(_model_base.Model): """The model spread Record:code:`` with the same known property type. - All required parameters must be populated in order to send to server. :ivar name: The name property. Required. :vartype name: str @@ -1151,7 +1116,6 @@ class WidgetData0(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is "kind0". :vartype kind: str @@ -1188,7 +1152,6 @@ class WidgetData1(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is "kind1". :vartype kind: str @@ -1229,7 +1192,6 @@ class WidgetData2(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar kind: Required. Default value is "kind1". :vartype kind: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py index 7de255e769..66e40cd8fa 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-nullable/typetest/property/nullable/models/_models.py @@ -22,7 +22,6 @@ class BytesProperty(_model_base.Model): """Template type for testing models with nullable property. Pass in the type of the property you are looking for. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -57,7 +56,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsByteProperty(_model_base.Model): """Model with collection bytes properties. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -92,7 +90,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsModelProperty(_model_base.Model): """Model with collection models properties. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -127,7 +124,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsStringProperty(_model_base.Model): """Model with collection string properties. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -162,7 +158,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DatetimeProperty(_model_base.Model): """Model with a datetime property. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -197,7 +192,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DurationProperty(_model_base.Model): """Model with a duration property. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str @@ -232,7 +226,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class InnerModel(_model_base.Model): """Inner model used in collections model property. - All required parameters must be populated in order to send to server. :ivar property: Inner model property. Required. :vartype property: str @@ -263,7 +256,6 @@ class StringProperty(_model_base.Model): """Template type for testing models with nullable property. Pass in the type of the property you are looking for. - All required parameters must be populated in order to send to server. :ivar required_property: Required property. Required. :vartype required_property: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py index 100faa4823..3ac3c17860 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-optional/typetest/property/optional/models/_models.py @@ -302,7 +302,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class RequiredAndOptionalProperty(_model_base.Model): """Model with required and optional properties. - All required parameters must be populated in order to send to server. :ivar optional_property: optional string property. :vartype optional_property: str diff --git a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py index b70a30032c..779a3cdd25 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-property-valuetypes/typetest/property/valuetypes/models/_models.py @@ -25,7 +25,6 @@ class BooleanLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is True. :vartype property: bool @@ -42,7 +41,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class BooleanProperty(_model_base.Model): """Model with a boolean property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: bool @@ -72,7 +70,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class BytesProperty(_model_base.Model): """Model with a bytes property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: bytes @@ -102,7 +99,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsIntProperty(_model_base.Model): """Model with collection int properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: list[int] @@ -132,7 +128,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsModelProperty(_model_base.Model): """Model with collection model properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: list[~typetest.property.valuetypes.models.InnerModel] @@ -162,7 +157,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class CollectionsStringProperty(_model_base.Model): """Model with collection string properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: list[str] @@ -192,7 +186,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DatetimeProperty(_model_base.Model): """Model with a datetime property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~datetime.datetime @@ -222,7 +215,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Decimal128Property(_model_base.Model): """Model with a decimal128 property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~decimal.Decimal @@ -252,7 +244,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DecimalProperty(_model_base.Model): """Model with a decimal property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~decimal.Decimal @@ -282,7 +273,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DictionaryStringProperty(_model_base.Model): """Model with dictionary string properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: dict[str, str] @@ -312,7 +302,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class DurationProperty(_model_base.Model): """Model with a duration property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~datetime.timedelta @@ -342,7 +331,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class EnumProperty(_model_base.Model): """Model with enum properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Known values are: "ValueOne" and "ValueTwo". :vartype property: str or ~typetest.property.valuetypes.models.FixedInnerEnum @@ -372,7 +360,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ExtensibleEnumProperty(_model_base.Model): """Model with extensible enum properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Known values are: "ValueOne" and "ValueTwo". :vartype property: str or ~typetest.property.valuetypes.models.InnerEnum @@ -404,7 +391,6 @@ class FloatLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is 43.125. :vartype property: float @@ -421,7 +407,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class FloatProperty(_model_base.Model): """Model with a float property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: float @@ -451,7 +436,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class InnerModel(_model_base.Model): """Inner model. Will be a property type for ModelWithModelProperties. - All required parameters must be populated in order to send to server. :ivar property: Required string property. Required. :vartype property: str @@ -483,7 +467,6 @@ class IntLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is 42. :vartype property: int @@ -500,7 +483,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class IntProperty(_model_base.Model): """Model with a int property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: int @@ -530,7 +512,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ModelProperty(_model_base.Model): """Model with model properties. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: ~typetest.property.valuetypes.models.InnerModel @@ -566,7 +547,6 @@ class StringLiteralProperty(_model_base.Model): Readonly variables are only populated by the server, and will be ignored when sending a request. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Default value is "hello". :vartype property: str @@ -583,7 +563,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class StringProperty(_model_base.Model): """Model with a string property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: str @@ -614,7 +593,6 @@ class UnionEnumValueProperty(_model_base.Model): """Template type for testing models with specific properties. Pass in the type of the property you are looking for. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: str or ~typetest.property.valuetypes.models.ENUM_VALUE2 @@ -644,7 +622,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnionFloatLiteralProperty(_model_base.Model): """Model with a union of float literal as property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Is either a float type or a float type. :vartype property: float or float @@ -674,7 +651,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnionIntLiteralProperty(_model_base.Model): """Model with a union of int literal as property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Is either a Literal[42] type or a Literal[43] type. :vartype property: int or int @@ -704,7 +680,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnionStringLiteralProperty(_model_base.Model): """Model with a union of string literal as property. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. Is either a Literal["hello"] type or a Literal["world"] type. @@ -735,7 +710,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownArrayProperty(_model_base.Model): """Model with a property unknown, and the data is an array. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any @@ -765,7 +739,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownDictProperty(_model_base.Model): """Model with a property unknown, and the data is a dictionnary. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any @@ -795,7 +768,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownIntProperty(_model_base.Model): """Model with a property unknown, and the data is a int32. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any @@ -825,7 +797,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class UnknownStringProperty(_model_base.Model): """Model with a property unknown, and the data is a string. - All required parameters must be populated in order to send to server. :ivar property: Property. Required. :vartype property: any diff --git a/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py b/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py index d0e37edd9c..65a6e10ab3 100644 --- a/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/typetest-union/typetest/union/models/_models.py @@ -27,7 +27,6 @@ class Cat(_model_base.Model): """Cat. - All required parameters must be populated in order to send to server. :ivar name: Required. :vartype name: str @@ -57,7 +56,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class Dog(_model_base.Model): """Dog. - All required parameters must be populated in order to send to server. :ivar bark: Required. :vartype bark: str @@ -87,7 +85,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class EnumsOnlyCases(_model_base.Model): """EnumsOnlyCases. - All required parameters must be populated in order to send to server. :ivar lr: This should be receive/send the left variant. Required. Is one of the following types: Literal["left"], Literal["right"], Literal["up"], Literal["down"] @@ -126,7 +123,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse(_model_base.Model): """GetResponse. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.MixedTypesCases @@ -156,7 +152,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse1(_model_base.Model): """GetResponse1. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.MixedLiteralsCases @@ -186,7 +181,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse2(_model_base.Model): """GetResponse2. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.StringAndArrayCases @@ -216,7 +210,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse3(_model_base.Model): """GetResponse3. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: ~typetest.union.models.EnumsOnlyCases @@ -246,7 +239,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse4(_model_base.Model): """GetResponse4. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is either a Cat type or a Dog type. :vartype prop: ~typetest.union.models.Cat or ~typetest.union.models.Dog @@ -276,7 +268,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse5(_model_base.Model): """GetResponse5. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: float, float, float :vartype prop: float or float or float @@ -306,7 +297,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse6(_model_base.Model): """GetResponse6. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: Literal[1], Literal[2], Literal[3] :vartype prop: int or int or int @@ -336,7 +326,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse7(_model_base.Model): """GetResponse7. - All required parameters must be populated in order to send to server. :ivar prop: Required. Known values are: "b" and "c". :vartype prop: str or ~typetest.union.models.StringExtensibleNamedUnion @@ -366,7 +355,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse8(_model_base.Model): """GetResponse8. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: Literal["b"], Literal["c"], str :vartype prop: str or str or str @@ -396,7 +384,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class GetResponse9(_model_base.Model): """GetResponse9. - All required parameters must be populated in order to send to server. :ivar prop: Required. Is one of the following types: Literal["a"], Literal["b"], Literal["c"] :vartype prop: str or str or str @@ -426,7 +413,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class MixedLiteralsCases(_model_base.Model): """MixedLiteralsCases. - All required parameters must be populated in order to send to server. :ivar string_literal: This should be receive/send the "a" variant. Required. Is one of the following types: Literal["a"], Literal[2], float, Literal[True] @@ -479,7 +465,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class MixedTypesCases(_model_base.Model): """MixedTypesCases. - All required parameters must be populated in order to send to server. :ivar model: This should be receive/send the Cat variant. Required. Is one of the following types: Cat, Literal["a"], int, bool @@ -537,7 +522,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class StringAndArrayCases(_model_base.Model): """StringAndArrayCases. - All required parameters must be populated in order to send to server. :ivar string: This should be receive/send the string variant. Required. Is either a str type or a [str] type. diff --git a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py index d09d845ddf..a5b079f9cc 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-added/versioning/added/models/_models.py @@ -20,7 +20,6 @@ class ModelV1(_model_base.Model): """ModelV1. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str @@ -60,7 +59,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: # pylint: disable=useles class ModelV2(_model_base.Model): """ModelV2. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str diff --git a/packages/typespec-python/test/unbranded/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py index 574589fcbe..81be5e262c 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-madeOptional/versioning/madeoptional/models/_models.py @@ -16,7 +16,6 @@ class TestModel(_model_base.Model): """TestModel. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str diff --git a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py index a149dae82c..791526768b 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-removed/versioning/removed/models/_models.py @@ -20,7 +20,6 @@ class ModelV2(_model_base.Model): """ModelV2. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str diff --git a/packages/typespec-python/test/unbranded/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py index 68fb9ad971..ef2df84e98 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-renamedFrom/versioning/renamedfrom/models/_models.py @@ -20,7 +20,6 @@ class NewModel(_model_base.Model): """NewModel. - All required parameters must be populated in order to send to server. :ivar new_prop: Required. :vartype new_prop: str diff --git a/packages/typespec-python/test/unbranded/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py b/packages/typespec-python/test/unbranded/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py index a6325956cc..fa1ef374da 100644 --- a/packages/typespec-python/test/unbranded/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py +++ b/packages/typespec-python/test/unbranded/generated/versioning-typeChangedFrom/versioning/typechangedfrom/models/_models.py @@ -16,7 +16,6 @@ class TestModel(_model_base.Model): """TestModel. - All required parameters must be populated in order to send to server. :ivar prop: Required. :vartype prop: str