Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

merge master to Discogapic #1304

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
688a5e8
Fix JSON pretty print in Ruby sample (#1254)
saicheems May 10, 2017
bf3ef68
Ruby: README Overhaul (feat. examples) (#1245)
landrito May 11, 2017
abbc03a
go: use new metadata methods (#1262)
pongad May 12, 2017
1493365
Change media body from an object to a string (#1256)
saicheems May 12, 2017
fd5b638
Fix NONE auth Go sample (#1261)
saicheems May 12, 2017
7fdbb80
Change Node.js unit test require. (#1264)
lukesneeringer May 12, 2017
278720f
Ruby: Allow doc gapic generation to generate tests. (#1266)
landrito May 12, 2017
ea2a528
Ruby: Remove aliasing from method samples and tests (#1253)
landrito May 15, 2017
d587236
Ruby: Fix broken baselines from aliasing fix (#1269)
landrito May 15, 2017
15f60fd
Remove unused code (#1270)
michaelbausor May 15, 2017
2f4e121
Python: README overhaul. (#1263)
landrito May 18, 2017
2c2323e
Ruby: Update gemspec and add useful metadata files (#1258)
landrito May 18, 2017
daa59cd
Specify HTTP client when constructing client (#1275)
saicheems May 18, 2017
50754f0
Fix JSON print in Ruby (#1274)
saicheems May 18, 2017
25bbb44
NodeJS: Update version index to support partial veneers (#1267)
landrito May 18, 2017
fe181c0
NodeJS: Updates to package.json (#1268)
landrito May 18, 2017
0d3d4cb
Migrate import disambiguation to Python MVVM (#1243)
evaogbe May 18, 2017
c0e1ec7
Fix Node package.json (#1282)
lukesneeringer May 18, 2017
d69ff23
go: use time.UnixNano instead of testutil.UIDSpace (#1279)
pongad May 18, 2017
735def9
Update Java grpc metadata for new staging structure (#1265)
shinfan May 19, 2017
3949b6d
PHP: share credentials with operations client (#1283)
michaelbausor May 19, 2017
2da784d
java: move CredentialProvider up to ClientSettings (#1251)
pongad May 22, 2017
cadd53d
NodeJS: generate readme. (#1240)
landrito May 22, 2017
2a2cf56
NodeJS: Small additions to the package.json (#1289)
landrito May 23, 2017
aa4cd57
NodeJS: Use fileheader for copyright lines. (#1293)
landrito May 24, 2017
24ec95e
NodeJS: Use correct casing for partial veneers (#1295)
landrito May 25, 2017
b1abcf4
NodeJS: Small readme fix from GCN reviews (#1294)
landrito May 25, 2017
adada70
go: make longrunning methods use generated longrunning client (#1288)
pongad May 25, 2017
8a4e817
NodeJS: Update partial veneer surface to add api documentation. (#1296)
landrito May 25, 2017
dd3d83c
NodeJS: Metadata updates. (#1298)
landrito May 26, 2017
08344b7
Readme: Update readme templates to add api summaries. (#1299)
landrito May 26, 2017
9316dc5
Add PHP Exception tests (#951)
michaelbausor May 26, 2017
d31e0d8
Process markdown cloud links for PHP (#1091)
michaelbausor May 26, 2017
4de4575
go: return error creating LRO client instead of panicking (#1300)
pongad May 26, 2017
b153234
Merge branch 'master' of https://github.com/googleapis/toolkit into d…
garrettjonesgoogle May 27, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/google/api/codegen/CommentPatterns.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public final class CommentPatterns {
public static final Pattern BACK_QUOTE_PATTERN = Pattern.compile("(?<!`)``?(?!`)");
public static final Pattern ABSOLUTE_LINK_PATTERN =
Pattern.compile("\\[([^\\]]+)\\]\\((\\p{Alpha}+:[^\\)]+)\\)");
public static final Pattern CLOUD_LINK_PATTERN =
public static final Pattern RELATIVE_LINK_PATTERN =
Pattern.compile("\\[([^\\]]+)\\]\\(((?!\\p{Alpha}+:)[^\\)]+)\\)");
public static final Pattern PROTO_LINK_PATTERN =
Pattern.compile("\\[([^\\]]+)\\]\\[([A-Za-z_][A-Za-z_.0-9]*)?\\]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ private SampleView createSampleView(SampleTransformerContext context) {
discoveryBuildParams.add(String.format("'%s'", config.apiVersion()));
switch (config.authType()) {
case NONE:
discoveryBuildParams.add("http=httplib2.Http(timeout=60)");
break;
case API_KEY:
discoveryBuildParams.add("developerKey=" + credentialsVarName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public static List<GapicProvider<? extends Object>> defaultCreate(
providers.add(messageProvider);
}
}
if (generatorConfig.enableTestGenerator() && id.equals(RUBY)) {
if (generatorConfig.enableTestGenerator()) {
GapicCodePathMapper rubyTestPathMapper =
CommonGapicCodePathMapper.newBuilder()
.setPrefix("test")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class JavaGrpcPackageMetadataTransformer extends JavaPackageMetadataTrans
private final Map<String, String> snippetsOutput =
ImmutableMap.of(
"LICENSE.snip", "LICENSE",
"metadatagen/java/grpc/package.snip", "build.gradle");
"metadatagen/java/grpc/build.gradle.snip", "build.gradle");

@Override
protected Map<String, String> getSnippetsOutput() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class JavaProtoPackageMetadataTransformer extends JavaPackageMetadataTran
private final Map<String, String> snippetsOutput =
ImmutableMap.of(
"LICENSE.snip", "LICENSE",
"metadatagen/java/grpc/package.snip", "build.gradle");
"metadatagen/java/grpc/build.gradle.snip", "build.gradle");

@Override
protected Map<String, String> getSnippetsOutput() {
Expand Down
44 changes: 0 additions & 44 deletions src/main/java/com/google/api/codegen/metacode/FieldSetting.java

This file was deleted.

30 changes: 0 additions & 30 deletions src/main/java/com/google/api/codegen/metacode/InitCode.java

This file was deleted.

26 changes: 0 additions & 26 deletions src/main/java/com/google/api/codegen/metacode/InitCodeLine.java

This file was deleted.

This file was deleted.

67 changes: 0 additions & 67 deletions src/main/java/com/google/api/codegen/metacode/MapInitCodeLine.java

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public OptionalArrayMethodView generateMethod(GapicMethodContext context) {
apiMethod.type(ClientMethodType.OptionalArrayMethod);
}
apiMethod.apiClassName(namer.getApiWrapperClassName(context.getInterfaceConfig()));
apiMethod.fullyQualifiedApiClassName(
namer.getFullyQualifiedApiWrapperClassName(context.getInterfaceConfig()));
apiMethod.apiVariableName(namer.getApiWrapperVariableName(context.getInterfaceConfig()));
apiMethod.apiModuleName(namer.getApiWrapperModuleName());
InitCodeOutputType initCodeOutputType =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ private InitCodeLineView generateStructureInitCodeLine(

String typeName = typeTable.getAndSaveNicknameFor(item.getType());
surfaceLine.typeName(typeName);
surfaceLine.fullyQualifiedTypeName(typeTable.getFullNameFor(item.getType()));
surfaceLine.typeConstructor(namer.getTypeConstructor(typeName));

surfaceLine.fieldSettings(getFieldSettings(context, item.getChildren().values()));
Expand Down Expand Up @@ -391,6 +392,8 @@ private InitValueView getInitValue(GapicMethodContext context, InitCodeNode item

initValue.apiWrapperName(
context.getNamer().getApiWrapperClassName(context.getInterfaceConfig()));
initValue.fullyQualifiedApiWrapperName(
context.getNamer().getFullyQualifiedApiWrapperClassName(context.getInterfaceConfig()));
initValue.formatFunctionName(
context
.getNamer()
Expand Down
Loading