
io.kestra.plugin.gcp.bigquery.models.EncryptionConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-gcp Show documentation
Show all versions of plugin-gcp Show documentation
Integrate Google Cloud Platform services with Kestra data workflows.
package io.kestra.plugin.gcp.bigquery.models;
import io.kestra.core.exceptions.IllegalVariableEvaluationException;
import io.kestra.core.models.annotations.PluginProperty;
import io.kestra.core.runners.RunContext;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;
import lombok.extern.jackson.Jacksonized;
@Getter
@Builder
@Jacksonized
public class EncryptionConfiguration {
@Schema(
name = "The KMS key name."
)
@PluginProperty(dynamic = true)
private final String kmsKeyName;
public static EncryptionConfiguration of(com.google.cloud.bigquery.EncryptionConfiguration encryptionConfiguration) {
if (encryptionConfiguration == null) {
return null;
}
return EncryptionConfiguration.builder()
.kmsKeyName(encryptionConfiguration.getKmsKeyName())
.build();
}
public com.google.cloud.bigquery.EncryptionConfiguration to(RunContext runContext) throws IllegalVariableEvaluationException {
return com.google.cloud.bigquery.EncryptionConfiguration.newBuilder()
.setKmsKeyName(runContext.render(this.kmsKeyName))
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy