{
  "description": "FleetAutoscaler is the data structure for a FleetAutoscaler resource.",
  "properties": {
    "spec": {
      "additionalProperties": false,
      "description": "FleetAutoscalerSpec is the spec for a Fleet Scaler. More info: https://agones.dev/site/docs/reference/agones_crd_api_reference/#autoscaling.agones.dev/v1.FleetAutoscaler",
      "properties": {
        "fleetName": {
          "maxLength": 63,
          "minLength": 1,
          "pattern": "^[a-z0-9]([-\\.a-z0-9]*[a-z0-9])?$",
          "type": "string"
        },
        "policy": {
          "additionalProperties": false,
          "properties": {
            "buffer": {
              "additionalProperties": false,
              "nullable": true,
              "properties": {
                "bufferSize": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "x-kubernetes-int-or-string": true
                },
                "maxReplicas": {
                  "minimum": 1,
                  "type": "integer"
                },
                "minReplicas": {
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "maxReplicas"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "chain": {
              "items": {
                "additionalProperties": false,
                "nullable": true,
                "properties": {
                  "buffer": {
                    "additionalProperties": false,
                    "nullable": true,
                    "properties": {
                      "bufferSize": {
                        "oneOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "x-kubernetes-int-or-string": true
                      },
                      "maxReplicas": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "minReplicas": {
                        "minimum": 0,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "maxReplicas"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "counter": {
                    "additionalProperties": false,
                    "nullable": true,
                    "properties": {
                      "bufferSize": {
                        "oneOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "integer"
                          }
                        ],
                        "x-kubernetes-int-or-string": true
                      },
                      "key": {
                        "type": "string"
                      },
                      "maxCapacity": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "minCapacity": {
                        "minimum": 0,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "key",
                      "bufferSize",
                      "maxCapacity"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "list": {
                    "additionalProperties": false,
                    "nullable": true,
                    "properties": {
                      "bufferSize": {
                        "oneOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "integer"
                          }
                        ],
                        "x-kubernetes-int-or-string": true
                      },
                      "key": {
                        "type": "string"
                      },
                      "maxCapacity": {
                        "minimum": 1,
                        "type": "integer"
                      },
                      "minCapacity": {
                        "minimum": 0,
                        "type": [
                          "integer",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "key",
                      "bufferSize",
                      "maxCapacity"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "schedule": {
                    "additionalProperties": false,
                    "nullable": true,
                    "properties": {
                      "activePeriod": {
                        "additionalProperties": false,
                        "nullable": true,
                        "properties": {
                          "duration": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "startCron": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "timezone": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "between": {
                        "additionalProperties": false,
                        "nullable": true,
                        "properties": {
                          "end": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "start": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "policy": {
                        "additionalProperties": false,
                        "properties": {
                          "buffer": {
                            "additionalProperties": false,
                            "nullable": true,
                            "properties": {
                              "bufferSize": {
                                "oneOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "x-kubernetes-int-or-string": true
                              },
                              "maxReplicas": {
                                "minimum": 1,
                                "type": "integer"
                              },
                              "minReplicas": {
                                "minimum": 0,
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "maxReplicas"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "counter": {
                            "additionalProperties": false,
                            "nullable": true,
                            "properties": {
                              "bufferSize": {
                                "oneOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "integer"
                                  }
                                ],
                                "x-kubernetes-int-or-string": true
                              },
                              "key": {
                                "type": "string"
                              },
                              "maxCapacity": {
                                "minimum": 1,
                                "type": "integer"
                              },
                              "minCapacity": {
                                "minimum": 0,
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "key",
                              "bufferSize",
                              "maxCapacity"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "list": {
                            "additionalProperties": false,
                            "nullable": true,
                            "properties": {
                              "bufferSize": {
                                "oneOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "integer"
                                  }
                                ],
                                "x-kubernetes-int-or-string": true
                              },
                              "key": {
                                "type": "string"
                              },
                              "maxCapacity": {
                                "minimum": 1,
                                "type": "integer"
                              },
                              "minCapacity": {
                                "minimum": 0,
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "key",
                              "bufferSize",
                              "maxCapacity"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "type": {
                            "enum": [
                              "Buffer",
                              "Webhook",
                              "Counter",
                              "List",
                              "Wasm"
                            ],
                            "type": "string"
                          },
                          "wasm": {
                            "additionalProperties": false,
                            "nullable": true,
                            "properties": {
                              "config": {
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "from": {
                                "additionalProperties": false,
                                "properties": {
                                  "url": {
                                    "additionalProperties": false,
                                    "nullable": true,
                                    "properties": {
                                      "caBundle": {
                                        "format": "byte",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "service": {
                                        "additionalProperties": false,
                                        "properties": {
                                          "name": {
                                            "type": "string"
                                          },
                                          "namespace": {
                                            "type": "string"
                                          },
                                          "path": {
                                            "type": [
                                              "string",
                                              "null"
                                            ]
                                          },
                                          "port": {
                                            "type": [
                                              "integer",
                                              "null"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "namespace",
                                          "name"
                                        ],
                                        "type": [
                                          "object",
                                          "null"
                                        ]
                                      },
                                      "url": {
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    },
                                    "type": "object"
                                  }
                                },
                                "required": [
                                  "url"
                                ],
                                "type": "object"
                              },
                              "function": {
                                "default": "scale",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "hash": {
                                "pattern": "^[a-fA-F0-9]{64}$",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "from"
                            ],
                            "type": [
                              "object",
                              "null"
                            ]
                          },
                          "webhook": {
                            "additionalProperties": false,
                            "nullable": true,
                            "properties": {
                              "caBundle": {
                                "format": "byte",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "service": {
                                "additionalProperties": false,
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "namespace": {
                                    "type": "string"
                                  },
                                  "path": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "port": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "namespace",
                                  "name"
                                ],
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "type": [
                              "object",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "policy"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "type": {
                    "enum": [
                      "Buffer",
                      "Webhook",
                      "Counter",
                      "List",
                      "Wasm",
                      "Schedule"
                    ],
                    "type": "string"
                  },
                  "wasm": {
                    "additionalProperties": false,
                    "nullable": true,
                    "properties": {
                      "config": {
                        "additionalProperties": {
                          "type": "string"
                        },
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "from": {
                        "additionalProperties": false,
                        "properties": {
                          "url": {
                            "additionalProperties": false,
                            "nullable": true,
                            "properties": {
                              "caBundle": {
                                "format": "byte",
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "service": {
                                "additionalProperties": false,
                                "properties": {
                                  "name": {
                                    "type": "string"
                                  },
                                  "namespace": {
                                    "type": "string"
                                  },
                                  "path": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "port": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "namespace",
                                  "name"
                                ],
                                "type": [
                                  "object",
                                  "null"
                                ]
                              },
                              "url": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "type": "object"
                          }
                        },
                        "required": [
                          "url"
                        ],
                        "type": "object"
                      },
                      "function": {
                        "default": "scale",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "hash": {
                        "pattern": "^[a-fA-F0-9]{64}$",
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "from"
                    ],
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "webhook": {
                    "additionalProperties": false,
                    "nullable": true,
                    "properties": {
                      "caBundle": {
                        "format": "byte",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "service": {
                        "additionalProperties": false,
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "namespace": {
                            "type": "string"
                          },
                          "path": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "port": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "namespace",
                          "name"
                        ],
                        "type": [
                          "object",
                          "null"
                        ]
                      },
                      "url": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "required": [
                  "type"
                ],
                "type": "object"
              },
              "nullable": true,
              "type": [
                "array",
                "null"
              ]
            },
            "counter": {
              "additionalProperties": false,
              "nullable": true,
              "properties": {
                "bufferSize": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "integer"
                    }
                  ],
                  "x-kubernetes-int-or-string": true
                },
                "key": {
                  "type": "string"
                },
                "maxCapacity": {
                  "minimum": 1,
                  "type": "integer"
                },
                "minCapacity": {
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "key",
                "bufferSize",
                "maxCapacity"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "list": {
              "additionalProperties": false,
              "nullable": true,
              "properties": {
                "bufferSize": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "integer"
                    }
                  ],
                  "x-kubernetes-int-or-string": true
                },
                "key": {
                  "type": "string"
                },
                "maxCapacity": {
                  "minimum": 1,
                  "type": "integer"
                },
                "minCapacity": {
                  "minimum": 0,
                  "type": [
                    "integer",
                    "null"
                  ]
                }
              },
              "required": [
                "key",
                "bufferSize",
                "maxCapacity"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "schedule": {
              "additionalProperties": false,
              "nullable": true,
              "properties": {
                "activePeriod": {
                  "additionalProperties": false,
                  "nullable": true,
                  "properties": {
                    "duration": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "startCron": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "timezone": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "between": {
                  "additionalProperties": false,
                  "nullable": true,
                  "properties": {
                    "end": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "start": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "policy": {
                  "additionalProperties": false,
                  "properties": {
                    "buffer": {
                      "additionalProperties": false,
                      "nullable": true,
                      "properties": {
                        "bufferSize": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "x-kubernetes-int-or-string": true
                        },
                        "maxReplicas": {
                          "minimum": 1,
                          "type": "integer"
                        },
                        "minReplicas": {
                          "minimum": 0,
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "maxReplicas"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "counter": {
                      "additionalProperties": false,
                      "nullable": true,
                      "properties": {
                        "bufferSize": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "integer"
                            }
                          ],
                          "x-kubernetes-int-or-string": true
                        },
                        "key": {
                          "type": "string"
                        },
                        "maxCapacity": {
                          "minimum": 1,
                          "type": "integer"
                        },
                        "minCapacity": {
                          "minimum": 0,
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "key",
                        "bufferSize",
                        "maxCapacity"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "list": {
                      "additionalProperties": false,
                      "nullable": true,
                      "properties": {
                        "bufferSize": {
                          "oneOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "integer"
                            }
                          ],
                          "x-kubernetes-int-or-string": true
                        },
                        "key": {
                          "type": "string"
                        },
                        "maxCapacity": {
                          "minimum": 1,
                          "type": "integer"
                        },
                        "minCapacity": {
                          "minimum": 0,
                          "type": [
                            "integer",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "key",
                        "bufferSize",
                        "maxCapacity"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "type": {
                      "enum": [
                        "Buffer",
                        "Webhook",
                        "Counter",
                        "List",
                        "Wasm"
                      ],
                      "type": "string"
                    },
                    "wasm": {
                      "additionalProperties": false,
                      "nullable": true,
                      "properties": {
                        "config": {
                          "additionalProperties": {
                            "type": "string"
                          },
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "from": {
                          "additionalProperties": false,
                          "properties": {
                            "url": {
                              "additionalProperties": false,
                              "nullable": true,
                              "properties": {
                                "caBundle": {
                                  "format": "byte",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "service": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "name": {
                                      "type": "string"
                                    },
                                    "namespace": {
                                      "type": "string"
                                    },
                                    "path": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "port": {
                                      "type": [
                                        "integer",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "namespace",
                                    "name"
                                  ],
                                  "type": [
                                    "object",
                                    "null"
                                  ]
                                },
                                "url": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "type": "object"
                            }
                          },
                          "required": [
                            "url"
                          ],
                          "type": "object"
                        },
                        "function": {
                          "default": "scale",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "hash": {
                          "pattern": "^[a-fA-F0-9]{64}$",
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "from"
                      ],
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "webhook": {
                      "additionalProperties": false,
                      "nullable": true,
                      "properties": {
                        "caBundle": {
                          "format": "byte",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "service": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "namespace": {
                              "type": "string"
                            },
                            "path": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "port": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "namespace",
                            "name"
                          ],
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "policy"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "type": {
              "enum": [
                "Buffer",
                "Webhook",
                "Counter",
                "List",
                "Wasm",
                "Schedule",
                "Chain"
              ],
              "type": "string"
            },
            "wasm": {
              "additionalProperties": false,
              "nullable": true,
              "properties": {
                "config": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "from": {
                  "additionalProperties": false,
                  "properties": {
                    "url": {
                      "additionalProperties": false,
                      "nullable": true,
                      "properties": {
                        "caBundle": {
                          "format": "byte",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "service": {
                          "additionalProperties": false,
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "namespace": {
                              "type": "string"
                            },
                            "path": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "port": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "namespace",
                            "name"
                          ],
                          "type": [
                            "object",
                            "null"
                          ]
                        },
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": "object"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                },
                "function": {
                  "default": "scale",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "hash": {
                  "pattern": "^[a-fA-F0-9]{64}$",
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "from"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "webhook": {
              "additionalProperties": false,
              "nullable": true,
              "properties": {
                "caBundle": {
                  "format": "byte",
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "service": {
                  "additionalProperties": false,
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "namespace": {
                      "type": "string"
                    },
                    "path": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "port": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "namespace",
                    "name"
                  ],
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "url": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "type": [
                "object",
                "null"
              ]
            }
          },
          "required": [
            "type"
          ],
          "type": "object"
        },
        "sync": {
          "additionalProperties": false,
          "properties": {
            "fixedInterval": {
              "additionalProperties": false,
              "nullable": true,
              "properties": {
                "seconds": {
                  "exclusiveMinimum": true,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "seconds"
              ],
              "type": [
                "object",
                "null"
              ]
            },
            "type": {
              "enum": [
                "FixedInterval"
              ],
              "type": "string"
            }
          },
          "required": [
            "type"
          ],
          "type": [
            "object",
            "null"
          ]
        }
      },
      "required": [
        "fleetName",
        "policy"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "FleetAutoscalerStatus defines the current status of a FleetAutoscaler. More info: https://agones.dev/site/docs/reference/agones_crd_api_reference/#autoscaling.agones.dev/v1.FleetAutoscaler",
      "properties": {
        "ableToScale": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "currentReplicas": {
          "type": [
            "integer",
            "null"
          ]
        },
        "desiredReplicas": {
          "type": [
            "integer",
            "null"
          ]
        },
        "lastAppliedPolicy": {
          "default": "",
          "type": [
            "string",
            "null"
          ]
        },
        "lastScaleTime": {
          "format": "date-time",
          "nullable": true,
          "type": [
            "string",
            "null"
          ]
        },
        "scalingLimited": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}