Skip to content

Commit

Permalink
fix(discovery-v1): change authentication to authenticated property in…
Browse files Browse the repository at this point in the history
… StatusDetails
  • Loading branch information
kevinkowa committed Sep 14, 2021
1 parent 653c64c commit e7b3cae
Showing 1 changed file with 13 additions and 13 deletions.
Expand Up @@ -18,18 +18,18 @@
/** Object that contains details about the status of the authentication process. */
public class StatusDetails extends GenericModel {

protected Boolean authentication;
protected Boolean authenticated;

@SerializedName("error_message")
protected String errorMessage;

/** Builder. */
public static class Builder {
private Boolean authentication;
private Boolean authenticated;
private String errorMessage;

private Builder(StatusDetails statusDetails) {
this.authentication = statusDetails.authentication;
this.authenticated = statusDetails.authenticated;
this.errorMessage = statusDetails.errorMessage;
}

Expand All @@ -46,13 +46,13 @@ public StatusDetails build() {
}

/**
* Set the authentication.
* Set the authenticated.
*
* @param authentication the authentication
* @param authenticated the authenticated
* @return the StatusDetails builder
*/
public Builder authentication(Boolean authentication) {
this.authentication = authentication;
public Builder authenticated(Boolean authenticated) {
this.authenticated = authenticated;
return this;
}

Expand All @@ -69,7 +69,7 @@ public Builder errorMessage(String errorMessage) {
}

protected StatusDetails(Builder builder) {
authentication = builder.authentication;
authenticated = builder.authenticated;
errorMessage = builder.errorMessage;
}

Expand All @@ -83,20 +83,20 @@ public Builder newBuilder() {
}

/**
* Gets the authentication.
* Gets the authenticated.
*
* <p>Indicates whether the credential is accepted by the target data source.
*
* @return the authentication
* @return the authenticated
*/
public Boolean authentication() {
return authentication;
public Boolean authenticated() {
return authenticated;
}

/**
* Gets the errorMessage.
*
* <p>If `authentication` is `false`, a message describes why the authentication was unsuccessful.
* <p>If `authenticated` is `false`, a message describes why the authentication was unsuccessful.
*
* @return the errorMessage
*/
Expand Down

0 comments on commit e7b3cae

Please sign in to comment.