com.google.api.services.dns.model.Quota

Here are the examples of the java api class com.google.api.services.dns.model.Quota taken from open source projects.

1. LocalDnsHelper#createProject()

Project: gcloud-java
Source File: LocalDnsHelper.java
View license
/**
   * Creates a project. It generates a project number randomly.
   */
private ProjectContainer createProject(String projectId) {
    Quota quota = new Quota();
    quota.setManagedZones(10000);
    quota.setRrsetsPerManagedZone(10000);
    quota.setRrsetAdditionsPerChange(100);
    quota.setRrsetDeletionsPerChange(100);
    quota.setTotalRrdataSizePerChange(10000);
    quota.setResourceRecordsPerRrset(100);
    Project project = new Project();
    project.setId(projectId);
    project.setNumber(new BigInteger(String.valueOf(Math.abs(ID_GENERATOR.nextLong() % Long.MAX_VALUE))));
    project.setQuota(quota);
    return new ProjectContainer(project);
}