// Code generated by sidekick. DO NOT EDIT.
//
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#if InstanceGroupManagers
  import Foundation
  #if canImport(FoundationNetworking)
    import FoundationNetworking
  #endif
  import GoogleCloudWkt
  import GoogleCloudGax

  extension Clients {
    protocol InstanceGroupManagersStub {
      func abandonInstances(
        request: InstanceGroupManagersClient.AbandonInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func aggregatedList(
        request: InstanceGroupManagersClient.AggregatedListRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagerAggregatedList

      func applyUpdatesToInstances(
        request: InstanceGroupManagersClient.ApplyUpdatesToInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func createInstances(
        request: InstanceGroupManagersClient.CreateInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func delete(
        request: InstanceGroupManagersClient.DeleteRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func deleteInstances(
        request: InstanceGroupManagersClient.DeleteInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func deletePerInstanceConfigs(
        request: InstanceGroupManagersClient.DeletePerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func `get`(
        request: InstanceGroupManagersClient.GetRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManager

      func insert(
        request: InstanceGroupManagersClient.InsertRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func list(
        request: InstanceGroupManagersClient.ListRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagerList

      func listErrors(
        request: InstanceGroupManagersClient.ListErrorsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagersListErrorsResponse

      func listManagedInstances(
        request: InstanceGroupManagersClient.ListManagedInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagersListManagedInstancesResponse

      func listPerInstanceConfigs(
        request: InstanceGroupManagersClient.ListPerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagersListPerInstanceConfigsResp

      func patch(
        request: InstanceGroupManagersClient.PatchRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func patchPerInstanceConfigs(
        request: InstanceGroupManagersClient.PatchPerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func recreateInstances(
        request: InstanceGroupManagersClient.RecreateInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func resize(
        request: InstanceGroupManagersClient.ResizeRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func resumeInstances(
        request: InstanceGroupManagersClient.ResumeInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func setInstanceTemplate(
        request: InstanceGroupManagersClient.SetInstanceTemplateRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func setTargetPools(
        request: InstanceGroupManagersClient.SetTargetPoolsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func startInstances(
        request: InstanceGroupManagersClient.StartInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func stopInstances(
        request: InstanceGroupManagersClient.StopInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func suspendInstances(
        request: InstanceGroupManagersClient.SuspendInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func updatePerInstanceConfigs(
        request: InstanceGroupManagersClient.UpdatePerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation

      func getOperation(
        request: ZoneOperationsClient.GetRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation
    }

    class InstanceGroupManagersTransport: InstanceGroupManagersStub {
      let inner: GoogleCloudGax.HTTPClient

      public init(_ options: GoogleCloudGax.ClientOptions = .init()) throws {
        self.inner = try GoogleCloudGax.HTTPClient(
          from: options, withDefaultEndpoint: "https://compute.googleapis.com")
      }

      public func abandonInstances(
        request: InstanceGroupManagersClient.AbandonInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/abandonInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func aggregatedList(
        request: InstanceGroupManagersClient.AggregatedListRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagerAggregatedList {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          return "/compute/v1/projects/\(pathVariable0)/aggregated/instanceGroupManagers"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.filter, prefix: "filter"))
        query.append(
          contentsOf: try encoder.encode(request.includeAllScopes, prefix: "includeAllScopes"))
        query.append(contentsOf: try encoder.encode(request.maxResults, prefix: "maxResults"))
        query.append(contentsOf: try encoder.encode(request.orderBy, prefix: "orderBy"))
        query.append(contentsOf: try encoder.encode(request.pageToken, prefix: "pageToken"))
        query.append(
          contentsOf: try encoder.encode(
            request.returnPartialSuccess, prefix: "returnPartialSuccess"))
        query.append(
          contentsOf: try encoder.encode(
            request.serviceProjectNumber, prefix: "serviceProjectNumber"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "GET"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.InstanceGroupManagerAggregatedList.self, from: data)
      }

      public func applyUpdatesToInstances(
        request: InstanceGroupManagersClient.ApplyUpdatesToInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/applyUpdatesToInstances"
        }()
        let query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func createInstances(
        request: InstanceGroupManagersClient.CreateInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/createInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func delete(
        request: InstanceGroupManagersClient.DeleteRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(
          contentsOf: try encoder.encode(request.noGracefulShutdown, prefix: "noGracefulShutdown"))
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "DELETE"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func deleteInstances(
        request: InstanceGroupManagersClient.DeleteInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/deleteInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(
          contentsOf: try encoder.encode(request.noGracefulShutdown, prefix: "noGracefulShutdown"))
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func deletePerInstanceConfigs(
        request: InstanceGroupManagersClient.DeletePerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/deletePerInstanceConfigs"
        }()
        let query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func `get`(
        request: InstanceGroupManagersClient.GetRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManager {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)"
        }()
        let query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "GET"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.InstanceGroupManager.self, from: data)
      }

      public func insert(
        request: InstanceGroupManagersClient.InsertRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func list(
        request: InstanceGroupManagersClient.ListRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagerList {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.filter, prefix: "filter"))
        query.append(contentsOf: try encoder.encode(request.maxResults, prefix: "maxResults"))
        query.append(contentsOf: try encoder.encode(request.orderBy, prefix: "orderBy"))
        query.append(contentsOf: try encoder.encode(request.pageToken, prefix: "pageToken"))
        query.append(
          contentsOf: try encoder.encode(
            request.returnPartialSuccess, prefix: "returnPartialSuccess"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "GET"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.InstanceGroupManagerList.self, from: data)
      }

      public func listErrors(
        request: InstanceGroupManagersClient.ListErrorsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagersListErrorsResponse {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/listErrors"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.filter, prefix: "filter"))
        query.append(contentsOf: try encoder.encode(request.maxResults, prefix: "maxResults"))
        query.append(contentsOf: try encoder.encode(request.orderBy, prefix: "orderBy"))
        query.append(contentsOf: try encoder.encode(request.pageToken, prefix: "pageToken"))
        query.append(
          contentsOf: try encoder.encode(
            request.returnPartialSuccess, prefix: "returnPartialSuccess"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "GET"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.InstanceGroupManagersListErrorsResponse.self, from: data)
      }

      public func listManagedInstances(
        request: InstanceGroupManagersClient.ListManagedInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagersListManagedInstancesResponse {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/listManagedInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.filter, prefix: "filter"))
        query.append(contentsOf: try encoder.encode(request.maxResults, prefix: "maxResults"))
        query.append(contentsOf: try encoder.encode(request.orderBy, prefix: "orderBy"))
        query.append(contentsOf: try encoder.encode(request.pageToken, prefix: "pageToken"))
        query.append(
          contentsOf: try encoder.encode(
            request.returnPartialSuccess, prefix: "returnPartialSuccess"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.InstanceGroupManagersListManagedInstancesResponse.self, from: data)
      }

      public func listPerInstanceConfigs(
        request: InstanceGroupManagersClient.ListPerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.InstanceGroupManagersListPerInstanceConfigsResp {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/listPerInstanceConfigs"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.filter, prefix: "filter"))
        query.append(contentsOf: try encoder.encode(request.maxResults, prefix: "maxResults"))
        query.append(contentsOf: try encoder.encode(request.orderBy, prefix: "orderBy"))
        query.append(contentsOf: try encoder.encode(request.pageToken, prefix: "pageToken"))
        query.append(
          contentsOf: try encoder.encode(
            request.returnPartialSuccess, prefix: "returnPartialSuccess"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.InstanceGroupManagersListPerInstanceConfigsResp.self, from: data)
      }

      public func patch(
        request: InstanceGroupManagersClient.PatchRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "PATCH"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func patchPerInstanceConfigs(
        request: InstanceGroupManagersClient.PatchPerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/patchPerInstanceConfigs"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func recreateInstances(
        request: InstanceGroupManagersClient.RecreateInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/recreateInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(
          contentsOf: try encoder.encode(request.noGracefulShutdown, prefix: "noGracefulShutdown"))
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func resize(
        request: InstanceGroupManagersClient.ResizeRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/resize"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        query.append(contentsOf: try encoder.encode(request.size, prefix: "size"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func resumeInstances(
        request: InstanceGroupManagersClient.ResumeInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/resumeInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func setInstanceTemplate(
        request: InstanceGroupManagersClient.SetInstanceTemplateRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/setInstanceTemplate"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func setTargetPools(
        request: InstanceGroupManagersClient.SetTargetPoolsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/setTargetPools"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func startInstances(
        request: InstanceGroupManagersClient.StartInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/startInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func stopInstances(
        request: InstanceGroupManagersClient.StopInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/stopInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(
          contentsOf: try encoder.encode(request.noGracefulShutdown, prefix: "noGracefulShutdown"))
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func suspendInstances(
        request: InstanceGroupManagersClient.SuspendInstancesRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/suspendInstances"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func updatePerInstanceConfigs(
        request: InstanceGroupManagersClient.UpdatePerInstanceConfigsRequest,
        options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.instanceGroupManager as Swift.String?,
            !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding(
              "'request.instanceGroupManager' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/instanceGroupManagers/\(pathVariable2)/updatePerInstanceConfigs"
        }()
        var query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        let encoder = GoogleCloudGax.QueryParameterEncoder()
        query.append(contentsOf: try encoder.encode(request.requestId, prefix: "requestId"))
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "POST"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        if let body = request.body {
          req.setValue("application/json", forHTTPHeaderField: "Content-Type")
          req.httpBody = try JSONEncoder().encode(body)
        }
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }

      public func getOperation(
        request: ZoneOperationsClient.GetRequest, options: GoogleCloudGax.RequestOptions
      ) async throws -> GoogleCloudComputeV1.Operation {
        let path = try { () throws -> Swift.String in
          guard let pathVariable0 = request.project as Swift.String?, !pathVariable0.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.project' is not set or is empty")
          }
          guard let pathVariable1 = request.zone as Swift.String?, !pathVariable1.isEmpty else {
            throw GoogleCloudGax.RequestError.binding("'request.zone' is not set or is empty")
          }
          guard let pathVariable2 = request.operation as Swift.String?, !pathVariable2.isEmpty
          else {
            throw GoogleCloudGax.RequestError.binding("'request.operation' is not set or is empty")
          }
          return
            "/compute/v1/projects/\(pathVariable0)/zones/\(pathVariable1)/operations/\(pathVariable2)"
        }()
        let query = [
          URLQueryItem(name: "$alt", value: "json")
        ]
        var req = try await self.inner.Request(path: path, query: query)
        req.httpMethod = "GET"
        req.setValue(Clients.clientHeader, forHTTPHeaderField: "X-Goog-Api-Client")
        let (data, _) = try await self.inner.rpc(for: req).get()
        return try GoogleCloudWkt._ProtoJSONDecoder().decode(
          GoogleCloudComputeV1.Operation.self, from: data)
      }
    }
  }
#endif
