Record Class GcsConfiguration
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasource.gcs.GcsConfiguration
public record GcsConfiguration(String serviceAccountCredentials, String projectId, String endpoint, String tokenUri, String auth)
extends Record
Configuration for Google Cloud Storage access including credentials and endpoint settings.
Supports authentication modes:
- Service account JSON credentials (inline or from a file path)
auth=nonefor anonymous access to public buckets- Application Default Credentials (ADC) when no explicit credentials are provided
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauth()Returns the value of theauthrecord component.endpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.static GcsConfigurationfromFields(String serviceAccountCredentials, String projectId, String endpoint) static GcsConfigurationfromFields(String serviceAccountCredentials, String projectId, String endpoint, String tokenUri) static GcsConfigurationfromFields(String serviceAccountCredentials, String projectId, String endpoint, String tokenUri, String auth) static GcsConfigurationfromParams(Map<String, Expression> params) booleanfinal inthashCode()Returns a hash code value for this object.booleanReturns the value of theprojectIdrecord component.Returns the value of theserviceAccountCredentialsrecord component.tokenUri()Returns the value of thetokenUrirecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GcsConfiguration
public GcsConfiguration(String serviceAccountCredentials, String projectId, String endpoint, String tokenUri, String auth) Creates an instance of aGcsConfigurationrecord class.- Parameters:
serviceAccountCredentials- the value for theserviceAccountCredentialsrecord componentprojectId- the value for theprojectIdrecord componentendpoint- the value for theendpointrecord componenttokenUri- the value for thetokenUrirecord componentauth- the value for theauthrecord component
-
-
Method Details
-
fromParams
-
fromFields
public static GcsConfiguration fromFields(String serviceAccountCredentials, String projectId, String endpoint) -
fromFields
public static GcsConfiguration fromFields(String serviceAccountCredentials, String projectId, String endpoint, String tokenUri) -
fromFields
-
isAnonymous
public boolean isAnonymous() -
hasCredentials
public boolean hasCredentials() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
serviceAccountCredentials
Returns the value of theserviceAccountCredentialsrecord component.- Returns:
- the value of the
serviceAccountCredentialsrecord component
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-
tokenUri
Returns the value of thetokenUrirecord component.- Returns:
- the value of the
tokenUrirecord component
-
auth
Returns the value of theauthrecord component.- Returns:
- the value of the
authrecord component
-