Index: Src/GoogleApis/Apis/Util/RequestParameterAttribute.cs
===================================================================
--- a/Src/GoogleApis/Apis/Util/RequestParameterAttribute.cs
+++ b/Src/GoogleApis/Apis/Util/RequestParameterAttribute.cs
@@ -29,21 +29,32 @@
private readonly string name;
private readonly RequestParameterType type;
- ///
- /// Name/key of this attribute
- ///
- public string Name { get { return name; }}
+ /// Gets the name of the parameter.
+ public string Name { get { return name; } }
+ /// Gets the type of the parameter, Path or Query.
public RequestParameterType Type { get { return type; } }
///
- /// Attribute a property to be a part of a REST URI.
+ /// Constructs a new property attribute to be a part of a REST URI.
+ /// This constructor uses as the parameter's type.
///
///
- /// The name of the parameter. If the parameter is a path parameter this name
- /// will be used to substitute the string value into the path, replacing {name}.
- /// If the parameter is a query parameter, this parameter will be added to the
- /// query string, in the format "name=value".
+ /// The name of the parameter. If the parameter is a path parameter this name will be used to substitute the
+ /// string value into the path, replacing {name}. If the parameter is a query parameter, this parameter will be
+ /// added to the query string, in the format "name=value".
+ ///
+ public RequestParameterAttribute(string name)
+ : this(name, RequestParameterType.Query)
+ {
+
+ }
+
+ /// Constructs a new property attribute to be a part of a REST URI.
+ ///
+ /// The name of the parameter. If the parameter is a path parameter this name will be used to substitute the
+ /// string value into the path, replacing {name}. If the parameter is a query parameter, this parameter will be
+ /// added to the query string, in the format "name=value".
///
/// The type of the parameter, either Path or Query.
public RequestParameterAttribute(string name, RequestParameterType type)
@@ -52,22 +63,14 @@
this.type = type;
}
}
-
- ///
- /// Describe the type of this parameter (Path or Query).
- ///
+
+ /// Describe the type of this parameter (Path or Query).
public enum RequestParameterType
{
- ///
- /// The parameter is a path parameter and will be inserted into the path portion of the
- /// request URI.
- ///
+ /// A path parameter which is inserted into the path portion of the request URI.
Path,
- ///
- /// The parameter is a query parameter and will be inserted into the query portion of the
- /// request URI.
- ///
+ /// A query parameter which is inserted into the query portion of the request URI.
Query
}
}