class ResourceMethodParameters(object):
Constructor: ResourceMethodParameters(method_desc)
Represents the parameters associated with a method.
| Method | __init__ |
Constructor for ResourceMethodParameters. |
| Method | set |
Populates maps and lists based on method description. |
| Instance Variable | argmap |
Map from method parameter name (string) to query parameter name (string). |
| Instance Variable | enum |
Map from method parameter name (string) to list of strings, where each list of strings is the list of acceptable enum values. |
| Instance Variable | param |
Map from method parameter name (string) to parameter type. Type can be any valid JSON schema type; valid values are 'any', 'array', 'boolean', 'integer', 'number', 'object', or 'string'. Reference: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1... |
| Instance Variable | path |
Set of parameters (represented by parameter name as string) that will be used in the base URL path. |
| Instance Variable | pattern |
Map from method parameter name (string) to regular expression (as a string). If the pattern is set for a parameter, the value for that parameter must match the regular expression. |
| Instance Variable | query |
List of parameters (represented by parameter name as string) that will be used in the query string. |
| Instance Variable | repeated |
List of repeated parameters (represented by parameter name as string). |
| Instance Variable | required |
List of required parameters (represented by parameter name as string). |
Constructor for ResourceMethodParameters.
Sets default values and defers to set_parameters to populate.
| Parameters | |
| method | Dictionary with metadata describing an API method. Value comes from the dictionary of methods stored in the 'methods' key in the deserialized discovery document. |
Populates maps and lists based on method description.
Iterates through each parameter for the method and parses the values from the parameter dictionary.
| Parameters | |
| method | Dictionary with metadata describing an API method. Value comes from the dictionary of methods stored in the 'methods' key in the deserialized discovery document. |
Map from method parameter name (string) to list of strings, where each list of strings is the list of acceptable enum values.
Map from method parameter name (string) to parameter type. Type can be any valid JSON schema type; valid values are 'any', 'array', 'boolean', 'integer', 'number', 'object', or 'string'. Reference: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
Map from method parameter name (string) to regular expression (as a string). If the pattern is set for a parameter, the value for that parameter must match the regular expression.