Class BucketInfo.IpFilter (2.54.0)

public static final class BucketInfo.IpFilter implements Serializable

A buckets IP filtering configuration. Specifies the network sources that can access the bucket, as well as its underlying objects.

Inheritance

Object > BucketInfo.IpFilter

Implements

Serializable

Static Methods

newBuilder()

public static BucketInfo.IpFilter.Builder newBuilder()
Returns
Type Description
BucketInfo.IpFilter.Builder

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getAllowAllServiceAgentAccess()

public @Nullable Boolean getAllowAllServiceAgentAccess()

Whether or not to allow all P4SA access to the bucket. When set to true, IP filter config validation will not apply. See Also: Builder#setAllowAllServiceAgentAccess(Boolean)

Returns
Type Description
@org.checkerframework.checker.nullness.qual.Nullable java.lang.Boolean

getAllowCrossOrgVpcs()

public @Nullable Boolean getAllowCrossOrgVpcs()

Optional. Whether or not to allow VPCs from orgs different than the bucket's parent org to access the bucket. When set to true, validations on the existence of the VPCs won't be performed. If set to false, each VPC network source will be checked to belong to the same org as the bucket as well as validated for existence. See Also: Builder#setAllowCrossOrgVpcs(Boolean)

Returns
Type Description
@org.checkerframework.checker.nullness.qual.Nullable java.lang.Boolean

getMode()

public @Nullable String getMode()

The state of the IP filter configuration. Valid values are Enabled and Disabled. When set to Enabled, IP filtering rules are applied to a bucket and all incoming requests to the bucket are evaluated against these rules. When set to Disabled, IP filtering rules are not applied to a bucket. See Also: Builder#setMode

Returns
Type Description
@org.checkerframework.checker.nullness.qual.Nullable java.lang.String

getPublicNetworkSource()

public @Nullable BucketInfo.IpFilter.PublicNetworkSource getPublicNetworkSource()

Optional. Public IPs allowed to operate or access the bucket. See Also: Builder#setPublicNetworkSource(PublicNetworkSource)

Returns
Type Description
@org.checkerframework.checker.nullness.qual.Nullable com.google.cloud.storage.BucketInfo.IpFilter.PublicNetworkSource

getVpcNetworkSources()

public @Nullable List<BucketInfo.IpFilter.VpcNetworkSource> getVpcNetworkSources()

Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects. See Also: Builder#setVpcNetworkSources(List)

Returns
Type Description
@org.checkerframework.checker.nullness.qual.Nullable java.util.List<VpcNetworkSource>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public BucketInfo.IpFilter.Builder toBuilder()
Returns
Type Description
BucketInfo.IpFilter.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides