Skip to content

[I] SdkBodyParameter

Http body parameter.

PropertyTypeDescriptionInherited from
__raw?ModelProperty-SdkModelPropertyTypeBase.__raw
accessAccessFlagsWhether the type has public or private accessibilitySdkModelPropertyTypeBase.access
apiVersionsstring[]API versions supported for current type.SdkModelPropertyTypeBase.apiVersions
clientDefaultValue?unknownClient level default value for the type.SdkModelPropertyTypeBase.clientDefaultValue
contentTypesstring[]--
correspondingMethodParams( | SdkMethodParameter | SdkModelPropertyType)[]Deprecated This property is deprecated. Use methodParameterSegments instead. Corresponding method level parameter or model property for current parameter.-
crossLanguageDefinitionIdstringUnique ID for the current type.SdkModelPropertyTypeBase.crossLanguageDefinitionId
decoratorsDecoratorInfo[]Client types sourced from TypeSpec decorated types will have this generic decoratores list. Only decorators in allowed list will be included in this list. Language’s emitter could set additionalDecorators in the option when createSdkContext to extend the allowed list.SdkModelPropertyTypeBase.decorators
defaultContentTypestring--
doc?stringDocument for the type.SdkModelPropertyTypeBase.doc
encode?ArrayKnownEncodingHow to encode the property on wire.SdkModelPropertyTypeBase.encode
flattenbooleanWhether this property could be flattenedSdkModelPropertyTypeBase.flatten
isApiVersionParambooleanWhether the type is an API version parameterSdkModelPropertyTypeBase.isApiVersionParam
isGeneratedNamebooleanWhether name is created by TCGC.SdkModelPropertyTypeBase.isGeneratedName
kind"body"--
methodParameterSegments( | SdkMethodParameter | SdkModelPropertyType)[][]Segments to indicate the complete path from method parameters to this HTTP parameter. Each inner array represents a complete path from method parameter to the final HTTP parameter. For body parameters with spread, there can be multiple paths.-
namestringParameter client name.SdkModelPropertyTypeBase.name
onClientbooleanWhether the type is on client level.SdkModelPropertyTypeBase.onClient
optionalbooleanWhether the type is optional.SdkModelPropertyTypeBase.optional
serializedNamestringName for the parameter in the payload-
streamMetadata?SdkStreamMetadataStream metadata, present when the body is a streaming type (e.g. JsonlStream, SSEStream).-
summary?stringSummary for the type.SdkModelPropertyTypeBase.summary
typeSdkTypeParameter type.SdkModelPropertyTypeBase.type
visibility?Visibility[]Visibility of the type.SdkModelPropertyTypeBase.visibility