Skip to content

Fix basic auth requirements #2932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.6",
"regenerated": "2025-06-20 19:51:49.507932",
"spec_repo_commit": "51272749"
"regenerated": "2025-06-23 07:59:26.325614",
"spec_repo_commit": "74866a53"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-20 19:51:49.524444",
"spec_repo_commit": "51272749"
"regenerated": "2025-06-23 07:59:26.342135",
"spec_repo_commit": "74866a53"
}
}
}
3 changes: 0 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14785,9 +14785,6 @@ components:
description: Username to use for the basic authentication.
example: my_username
type: string
required:
- password
- username
type: object
SyntheticsBasicAuthWebType:
default: web
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -36,16 +35,6 @@ public class SyntheticsBasicAuthWeb {
public static final String JSON_PROPERTY_USERNAME = "username";
private String username;

public SyntheticsBasicAuthWeb() {}

@JsonCreator
public SyntheticsBasicAuthWeb(
@JsonProperty(required = true, value = JSON_PROPERTY_PASSWORD) String password,
@JsonProperty(required = true, value = JSON_PROPERTY_USERNAME) String username) {
this.password = password;
this.username = username;
}

public SyntheticsBasicAuthWeb password(String password) {
this.password = password;
return this;
Expand All @@ -56,8 +45,9 @@ public SyntheticsBasicAuthWeb password(String password) {
*
* @return password
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPassword() {
return password;
}
Expand Down Expand Up @@ -101,8 +91,9 @@ public SyntheticsBasicAuthWeb username(String username) {
*
* @return username
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUsername() {
return username;
}
Expand Down