View Source GoogleApi.Batch.V1.Model.PlacementPolicy (google_api_batch v0.3.0)

PlacementPolicy describes a group placement policy for the VMs controlled by this AllocationPolicy.

Attributes

  • collocation (type: String.t, default: nil) - UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you want VMs to be located close to each other for low network latency between the VMs. No placement policy will be generated when collocation is UNSPECIFIED.
  • maxDistance (type: String.t, default: nil) - When specified, causes the job to fail if more than max_distance logical switches are required between VMs. Batch uses the most compact possible placement of VMs even when max_distance is not specified. An explicit max_distance makes that level of compactness a strict requirement. Not yet implemented

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Batch.V1.Model.PlacementPolicy{
  collocation: String.t() | nil,
  maxDistance: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.