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

/// ClusterNetworking contains cluster-wide networking configuration.
@available(*, deprecated)
public struct AzureClusterNetworking: Codable, Equatable, GoogleCloudWkt._AnyPackable,
  Sendable
{
  /// Required. The Azure Resource Manager (ARM) ID of the VNet associated with
  /// your cluster.
  ///
  /// All components in the cluster (i.e. control plane and node pools) run on a
  /// single VNet.
  ///
  /// Example:
  /// `/subscriptions/<subscription-id>/resourceGroups/<resource-group-id>/providers/Microsoft.Network/virtualNetworks/<vnet-id>`
  ///
  /// This field cannot be changed after creation.
  public var virtualNetworkId: Swift.String = Swift.String()

  /// Required. The IP address range of the pods in this cluster, in CIDR
  /// notation (e.g. `10.96.0.0/14`).
  ///
  /// All pods in the cluster get assigned a unique IPv4 address from these
  /// ranges. Only a single range is supported.
  ///
  /// This field cannot be changed after creation.
  public var podAddressCidrBlocks: [Swift.String] = []

  /// Required. The IP address range for services in this cluster, in CIDR
  /// notation (e.g. `10.96.0.0/14`).
  ///
  /// All services in the cluster get assigned a unique IPv4 address from these
  /// ranges. Only a single range is supported.
  ///
  /// This field cannot be changed after creating a cluster.
  public var serviceAddressCidrBlocks: [Swift.String] = []

  /// Optional. The ARM ID of the subnet where Kubernetes private service type
  /// load balancers are deployed. When unspecified, it defaults to
  /// AzureControlPlane.subnet_id.
  ///
  /// Example:
  /// "/subscriptions/d00494d6-6f3c-4280-bbb2-899e163d1d30/resourceGroups/anthos_cluster_gkeust4/providers/Microsoft.Network/virtualNetworks/gke-vnet-gkeust4/subnets/subnetid456"
  public var serviceLoadBalancerSubnetId: Swift.String = Swift.String()

  /// Initialize a new instance of `AzureClusterNetworking`.
  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 = AzureClusterNetworking().with { $0.virtualNetworkId = ... }
  /// ```
  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.gkemulticloud.v1.AzureClusterNetworking"
  }
  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)
  }
}
