C# Класс ServiceClientGenerator.GeneratorHelpers

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

CamelCaseParam() публичный статический Метод

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
Результат string

ConvertToUnixEpochMilliSeconds() публичный статический Метод

public static ConvertToUnixEpochMilliSeconds ( System.DateTime dateTime ) : double
dateTime System.DateTime
Результат double

ConvertToUnixEpochSeconds() публичный статический Метод

public static ConvertToUnixEpochSeconds ( System.DateTime dateTime ) : int
dateTime System.DateTime
Результат int

DetermineAWSQueryBaseUnmarshallName() публичный статический Метод

public static DetermineAWSQueryBaseUnmarshallName ( Member member ) : string
member Member
Результат string

DetermineAWSQueryListMemberPrefix() публичный статический Метод

public static DetermineAWSQueryListMemberPrefix ( Member member ) : string
member Member
Результат string

DetermineAWSQueryListMemberSuffix() публичный статический Метод

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
Результат string

DetermineAWSQueryMarshallName() публичный статический Метод

public static DetermineAWSQueryMarshallName ( Member member, Operation operation ) : string
member Member
operation Operation
Результат string

DetermineAWSQueryTestExpression() публичный статический Метод

public static DetermineAWSQueryTestExpression ( Member member ) : string
member Member
Результат string

DetermineSigner() публичный статический Метод

public static DetermineSigner ( string signatureVersion, string serviceBasename ) : string
signatureVersion string
serviceBasename string
Результат string

HasSuppressedResult() публичный статический Метод

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
Результат bool

TransformMarshallLocationName() публичный статический Метод

public static TransformMarshallLocationName ( bool isEC2Protocol, string locationName ) : string
isEC2Protocol bool
locationName string
Результат string

TransformUnmarshallLocationName() публичный статический Метод

public static TransformUnmarshallLocationName ( bool isEC2Protocol, string locationName ) : string
isEC2Protocol bool
locationName string
Результат string

UseCustomMarshall() публичный статический Метод

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
Результат bool