Interface ServicePerimeterConfig.VpcAccessibleServicesOrBuilder (1.56.0)

public static interface ServicePerimeterConfig.VpcAccessibleServicesOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowedServices(int index)

public abstract String getAllowedServices(int index)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedServices at the given index.

getAllowedServicesBytes(int index)

public abstract ByteString getAllowedServicesBytes(int index)

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedServices at the given index.

getAllowedServicesCount()

public abstract int getAllowedServicesCount()

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Returns
Type Description
int

The count of allowedServices.

getAllowedServicesList()

public abstract List<String> getAllowedServicesList()

The list of APIs usable within the Service Perimeter. Must be empty unless 'enable_restriction' is True. You can specify a list of individual services, as well as include the 'RESTRICTED-SERVICES' value, which automatically includes all of the services protected by the perimeter.

repeated string allowed_services = 2;

Returns
Type Description
List<String>

A list containing the allowedServices.

getEnableRestriction()

public abstract boolean getEnableRestriction()

Whether to restrict API calls within the Service Perimeter to the list of APIs specified in 'allowed_services'.

bool enable_restriction = 1;

Returns
Type Description
boolean

The enableRestriction.