C# Class ServiceClientGenerator.SimpleMethodFormsModel

Represents custom simple methods for the client being generated from the service model Simple methods are methods added to the client that take members of the request as parameters and then creates a request with those members internally and then calls the operation
ファイルを表示 Open project: aws/aws-sdk-net

Public Methods

Method Description
CreateSimpleMethods ( string operationName ) : bool

Determines if the operation in the client has a custom simple method specified

GetFormMembers ( List form, IList operationMembers ) : List

Finds the members from the request that need to be used in the method

GetSimpleParameters ( List form, IList operationMembers ) : string

Generates the code for parameters of the method

SimpleMethodFormsModel ( JsonData root ) : Json.LitJson

Creates a representation of the simple method customizations for the service client

Method Details

CreateSimpleMethods() public method

Determines if the operation in the client has a custom simple method specified
public CreateSimpleMethods ( string operationName ) : bool
operationName string The name of the operation
return bool

GetFormMembers() public method

Finds the members from the request that need to be used in the method
public GetFormMembers ( List form, IList operationMembers ) : List
form List List of member names for the given form of an operation
operationMembers IList All of the members for the given operation
return List

GetSimpleParameters() public method

Generates the code for parameters of the method
public GetSimpleParameters ( List form, IList operationMembers ) : string
form List The form of the method contains names of all the members used
operationMembers IList All of the members of an operation
return string

SimpleMethodFormsModel() public method

Creates a representation of the simple method customizations for the service client
public SimpleMethodFormsModel ( JsonData root ) : Json.LitJson
root JsonData The json data that specifies forms of the simple methods
return Json.LitJson