public GitHubApiRateLimits ToGitHubApiRateLimits()
 {
     return(new GitHubApiRateLimits(RestApi?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    SearchApi?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    GraphQLApi?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    SourceImport?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    AppManifestConfiguration?.ToRateLimitStatus() ?? throw new NullReferenceException(),
                                    CodeScanningUpload?.ToRateLimitStatus() ?? throw new NullReferenceException()));
 }
 internal FacadeStack(Construct scope, string id, IStackProps props = null) : base(scope, id, props)
 {
     var api = new GraphQLApi(this, "Api", new GraphQLApiProps
     {
         Name      = "DemoApi",
         LogConfig = new LogConfig
         {
             FieldLogLevel = FieldLogLevel.ALL
         },
         SchemaDefinitionFile = "./schema.graphql"
     });
 }