C# Class ServiceClientGenerator.GeneratorHelpers

Afficher le fichier Open project: aws/aws-sdk-net Class Usage Examples

Méthodes publiques

Méthode Description
CamelCaseParam ( string param ) : string

Sets the first character of the param to lower, if it's an acronym it lowers it all until the next word

ConvertToUnixEpochMilliSeconds ( System.DateTime dateTime ) : double
ConvertToUnixEpochSeconds ( System.DateTime dateTime ) : int
DetermineAWSQueryBaseUnmarshallName ( Member member ) : string
DetermineAWSQueryListMemberPrefix ( Member member ) : string
DetermineAWSQueryListMemberSuffix ( Operation operation, Member member ) : string

Inspects list member to determine if the original list shape in the model has been substituted and if so, whether a member suffix should be used to extract the value for use in the query. An example usage would be the replacement of IpRange (in EC2) within an IpRangeList - we treat as a list of strings, yet need to get to the IpRange.CidrIp member in the query marshalling. Note that we also have some EC2 operations where we don't want this submember extraction too even though the same substitite is in use.

DetermineAWSQueryMarshallName ( Member member, Operation operation ) : string
DetermineAWSQueryTestExpression ( Member member ) : string
DetermineSigner ( string signatureVersion, string serviceBasename ) : string
HasSuppressedResult ( Operation operation ) : bool

Returns true if the specified operation has been tagged as requiring the usual 'Result' class suppressed (due to a void return type)

TransformMarshallLocationName ( bool isEC2Protocol, string locationName ) : string
TransformUnmarshallLocationName ( bool isEC2Protocol, string locationName ) : string
UseCustomMarshall ( Member member, Operation operation ) : bool

Determines if a property modifier for the member is suppressing automatic marshall generation code for the field. If true, custom code in the pipeline will handle the member.

Method Details

CamelCaseParam() public static méthode

Sets the first character of the param to lower, if it's an acronym it lowers it all until the next word
public static CamelCaseParam ( string param ) : string
param string The name of the parameter name for the constructor
Résultat string

ConvertToUnixEpochMilliSeconds() public static méthode

public static ConvertToUnixEpochMilliSeconds ( System.DateTime dateTime ) : double
dateTime System.DateTime
Résultat double

ConvertToUnixEpochSeconds() public static méthode

public static ConvertToUnixEpochSeconds ( System.DateTime dateTime ) : int
dateTime System.DateTime
Résultat int

DetermineAWSQueryBaseUnmarshallName() public static méthode

public static DetermineAWSQueryBaseUnmarshallName ( Member member ) : string
member Member
Résultat string

DetermineAWSQueryListMemberPrefix() public static méthode

public static DetermineAWSQueryListMemberPrefix ( Member member ) : string
member Member
Résultat string

DetermineAWSQueryListMemberSuffix() public static méthode

Inspects list member to determine if the original list shape in the model has been substituted and if so, whether a member suffix should be used to extract the value for use in the query. An example usage would be the replacement of IpRange (in EC2) within an IpRangeList - we treat as a list of strings, yet need to get to the IpRange.CidrIp member in the query marshalling. Note that we also have some EC2 operations where we don't want this submember extraction too even though the same substitite is in use.
public static DetermineAWSQueryListMemberSuffix ( Operation operation, Member member ) : string
operation Operation
member Member
Résultat string

DetermineAWSQueryMarshallName() public static méthode

public static DetermineAWSQueryMarshallName ( Member member, Operation operation ) : string
member Member
operation Operation
Résultat string

DetermineAWSQueryTestExpression() public static méthode

public static DetermineAWSQueryTestExpression ( Member member ) : string
member Member
Résultat string

DetermineSigner() public static méthode

public static DetermineSigner ( string signatureVersion, string serviceBasename ) : string
signatureVersion string
serviceBasename string
Résultat string

HasSuppressedResult() public static méthode

Returns true if the specified operation has been tagged as requiring the usual 'Result' class suppressed (due to a void return type)
public static HasSuppressedResult ( Operation operation ) : bool
operation Operation
Résultat bool

TransformMarshallLocationName() public static méthode

public static TransformMarshallLocationName ( bool isEC2Protocol, string locationName ) : string
isEC2Protocol bool
locationName string
Résultat string

TransformUnmarshallLocationName() public static méthode

public static TransformUnmarshallLocationName ( bool isEC2Protocol, string locationName ) : string
isEC2Protocol bool
locationName string
Résultat string

UseCustomMarshall() public static méthode

Determines if a property modifier for the member is suppressing automatic marshall generation code for the field. If true, custom code in the pipeline will handle the member.
public static UseCustomMarshall ( Member member, Operation operation ) : bool
member Member
operation Operation
Résultat bool