anchor.diff:          sink.write("  static const core.String ${scopeName}_SCOPE = \"$scope\";\n");
         });
       }
  -    if (_json.containsKey("parameters")) {
  -      _json["parameters"].forEach((key, param) {
  -        var type = parameterType[param["type"]];
  -        if (param.containsKey("format")) {
  -          if (param["type"] == "string" && param["format"] == "int64") {
  -            type = "core.int";
  -          }
  -        }
  -        if (type != null) {
  -          sink.write("\n");
  -          sink.write("  /**\n");
  -          if (param.containsKey("description")) {
  -            sink.write("   * ${param["description"]}\n");
  -          }
  -          sink.write("   * Added as queryParameter for each request.\n");
  -          sink.write("   */\n");
  -          sink.write("  $type get $key => params[\"$key\"];\n");
  -          sink.write("  set $key($type value) => params[\"$key\"] = value;\n");
  -        }
  -      });
  -    }
  -    // TODO: change this to correct OAuth class for console
  +
       sink.writeln();
       sink.writeln('  final oauth2.OAuth2Console auth;');
       sink.writeln();
  -    sink.writeln("  ${capitalize(_name)}([oauth2.OAuth2Console this.auth]) {");
  -    if (_json.containsKey("resources")) {
  -      _json["resources"].forEach((key, resource) {
  -        var subClassName = "${capitalize(key)}Resource_";
  -        sink.write("    _$key = new $subClassName(this);\n");
  -      });
  -    }
  -    sink.write("  }\n");
  +    sink.writeln("  ${capitalize(_name)}([oauth2.OAuth2Console this.auth]);");
   
       if (_json.containsKey("methods")) {
         _json["methods"].forEach((key, method) {
  
positive.code:         sink.write("  static const core.String ${scopeName}_SCOPE = \"$scope\";\n");
        });
      }
      if (_json.containsKey("parameters")) {
        _json["parameters"].forEach((key, param) {
          var type = parameterType[param["type"]];
          if (param.containsKey("format")) {
            if (param["type"] == "string" && param["format"] == "int64") {
              type = "core.int";
            }
          }
          if (type != null) {
            sink.write("\n");
            sink.write("  /**\n");
            if (param.containsKey("description")) {
              sink.write("   * ${param["description"]}\n");
            }
            sink.write("   * Added as queryParameter for each request.\n");
            sink.write("   */\n");
            sink.write("  $type get $key => params[\"$key\"];\n");
            sink.write("  set $key($type value) => params[\"$key\"] = value;\n");
          }
        });
      }
      sink.writeln();
      sink.writeln('  final oauth.OAuth2 auth;');
      sink.writeln();
      sink.writeln("  ${capitalize(_name)}([oauth.OAuth2 this.auth]) {");
      if (_json.containsKey("resources")) {
        _json["resources"].forEach((key, resource) {
          var subClassName = "${capitalize(key)}Resource_";
          sink.write("    _$key = new $subClassName(this);\n");
        });
      }
      sink.write("  }\n");
  
      if (_json.containsKey("methods")) {
        _json["methods"].forEach((key, method) {
  
negative.code:       sink.write("/** ${_json["description"]} */\n");
      }
      sink.write("class ${capitalize(_name)} extends BrowserClient {\n");
      if(_json.containsKey("auth") && _json["auth"].containsKey("oauth2") && _json["auth"]["oauth2"].containsKey("scopes")) {
        _json["auth"]["oauth2"]["scopes"].forEach((scope, description) {
          var p = scope.lastIndexOf("/");
  