Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1309,7 +1309,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-dataproc
version: 5.24.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/cloud/dataproc/v1
service_config: dataproc_v1.yaml
Expand Down Expand Up @@ -1416,7 +1416,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-dialogflow-cx
version: 2.3.0
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/cloud/dialogflow/cx/v3
service_config: dialogflow_v3.yaml
Expand Down Expand Up @@ -1853,7 +1853,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-kms
version: 3.10.0
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/cloud/kms/v1
service_config: cloudkms_v1.yaml
Expand All @@ -1868,7 +1868,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-kms-inventory
version: 0.4.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/cloud/kms/inventory/v1
service_config: kmsinventory_v1.yaml
Expand Down Expand Up @@ -2155,7 +2155,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-network-connectivity
version: 2.13.0
last_generated_commit: 87e3579c041a50f985f8de71e9494c8fc85d520b
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/cloud/networkconnectivity/v1
service_config: networkconnectivity_v1.yaml
Expand Down Expand Up @@ -2622,7 +2622,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-saasplatform-saasservicemgmt
version: 0.3.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/cloud/saasplatform/saasservicemgmt/v1beta1
service_config: saasservicemgmt_v1beta1.yaml
Expand Down Expand Up @@ -2767,7 +2767,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-service-management
version: 1.15.0
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/api/servicemanagement/v1
service_config: servicemanagement_v1.yaml
Expand Down Expand Up @@ -2887,7 +2887,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-cloud-storagebatchoperations
version: 0.3.0
last_generated_commit: d4a34bf03d617723146fe3ae15192c4d93981a27
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/cloud/storagebatchoperations/v1
service_config: storagebatchoperations_v1.yaml
Expand Down Expand Up @@ -3383,7 +3383,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: google-maps-places
version: 0.6.0
last_generated_commit: e8365a7f88fabe8717cb8322b8ce784b03b6daea
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/maps/places/v1
service_config: places_v1.yaml
Expand Down Expand Up @@ -3690,7 +3690,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: googleapis-common-protos
version: 1.72.0
last_generated_commit: 9eea40c74d97622bb0aa406dd313409a376cc73b
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: google/api
service_config: serviceconfig.yaml
Expand All @@ -3717,7 +3717,7 @@ libraries:
tag_format: '{id}-v{version}'
- id: grafeas
version: 1.19.1
last_generated_commit: 725496d32a359a40dd773995d3fda0342b440e15
last_generated_commit: 1133adb136f742df62864f1d9d307df25d451880
apis:
- path: grafeas/v1
service_config: grafeas_v1.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,30 @@ class AutoscalingPolicy(proto.Message):
63 characters, and must conform to `RFC
1035 <https://www.ietf.org/rfc/rfc1035.txt>`__. No more than
32 labels can be associated with an autoscaling policy.
cluster_type (google.cloud.dataproc_v1.types.AutoscalingPolicy.ClusterType):
Optional. The type of the clusters for which
this autoscaling policy is to be configured.
"""

class ClusterType(proto.Enum):
r"""The type of the clusters for which this autoscaling policy is
to be configured.

Values:
CLUSTER_TYPE_UNSPECIFIED (0):
Not set.
STANDARD (1):
Standard dataproc cluster with a minimum of
two primary workers.
ZERO_SCALE (2):
Clusters that can use only secondary workers
and be scaled down to zero secondary worker
nodes.
"""
CLUSTER_TYPE_UNSPECIFIED = 0
STANDARD = 1
ZERO_SCALE = 2

id: str = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -113,6 +135,11 @@ class AutoscalingPolicy(proto.Message):
proto.STRING,
number=6,
)
cluster_type: ClusterType = proto.Field(
proto.ENUM,
number=7,
enum=ClusterType,
)


class BasicAutoscalingAlgorithm(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ class ClusterConfig(proto.Message):
r"""The cluster config.

Attributes:
cluster_type (google.cloud.dataproc_v1.types.ClusterConfig.ClusterType):
Optional. The type of the cluster.
cluster_tier (google.cloud.dataproc_v1.types.ClusterConfig.ClusterTier):
Optional. The cluster tier.
config_bucket (str):
Expand Down Expand Up @@ -260,6 +262,27 @@ class ClusterConfig(proto.Message):
Optional. The node group settings.
"""

class ClusterType(proto.Enum):
r"""The type of the cluster.

Values:
CLUSTER_TYPE_UNSPECIFIED (0):
Not set.
STANDARD (1):
Standard dataproc cluster with a minimum of
two primary workers.
SINGLE_NODE (2):
https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/single-node-clusters
ZERO_SCALE (3):
Clusters that can use only secondary workers
and be scaled down to zero secondary worker
nodes.
"""
CLUSTER_TYPE_UNSPECIFIED = 0
STANDARD = 1
SINGLE_NODE = 2
ZERO_SCALE = 3

class ClusterTier(proto.Enum):
r"""The cluster tier.

Expand All @@ -275,6 +298,11 @@ class ClusterTier(proto.Enum):
CLUSTER_TIER_STANDARD = 1
CLUSTER_TIER_PREMIUM = 2

cluster_type: ClusterType = proto.Field(
proto.ENUM,
number=27,
enum=ClusterType,
)
cluster_tier: ClusterTier = proto.Field(
proto.ENUM,
number=29,
Expand Down
Loading
Loading