Google Cloud Network Connectivity V1 Client - Class AllocationStrategy (2.3.0)

Reference documentation and code samples for the Google Cloud Network Connectivity V1 Client class AllocationStrategy.

Enumeration of range auto-allocation strategies

Protobuf type google.cloud.networkconnectivity.v1.InternalRange.AllocationStrategy

Namespace

Google \ Cloud \ NetworkConnectivity \ V1 \ InternalRange

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

ALLOCATION_STRATEGY_UNSPECIFIED

Value: 0

Unspecified is the only valid option when the range is specified explicitly by ip_cidr_range field. Otherwise unspefified means using the default strategy.

Generated from protobuf enum ALLOCATION_STRATEGY_UNSPECIFIED = 0;

RANDOM

Value: 1

Random strategy, the legacy algorithm, used for backwards compatibility.

This allocation strategy remains efficient in the case of concurrent allocation requests in the same peered network space and doesn't require providing the level of concurrency in an explicit parameter, but it is prone to fragmenting available address space.

Generated from protobuf enum RANDOM = 1;

FIRST_AVAILABLE

Value: 2

Pick the first available address range. This strategy is deterministic and the result is easy to predict.

Generated from protobuf enum FIRST_AVAILABLE = 2;

RANDOM_FIRST_N_AVAILABLE

Value: 3

Pick an arbitrary range out of the first N available ones. The N will be set in the first_available_ranges_lookup_size field. This strategy should be used when concurrent allocation requests are made in the same space of peered networks while the fragmentation of the addrress space is reduced.

Generated from protobuf enum RANDOM_FIRST_N_AVAILABLE = 3;

FIRST_SMALLEST_FITTING

Value: 4

Pick the smallest but fitting available range. This deterministic strategy minimizes fragmentation of the address space.

Generated from protobuf enum FIRST_SMALLEST_FITTING = 4;