// 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 TargetVpnGateways
  import Foundation
  import GoogleCloudWkt

  public struct TargetVpnGatewayParams: Codable, Equatable, GoogleCloudWkt._AnyPackable,
    Sendable
  {
    /// Tag keys/values directly bound to this resource.
    /// Tag keys and values have the same definition as resource
    /// manager tags. The field is allowed for INSERT
    /// only. The keys/values to set on the resource should be specified in
    /// either ID { : } or Namespaced format
    /// { : }.
    /// For example the following are valid inputs:
    /// * {"tagKeys/333" : "tagValues/444", "tagKeys/123" : "tagValues/456"}
    /// * {"123/environment" : "production", "345/abc" : "xyz"}
    /// Note:
    /// * Invalid combinations of ID & namespaced format is not supported. For
    ///   instance: {"123/environment" : "tagValues/444"} is invalid.
    /// * Inconsistent format is not supported. For instance:
    ///   {"tagKeys/333" : "tagValues/444", "123/env" : "prod"} is invalid.
    public var resourceManagerTags: [Swift.String: Swift.String] = [:]

    /// Initialize a new instance of `TargetVpnGatewayParams`.
    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 = TargetVpnGatewayParams().with { $0.resourceManagerTags = ... }
    /// ```
    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.compute.v1.TargetVpnGatewayParams"
    }
    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)
    }
  }
#endif
