
com.pulumi.googlenative.container.v1.kotlin.outputs.GetClusterResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.container.v1.kotlin.outputs
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property addonsConfig Configurations for the various addons available to run in the cluster.
* @property authenticatorGroupsConfig Configuration controlling RBAC group membership information.
* @property autopilot Autopilot configuration for the cluster.
* @property autoscaling Cluster-level autoscaling configuration.
* @property binaryAuthorization Configuration for Binary Authorization.
* @property clusterIpv4Cidr The IP address range of the container pods in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `10.96.0.0/14`). Leave blank to have one automatically chosen or specify a `/14` block in `10.0.0.0/8`.
* @property conditions Which conditions caused the current cluster state.
* @property confidentialNodes Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.
* @property costManagementConfig Configuration for the fine-grained cost management feature.
* @property createTime [Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
* @property currentMasterVersion [Output only] The current software version of the master endpoint.
* @property currentNodeCount [Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API directly to retrieve node information.
* @property currentNodeVersion [Output only] Deprecated, use [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) instead. The current version of the node software components. If they are currently at multiple versions because they're in the process of being upgraded, this reflects the minimum version of all nodes.
* @property databaseEncryption Configuration of etcd encryption.
* @property defaultMaxPodsConstraint The default constraint on the maximum number of pods that can be run simultaneously on a node in the node pool of this cluster. Only honored if cluster created with IP Alias support.
* @property description An optional description of this cluster.
* @property enableKubernetesAlpha Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.
* @property enableTpu Enable the ability to use Cloud TPUs in this cluster.
* @property endpoint [Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.
* @property etag This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.
* @property expireTime [Output only] The time the cluster will be automatically deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
* @property fleet Fleet information for the cluster.
* @property identityServiceConfig Configuration for Identity Service component.
* @property initialClusterVersion The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior: - "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - "1.X.Y-gke.N": picks an explicit Kubernetes version - "","-": picks the default Kubernetes version
* @property initialNodeCount The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. This field is deprecated, use node_pool.initial_node_count instead.
* @property instanceGroupUrls Deprecated. Use node_pools.instance_group_urls.
* @property ipAllocationPolicy Configuration for cluster IP allocation.
* @property labelFingerprint The fingerprint of the set of labels for this cluster.
* @property legacyAbac Configuration for the legacy ABAC authorization mode.
* @property location [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.
* @property locations The list of Google Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes should be located. This field provides a default value if [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) are not specified during node pool creation. Warning: changing cluster locations will update the [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) of all node pools and will result in nodes being added and/or removed.
* @property loggingConfig Logging configuration for the cluster.
* @property loggingService The logging service the cluster should use to write logs. Currently available options: * `logging.googleapis.com/kubernetes` - The Cloud Logging service with a Kubernetes-native resource model * `logging.googleapis.com` - The legacy Cloud Logging service (no longer available as of GKE 1.15). * `none` - no logs will be exported from the cluster. If left as an empty string,`logging.googleapis.com/kubernetes` will be used for GKE 1.14+ or `logging.googleapis.com` for earlier versions.
* @property maintenancePolicy Configure the maintenance policy for this cluster.
* @property masterAuth The authentication information for accessing the master endpoint. If unspecified, the defaults are used: For clusters before v1.12, if master_auth is unspecified, `username` will be set to "admin", a random password will be generated, and a client certificate will be issued.
* @property masterAuthorizedNetworksConfig The configuration options for master authorized networks feature.
* @property meshCertificates Configuration for issuance of mTLS keys and certificates to Kubernetes pods.
* @property monitoringConfig Monitoring configuration for the cluster.
* @property monitoringService The monitoring service the cluster should use to write metrics. Currently available options: * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no longer available as of GKE 1.15). * `none` - No metrics will be exported from the cluster. If left as an empty string,`monitoring.googleapis.com/kubernetes` will be used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions.
* @property name The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions: * Lowercase letters, numbers, and hyphens only. * Must start with a letter. * Must end with a number or a letter.
* @property network The name of the Google Compute Engine [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) to which the cluster is connected. If left unspecified, the `default` network will be used.
* @property networkConfig Configuration for cluster networking.
* @property networkPolicy Configuration options for the NetworkPolicy feature.
* @property nodeConfig Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see `node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.
* @property nodeIpv4CidrSize [Output only] The size of the address space on each node for hosting containers. This is provisioned from within the `container_ipv4_cidr` range. This field will only be set when cluster is in route-based network mode.
* @property nodePoolAutoConfig Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.
* @property nodePoolDefaults Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.
* @property nodePools The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.
* @property notificationConfig Notification configuration of the cluster.
* @property privateClusterConfig Configuration for private cluster.
* @property releaseChannel Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.
* @property resourceLabels The resource labels for the cluster to use to annotate any related Google Compute Engine resources.
* @property resourceUsageExportConfig Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.
* @property selfLink [Output only] Server-defined URL for the resource.
* @property servicesIpv4Cidr [Output only] The IP address range of the Kubernetes services in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `/16` from the container CIDR.
* @property shieldedNodes Shielded Nodes configuration.
* @property status [Output only] The current status of this cluster.
* @property statusMessage [Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.
* @property subnetwork The name of the Google Compute Engine [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the cluster is connected.
* @property tpuIpv4CidrBlock [Output only] The IP address range of the Cloud TPUs in this cluster, in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation (e.g. `1.2.3.4/29`).
* @property verticalPodAutoscaling Cluster-level Vertical Pod Autoscaling configuration.
* @property workloadIdentityConfig Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.
* @property zone [Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field is deprecated, use location instead.
*/
public data class GetClusterResult(
public val addonsConfig: AddonsConfigResponse,
public val authenticatorGroupsConfig: AuthenticatorGroupsConfigResponse,
public val autopilot: AutopilotResponse,
public val autoscaling: ClusterAutoscalingResponse,
public val binaryAuthorization: BinaryAuthorizationResponse,
public val clusterIpv4Cidr: String,
public val conditions: List,
public val confidentialNodes: ConfidentialNodesResponse,
public val costManagementConfig: CostManagementConfigResponse,
public val createTime: String,
public val currentMasterVersion: String,
@Deprecated(
message = """
[Output only] The number of nodes currently in the cluster. Deprecated. Call Kubernetes API
directly to retrieve node information.
""",
)
public val currentNodeCount: Int,
public val currentNodeVersion: String,
public val databaseEncryption: DatabaseEncryptionResponse,
public val defaultMaxPodsConstraint: MaxPodsConstraintResponse,
public val description: String,
public val enableKubernetesAlpha: Boolean,
public val enableTpu: Boolean,
public val endpoint: String,
public val etag: String,
public val expireTime: String,
public val fleet: FleetResponse,
public val identityServiceConfig: IdentityServiceConfigResponse,
public val initialClusterVersion: String,
@Deprecated(
message = """
The number of nodes to create in this cluster. You must ensure that your Compute Engine [resource
quota](https://cloud.google.com/compute/quotas) is sufficient for this number of instances.
You must also have available firewall and routes quota. For requests, this field should only
be used in lieu of a "node_pool" object, since this configuration (along with the
"node_config") will be used to create a "NodePool" object with an auto-generated name. Do not
use this and a node_pool at the same time. This field is deprecated, use
node_pool.initial_node_count instead.
""",
)
public val initialNodeCount: Int,
@Deprecated(
message = """
Deprecated. Use node_pools.instance_group_urls.
""",
)
public val instanceGroupUrls: List,
public val ipAllocationPolicy: IPAllocationPolicyResponse,
public val labelFingerprint: String,
public val legacyAbac: LegacyAbacResponse,
public val location: String,
public val locations: List,
public val loggingConfig: LoggingConfigResponse,
public val loggingService: String,
public val maintenancePolicy: MaintenancePolicyResponse,
public val masterAuth: MasterAuthResponse,
public val masterAuthorizedNetworksConfig: MasterAuthorizedNetworksConfigResponse,
public val meshCertificates: MeshCertificatesResponse,
public val monitoringConfig: MonitoringConfigResponse,
public val monitoringService: String,
public val name: String,
public val network: String,
public val networkConfig: NetworkConfigResponse,
public val networkPolicy: NetworkPolicyResponse,
@Deprecated(
message = """
Parameters used in creating the cluster's nodes. For requests, this field should only be used in
lieu of a "node_pool" object, since this configuration (along with the "initial_node_count")
will be used to create a "NodePool" object with an auto-generated name. Do not use this and a
node_pool at the same time. For responses, this field will be populated with the node
configuration of the first node pool. (For configuration of each node pool, see
`node_pool.config`) If unspecified, the defaults are used. This field is deprecated, use
node_pool.config instead.
""",
)
public val nodeConfig: NodeConfigResponse,
public val nodeIpv4CidrSize: Int,
public val nodePoolAutoConfig: NodePoolAutoConfigResponse,
public val nodePoolDefaults: NodePoolDefaultsResponse,
public val nodePools: List,
public val notificationConfig: NotificationConfigResponse,
public val privateClusterConfig: PrivateClusterConfigResponse,
public val releaseChannel: ReleaseChannelResponse,
public val resourceLabels: Map,
public val resourceUsageExportConfig: ResourceUsageExportConfigResponse,
public val selfLink: String,
public val servicesIpv4Cidr: String,
public val shieldedNodes: ShieldedNodesResponse,
public val status: String,
@Deprecated(
message = """
[Output only] Deprecated. Use conditions instead. Additional information about the current status
of this cluster, if available.
""",
)
public val statusMessage: String,
public val subnetwork: String,
public val tpuIpv4CidrBlock: String,
public val verticalPodAutoscaling: VerticalPodAutoscalingResponse,
public val workloadIdentityConfig: WorkloadIdentityConfigResponse,
@Deprecated(
message = """
[Output only] The name of the Google Compute Engine
[zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides.
This field is deprecated, use location instead.
""",
)
public val zone: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.googlenative.container.v1.outputs.GetClusterResult): GetClusterResult = GetClusterResult(
addonsConfig = javaType.addonsConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.AddonsConfigResponse.Companion.toKotlin(args0)
}),
authenticatorGroupsConfig = javaType.authenticatorGroupsConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.AuthenticatorGroupsConfigResponse.Companion.toKotlin(args0)
}),
autopilot = javaType.autopilot().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.AutopilotResponse.Companion.toKotlin(args0)
}),
autoscaling = javaType.autoscaling().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.ClusterAutoscalingResponse.Companion.toKotlin(args0)
}),
binaryAuthorization = javaType.binaryAuthorization().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.BinaryAuthorizationResponse.Companion.toKotlin(args0)
}),
clusterIpv4Cidr = javaType.clusterIpv4Cidr(),
conditions = javaType.conditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.StatusConditionResponse.Companion.toKotlin(args0)
})
}),
confidentialNodes = javaType.confidentialNodes().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.ConfidentialNodesResponse.Companion.toKotlin(args0)
}),
costManagementConfig = javaType.costManagementConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.CostManagementConfigResponse.Companion.toKotlin(args0)
}),
createTime = javaType.createTime(),
currentMasterVersion = javaType.currentMasterVersion(),
currentNodeCount = javaType.currentNodeCount(),
currentNodeVersion = javaType.currentNodeVersion(),
databaseEncryption = javaType.databaseEncryption().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.DatabaseEncryptionResponse.Companion.toKotlin(args0)
}),
defaultMaxPodsConstraint = javaType.defaultMaxPodsConstraint().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.MaxPodsConstraintResponse.Companion.toKotlin(args0)
}),
description = javaType.description(),
enableKubernetesAlpha = javaType.enableKubernetesAlpha(),
enableTpu = javaType.enableTpu(),
endpoint = javaType.endpoint(),
etag = javaType.etag(),
expireTime = javaType.expireTime(),
fleet = javaType.fleet().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.FleetResponse.Companion.toKotlin(args0)
}),
identityServiceConfig = javaType.identityServiceConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.IdentityServiceConfigResponse.Companion.toKotlin(args0)
}),
initialClusterVersion = javaType.initialClusterVersion(),
initialNodeCount = javaType.initialNodeCount(),
instanceGroupUrls = javaType.instanceGroupUrls().map({ args0 -> args0 }),
ipAllocationPolicy = javaType.ipAllocationPolicy().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.IPAllocationPolicyResponse.Companion.toKotlin(args0)
}),
labelFingerprint = javaType.labelFingerprint(),
legacyAbac = javaType.legacyAbac().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.LegacyAbacResponse.Companion.toKotlin(args0)
}),
location = javaType.location(),
locations = javaType.locations().map({ args0 -> args0 }),
loggingConfig = javaType.loggingConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.LoggingConfigResponse.Companion.toKotlin(args0)
}),
loggingService = javaType.loggingService(),
maintenancePolicy = javaType.maintenancePolicy().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.MaintenancePolicyResponse.Companion.toKotlin(args0)
}),
masterAuth = javaType.masterAuth().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.MasterAuthResponse.Companion.toKotlin(args0)
}),
masterAuthorizedNetworksConfig = javaType.masterAuthorizedNetworksConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.MasterAuthorizedNetworksConfigResponse.Companion.toKotlin(args0)
}),
meshCertificates = javaType.meshCertificates().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.MeshCertificatesResponse.Companion.toKotlin(args0)
}),
monitoringConfig = javaType.monitoringConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.MonitoringConfigResponse.Companion.toKotlin(args0)
}),
monitoringService = javaType.monitoringService(),
name = javaType.name(),
network = javaType.network(),
networkConfig = javaType.networkConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.NetworkConfigResponse.Companion.toKotlin(args0)
}),
networkPolicy = javaType.networkPolicy().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.NetworkPolicyResponse.Companion.toKotlin(args0)
}),
nodeConfig = javaType.nodeConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.NodeConfigResponse.Companion.toKotlin(args0)
}),
nodeIpv4CidrSize = javaType.nodeIpv4CidrSize(),
nodePoolAutoConfig = javaType.nodePoolAutoConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.NodePoolAutoConfigResponse.Companion.toKotlin(args0)
}),
nodePoolDefaults = javaType.nodePoolDefaults().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.NodePoolDefaultsResponse.Companion.toKotlin(args0)
}),
nodePools = javaType.nodePools().map({ args0 ->
args0.let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.NodePoolResponse.Companion.toKotlin(args0)
})
}),
notificationConfig = javaType.notificationConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.NotificationConfigResponse.Companion.toKotlin(args0)
}),
privateClusterConfig = javaType.privateClusterConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.PrivateClusterConfigResponse.Companion.toKotlin(args0)
}),
releaseChannel = javaType.releaseChannel().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.ReleaseChannelResponse.Companion.toKotlin(args0)
}),
resourceLabels = javaType.resourceLabels().map({ args0 -> args0.key.to(args0.value) }).toMap(),
resourceUsageExportConfig = javaType.resourceUsageExportConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.ResourceUsageExportConfigResponse.Companion.toKotlin(args0)
}),
selfLink = javaType.selfLink(),
servicesIpv4Cidr = javaType.servicesIpv4Cidr(),
shieldedNodes = javaType.shieldedNodes().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.ShieldedNodesResponse.Companion.toKotlin(args0)
}),
status = javaType.status(),
statusMessage = javaType.statusMessage(),
subnetwork = javaType.subnetwork(),
tpuIpv4CidrBlock = javaType.tpuIpv4CidrBlock(),
verticalPodAutoscaling = javaType.verticalPodAutoscaling().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.VerticalPodAutoscalingResponse.Companion.toKotlin(args0)
}),
workloadIdentityConfig = javaType.workloadIdentityConfig().let({ args0 ->
com.pulumi.googlenative.container.v1.kotlin.outputs.WorkloadIdentityConfigResponse.Companion.toKotlin(args0)
}),
zone = javaType.zone(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy