mirror of
https://github.com/google/nomulus
synced 2026-04-14 05:27:26 +00:00
Create ICANN report upload action
This is the first step in moving the current []cron-Python reporting scripts into App Engine, as an official part of the Nomulus package. This copies the structure of RDE uploads, with a few changes specific to monthly reporting. I've left some TODOs related to actually testing it on the ICANN endpoint, as we're still not sure how files to be uploaded will be staged, and whether we can actually ping their endpoint on valid ports (80 or 443). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=160408703
This commit is contained in:
@@ -451,6 +451,40 @@ public final class RegistryConfig {
|
||||
return config.gSuite.outgoingEmailDisplayName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Google Cloud Storage bucket for ICANN transaction and activity reports to
|
||||
* be uploaded.
|
||||
*
|
||||
* @see google.registry.reporting.IcannReportingUploadAction
|
||||
*/
|
||||
@Provides
|
||||
@Config("icannReportingBucket")
|
||||
public static String provideIcannReportingBucket(@Config("projectId") String projectId) {
|
||||
return projectId + "-reporting";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the URL we send HTTP PUT requests for ICANN monthly transactions reports.
|
||||
*
|
||||
* @see google.registry.reporting.IcannHttpReporter
|
||||
*/
|
||||
@Provides
|
||||
@Config("icannTransactionsReportingUploadUrl")
|
||||
public static String provideIcannTransactionsReportingUploadUrl(RegistryConfigSettings config) {
|
||||
return config.icannReporting.icannTransactionsReportingUploadUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the URL we send HTTP PUT requests for ICANN monthly activity reports.
|
||||
*
|
||||
* @see google.registry.reporting.IcannHttpReporter
|
||||
*/
|
||||
@Provides
|
||||
@Config("icannActivityReportingUploadUrl")
|
||||
public static String provideIcannActivityReportingUploadUrl(RegistryConfigSettings config) {
|
||||
return config.icannReporting.icannActivityReportingUploadUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Google Cloud Storage bucket for staging escrow deposits pending upload.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user