(CommandList
  children: [
    (C {(set)} {(-o)} {(errexit)})
    (C {(set)} {(-o)} {(nounset)})
    (C {(set)} {(-o)} {(pipefail)})
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:ZONE)
          op: Equal
          rhs: 
            {
              (BracedVarSub
                token: <VSub_Name ZONE>
                suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{})
                spids: [84 87]
              )
            }
          spids: [83]
        )
      ]
      spids: [83]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:REGION)
          op: Equal
          rhs: 
            {
              (BracedVarSub
                token: <VSub_Name ZONE>
                suffix_op: (StringUnary op_id:VOp1_Percent arg_word:{('-*')})
                spids: [90 94]
              )
            }
          spids: [89]
        )
      ]
      spids: [89]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:INSTANCE_PREFIX)
          op: Equal
          rhs: 
            {
              (BracedVarSub
                token: <VSub_Name KUBE_GCE_INSTANCE_PREFIX>
                suffix_op: 
                  (StringUnary
                    op_id: VTest_ColonHyphen
                    arg_word: 
                      {
                        (BracedVarSub
                          token: <VSub_Name CLUSTER_NAME>
                          suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{})
                          spids: [100 103]
                        )
                      }
                  )
                spids: [97 104]
              )
            }
          spids: [96]
        )
      ]
      spids: [96]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:NETWORK)
          op: Equal
          rhs: 
            {
              (BracedVarSub
                token: <VSub_Name KUBE_GCE_NETWORK>
                suffix_op: 
                  (StringUnary
                    op_id: VTest_ColonHyphen
                    arg_word: 
                      {
                        (BracedVarSub
                          token: <VSub_Name KUBE_GKE_NETWORK>
                          suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{})
                          spids: [110 113]
                        )
                      }
                  )
                spids: [107 114]
              )
            }
          spids: [106]
        )
      ]
      spids: [106]
    )
    (If
      arms: [
        (if_arm
          cond: [
            (Sentence
              child: 
                (DBracket
                  expr: 
                    (BoolBinary
                      op_id: BoolBinary_GlobDEqual
                      left: 
                        {
                          (DQ 
                            (BracedVarSub
                              token: <VSub_Name KUBERNETES_PROVIDER>
                              suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )})
                              spids: [125 128]
                            )
                          )
                        }
                      right: {(DQ (gke))}
                    )
                )
              terminator: <Op_Semi ';'>
            )
          ]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:INSTANCE_PREFIX)
                  op: Equal
                  rhs: {(DQ (gke-) (${ VSub_Name CLUSTER_NAME))}
                  spids: [143]
                )
              ]
              spids: [143]
            )
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:INSTANCE_PREFIX)
                  op: Equal
                  rhs: 
                    {
                      (DQ 
                        (BracedVarSub
                          token: <VSub_Name INSTANCE_PREFIX>
                          suffix_op: 
                            (Slice
                              begin: (ArithWord w:{(Lit_Digits 0)})
                              length: (ArithWord w:{(Lit_Digits 26)})
                            )
                          spids: [158 164]
                        )
                      )
                    }
                  spids: [156]
                )
              ]
              spids: [156]
            )
          ]
          spids: [16777215 140]
        )
      ]
      spids: [16777215 167]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:GREP_REGEX) op:Equal rhs:{(DQ )} spids:[176])]
      spids: [176]
    )
    (FuncDef
      name: gcloud-compute-list
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_Local
              flags: [-r]
              pairs: [
                (assign_pair
                  lhs: (LhsName name:resource)
                  op: Equal
                  rhs: {($ VSub_Number '$1')}
                  spids: [193]
                )
              ]
              spids: [189]
            )
            (Assignment
              keyword: Assign_Local
              flags: [-r]
              pairs: [
                (assign_pair
                  lhs: (LhsName name:filter)
                  op: Equal
                  rhs: 
                    {
                      (BracedVarSub
                        token: <VSub_Number 2>
                        suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{})
                        spids: [202 205]
                      )
                    }
                  spids: [201]
                )
              ]
              spids: [197]
            )
            (C {(echo)} {(-e)} 
              {(DQ (Lit_Other '\\') (n) (Lit_Other '\\') ('n[ ') (${ VSub_Name resource) (' ]'))}
            )
            (Assignment
              keyword: Assign_Local
              pairs: [(assign_pair lhs:(LhsName name:attempt) op:Equal rhs:{(1)} spids:[226])]
              spids: [224]
            )
            (Assignment
              keyword: Assign_Local
              pairs: [(assign_pair lhs:(LhsName name:result) op:Equal rhs:{(DQ )} spids:[232])]
              spids: [230]
            )
            (While
              cond: [(Sentence child:(C {(true)}) terminator:<Op_Semi ';'>)]
              body: 
                (DoGroup
                  children: [
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (Assignment
                                  keyword: Assign_None
                                  pairs: [
                                    (assign_pair
                                      lhs: (LhsName name:result)
                                      op: Equal
                                      rhs: 
                                        {
                                          (CommandSubPart
                                            command_list: 
                                              (CommandList
                                                children: [
                                                  (C {(gcloud)} {(compute)} {(${ VSub_Name resource)} 
                                                    {(list)} {(--project) (Lit_Other '=') (${ VSub_Name PROJECT)} 
                                                    {
                                                      (BracedVarSub
                                                        token: <VSub_Name filter>
                                                        suffix_op: 
                                                          (StringUnary
                                                            op_id: VTest_ColonPlus
                                                            arg_word: 
                                                              {('--filter=') 
                                                                (DQ ($ VSub_Name '$filter'))
                                                              }
                                                          )
                                                        spids: [265 272]
                                                      )
                                                    } 
                                                    {
                                                      (BracedVarSub
                                                        token: <VSub_At '@'>
                                                        suffix_op: 
                                                          (Slice
                                                            begin: (ArithWord w:{(Lit_Digits 3)})
                                                          )
                                                        spids: [274 278]
                                                      )
                                                    }
                                                  )
                                                ]
                                              )
                                            left_token: <Left_CommandSub '$('>
                                            spids: [248 279]
                                          )
                                        }
                                      spids: [247]
                                    )
                                  ]
                                  spids: [247]
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (If
                              arms: [
                                (if_arm
                                  cond: [
                                    (Sentence
                                      child: 
                                        (DBracket
                                          expr: 
                                            (LogicalNot
                                              child: 
                                                (BoolUnary
                                                  op_id: BoolUnary_z
                                                  child: {(DQ (${ VSub_Name GREP_REGEX))}
                                                )
                                            )
                                        )
                                      terminator: <Op_Semi ';'>
                                    )
                                  ]
                                  action: [
                                    (Assignment
                                      keyword: Assign_None
                                      pairs: [
                                        (assign_pair
                                          lhs: (LhsName name:result)
                                          op: Equal
                                          rhs: 
                                            {
                                              (CommandSubPart
                                                command_list: 
                                                  (CommandList
                                                    children: [
                                                      (AndOr
                                                        children: [
                                                          (Pipeline
                                                            children: [
                                                              (C {(echo)} {(DQ (${ VSub_Name result))})
                                                              (C {(grep)} 
                                                                {(DQ (${ VSub_Name GREP_REGEX))}
                                                              )
                                                            ]
                                                            negated: False
                                                          )
                                                          (C {(true)})
                                                        ]
                                                        op_id: Op_DPipe
                                                      )
                                                    ]
                                                  )
                                                left_token: <Left_CommandSub '$('>
                                                spids: [306 328]
                                              )
                                            }
                                          spids: [305]
                                        )
                                      ]
                                      spids: [305]
                                    )
                                  ]
                                  spids: [16777215 302]
                                )
                              ]
                              spids: [16777215 331]
                            )
                            (C {(echo)} {(DQ (${ VSub_Name result))})
                            (ControlFlow
                              token: <ControlFlow_Return return>
                            )
                          ]
                          spids: [16777215 282]
                        )
                      ]
                      spids: [16777215 346]
                    )
                    (SimpleCommand
                      words: [
                        {(echo)}
                        {(-e)}
                        {
                          (DQ ('Attempt ') (${ VSub_Name attempt) (' failed to list ') 
                            (${ VSub_Name resource) ('. Retrying.')
                          )
                        }
                      ]
                      redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(2)} spids:[365])]
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:attempt)
                          op: Equal
                          rhs: 
                            {
                              (ArithSubPart
                                anode: 
                                  (ArithBinary
                                    op_id: Arith_Plus
                                    left: (ArithWord w:{($ VSub_Name '$attempt')})
                                    right: (ArithWord w:{(Lit_Digits 1)})
                                  )
                                spids: [370 375]
                              )
                            }
                          spids: [369]
                        )
                      ]
                      spids: [369]
                    )
                    (If
                      arms: [
                        (if_arm
                          cond: [
                            (Sentence
                              child: 
                                (DBracket
                                  expr: 
                                    (BoolBinary
                                      op_id: Redir_Great
                                      left: {(${ VSub_Name attempt)}
                                      right: {(5)}
                                    )
                                )
                              terminator: <Op_Semi ';'>
                            )
                          ]
                          action: [
                            (SimpleCommand
                              words: [
                                {(echo)}
                                {(-e)}
                                {(DQ ('List ') (${ VSub_Name resource) (' failed!'))}
                              ]
                              redirects: [
                                (Redir
                                  op_id: Redir_GreatAnd
                                  fd: 16777215
                                  arg_word: {(2)}
                                  spids: [408]
                                )
                              ]
                            )
                            (C {(exit)} {(2)})
                          ]
                          spids: [16777215 393]
                        )
                      ]
                      spids: [16777215 417]
                    )
                    (C {(sleep)} 
                      {
                        (ArithSubPart
                          anode: 
                            (ArithBinary
                              op_id: Arith_Star
                              left: (ArithWord w:{(Lit_Digits 5)})
                              right: (ArithWord w:{(${ VSub_Name attempt)})
                            )
                          spids: [422 429]
                        )
                      }
                    )
                  ]
                  spids: [242 432]
                )
            )
          ]
          spids: [186]
        )
      spids: [180 185]
    )
    (C {(echo)} {(DQ ('Project: ') (${ VSub_Name PROJECT))})
    (C {(echo)} {(DQ ('Region: ') (${ VSub_Name REGION))})
    (C {(echo)} {(DQ ('Zone: ') (${ VSub_Name ZONE))})
    (C {(echo)} 
      {
        (DQ ('Instance prefix: ') 
          (BracedVarSub
            token: <VSub_Name INSTANCE_PREFIX>
            suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )})
            spids: [468 471]
          )
        )
      }
    )
    (C {(echo)} {(DQ ('Network: ') (${ VSub_Name NETWORK))})
    (C {(echo)} 
      {
        (DQ ('Provider: ') 
          (BracedVarSub
            token: <VSub_Name KUBERNETES_PROVIDER>
            suffix_op: (StringUnary op_id:VTest_ColonHyphen arg_word:{(SQ )})
            spids: [487 490]
          )
        )
      }
    )
    (C {(gcloud-compute-list)} {(instance-templates)} 
      {(DQ ("name ~ '") (${ VSub_Name INSTANCE_PREFIX) (".*'"))}
    )
    (C {(gcloud-compute-list)} {(instance-groups)} 
      {
        (DQ 
          (BracedVarSub
            token: <VSub_Name ZONE>
            suffix_op: 
              (StringUnary
                op_id: VTest_ColonPlus
                arg_word: {(DQ ('zone:(') (${ VSub_Name ZONE) (') AND '))}
              )
            spids: [517 527]
          ) ("name ~ '") (${ VSub_Name INSTANCE_PREFIX) (".*'")
        )
      }
    )
    (C {(gcloud-compute-list)} {(instances)} 
      {
        (DQ 
          (BracedVarSub
            token: <VSub_Name ZONE>
            suffix_op: 
              (StringUnary
                op_id: VTest_ColonPlus
                arg_word: {(DQ ('zone:(') (${ VSub_Name ZONE) (') AND '))}
              )
            spids: [540 550]
          ) ("name ~ '") (${ VSub_Name INSTANCE_PREFIX) (".*'")
        )
      }
    )
    (C {(gcloud-compute-list)} {(disks)} 
      {
        (DQ 
          (BracedVarSub
            token: <VSub_Name ZONE>
            suffix_op: 
              (StringUnary
                op_id: VTest_ColonPlus
                arg_word: {(DQ ('zone:(') (${ VSub_Name ZONE) (') AND '))}
              )
            spids: [567 577]
          ) ("name ~ '") (${ VSub_Name INSTANCE_PREFIX) (".*'")
        )
      }
    )
    (C {(gcloud-compute-list)} {(addresses)} 
      {
        (DQ 
          (BracedVarSub
            token: <VSub_Name REGION>
            suffix_op: 
              (StringUnary
                op_id: VTest_ColonPlus
                arg_word: {(DQ ('region=(') (${ VSub_Name REGION) (') AND '))}
              )
            spids: [597 607]
          ) ("name ~ 'a.*|") (${ VSub_Name INSTANCE_PREFIX) (".*'")
        )
      }
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:GREP_REGEX)
          op: Equal
          rhs: 
            {
              (DQ ('^NAME') (Lit_Other '\\') ('|^[^ ]') (Lit_Other '\\') ('+[ ]') (Lit_Other '\\') ('+') 
                (Lit_Other '\\') ('(default') (Lit_Other '\\') ('|') (${ VSub_Name NETWORK) (Lit_Other '\\') (') ')
              )
            }
          spids: [621]
        )
      ]
      spids: [621]
    )
    (C {(gcloud-compute-list)} {(routes)} 
      {(DQ ("name ~ 'default.*|") (${ VSub_Name INSTANCE_PREFIX) (".*'"))}
    )
    (C {(gcloud-compute-list)} {(firewall-rules)} 
      {(DQ ("name ~ 'default.*|k8s-fw.*|") (${ VSub_Name INSTANCE_PREFIX) (".*'"))}
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:GREP_REGEX) op:Equal rhs:{(DQ )} spids:[665])]
      spids: [665]
    )
    (C {(gcloud-compute-list)} {(forwarding-rules)} 
      {
        (BracedVarSub
          token: <VSub_Name REGION>
          suffix_op: 
            (StringUnary
              op_id: VTest_ColonPlus
              arg_word: {(DQ ('region=(') (${ VSub_Name REGION) (')'))}
            )
          spids: [673 683]
        )
      }
    )
    (C {(gcloud-compute-list)} {(target-pools)} 
      {
        (BracedVarSub
          token: <VSub_Name REGION>
          suffix_op: 
            (StringUnary
              op_id: VTest_ColonPlus
              arg_word: {(DQ ('region=(') (${ VSub_Name REGION) (')'))}
            )
          spids: [689 699]
        )
      }
    )
  ]
)