Package com.google.cloud.storage
Class BucketInfo.IpFilter
java.lang.Object
com.google.cloud.storage.BucketInfo.IpFilter
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BucketInfo
A buckets IP
filtering configuration. Specifies the network sources that can access the bucket, as well
as its underlying objects.
- Since:
- 2.54.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classThe public network IP address ranges that can access the bucket and its data.static final classThe list of VPC networks that can access the bucket. -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable BooleanWhether or not to allow all P4SA access to the bucket.@Nullable BooleanOptional.@Nullable StringgetMode()The state of the IP filter configuration.@Nullable BucketInfo.IpFilter.PublicNetworkSourceOptional.@Nullable List<BucketInfo.IpFilter.VpcNetworkSource>Optional.inthashCode()static BucketInfo.IpFilter.BuildertoString()
-
Method Details
-
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.- Since:
- 2.54.0
- See Also:
-
getPublicNetworkSource
Optional. Public IPs allowed to operate or access the bucket.- Since:
- 2.54.0
- See Also:
-
getVpcNetworkSources
Optional. The list of network sources that are allowed to access operations on the bucket or the underlying objects.- Since:
- 2.54.0
- See Also:
-
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.- Since:
- 2.54.0
- See Also:
-
getAllowAllServiceAgentAccess
Whether or not to allow all P4SA access to the bucket. When set to true, IP filter config validation will not apply.- Since:
- 2.54.0
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-
toBuilder
- Since:
- 2.54.0
-
newBuilder
- Since:
- 2.54.0
-