// 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.

import Foundation
import GoogleCloudWkt

/// Request message for
/// [EkmService.ListEkmConnections][google.cloud.kms.v1.EkmService.ListEkmConnections].
///
/// [google.cloud.kms.v1.EkmService.ListEkmConnections]: <doc:EkmService/listEkmConnections(request:)>
public struct ListEkmConnectionsRequest: Codable, Equatable, GoogleCloudWkt._AnyPackable,
  Sendable
{
  /// Required. The resource name of the location associated with the
  /// [EkmConnections][google.cloud.kms.v1.EkmConnection] to list, in the format
  /// `projects/*/locations/*`.
  ///
  /// [google.cloud.kms.v1.EkmConnection]: <doc:EkmConnection>
  public var parent: Swift.String = Swift.String()

  /// Optional. Optional limit on the number of
  /// [EkmConnections][google.cloud.kms.v1.EkmConnection] to include in the
  /// response. Further [EkmConnections][google.cloud.kms.v1.EkmConnection] can
  /// subsequently be obtained by including the
  /// [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token]
  /// in a subsequent request. If unspecified, the server will pick an
  /// appropriate default.
  ///
  /// [google.cloud.kms.v1.EkmConnection]: <doc:EkmConnection>
  /// [google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token]: <doc:ListEkmConnectionsResponse/nextPageToken>
  public var pageSize: Swift.Int32 = Swift.Int32()

  /// Optional. Optional pagination token, returned earlier via
  /// [ListEkmConnectionsResponse.next_page_token][google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token].
  ///
  /// [google.cloud.kms.v1.ListEkmConnectionsResponse.next_page_token]: <doc:ListEkmConnectionsResponse/nextPageToken>
  public var pageToken: Swift.String = Swift.String()

  /// Optional. Only include resources that match the filter in the response. For
  /// more information, see
  /// [Sorting and filtering list
  /// results](https://cloud.google.com/kms/docs/sorting-and-filtering).
  public var filter: Swift.String = Swift.String()

  /// Optional. Specify how the results should be sorted. If not specified, the
  /// results will be sorted in the default order.  For more information, see
  /// [Sorting and filtering list
  /// results](https://cloud.google.com/kms/docs/sorting-and-filtering).
  public var orderBy: Swift.String = Swift.String()

  /// Initialize a new instance of `ListEkmConnectionsRequest`.
  public init() {}

  /// Use `config` to return a new instance of this object, with some fields updated.
  ///
  /// Commonly used to initialize the value, for example:
  ///
  /// ```
  /// let value = ListEkmConnectionsRequest().with { $0.parent = ... }
  /// ```
  public func with(_ config: (inout Self) throws -> Swift.Void) rethrows -> Self {
    var copy = self
    try config(&copy)
    return copy
  }

  public static var _anyTypeUrl: Swift.String {
    return "type.googleapis.com/google.cloud.kms.v1.ListEkmConnectionsRequest"
  }
  public init(fromAny any: GoogleCloudWkt.`Any`) throws {
    self = try GoogleCloudWkt._slowAnyDeserialize(Self.self, from: any)
  }
  public func _pack() throws -> GoogleCloudWkt.Struct {
    return try GoogleCloudWkt._slowAnySerialize(message: self)
  }
}
