// GENERATED by tools/gen — DO NOT EDIT.

///|
/// SDK retry default; a Refused failure means not processed.
pub fn default_retry() -> @client.RetryPolicy {
  {
    rule: {
      max_retries: 2,
      statuses: [
        {
          statuses: [
            @client.StatusMatch::Range(408, 409),
            @client.StatusMatch::Range(500, 599),
          ],
          methods: @client.Methods::Listed([
            @http.Method::parse("DELETE"),
            @http.Method::parse("GET"),
            @http.Method::parse("HEAD"),
            @http.Method::parse("PUT"),
          ]),
        },
        {
          statuses: [@client.StatusMatch::Code(429)],
          methods: @client.Methods::Listed([
            @http.Method::parse("DELETE"),
            @http.Method::parse("GET"),
            @http.Method::parse("HEAD"),
            @http.Method::parse("PATCH"),
            @http.Method::parse("POST"),
            @http.Method::parse("PUT"),
          ]),
        },
      ],
      sent_failures: @client.Methods::Listed([
        @http.Method::parse("GET"),
        @http.Method::parse("HEAD"),
        @http.Method::parse("PUT"),
        @http.Method::parse("DELETE"),
      ]),
      unsent_failures: true,
      override_header: Option::Some("x-should-retry"),
      retry_after: {
        source: @client.RetryAfterSource::MsThenHeader,
        cap: @client.RetryAfterCap::NoCap,
        zero_means_backoff: false,
      },
      backoff: {
        base_ms: 500,
        max_ms: 8000,
        jitter: @client.Jitter::Proportional(lo=750, hi=1000),
      },
    },
  }
}