C# Class ServiceClientGenerator.GeneratorHelpers

Mostra file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method 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 method

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
return string

ConvertToUnixEpochMilliSeconds() public static method

public static ConvertToUnixEpochMilliSeconds ( System.DateTime dateTime ) : double
dateTime System.DateTime
return double

ConvertToUnixEpochSeconds() public static method

public static ConvertToUnixEpochSeconds ( System.DateTime dateTime ) : int
dateTime System.DateTime
return int

DetermineAWSQueryBaseUnmarshallName() public static method

public static DetermineAWSQueryBaseUnmarshallName ( Member member ) : string
member Member
return string

DetermineAWSQueryListMemberPrefix() public static method

public static DetermineAWSQueryListMemberPrefix ( Member member ) : string
member Member
return string

DetermineAWSQueryListMemberSuffix() public static method

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
return string

DetermineAWSQueryMarshallName() public static method

public static DetermineAWSQueryMarshallName ( Member member, Operation operation ) : string
member Member
operation Operation
return string

DetermineAWSQueryTestExpression() public static method

public static DetermineAWSQueryTestExpression ( Member member ) : string
member Member
return string

DetermineSigner() public static method

public static DetermineSigner ( string signatureVersion, string serviceBasename ) : string
signatureVersion string
serviceBasename string
return string

HasSuppressedResult() public static method

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
return bool

TransformMarshallLocationName() public static method

public static TransformMarshallLocationName ( bool isEC2Protocol, string locationName ) : string
isEC2Protocol bool
locationName string
return string

TransformUnmarshallLocationName() public static method

public static TransformUnmarshallLocationName ( bool isEC2Protocol, string locationName ) : string
isEC2Protocol bool
locationName string
return string

UseCustomMarshall() public static method

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
return bool