io.kestra.plugin.gcp.gcs.models.IamConfiguration 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.
The newest version!
package io.kestra.plugin.gcp.gcs.models;
import com.google.cloud.storage.BucketInfo;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class IamConfiguration {
private final Boolean uniformBucketLevelAccessEnabled;
private final BucketInfo.PublicAccessPrevention publicAccessPrevention;
public static IamConfiguration of(BucketInfo.IamConfiguration item) {
return IamConfiguration.builder()
.uniformBucketLevelAccessEnabled(item.isUniformBucketLevelAccessEnabled())
.publicAccessPrevention(item.getPublicAccessPrevention())
.build();
}
public BucketInfo.IamConfiguration convert() {
return BucketInfo.IamConfiguration.newBuilder()
.setIsUniformBucketLevelAccessEnabled(this.uniformBucketLevelAccessEnabled)
.setPublicAccessPrevention(this.publicAccessPrevention)
.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy