Skip to content

Commit

Permalink
Regenerate client from commit 592474c8 of spec repo (#1465)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Aug 29, 2022
1 parent 1c2845d commit c25e03e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2022-08-29 14:55:58.760225",
"spec_repo_commit": "71afb1ee"
"regenerated": "2022-08-29 15:23:42.086068",
"spec_repo_commit": "592474c8"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2022-08-29 14:55:58.776652",
"spec_repo_commit": "71afb1ee"
"regenerated": "2022-08-29 15:23:42.098506",
"spec_repo_commit": "592474c8"
}
}
}
6 changes: 6 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14040,6 +14040,9 @@ components:
description: Shows usage aggregation for a billing period.
format: double
type: number
region:
description: The region of the organization.
type: string
start_date:
description: Shows the first date of usage.
format: date-time
Expand Down Expand Up @@ -15838,6 +15841,9 @@ components:
public_id:
description: The organization public id.
type: string
region:
description: The region of the organization.
type: string
rum_browser_and_mobile_session_count:
description: Shows the sum of all mobile sessions and all browser lite and
legacy sessions over all hours in the current date for the given org.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
UsageBillableSummaryHour.JSON_PROPERTY_ORG_NAME,
UsageBillableSummaryHour.JSON_PROPERTY_PUBLIC_ID,
UsageBillableSummaryHour.JSON_PROPERTY_RATIO_IN_MONTH,
UsageBillableSummaryHour.JSON_PROPERTY_REGION,
UsageBillableSummaryHour.JSON_PROPERTY_START_DATE,
UsageBillableSummaryHour.JSON_PROPERTY_USAGE
})
Expand Down Expand Up @@ -50,6 +51,9 @@ public class UsageBillableSummaryHour {
public static final String JSON_PROPERTY_RATIO_IN_MONTH = "ratio_in_month";
private Double ratioInMonth;

public static final String JSON_PROPERTY_REGION = "region";
private String region;

public static final String JSON_PROPERTY_START_DATE = "start_date";

@JsonSerialize(using = JsonTimeSerializer.class)
Expand Down Expand Up @@ -184,6 +188,27 @@ public void setRatioInMonth(Double ratioInMonth) {
this.ratioInMonth = ratioInMonth;
}

public UsageBillableSummaryHour region(String region) {
this.region = region;
return this;
}

/**
* The region of the organization.
*
* @return region
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_REGION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRegion() {
return region;
}

public void setRegion(String region) {
this.region = region;
}

public UsageBillableSummaryHour startDate(OffsetDateTime startDate) {
this.startDate = startDate;
return this;
Expand Down Expand Up @@ -243,14 +268,15 @@ public boolean equals(Object o) {
&& Objects.equals(this.orgName, usageBillableSummaryHour.orgName)
&& Objects.equals(this.publicId, usageBillableSummaryHour.publicId)
&& Objects.equals(this.ratioInMonth, usageBillableSummaryHour.ratioInMonth)
&& Objects.equals(this.region, usageBillableSummaryHour.region)
&& Objects.equals(this.startDate, usageBillableSummaryHour.startDate)
&& Objects.equals(this.usage, usageBillableSummaryHour.usage);
}

@Override
public int hashCode() {
return Objects.hash(
billingPlan, endDate, numOrgs, orgName, publicId, ratioInMonth, startDate, usage);
billingPlan, endDate, numOrgs, orgName, publicId, ratioInMonth, region, startDate, usage);
}

@Override
Expand All @@ -263,6 +289,7 @@ public String toString() {
sb.append(" orgName: ").append(toIndentedString(orgName)).append("\n");
sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n");
sb.append(" ratioInMonth: ").append(toIndentedString(ratioInMonth)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" usage: ").append(toIndentedString(usage)).append("\n");
sb.append("}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
UsageSummaryDateOrg.JSON_PROPERTY_OPENTELEMETRY_HOST_TOP99P,
UsageSummaryDateOrg.JSON_PROPERTY_PROFILING_HOST_TOP99P,
UsageSummaryDateOrg.JSON_PROPERTY_PUBLIC_ID,
UsageSummaryDateOrg.JSON_PROPERTY_REGION,
UsageSummaryDateOrg.JSON_PROPERTY_RUM_BROWSER_AND_MOBILE_SESSION_COUNT,
UsageSummaryDateOrg.JSON_PROPERTY_RUM_SESSION_COUNT_SUM,
UsageSummaryDateOrg.JSON_PROPERTY_RUM_TOTAL_SESSION_COUNT_SUM,
Expand Down Expand Up @@ -269,6 +270,9 @@ public class UsageSummaryDateOrg {
public static final String JSON_PROPERTY_PUBLIC_ID = "public_id";
private String publicId;

public static final String JSON_PROPERTY_REGION = "region";
private String region;

public static final String JSON_PROPERTY_RUM_BROWSER_AND_MOBILE_SESSION_COUNT =
"rum_browser_and_mobile_session_count";
private Long rumBrowserAndMobileSessionCount;
Expand Down Expand Up @@ -1512,6 +1516,27 @@ public void setPublicId(String publicId) {
this.publicId = publicId;
}

public UsageSummaryDateOrg region(String region) {
this.region = region;
return this;
}

/**
* The region of the organization.
*
* @return region
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_REGION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRegion() {
return region;
}

public void setRegion(String region) {
this.region = region;
}

public UsageSummaryDateOrg rumBrowserAndMobileSessionCount(Long rumBrowserAndMobileSessionCount) {
this.rumBrowserAndMobileSessionCount = rumBrowserAndMobileSessionCount;
return this;
Expand Down Expand Up @@ -1843,6 +1868,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.opentelemetryHostTop99p, usageSummaryDateOrg.opentelemetryHostTop99p)
&& Objects.equals(this.profilingHostTop99p, usageSummaryDateOrg.profilingHostTop99p)
&& Objects.equals(this.publicId, usageSummaryDateOrg.publicId)
&& Objects.equals(this.region, usageSummaryDateOrg.region)
&& Objects.equals(
this.rumBrowserAndMobileSessionCount,
usageSummaryDateOrg.rumBrowserAndMobileSessionCount)
Expand Down Expand Up @@ -1922,6 +1948,7 @@ public int hashCode() {
opentelemetryHostTop99p,
profilingHostTop99p,
publicId,
region,
rumBrowserAndMobileSessionCount,
rumSessionCountSum,
rumTotalSessionCountSum,
Expand Down Expand Up @@ -2052,6 +2079,7 @@ public String toString() {
.append(toIndentedString(profilingHostTop99p))
.append("\n");
sb.append(" publicId: ").append(toIndentedString(publicId)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" rumBrowserAndMobileSessionCount: ")
.append(toIndentedString(rumBrowserAndMobileSessionCount))
.append("\n");
Expand Down

0 comments on commit c25e03e

Please sign in to comment.