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

/// Retrieve a list of all conversion workspaces in a given project and location.
public struct ListConversionWorkspacesRequest: Codable, Equatable, GoogleCloudWkt._AnyPackable,
  Sendable
{
  /// Required. The parent which owns this collection of conversion workspaces.
  public var parent: Swift.String = Swift.String()

  /// The maximum number of conversion workspaces to return. The service may
  /// return fewer than this value. If unspecified, at most 50 sets are returned.
  public var pageSize: Swift.Int32 = Swift.Int32()

  /// The nextPageToken value received in the previous call to
  /// conversionWorkspaces.list, used in the subsequent request to retrieve the
  /// next page of results. On first call this should be left blank. When
  /// paginating, all other parameters provided to conversionWorkspaces.list must
  /// match the call that provided the page token.
  public var pageToken: Swift.String = Swift.String()

  /// A filter expression that filters conversion workspaces listed in the
  /// response. The expression must specify the field name, a comparison
  /// operator, and the value that you want to use for filtering. The value must
  /// be a string, a number, or a boolean. The comparison operator must be either
  /// =, !=, >, or <. For example, list conversion workspaces created this year
  /// by specifying **createTime %gt; 2020-01-01T00:00:00.000000000Z.** You can
  /// also filter nested fields. For example, you could specify
  /// **source.version = "12.c.1"** to select all conversion workspaces with
  /// source database version equal to 12.c.1.
  public var filter: Swift.String = Swift.String()

  /// Initialize a new instance of `ListConversionWorkspacesRequest`.
  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 = ListConversionWorkspacesRequest().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.clouddms.v1.ListConversionWorkspacesRequest"
  }
  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)
  }
}
