diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 65d674fb23d..99b25f0ac87 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -13100,12 +13100,17 @@ components:
minLength: 1
type: string
repository_id:
- description: The repository identifier.
+ deprecated: true
+ description: "Deprecated: use `repository_url` instead. The repository URL."
example: github.com/datadog/shopist
minLength: 1
type: string
+ repository_url:
+ description: The repository URL. Accepts a full URL with or without a scheme (for example, `https://github.com/org/repo` or `github.com/org/repo`).
+ example: https://github.com/datadog/shopist
+ minLength: 1
+ type: string
required:
- - repository_id
- branch
type: object
BranchCoverageSummaryRequestData:
@@ -19067,12 +19072,17 @@ components:
pattern: "^[a-fA-F0-9]{40}$"
type: string
repository_id:
- description: The repository identifier.
+ deprecated: true
+ description: "Deprecated: use `repository_url` instead. The repository URL."
example: github.com/datadog/shopist
minLength: 1
type: string
+ repository_url:
+ description: The repository URL. Accepts a full URL with or without a scheme (for example, `https://github.com/org/repo` or `github.com/org/repo`).
+ example: https://github.com/datadog/shopist
+ minLength: 1
+ type: string
required:
- - repository_id
- commit_sha
type: object
CommitCoverageSummaryRequestData:
@@ -122130,7 +122140,7 @@ paths:
data:
attributes:
branch: prod
- repository_id: github.com/datadog/test-service
+ repository_url: https://github.com/datadog/test-service
type: ci_app_coverage_branch_summary_request
schema:
$ref: "#/components/schemas/BranchCoverageSummaryRequest"
@@ -122200,7 +122210,7 @@ paths:
data:
attributes:
commit_sha: 66adc9350f2cc9b250b69abddab733dd55e1a588
- repository_id: github.com/datadog/test-service
+ repository_url: https://github.com/datadog/test-service
type: ci_app_coverage_commit_summary_request
schema:
$ref: "#/components/schemas/CommitCoverageSummaryRequest"
diff --git a/examples/v2/code-coverage/GetCodeCoverageBranchSummary.java b/examples/v2/code-coverage/GetCodeCoverageBranchSummary.java
index 9c8d00b6666..466a6bf6cb7 100644
--- a/examples/v2/code-coverage/GetCodeCoverageBranchSummary.java
+++ b/examples/v2/code-coverage/GetCodeCoverageBranchSummary.java
@@ -22,7 +22,8 @@ public static void main(String[] args) {
.attributes(
new BranchCoverageSummaryRequestAttributes()
.branch("prod")
- .repositoryId("github.com/datadog/shopist"))
+ .repositoryId("github.com/datadog/shopist")
+ .repositoryUrl("https://github.com/datadog/shopist"))
.type(BranchCoverageSummaryRequestType.CI_APP_COVERAGE_BRANCH_SUMMARY_REQUEST));
try {
diff --git a/examples/v2/code-coverage/GetCodeCoverageCommitSummary.java b/examples/v2/code-coverage/GetCodeCoverageCommitSummary.java
index 2bed679f517..028c94cfd3f 100644
--- a/examples/v2/code-coverage/GetCodeCoverageCommitSummary.java
+++ b/examples/v2/code-coverage/GetCodeCoverageCommitSummary.java
@@ -22,7 +22,8 @@ public static void main(String[] args) {
.attributes(
new CommitCoverageSummaryRequestAttributes()
.commitSha("66adc9350f2cc9b250b69abddab733dd55e1a588")
- .repositoryId("github.com/datadog/shopist"))
+ .repositoryId("github.com/datadog/shopist")
+ .repositoryUrl("https://github.com/datadog/shopist"))
.type(CommitCoverageSummaryRequestType.CI_APP_COVERAGE_COMMIT_SUMMARY_REQUEST));
try {
diff --git a/src/main/java/com/datadog/api/client/v2/model/BranchCoverageSummaryRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/BranchCoverageSummaryRequestAttributes.java
index a590ccea7bd..e676aff3129 100644
--- a/src/main/java/com/datadog/api/client/v2/model/BranchCoverageSummaryRequestAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/BranchCoverageSummaryRequestAttributes.java
@@ -20,7 +20,8 @@
/** Attributes for requesting code coverage summary for a branch. */
@JsonPropertyOrder({
BranchCoverageSummaryRequestAttributes.JSON_PROPERTY_BRANCH,
- BranchCoverageSummaryRequestAttributes.JSON_PROPERTY_REPOSITORY_ID
+ BranchCoverageSummaryRequestAttributes.JSON_PROPERTY_REPOSITORY_ID,
+ BranchCoverageSummaryRequestAttributes.JSON_PROPERTY_REPOSITORY_URL
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,14 +33,15 @@ public class BranchCoverageSummaryRequestAttributes {
public static final String JSON_PROPERTY_REPOSITORY_ID = "repository_id";
private String repositoryId;
+ public static final String JSON_PROPERTY_REPOSITORY_URL = "repository_url";
+ private String repositoryUrl;
+
public BranchCoverageSummaryRequestAttributes() {}
@JsonCreator
public BranchCoverageSummaryRequestAttributes(
- @JsonProperty(required = true, value = JSON_PROPERTY_BRANCH) String branch,
- @JsonProperty(required = true, value = JSON_PROPERTY_REPOSITORY_ID) String repositoryId) {
+ @JsonProperty(required = true, value = JSON_PROPERTY_BRANCH) String branch) {
this.branch = branch;
- this.repositoryId = repositoryId;
}
public BranchCoverageSummaryRequestAttributes branch(String branch) {
@@ -68,20 +70,46 @@ public BranchCoverageSummaryRequestAttributes repositoryId(String repositoryId)
}
/**
- * The repository identifier.
+ * Deprecated: use repository_url instead. The repository URL.
*
* @return repositoryId
+ * @deprecated
*/
+ @Deprecated
+ @jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_REPOSITORY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRepositoryId() {
return repositoryId;
}
+ @Deprecated
public void setRepositoryId(String repositoryId) {
this.repositoryId = repositoryId;
}
+ public BranchCoverageSummaryRequestAttributes repositoryUrl(String repositoryUrl) {
+ this.repositoryUrl = repositoryUrl;
+ return this;
+ }
+
+ /**
+ * The repository URL. Accepts a full URL with or without a scheme (for example,
+ * https://github.com/org/repo or github.com/org/repo).
+ *
+ * @return repositoryUrl
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_REPOSITORY_URL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getRepositoryUrl() {
+ return repositoryUrl;
+ }
+
+ public void setRepositoryUrl(String repositoryUrl) {
+ this.repositoryUrl = repositoryUrl;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -141,13 +169,14 @@ public boolean equals(Object o) {
(BranchCoverageSummaryRequestAttributes) o;
return Objects.equals(this.branch, branchCoverageSummaryRequestAttributes.branch)
&& Objects.equals(this.repositoryId, branchCoverageSummaryRequestAttributes.repositoryId)
+ && Objects.equals(this.repositoryUrl, branchCoverageSummaryRequestAttributes.repositoryUrl)
&& Objects.equals(
this.additionalProperties, branchCoverageSummaryRequestAttributes.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(branch, repositoryId, additionalProperties);
+ return Objects.hash(branch, repositoryId, repositoryUrl, additionalProperties);
}
@Override
@@ -156,6 +185,7 @@ public String toString() {
sb.append("class BranchCoverageSummaryRequestAttributes {\n");
sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
sb.append(" repositoryId: ").append(toIndentedString(repositoryId)).append("\n");
+ sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/main/java/com/datadog/api/client/v2/model/CommitCoverageSummaryRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/CommitCoverageSummaryRequestAttributes.java
index d91fd81c327..1804b9405a0 100644
--- a/src/main/java/com/datadog/api/client/v2/model/CommitCoverageSummaryRequestAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/CommitCoverageSummaryRequestAttributes.java
@@ -20,7 +20,8 @@
/** Attributes for requesting code coverage summary for a commit. */
@JsonPropertyOrder({
CommitCoverageSummaryRequestAttributes.JSON_PROPERTY_COMMIT_SHA,
- CommitCoverageSummaryRequestAttributes.JSON_PROPERTY_REPOSITORY_ID
+ CommitCoverageSummaryRequestAttributes.JSON_PROPERTY_REPOSITORY_ID,
+ CommitCoverageSummaryRequestAttributes.JSON_PROPERTY_REPOSITORY_URL
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -32,14 +33,15 @@ public class CommitCoverageSummaryRequestAttributes {
public static final String JSON_PROPERTY_REPOSITORY_ID = "repository_id";
private String repositoryId;
+ public static final String JSON_PROPERTY_REPOSITORY_URL = "repository_url";
+ private String repositoryUrl;
+
public CommitCoverageSummaryRequestAttributes() {}
@JsonCreator
public CommitCoverageSummaryRequestAttributes(
- @JsonProperty(required = true, value = JSON_PROPERTY_COMMIT_SHA) String commitSha,
- @JsonProperty(required = true, value = JSON_PROPERTY_REPOSITORY_ID) String repositoryId) {
+ @JsonProperty(required = true, value = JSON_PROPERTY_COMMIT_SHA) String commitSha) {
this.commitSha = commitSha;
- this.repositoryId = repositoryId;
}
public CommitCoverageSummaryRequestAttributes commitSha(String commitSha) {
@@ -68,20 +70,46 @@ public CommitCoverageSummaryRequestAttributes repositoryId(String repositoryId)
}
/**
- * The repository identifier.
+ * Deprecated: use repository_url instead. The repository URL.
*
* @return repositoryId
+ * @deprecated
*/
+ @Deprecated
+ @jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_REPOSITORY_ID)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRepositoryId() {
return repositoryId;
}
+ @Deprecated
public void setRepositoryId(String repositoryId) {
this.repositoryId = repositoryId;
}
+ public CommitCoverageSummaryRequestAttributes repositoryUrl(String repositoryUrl) {
+ this.repositoryUrl = repositoryUrl;
+ return this;
+ }
+
+ /**
+ * The repository URL. Accepts a full URL with or without a scheme (for example,
+ * https://github.com/org/repo or github.com/org/repo).
+ *
+ * @return repositoryUrl
+ */
+ @jakarta.annotation.Nullable
+ @JsonProperty(JSON_PROPERTY_REPOSITORY_URL)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
+ public String getRepositoryUrl() {
+ return repositoryUrl;
+ }
+
+ public void setRepositoryUrl(String repositoryUrl) {
+ this.repositoryUrl = repositoryUrl;
+ }
+
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -141,13 +169,14 @@ public boolean equals(Object o) {
(CommitCoverageSummaryRequestAttributes) o;
return Objects.equals(this.commitSha, commitCoverageSummaryRequestAttributes.commitSha)
&& Objects.equals(this.repositoryId, commitCoverageSummaryRequestAttributes.repositoryId)
+ && Objects.equals(this.repositoryUrl, commitCoverageSummaryRequestAttributes.repositoryUrl)
&& Objects.equals(
this.additionalProperties, commitCoverageSummaryRequestAttributes.additionalProperties);
}
@Override
public int hashCode() {
- return Objects.hash(commitSha, repositoryId, additionalProperties);
+ return Objects.hash(commitSha, repositoryId, repositoryUrl, additionalProperties);
}
@Override
@@ -156,6 +185,7 @@ public String toString() {
sb.append("class CommitCoverageSummaryRequestAttributes {\n");
sb.append(" commitSha: ").append(toIndentedString(commitSha)).append("\n");
sb.append(" repositoryId: ").append(toIndentedString(repositoryId)).append("\n");
+ sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
diff --git a/src/test/resources/com/datadog/api/client/v2/api/code_coverage.feature b/src/test/resources/com/datadog/api/client/v2/api/code_coverage.feature
index 657ee0375c9..a103acd210a 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/code_coverage.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/code_coverage.feature
@@ -13,7 +13,7 @@ Feature: Code Coverage
Scenario: Get code coverage summary for a branch returns "Bad Request" response
Given operation "GetCodeCoverageBranchSummary" enabled
And new "GetCodeCoverageBranchSummary" request
- And body with value {"data": {"attributes": {"branch": "prod", "repository_id": "github.com/datadog/shopist"}, "type": "ci_app_coverage_branch_summary_request"}}
+ And body with value {"data": {"attributes": {"branch": "prod", "repository_id": "github.com/datadog/shopist", "repository_url": "https://github.com/datadog/shopist"}, "type": "ci_app_coverage_branch_summary_request"}}
When the request is sent
Then the response status is 400 Bad Request
@@ -21,7 +21,7 @@ Feature: Code Coverage
Scenario: Get code coverage summary for a branch returns "Not Found" response
Given operation "GetCodeCoverageBranchSummary" enabled
And new "GetCodeCoverageBranchSummary" request
- And body with value {"data": {"attributes": {"branch": "prod", "repository_id": "github.com/datadog/shopist"}, "type": "ci_app_coverage_branch_summary_request"}}
+ And body with value {"data": {"attributes": {"branch": "prod", "repository_id": "github.com/datadog/shopist", "repository_url": "https://github.com/datadog/shopist"}, "type": "ci_app_coverage_branch_summary_request"}}
When the request is sent
Then the response status is 404 Not Found
@@ -29,7 +29,7 @@ Feature: Code Coverage
Scenario: Get code coverage summary for a branch returns "OK" response
Given operation "GetCodeCoverageBranchSummary" enabled
And new "GetCodeCoverageBranchSummary" request
- And body with value {"data": {"attributes": {"branch": "prod", "repository_id": "github.com/datadog/shopist"}, "type": "ci_app_coverage_branch_summary_request"}}
+ And body with value {"data": {"attributes": {"branch": "prod", "repository_id": "github.com/datadog/shopist", "repository_url": "https://github.com/datadog/shopist"}, "type": "ci_app_coverage_branch_summary_request"}}
When the request is sent
Then the response status is 200 OK
@@ -61,7 +61,7 @@ Feature: Code Coverage
Scenario: Get code coverage summary for a commit returns "Bad Request" response
Given operation "GetCodeCoverageCommitSummary" enabled
And new "GetCodeCoverageCommitSummary" request
- And body with value {"data": {"attributes": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_id": "github.com/datadog/shopist"}, "type": "ci_app_coverage_commit_summary_request"}}
+ And body with value {"data": {"attributes": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_id": "github.com/datadog/shopist", "repository_url": "https://github.com/datadog/shopist"}, "type": "ci_app_coverage_commit_summary_request"}}
When the request is sent
Then the response status is 400 Bad Request
@@ -69,7 +69,7 @@ Feature: Code Coverage
Scenario: Get code coverage summary for a commit returns "Not Found" response
Given operation "GetCodeCoverageCommitSummary" enabled
And new "GetCodeCoverageCommitSummary" request
- And body with value {"data": {"attributes": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_id": "github.com/datadog/shopist"}, "type": "ci_app_coverage_commit_summary_request"}}
+ And body with value {"data": {"attributes": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_id": "github.com/datadog/shopist", "repository_url": "https://github.com/datadog/shopist"}, "type": "ci_app_coverage_commit_summary_request"}}
When the request is sent
Then the response status is 404 Not Found
@@ -77,7 +77,7 @@ Feature: Code Coverage
Scenario: Get code coverage summary for a commit returns "OK" response
Given operation "GetCodeCoverageCommitSummary" enabled
And new "GetCodeCoverageCommitSummary" request
- And body with value {"data": {"attributes": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_id": "github.com/datadog/shopist"}, "type": "ci_app_coverage_commit_summary_request"}}
+ And body with value {"data": {"attributes": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_id": "github.com/datadog/shopist", "repository_url": "https://github.com/datadog/shopist"}, "type": "ci_app_coverage_commit_summary_request"}}
When the request is sent
Then the response status is 200 OK