Skip to content

Commit 5ee0a45

Browse files
author
grobbins
committed
Update codegen to report unsupported Google REST-only APIs.
1 parent 61c68d3 commit 5ee0a45

File tree

3 files changed

+321
-135
lines changed

3 files changed

+321
-135
lines changed

Source/Tools/ServiceGenerator/FHGenerator.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ typedef enum {
3333
+ (instancetype)generatorForApi:(GTLDiscoveryRpcDescription *)api
3434
verboseLevel:(NSUInteger)verboseLevel
3535
allowRootURLOverrides:(BOOL)allowRootURLOverrides
36-
formattedNameOverride:(NSString *)formattedNameOverride;
36+
formattedNameOverride:(NSString *)formattedNameOverride
37+
skipIfLikelyREST:(BOOL)skipIfLikelyREST;
3738

3839
// Keys are the file names; values are the contents of the files.
3940
- (NSDictionary *)generateFilesWithHandler:(void (^)(FHGeneratorHandlerMessageType msgType,
@@ -42,4 +43,7 @@ typedef enum {
4243
// The API name formatted for use as a directory name.
4344
- (NSString *)formattedApiName;
4445

46+
// If this is likely REST only (and hence can't be generated).
47+
- (BOOL)likelyRESTOnlyAPI;
48+
4549
@end

0 commit comments

Comments
 (0)