@@ -577,6 +577,24 @@ class PrivateIpv6GoogleAccess(proto.Enum):
577577 IPv6. These values are directly mapped to corresponding values in
578578 the `Compute Engine Instance
579579 fields <https://cloud.google.com/compute/docs/reference/rest/v1/instances>`__.
580+
581+ Values:
582+ PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED (0):
583+ If unspecified, Compute Engine default behavior will apply,
584+ which is the same as
585+ [INHERIT_FROM_SUBNETWORK][google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess.INHERIT_FROM_SUBNETWORK].
586+ INHERIT_FROM_SUBNETWORK (1):
587+ Private access to and from Google Services
588+ configuration inherited from the subnetwork
589+ configuration. This is the default Compute
590+ Engine behavior.
591+ OUTBOUND (2):
592+ Enables outbound private IPv6 access to
593+ Google Services from the Dataproc cluster.
594+ BIDIRECTIONAL (3):
595+ Enables bidirectional private IPv6 access
596+ between Google Services and the Dataproc
597+ cluster.
580598 """
581599 PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0
582600 INHERIT_FROM_SUBNETWORK = 1
@@ -795,10 +813,39 @@ class InstanceGroupConfig(proto.Message):
795813 """
796814
797815 class Preemptibility (proto .Enum ):
798- r"""Controls the use of preemptible instances within the group."""
816+ r"""Controls the use of preemptible instances within the group.
817+
818+ Values:
819+ PREEMPTIBILITY_UNSPECIFIED (0):
820+ Preemptibility is unspecified, the system
821+ will choose the appropriate setting for each
822+ instance group.
823+ NON_PREEMPTIBLE (1):
824+ Instances are non-preemptible.
825+ This option is allowed for all instance groups
826+ and is the only valid value for Master and
827+ Worker instance groups.
828+ PREEMPTIBLE (2):
829+ Instances are [preemptible]
830+ (https://cloud.google.com/compute/docs/instances/preemptible).
831+
832+ This option is allowed only for [secondary worker]
833+ (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
834+ groups.
835+ SPOT (3):
836+ Instances are [Spot VMs]
837+ (https://cloud.google.com/compute/docs/instances/spot).
838+
839+ This option is allowed only for [secondary worker]
840+ (https://cloud.google.com/dataproc/docs/concepts/compute/secondary-vms)
841+ groups. Spot VMs are the latest version of [preemptible VMs]
842+ (https://cloud.google.com/compute/docs/instances/preemptible),
843+ and provide additional features.
844+ """
799845 PREEMPTIBILITY_UNSPECIFIED = 0
800846 NON_PREEMPTIBLE = 1
801847 PREEMPTIBLE = 2
848+ SPOT = 3
802849
803850 num_instances : int = proto .Field (
804851 proto .INT32 ,
@@ -1007,7 +1054,14 @@ class NodeGroup(proto.Message):
10071054 """
10081055
10091056 class Role (proto .Enum ):
1010- r"""Node group roles."""
1057+ r"""Node group roles.
1058+
1059+ Values:
1060+ ROLE_UNSPECIFIED (0):
1061+ Required unspecified role.
1062+ DRIVER (1):
1063+ Job drivers run on the node group.
1064+ """
10111065 ROLE_UNSPECIFIED = 0
10121066 DRIVER = 1
10131067
@@ -1081,7 +1135,45 @@ class ClusterStatus(proto.Message):
10811135 """
10821136
10831137 class State (proto .Enum ):
1084- r"""The cluster state."""
1138+ r"""The cluster state.
1139+
1140+ Values:
1141+ UNKNOWN (0):
1142+ The cluster state is unknown.
1143+ CREATING (1):
1144+ The cluster is being created and set up. It
1145+ is not ready for use.
1146+ RUNNING (2):
1147+ The cluster is currently running and healthy. It is ready
1148+ for use.
1149+
1150+ **Note:** The cluster state changes from "creating" to
1151+ "running" status after the master node(s), first two primary
1152+ worker nodes (and the last primary worker node if primary
1153+ workers > 2) are running.
1154+ ERROR (3):
1155+ The cluster encountered an error. It is not
1156+ ready for use.
1157+ ERROR_DUE_TO_UPDATE (9):
1158+ The cluster has encountered an error while
1159+ being updated. Jobs can be submitted to the
1160+ cluster, but the cluster cannot be updated.
1161+ DELETING (4):
1162+ The cluster is being deleted. It cannot be
1163+ used.
1164+ UPDATING (5):
1165+ The cluster is being updated. It continues to
1166+ accept and process jobs.
1167+ STOPPING (6):
1168+ The cluster is being stopped. It cannot be
1169+ used.
1170+ STOPPED (7):
1171+ The cluster is currently stopped. It is not
1172+ ready for use.
1173+ STARTING (8):
1174+ The cluster is being started. It is not ready
1175+ for use.
1176+ """
10851177 UNKNOWN = 0
10861178 CREATING = 1
10871179 RUNNING = 2
@@ -1094,7 +1186,23 @@ class State(proto.Enum):
10941186 STARTING = 8
10951187
10961188 class Substate (proto .Enum ):
1097- r"""The cluster substate."""
1189+ r"""The cluster substate.
1190+
1191+ Values:
1192+ UNSPECIFIED (0):
1193+ The cluster substate is unknown.
1194+ UNHEALTHY (1):
1195+ The cluster is known to be in an unhealthy
1196+ state (for example, critical daemons are not
1197+ running or HDFS capacity is exhausted).
1198+
1199+ Applies to RUNNING state.
1200+ STALE_STATUS (2):
1201+ The agent-reported status is out of date (may
1202+ occur if Dataproc loses communication with
1203+ Agent).
1204+ Applies to RUNNING state.
1205+ """
10981206 UNSPECIFIED = 0
10991207 UNHEALTHY = 1
11001208 STALE_STATUS = 2
@@ -1445,6 +1553,25 @@ class MetricSource(proto.Enum):
14451553 r"""A source for the collection of Dataproc OSS metrics (see [available
14461554 OSS metrics]
14471555 (https://cloud.google.com//dataproc/docs/guides/monitoring#available_oss_metrics)).
1556+
1557+ Values:
1558+ METRIC_SOURCE_UNSPECIFIED (0):
1559+ Required unspecified metric source.
1560+ MONITORING_AGENT_DEFAULTS (1):
1561+ Default monitoring agent metrics. If this source is enabled,
1562+ Dataproc enables the monitoring agent in Compute Engine, and
1563+ collects default monitoring agent metrics, which are
1564+ published with an ``agent.googleapis.com`` prefix.
1565+ HDFS (2):
1566+ HDFS metric source.
1567+ SPARK (3):
1568+ Spark metric source.
1569+ YARN (4):
1570+ YARN metric source.
1571+ SPARK_HISTORY_SERVER (5):
1572+ Spark History Server metric source.
1573+ HIVESERVER2 (6):
1574+ Hiveserver2 metric source.
14481575 """
14491576 METRIC_SOURCE_UNSPECIFIED = 0
14501577 MONITORING_AGENT_DEFAULTS = 1
@@ -2077,6 +2204,18 @@ class ReservationAffinity(proto.Message):
20772204 class Type (proto .Enum ):
20782205 r"""Indicates whether to consume capacity from an reservation or
20792206 not.
2207+
2208+ Values:
2209+ TYPE_UNSPECIFIED (0):
2210+
2211+ NO_RESERVATION (1):
2212+ Do not consume from any allocated capacity.
2213+ ANY_RESERVATION (2):
2214+ Consume any reservation available.
2215+ SPECIFIC_RESERVATION (3):
2216+ Must consume from a specific reservation.
2217+ Must specify key value fields for specifying the
2218+ reservations.
20802219 """
20812220 TYPE_UNSPECIFIED = 0
20822221 NO_RESERVATION = 1
0 commit comments