google-apis-dataproc_v1 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/dataproc_v1/classes.rb +324 -83
- data/lib/google/apis/dataproc_v1/gem_version.rb +2 -2
- data/lib/google/apis/dataproc_v1/representations.rb +120 -22
- data/lib/google/apis/dataproc_v1/service.rb +214 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e31366ea9860831482fe756286fa4a5631ce06d53d1a609dd47b6c9f0aac238
|
4
|
+
data.tar.gz: 39fb6ab98678501e033851691479e925e89679f821e0f159397b60c715a9a42b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7a94bbb4f0c56e9a8097a4e484e8ff9578ff07849af1075436752ed0d163470e5ce5e37aee9b989b549b0bed53deb535f449ac07d54d6cd37b7ecd094ccb1cf
|
7
|
+
data.tar.gz: 3339d0f5466aa6fad8dcde949754c98cca69744e40db4b98260e77a4ba27bf49a9770b19b4af569597909c2a6d54820ffbd5568d5f6b309a0fd534f45d9d686a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-dataproc_v1
|
2
2
|
|
3
|
+
### v0.40.0 (2022-12-05)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221130
|
6
|
+
|
7
|
+
### v0.39.0 (2022-10-27)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20221025
|
10
|
+
|
3
11
|
### v0.38.0 (2022-10-19)
|
4
12
|
|
5
13
|
* Regenerated using generator version 0.11.0
|
@@ -146,6 +146,35 @@ module Google
|
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
+
# Node group identification and configuration information.
|
150
|
+
class AuxiliaryNodeGroup
|
151
|
+
include Google::Apis::Core::Hashable
|
152
|
+
|
153
|
+
# Dataproc Node Group. The Dataproc NodeGroup resource is not related to the
|
154
|
+
# Dataproc NodeGroupAffinity resource.
|
155
|
+
# Corresponds to the JSON property `nodeGroup`
|
156
|
+
# @return [Google::Apis::DataprocV1::NodeGroup]
|
157
|
+
attr_accessor :node_group
|
158
|
+
|
159
|
+
# Optional. A node group ID. Generated if not specified.The ID must contain only
|
160
|
+
# letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). Cannot
|
161
|
+
# begin or end with underscore or hyphen. Must consist of from 3 to 33
|
162
|
+
# characters.
|
163
|
+
# Corresponds to the JSON property `nodeGroupId`
|
164
|
+
# @return [String]
|
165
|
+
attr_accessor :node_group_id
|
166
|
+
|
167
|
+
def initialize(**args)
|
168
|
+
update!(**args)
|
169
|
+
end
|
170
|
+
|
171
|
+
# Update properties of this object
|
172
|
+
def update!(**args)
|
173
|
+
@node_group = args[:node_group] if args.key?(:node_group)
|
174
|
+
@node_group_id = args[:node_group_id] if args.key?(:node_group_id)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
149
178
|
# Auxiliary services configuration for a Cluster.
|
150
179
|
class AuxiliaryServicesConfig
|
151
180
|
include Google::Apis::Core::Hashable
|
@@ -633,6 +662,11 @@ module Google
|
|
633
662
|
# @return [Google::Apis::DataprocV1::AutoscalingConfig]
|
634
663
|
attr_accessor :autoscaling_config
|
635
664
|
|
665
|
+
# Optional. The node group settings.
|
666
|
+
# Corresponds to the JSON property `auxiliaryNodeGroups`
|
667
|
+
# @return [Array<Google::Apis::DataprocV1::AuxiliaryNodeGroup>]
|
668
|
+
attr_accessor :auxiliary_node_groups
|
669
|
+
|
636
670
|
# Optional. A Cloud Storage bucket used to stage job dependencies, config files,
|
637
671
|
# and job driver console output. If you do not specify a staging bucket, Cloud
|
638
672
|
# Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your
|
@@ -742,6 +776,7 @@ module Google
|
|
742
776
|
# Update properties of this object
|
743
777
|
def update!(**args)
|
744
778
|
@autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config)
|
779
|
+
@auxiliary_node_groups = args[:auxiliary_node_groups] if args.key?(:auxiliary_node_groups)
|
745
780
|
@config_bucket = args[:config_bucket] if args.key?(:config_bucket)
|
746
781
|
@dataproc_metric_config = args[:dataproc_metric_config] if args.key?(:dataproc_metric_config)
|
747
782
|
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
|
@@ -1111,6 +1146,31 @@ module Google
|
|
1111
1146
|
end
|
1112
1147
|
end
|
1113
1148
|
|
1149
|
+
# Driver scheduling configuration.
|
1150
|
+
class DriverSchedulingConfig
|
1151
|
+
include Google::Apis::Core::Hashable
|
1152
|
+
|
1153
|
+
# Required. The amount of memory in MB the driver is requesting.
|
1154
|
+
# Corresponds to the JSON property `memoryMb`
|
1155
|
+
# @return [Fixnum]
|
1156
|
+
attr_accessor :memory_mb
|
1157
|
+
|
1158
|
+
# Required. The number of vCPUs the driver is requesting.
|
1159
|
+
# Corresponds to the JSON property `vcores`
|
1160
|
+
# @return [Fixnum]
|
1161
|
+
attr_accessor :vcores
|
1162
|
+
|
1163
|
+
def initialize(**args)
|
1164
|
+
update!(**args)
|
1165
|
+
end
|
1166
|
+
|
1167
|
+
# Update properties of this object
|
1168
|
+
def update!(**args)
|
1169
|
+
@memory_mb = args[:memory_mb] if args.key?(:memory_mb)
|
1170
|
+
@vcores = args[:vcores] if args.key?(:vcores)
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
|
1114
1174
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
1115
1175
|
# messages in your APIs. A typical example is to use it as the request or the
|
1116
1176
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -1205,9 +1265,10 @@ module Google
|
|
1205
1265
|
include Google::Apis::Core::Hashable
|
1206
1266
|
|
1207
1267
|
# Optional. The duration to keep the session alive while it's idling. Passing
|
1208
|
-
# this threshold will cause the session to be terminated. Minimum value is
|
1268
|
+
# this threshold will cause the session to be terminated. Minimum value is 10
|
1209
1269
|
# minutes; maximum value is 14 days (see JSON representation of Duration (https:/
|
1210
|
-
# /developers.google.com/protocol-buffers/docs/proto3#json)).
|
1270
|
+
# /developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4
|
1271
|
+
# hours if not set.
|
1211
1272
|
# Corresponds to the JSON property `idleTtl`
|
1212
1273
|
# @return [String]
|
1213
1274
|
attr_accessor :idle_ttl
|
@@ -1347,7 +1408,8 @@ module Google
|
|
1347
1408
|
# @return [String]
|
1348
1409
|
attr_accessor :network_uri
|
1349
1410
|
|
1350
|
-
# Node Group Affinity for clusters using sole-tenant node groups.
|
1411
|
+
# Node Group Affinity for clusters using sole-tenant node groups. The Dataproc
|
1412
|
+
# NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.
|
1351
1413
|
# Corresponds to the JSON property `nodeGroupAffinity`
|
1352
1414
|
# @return [Google::Apis::DataprocV1::NodeGroupAffinity]
|
1353
1415
|
attr_accessor :node_group_affinity
|
@@ -1440,68 +1502,6 @@ module Google
|
|
1440
1502
|
end
|
1441
1503
|
end
|
1442
1504
|
|
1443
|
-
# Metadata describing the Compute Engine node pool operation.
|
1444
|
-
class GceNodePoolOperationMetadata
|
1445
|
-
include Google::Apis::Core::Hashable
|
1446
|
-
|
1447
|
-
# Output only. Cluster UUID associated with the Compute Engine node pool
|
1448
|
-
# operation.
|
1449
|
-
# Corresponds to the JSON property `clusterUuid`
|
1450
|
-
# @return [String]
|
1451
|
-
attr_accessor :cluster_uuid
|
1452
|
-
|
1453
|
-
# Output only. Short description of operation.
|
1454
|
-
# Corresponds to the JSON property `description`
|
1455
|
-
# @return [String]
|
1456
|
-
attr_accessor :description
|
1457
|
-
|
1458
|
-
# Output only. Compute Engine node pool ID for the operation.
|
1459
|
-
# Corresponds to the JSON property `gceNodePoolId`
|
1460
|
-
# @return [String]
|
1461
|
-
attr_accessor :gce_node_pool_id
|
1462
|
-
|
1463
|
-
# Output only. Labels associated with the operation
|
1464
|
-
# Corresponds to the JSON property `labels`
|
1465
|
-
# @return [Hash<String,String>]
|
1466
|
-
attr_accessor :labels
|
1467
|
-
|
1468
|
-
# The operation type.
|
1469
|
-
# Corresponds to the JSON property `operationType`
|
1470
|
-
# @return [String]
|
1471
|
-
attr_accessor :operation_type
|
1472
|
-
|
1473
|
-
# The status of the operation.
|
1474
|
-
# Corresponds to the JSON property `status`
|
1475
|
-
# @return [Google::Apis::DataprocV1::ClusterOperationStatus]
|
1476
|
-
attr_accessor :status
|
1477
|
-
|
1478
|
-
# Output only. The previous operation status.
|
1479
|
-
# Corresponds to the JSON property `statusHistory`
|
1480
|
-
# @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
|
1481
|
-
attr_accessor :status_history
|
1482
|
-
|
1483
|
-
# Output only. Errors encountered during operation execution.
|
1484
|
-
# Corresponds to the JSON property `warnings`
|
1485
|
-
# @return [Array<String>]
|
1486
|
-
attr_accessor :warnings
|
1487
|
-
|
1488
|
-
def initialize(**args)
|
1489
|
-
update!(**args)
|
1490
|
-
end
|
1491
|
-
|
1492
|
-
# Update properties of this object
|
1493
|
-
def update!(**args)
|
1494
|
-
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
1495
|
-
@description = args[:description] if args.key?(:description)
|
1496
|
-
@gce_node_pool_id = args[:gce_node_pool_id] if args.key?(:gce_node_pool_id)
|
1497
|
-
@labels = args[:labels] if args.key?(:labels)
|
1498
|
-
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
1499
|
-
@status = args[:status] if args.key?(:status)
|
1500
|
-
@status_history = args[:status_history] if args.key?(:status_history)
|
1501
|
-
@warnings = args[:warnings] if args.key?(:warnings)
|
1502
|
-
end
|
1503
|
-
end
|
1504
|
-
|
1505
1505
|
# Request message for GetIamPolicy method.
|
1506
1506
|
class GetIamPolicyRequest
|
1507
1507
|
include Google::Apis::Core::Hashable
|
@@ -1628,18 +1628,23 @@ module Google
|
|
1628
1628
|
# @return [String]
|
1629
1629
|
attr_accessor :min_cpu_platform
|
1630
1630
|
|
1631
|
-
# Optional. Whether the nodes are created as preemptible VM instances (
|
1632
|
-
# cloud.google.com/compute/docs/instances/preemptible).
|
1633
|
-
#
|
1634
|
-
#
|
1635
|
-
# CONTROLLER role
|
1631
|
+
# Optional. Whether the nodes are created as legacy preemptible VM instances (
|
1632
|
+
# https://cloud.google.com/compute/docs/instances/preemptible). Also see Spot
|
1633
|
+
# VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
|
1634
|
+
# preemptible nodes cannot be used in a node pool with the CONTROLLER role or in
|
1635
|
+
# the DEFAULT node pool if the CONTROLLER role is not assigned (the DEFAULT node
|
1636
|
+
# pool will assume the CONTROLLER role).
|
1636
1637
|
# Corresponds to the JSON property `preemptible`
|
1637
1638
|
# @return [Boolean]
|
1638
1639
|
attr_accessor :preemptible
|
1639
1640
|
alias_method :preemptible?, :preemptible
|
1640
1641
|
|
1641
|
-
# Optional.
|
1642
|
-
#
|
1642
|
+
# Optional. Whether the nodes are created as Spot VM instances (https://cloud.
|
1643
|
+
# google.com/compute/docs/instances/spot). Spot VMs are the latest update to
|
1644
|
+
# legacy preemptible VMs. Spot VMs do not have a maximum lifetime. Legacy and
|
1645
|
+
# Spot preemptible nodes cannot be used in a node pool with the CONTROLLER role
|
1646
|
+
# or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
|
1647
|
+
# DEFAULT node pool will assume the CONTROLLER role).
|
1643
1648
|
# Corresponds to the JSON property `spot`
|
1644
1649
|
# @return [Boolean]
|
1645
1650
|
attr_accessor :spot
|
@@ -2236,6 +2241,11 @@ module Google
|
|
2236
2241
|
# @return [String]
|
2237
2242
|
attr_accessor :driver_output_resource_uri
|
2238
2243
|
|
2244
|
+
# Driver scheduling configuration.
|
2245
|
+
# Corresponds to the JSON property `driverSchedulingConfig`
|
2246
|
+
# @return [Google::Apis::DataprocV1::DriverSchedulingConfig]
|
2247
|
+
attr_accessor :driver_scheduling_config
|
2248
|
+
|
2239
2249
|
# A Dataproc job for running Apache Hadoop MapReduce (https://hadoop.apache.org/
|
2240
2250
|
# docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
|
2241
2251
|
# MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
|
@@ -2353,6 +2363,7 @@ module Google
|
|
2353
2363
|
@done = args[:done] if args.key?(:done)
|
2354
2364
|
@driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
|
2355
2365
|
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
|
2366
|
+
@driver_scheduling_config = args[:driver_scheduling_config] if args.key?(:driver_scheduling_config)
|
2356
2367
|
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
|
2357
2368
|
@hive_job = args[:hive_job] if args.key?(:hive_job)
|
2358
2369
|
@job_uuid = args[:job_uuid] if args.key?(:job_uuid)
|
@@ -2477,20 +2488,21 @@ module Google
|
|
2477
2488
|
|
2478
2489
|
# Optional. Maximum number of times per hour a driver may be restarted as a
|
2479
2490
|
# result of driver exiting with non-zero code before job is reported failed.A
|
2480
|
-
# job may be reported as thrashing if driver exits with non-zero code
|
2481
|
-
# within 10
|
2482
|
-
#
|
2483
|
-
#
|
2484
|
-
#
|
2491
|
+
# job may be reported as thrashing if the driver exits with a non-zero code four
|
2492
|
+
# times within a 10-minute window.Maximum value is 10.Note: This restartable job
|
2493
|
+
# option is not supported in Dataproc workflow templates (https://cloud.google.
|
2494
|
+
# com/dataproc/docs/concepts/workflows/using-workflows#adding_jobs_to_a_template)
|
2495
|
+
# .
|
2485
2496
|
# Corresponds to the JSON property `maxFailuresPerHour`
|
2486
2497
|
# @return [Fixnum]
|
2487
2498
|
attr_accessor :max_failures_per_hour
|
2488
2499
|
|
2489
|
-
# Optional. Maximum number of times
|
2490
|
-
#
|
2491
|
-
#
|
2492
|
-
# supported in Dataproc workflow
|
2493
|
-
# docs/concepts/workflows/using-
|
2500
|
+
# Optional. Maximum total number of times a driver may be restarted as a result
|
2501
|
+
# of the driver exiting with a non-zero code. After the maximum number is
|
2502
|
+
# reached, the job will be reported as failed.Maximum value is 240.Note:
|
2503
|
+
# Currently, this restartable job option is not supported in Dataproc workflow
|
2504
|
+
# templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using-
|
2505
|
+
# workflows#adding_jobs_to_a_template).
|
2494
2506
|
# Corresponds to the JSON property `maxFailuresTotal`
|
2495
2507
|
# @return [Fixnum]
|
2496
2508
|
attr_accessor :max_failures_total
|
@@ -3109,7 +3121,51 @@ module Google
|
|
3109
3121
|
end
|
3110
3122
|
end
|
3111
3123
|
|
3112
|
-
# Node Group
|
3124
|
+
# Dataproc Node Group. The Dataproc NodeGroup resource is not related to the
|
3125
|
+
# Dataproc NodeGroupAffinity resource.
|
3126
|
+
class NodeGroup
|
3127
|
+
include Google::Apis::Core::Hashable
|
3128
|
+
|
3129
|
+
# Optional. Node group labels. Label keys must consist of from 1 to 63
|
3130
|
+
# characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt).
|
3131
|
+
# Label values can be empty. If specified, they must consist of from 1 to 63
|
3132
|
+
# characters and conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt). The
|
3133
|
+
# node group must have no more than 32 labelsn.
|
3134
|
+
# Corresponds to the JSON property `labels`
|
3135
|
+
# @return [Hash<String,String>]
|
3136
|
+
attr_accessor :labels
|
3137
|
+
|
3138
|
+
# The Node group resource name (https://aip.dev/122).
|
3139
|
+
# Corresponds to the JSON property `name`
|
3140
|
+
# @return [String]
|
3141
|
+
attr_accessor :name
|
3142
|
+
|
3143
|
+
# The config settings for Compute Engine resources in an instance group, such as
|
3144
|
+
# a master or worker group.
|
3145
|
+
# Corresponds to the JSON property `nodeGroupConfig`
|
3146
|
+
# @return [Google::Apis::DataprocV1::InstanceGroupConfig]
|
3147
|
+
attr_accessor :node_group_config
|
3148
|
+
|
3149
|
+
# Required. Node group roles.
|
3150
|
+
# Corresponds to the JSON property `roles`
|
3151
|
+
# @return [Array<String>]
|
3152
|
+
attr_accessor :roles
|
3153
|
+
|
3154
|
+
def initialize(**args)
|
3155
|
+
update!(**args)
|
3156
|
+
end
|
3157
|
+
|
3158
|
+
# Update properties of this object
|
3159
|
+
def update!(**args)
|
3160
|
+
@labels = args[:labels] if args.key?(:labels)
|
3161
|
+
@name = args[:name] if args.key?(:name)
|
3162
|
+
@node_group_config = args[:node_group_config] if args.key?(:node_group_config)
|
3163
|
+
@roles = args[:roles] if args.key?(:roles)
|
3164
|
+
end
|
3165
|
+
end
|
3166
|
+
|
3167
|
+
# Node Group Affinity for clusters using sole-tenant node groups. The Dataproc
|
3168
|
+
# NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.
|
3113
3169
|
class NodeGroupAffinity
|
3114
3170
|
include Google::Apis::Core::Hashable
|
3115
3171
|
|
@@ -3133,6 +3189,67 @@ module Google
|
|
3133
3189
|
end
|
3134
3190
|
end
|
3135
3191
|
|
3192
|
+
# Metadata describing the node group operation.
|
3193
|
+
class NodeGroupOperationMetadata
|
3194
|
+
include Google::Apis::Core::Hashable
|
3195
|
+
|
3196
|
+
# Output only. Cluster UUID associated with the node group operation.
|
3197
|
+
# Corresponds to the JSON property `clusterUuid`
|
3198
|
+
# @return [String]
|
3199
|
+
attr_accessor :cluster_uuid
|
3200
|
+
|
3201
|
+
# Output only. Short description of operation.
|
3202
|
+
# Corresponds to the JSON property `description`
|
3203
|
+
# @return [String]
|
3204
|
+
attr_accessor :description
|
3205
|
+
|
3206
|
+
# Output only. Labels associated with the operation.
|
3207
|
+
# Corresponds to the JSON property `labels`
|
3208
|
+
# @return [Hash<String,String>]
|
3209
|
+
attr_accessor :labels
|
3210
|
+
|
3211
|
+
# Output only. Node group ID for the operation.
|
3212
|
+
# Corresponds to the JSON property `nodeGroupId`
|
3213
|
+
# @return [String]
|
3214
|
+
attr_accessor :node_group_id
|
3215
|
+
|
3216
|
+
# The operation type.
|
3217
|
+
# Corresponds to the JSON property `operationType`
|
3218
|
+
# @return [String]
|
3219
|
+
attr_accessor :operation_type
|
3220
|
+
|
3221
|
+
# The status of the operation.
|
3222
|
+
# Corresponds to the JSON property `status`
|
3223
|
+
# @return [Google::Apis::DataprocV1::ClusterOperationStatus]
|
3224
|
+
attr_accessor :status
|
3225
|
+
|
3226
|
+
# Output only. The previous operation status.
|
3227
|
+
# Corresponds to the JSON property `statusHistory`
|
3228
|
+
# @return [Array<Google::Apis::DataprocV1::ClusterOperationStatus>]
|
3229
|
+
attr_accessor :status_history
|
3230
|
+
|
3231
|
+
# Output only. Errors encountered during operation execution.
|
3232
|
+
# Corresponds to the JSON property `warnings`
|
3233
|
+
# @return [Array<String>]
|
3234
|
+
attr_accessor :warnings
|
3235
|
+
|
3236
|
+
def initialize(**args)
|
3237
|
+
update!(**args)
|
3238
|
+
end
|
3239
|
+
|
3240
|
+
# Update properties of this object
|
3241
|
+
def update!(**args)
|
3242
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
3243
|
+
@description = args[:description] if args.key?(:description)
|
3244
|
+
@labels = args[:labels] if args.key?(:labels)
|
3245
|
+
@node_group_id = args[:node_group_id] if args.key?(:node_group_id)
|
3246
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
3247
|
+
@status = args[:status] if args.key?(:status)
|
3248
|
+
@status_history = args[:status_history] if args.key?(:status_history)
|
3249
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
3250
|
+
end
|
3251
|
+
end
|
3252
|
+
|
3136
3253
|
# Specifies an executable to run on a fully configured node and a timeout period
|
3137
3254
|
# for executable completion.
|
3138
3255
|
class NodeInitializationAction
|
@@ -3905,6 +4022,55 @@ module Google
|
|
3905
4022
|
end
|
3906
4023
|
end
|
3907
4024
|
|
4025
|
+
# A request to resize a node group.
|
4026
|
+
class ResizeNodeGroupRequest
|
4027
|
+
include Google::Apis::Core::Hashable
|
4028
|
+
|
4029
|
+
# Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning (
|
4030
|
+
# https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/scaling-
|
4031
|
+
# clusters#graceful_decommissioning) allows the removal of nodes from the
|
4032
|
+
# Compute Engine node group without interrupting jobs in progress. This timeout
|
4033
|
+
# specifies how long to wait for jobs in progress to finish before forcefully
|
4034
|
+
# removing nodes (and potentially interrupting jobs). Default timeout is 0 (for
|
4035
|
+
# forceful decommission), and the maximum allowed timeout is 1 day. (see JSON
|
4036
|
+
# representation of Duration (https://developers.google.com/protocol-buffers/
|
4037
|
+
# docs/proto3#json)).Only supported on Dataproc image versions 1.2 and higher.
|
4038
|
+
# Corresponds to the JSON property `gracefulDecommissionTimeout`
|
4039
|
+
# @return [String]
|
4040
|
+
attr_accessor :graceful_decommission_timeout
|
4041
|
+
|
4042
|
+
# Optional. A unique ID used to identify the request. If the server receives two
|
4043
|
+
# ResizeNodeGroupRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
4044
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.ResizeNodeGroupRequests)
|
4045
|
+
# with the same ID, the second request is ignored and the first google.
|
4046
|
+
# longrunning.Operation created and stored in the backend is returned.
|
4047
|
+
# Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
|
4048
|
+
# Universally_unique_identifier).The ID must contain only letters (a-z, A-Z),
|
4049
|
+
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
4050
|
+
# characters.
|
4051
|
+
# Corresponds to the JSON property `requestId`
|
4052
|
+
# @return [String]
|
4053
|
+
attr_accessor :request_id
|
4054
|
+
|
4055
|
+
# Required. The number of running instances for the node group to maintain. The
|
4056
|
+
# group adds or removes instances to maintain the number of instances specified
|
4057
|
+
# by this parameter.
|
4058
|
+
# Corresponds to the JSON property `size`
|
4059
|
+
# @return [Fixnum]
|
4060
|
+
attr_accessor :size
|
4061
|
+
|
4062
|
+
def initialize(**args)
|
4063
|
+
update!(**args)
|
4064
|
+
end
|
4065
|
+
|
4066
|
+
# Update properties of this object
|
4067
|
+
def update!(**args)
|
4068
|
+
@graceful_decommission_timeout = args[:graceful_decommission_timeout] if args.key?(:graceful_decommission_timeout)
|
4069
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
4070
|
+
@size = args[:size] if args.key?(:size)
|
4071
|
+
end
|
4072
|
+
end
|
4073
|
+
|
3908
4074
|
# Runtime configuration for a workload.
|
3909
4075
|
class RuntimeConfig
|
3910
4076
|
include Google::Apis::Core::Hashable
|
@@ -3942,6 +4108,17 @@ module Google
|
|
3942
4108
|
class RuntimeInfo
|
3943
4109
|
include Google::Apis::Core::Hashable
|
3944
4110
|
|
4111
|
+
# Usage metrics represent approximate total resources consumed by a workload.
|
4112
|
+
# Corresponds to the JSON property `approximateUsage`
|
4113
|
+
# @return [Google::Apis::DataprocV1::UsageMetrics]
|
4114
|
+
attr_accessor :approximate_usage
|
4115
|
+
|
4116
|
+
# The usage snaphot represents the resources consumed by a workload at a
|
4117
|
+
# specified time.
|
4118
|
+
# Corresponds to the JSON property `currentUsage`
|
4119
|
+
# @return [Google::Apis::DataprocV1::UsageSnapshot]
|
4120
|
+
attr_accessor :current_usage
|
4121
|
+
|
3945
4122
|
# Output only. A URI pointing to the location of the diagnostics tarball.
|
3946
4123
|
# Corresponds to the JSON property `diagnosticOutputUri`
|
3947
4124
|
# @return [String]
|
@@ -3965,6 +4142,8 @@ module Google
|
|
3965
4142
|
|
3966
4143
|
# Update properties of this object
|
3967
4144
|
def update!(**args)
|
4145
|
+
@approximate_usage = args[:approximate_usage] if args.key?(:approximate_usage)
|
4146
|
+
@current_usage = args[:current_usage] if args.key?(:current_usage)
|
3968
4147
|
@diagnostic_output_uri = args[:diagnostic_output_uri] if args.key?(:diagnostic_output_uri)
|
3969
4148
|
@endpoints = args[:endpoints] if args.key?(:endpoints)
|
3970
4149
|
@output_uri = args[:output_uri] if args.key?(:output_uri)
|
@@ -4917,6 +5096,68 @@ module Google
|
|
4917
5096
|
end
|
4918
5097
|
end
|
4919
5098
|
|
5099
|
+
# Usage metrics represent approximate total resources consumed by a workload.
|
5100
|
+
class UsageMetrics
|
5101
|
+
include Google::Apis::Core::Hashable
|
5102
|
+
|
5103
|
+
# Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds) (see
|
5104
|
+
# Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/
|
5105
|
+
# pricing)).
|
5106
|
+
# Corresponds to the JSON property `milliDcuSeconds`
|
5107
|
+
# @return [Fixnum]
|
5108
|
+
attr_accessor :milli_dcu_seconds
|
5109
|
+
|
5110
|
+
# Optional. Shuffle storage usage in (GB x seconds) (see Dataproc Serverless
|
5111
|
+
# pricing (https://cloud.google.com/dataproc-serverless/pricing)).
|
5112
|
+
# Corresponds to the JSON property `shuffleStorageGbSeconds`
|
5113
|
+
# @return [Fixnum]
|
5114
|
+
attr_accessor :shuffle_storage_gb_seconds
|
5115
|
+
|
5116
|
+
def initialize(**args)
|
5117
|
+
update!(**args)
|
5118
|
+
end
|
5119
|
+
|
5120
|
+
# Update properties of this object
|
5121
|
+
def update!(**args)
|
5122
|
+
@milli_dcu_seconds = args[:milli_dcu_seconds] if args.key?(:milli_dcu_seconds)
|
5123
|
+
@shuffle_storage_gb_seconds = args[:shuffle_storage_gb_seconds] if args.key?(:shuffle_storage_gb_seconds)
|
5124
|
+
end
|
5125
|
+
end
|
5126
|
+
|
5127
|
+
# The usage snaphot represents the resources consumed by a workload at a
|
5128
|
+
# specified time.
|
5129
|
+
class UsageSnapshot
|
5130
|
+
include Google::Apis::Core::Hashable
|
5131
|
+
|
5132
|
+
# Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see Dataproc
|
5133
|
+
# Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).
|
5134
|
+
# Corresponds to the JSON property `milliDcu`
|
5135
|
+
# @return [Fixnum]
|
5136
|
+
attr_accessor :milli_dcu
|
5137
|
+
|
5138
|
+
# Optional. Shuffle Storage in gigabytes (GB). (see Dataproc Serverless pricing (
|
5139
|
+
# https://cloud.google.com/dataproc-serverless/pricing))
|
5140
|
+
# Corresponds to the JSON property `shuffleStorageGb`
|
5141
|
+
# @return [Fixnum]
|
5142
|
+
attr_accessor :shuffle_storage_gb
|
5143
|
+
|
5144
|
+
# Optional. The timestamp of the usage snapshot.
|
5145
|
+
# Corresponds to the JSON property `snapshotTime`
|
5146
|
+
# @return [String]
|
5147
|
+
attr_accessor :snapshot_time
|
5148
|
+
|
5149
|
+
def initialize(**args)
|
5150
|
+
update!(**args)
|
5151
|
+
end
|
5152
|
+
|
5153
|
+
# Update properties of this object
|
5154
|
+
def update!(**args)
|
5155
|
+
@milli_dcu = args[:milli_dcu] if args.key?(:milli_dcu)
|
5156
|
+
@shuffle_storage_gb = args[:shuffle_storage_gb] if args.key?(:shuffle_storage_gb)
|
5157
|
+
@snapshot_time = args[:snapshot_time] if args.key?(:snapshot_time)
|
5158
|
+
end
|
5159
|
+
end
|
5160
|
+
|
4920
5161
|
# Validation based on a list of allowed values.
|
4921
5162
|
class ValueValidation
|
4922
5163
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DataprocV1
|
18
18
|
# Version of the google-apis-dataproc_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221130"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,12 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class AuxiliaryNodeGroup
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class AuxiliaryServicesConfig
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
@@ -160,6 +166,12 @@ module Google
|
|
160
166
|
include Google::Apis::Core::JsonObjectSupport
|
161
167
|
end
|
162
168
|
|
169
|
+
class DriverSchedulingConfig
|
170
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
|
+
|
172
|
+
include Google::Apis::Core::JsonObjectSupport
|
173
|
+
end
|
174
|
+
|
163
175
|
class Empty
|
164
176
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
165
177
|
|
@@ -202,12 +214,6 @@ module Google
|
|
202
214
|
include Google::Apis::Core::JsonObjectSupport
|
203
215
|
end
|
204
216
|
|
205
|
-
class GceNodePoolOperationMetadata
|
206
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
-
|
208
|
-
include Google::Apis::Core::JsonObjectSupport
|
209
|
-
end
|
210
|
-
|
211
217
|
class GetIamPolicyRequest
|
212
218
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
219
|
|
@@ -436,12 +442,24 @@ module Google
|
|
436
442
|
include Google::Apis::Core::JsonObjectSupport
|
437
443
|
end
|
438
444
|
|
445
|
+
class NodeGroup
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
|
+
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
449
|
+
end
|
450
|
+
|
439
451
|
class NodeGroupAffinity
|
440
452
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
453
|
|
442
454
|
include Google::Apis::Core::JsonObjectSupport
|
443
455
|
end
|
444
456
|
|
457
|
+
class NodeGroupOperationMetadata
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
445
463
|
class NodeInitializationAction
|
446
464
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
465
|
|
@@ -532,6 +550,12 @@ module Google
|
|
532
550
|
include Google::Apis::Core::JsonObjectSupport
|
533
551
|
end
|
534
552
|
|
553
|
+
class ResizeNodeGroupRequest
|
554
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
555
|
+
|
556
|
+
include Google::Apis::Core::JsonObjectSupport
|
557
|
+
end
|
558
|
+
|
535
559
|
class RuntimeConfig
|
536
560
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
537
561
|
|
@@ -676,6 +700,18 @@ module Google
|
|
676
700
|
include Google::Apis::Core::JsonObjectSupport
|
677
701
|
end
|
678
702
|
|
703
|
+
class UsageMetrics
|
704
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
705
|
+
|
706
|
+
include Google::Apis::Core::JsonObjectSupport
|
707
|
+
end
|
708
|
+
|
709
|
+
class UsageSnapshot
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
679
715
|
class ValueValidation
|
680
716
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
681
717
|
|
@@ -754,6 +790,15 @@ module Google
|
|
754
790
|
end
|
755
791
|
end
|
756
792
|
|
793
|
+
class AuxiliaryNodeGroup
|
794
|
+
# @private
|
795
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
796
|
+
property :node_group, as: 'nodeGroup', class: Google::Apis::DataprocV1::NodeGroup, decorator: Google::Apis::DataprocV1::NodeGroup::Representation
|
797
|
+
|
798
|
+
property :node_group_id, as: 'nodeGroupId'
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|
757
802
|
class AuxiliaryServicesConfig
|
758
803
|
# @private
|
759
804
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -872,6 +917,8 @@ module Google
|
|
872
917
|
class Representation < Google::Apis::Core::JsonRepresentation
|
873
918
|
property :autoscaling_config, as: 'autoscalingConfig', class: Google::Apis::DataprocV1::AutoscalingConfig, decorator: Google::Apis::DataprocV1::AutoscalingConfig::Representation
|
874
919
|
|
920
|
+
collection :auxiliary_node_groups, as: 'auxiliaryNodeGroups', class: Google::Apis::DataprocV1::AuxiliaryNodeGroup, decorator: Google::Apis::DataprocV1::AuxiliaryNodeGroup::Representation
|
921
|
+
|
875
922
|
property :config_bucket, as: 'configBucket'
|
876
923
|
property :dataproc_metric_config, as: 'dataprocMetricConfig', class: Google::Apis::DataprocV1::DataprocMetricConfig, decorator: Google::Apis::DataprocV1::DataprocMetricConfig::Representation
|
877
924
|
|
@@ -1003,6 +1050,14 @@ module Google
|
|
1003
1050
|
end
|
1004
1051
|
end
|
1005
1052
|
|
1053
|
+
class DriverSchedulingConfig
|
1054
|
+
# @private
|
1055
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1056
|
+
property :memory_mb, as: 'memoryMb'
|
1057
|
+
property :vcores, as: 'vcores'
|
1058
|
+
end
|
1059
|
+
end
|
1060
|
+
|
1006
1061
|
class Empty
|
1007
1062
|
# @private
|
1008
1063
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1079,22 +1134,6 @@ module Google
|
|
1079
1134
|
end
|
1080
1135
|
end
|
1081
1136
|
|
1082
|
-
class GceNodePoolOperationMetadata
|
1083
|
-
# @private
|
1084
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1085
|
-
property :cluster_uuid, as: 'clusterUuid'
|
1086
|
-
property :description, as: 'description'
|
1087
|
-
property :gce_node_pool_id, as: 'gceNodePoolId'
|
1088
|
-
hash :labels, as: 'labels'
|
1089
|
-
property :operation_type, as: 'operationType'
|
1090
|
-
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
1091
|
-
|
1092
|
-
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
1093
|
-
|
1094
|
-
collection :warnings, as: 'warnings'
|
1095
|
-
end
|
1096
|
-
end
|
1097
|
-
|
1098
1137
|
class GetIamPolicyRequest
|
1099
1138
|
# @private
|
1100
1139
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1271,6 +1310,8 @@ module Google
|
|
1271
1310
|
property :done, as: 'done'
|
1272
1311
|
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
1273
1312
|
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
1313
|
+
property :driver_scheduling_config, as: 'driverSchedulingConfig', class: Google::Apis::DataprocV1::DriverSchedulingConfig, decorator: Google::Apis::DataprocV1::DriverSchedulingConfig::Representation
|
1314
|
+
|
1274
1315
|
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
1275
1316
|
|
1276
1317
|
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
|
@@ -1504,6 +1545,17 @@ module Google
|
|
1504
1545
|
end
|
1505
1546
|
end
|
1506
1547
|
|
1548
|
+
class NodeGroup
|
1549
|
+
# @private
|
1550
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1551
|
+
hash :labels, as: 'labels'
|
1552
|
+
property :name, as: 'name'
|
1553
|
+
property :node_group_config, as: 'nodeGroupConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
1554
|
+
|
1555
|
+
collection :roles, as: 'roles'
|
1556
|
+
end
|
1557
|
+
end
|
1558
|
+
|
1507
1559
|
class NodeGroupAffinity
|
1508
1560
|
# @private
|
1509
1561
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1511,6 +1563,22 @@ module Google
|
|
1511
1563
|
end
|
1512
1564
|
end
|
1513
1565
|
|
1566
|
+
class NodeGroupOperationMetadata
|
1567
|
+
# @private
|
1568
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1569
|
+
property :cluster_uuid, as: 'clusterUuid'
|
1570
|
+
property :description, as: 'description'
|
1571
|
+
hash :labels, as: 'labels'
|
1572
|
+
property :node_group_id, as: 'nodeGroupId'
|
1573
|
+
property :operation_type, as: 'operationType'
|
1574
|
+
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
1575
|
+
|
1576
|
+
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
1577
|
+
|
1578
|
+
collection :warnings, as: 'warnings'
|
1579
|
+
end
|
1580
|
+
end
|
1581
|
+
|
1514
1582
|
class NodeInitializationAction
|
1515
1583
|
# @private
|
1516
1584
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1690,6 +1758,15 @@ module Google
|
|
1690
1758
|
end
|
1691
1759
|
end
|
1692
1760
|
|
1761
|
+
class ResizeNodeGroupRequest
|
1762
|
+
# @private
|
1763
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1764
|
+
property :graceful_decommission_timeout, as: 'gracefulDecommissionTimeout'
|
1765
|
+
property :request_id, as: 'requestId'
|
1766
|
+
property :size, as: 'size'
|
1767
|
+
end
|
1768
|
+
end
|
1769
|
+
|
1693
1770
|
class RuntimeConfig
|
1694
1771
|
# @private
|
1695
1772
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1702,6 +1779,10 @@ module Google
|
|
1702
1779
|
class RuntimeInfo
|
1703
1780
|
# @private
|
1704
1781
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1782
|
+
property :approximate_usage, as: 'approximateUsage', class: Google::Apis::DataprocV1::UsageMetrics, decorator: Google::Apis::DataprocV1::UsageMetrics::Representation
|
1783
|
+
|
1784
|
+
property :current_usage, as: 'currentUsage', class: Google::Apis::DataprocV1::UsageSnapshot, decorator: Google::Apis::DataprocV1::UsageSnapshot::Representation
|
1785
|
+
|
1705
1786
|
property :diagnostic_output_uri, as: 'diagnosticOutputUri'
|
1706
1787
|
hash :endpoints, as: 'endpoints'
|
1707
1788
|
property :output_uri, as: 'outputUri'
|
@@ -1932,6 +2013,23 @@ module Google
|
|
1932
2013
|
end
|
1933
2014
|
end
|
1934
2015
|
|
2016
|
+
class UsageMetrics
|
2017
|
+
# @private
|
2018
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2019
|
+
property :milli_dcu_seconds, :numeric_string => true, as: 'milliDcuSeconds'
|
2020
|
+
property :shuffle_storage_gb_seconds, :numeric_string => true, as: 'shuffleStorageGbSeconds'
|
2021
|
+
end
|
2022
|
+
end
|
2023
|
+
|
2024
|
+
class UsageSnapshot
|
2025
|
+
# @private
|
2026
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2027
|
+
property :milli_dcu, :numeric_string => true, as: 'milliDcu'
|
2028
|
+
property :shuffle_storage_gb, :numeric_string => true, as: 'shuffleStorageGb'
|
2029
|
+
property :snapshot_time, as: 'snapshotTime'
|
2030
|
+
end
|
2031
|
+
end
|
2032
|
+
|
1935
2033
|
class ValueValidation
|
1936
2034
|
# @private
|
1937
2035
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -506,6 +506,153 @@ module Google
|
|
506
506
|
execute_or_queue_command(command, &block)
|
507
507
|
end
|
508
508
|
|
509
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
510
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
511
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
512
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
513
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
514
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
515
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
516
|
+
# corresponding to Code.CANCELLED.
|
517
|
+
# @param [String] name
|
518
|
+
# The name of the operation resource to be cancelled.
|
519
|
+
# @param [String] fields
|
520
|
+
# Selector specifying which fields to include in a partial response.
|
521
|
+
# @param [String] quota_user
|
522
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
523
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
524
|
+
# @param [Google::Apis::RequestOptions] options
|
525
|
+
# Request-specific options
|
526
|
+
#
|
527
|
+
# @yield [result, err] Result & error if block supplied
|
528
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
529
|
+
# @yieldparam err [StandardError] error object if request failed
|
530
|
+
#
|
531
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
532
|
+
#
|
533
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
534
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
535
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
536
|
+
def cancel_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
537
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
538
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
539
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
540
|
+
command.params['name'] = name unless name.nil?
|
541
|
+
command.query['fields'] = fields unless fields.nil?
|
542
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
543
|
+
execute_or_queue_command(command, &block)
|
544
|
+
end
|
545
|
+
|
546
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
547
|
+
# longer interested in the operation result. It does not cancel the operation.
|
548
|
+
# If the server doesn't support this method, it returns google.rpc.Code.
|
549
|
+
# UNIMPLEMENTED.
|
550
|
+
# @param [String] name
|
551
|
+
# The name of the operation resource to be deleted.
|
552
|
+
# @param [String] fields
|
553
|
+
# Selector specifying which fields to include in a partial response.
|
554
|
+
# @param [String] quota_user
|
555
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
556
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
557
|
+
# @param [Google::Apis::RequestOptions] options
|
558
|
+
# Request-specific options
|
559
|
+
#
|
560
|
+
# @yield [result, err] Result & error if block supplied
|
561
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
562
|
+
# @yieldparam err [StandardError] error object if request failed
|
563
|
+
#
|
564
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
565
|
+
#
|
566
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
567
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
568
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
569
|
+
def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
570
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
571
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
572
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
573
|
+
command.params['name'] = name unless name.nil?
|
574
|
+
command.query['fields'] = fields unless fields.nil?
|
575
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
576
|
+
execute_or_queue_command(command, &block)
|
577
|
+
end
|
578
|
+
|
579
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
580
|
+
# to poll the operation result at intervals as recommended by the API service.
|
581
|
+
# @param [String] name
|
582
|
+
# The name of the operation resource.
|
583
|
+
# @param [String] fields
|
584
|
+
# Selector specifying which fields to include in a partial response.
|
585
|
+
# @param [String] quota_user
|
586
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
587
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
588
|
+
# @param [Google::Apis::RequestOptions] options
|
589
|
+
# Request-specific options
|
590
|
+
#
|
591
|
+
# @yield [result, err] Result & error if block supplied
|
592
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
593
|
+
# @yieldparam err [StandardError] error object if request failed
|
594
|
+
#
|
595
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
596
|
+
#
|
597
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
598
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
599
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
600
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
601
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
602
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
603
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
604
|
+
command.params['name'] = name unless name.nil?
|
605
|
+
command.query['fields'] = fields unless fields.nil?
|
606
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
607
|
+
execute_or_queue_command(command, &block)
|
608
|
+
end
|
609
|
+
|
610
|
+
# Lists operations that match the specified filter in the request. If the server
|
611
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
612
|
+
# allows API services to override the binding to use different resource name
|
613
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
614
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
615
|
+
# configuration. For backwards compatibility, the default name includes the
|
616
|
+
# operations collection id, however overriding users must ensure the name
|
617
|
+
# binding is the parent resource, without the operations collection id.
|
618
|
+
# @param [String] name
|
619
|
+
# The name of the operation's parent resource.
|
620
|
+
# @param [String] filter
|
621
|
+
# The standard list filter.
|
622
|
+
# @param [Fixnum] page_size
|
623
|
+
# The standard list page size.
|
624
|
+
# @param [String] page_token
|
625
|
+
# The standard list page token.
|
626
|
+
# @param [String] fields
|
627
|
+
# Selector specifying which fields to include in a partial response.
|
628
|
+
# @param [String] quota_user
|
629
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
630
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
631
|
+
# @param [Google::Apis::RequestOptions] options
|
632
|
+
# Request-specific options
|
633
|
+
#
|
634
|
+
# @yield [result, err] Result & error if block supplied
|
635
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
|
636
|
+
# @yieldparam err [StandardError] error object if request failed
|
637
|
+
#
|
638
|
+
# @return [Google::Apis::DataprocV1::ListOperationsResponse]
|
639
|
+
#
|
640
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
641
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
642
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
643
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
644
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
645
|
+
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
646
|
+
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
647
|
+
command.params['name'] = name unless name.nil?
|
648
|
+
command.query['filter'] = filter unless filter.nil?
|
649
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
650
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
651
|
+
command.query['fields'] = fields unless fields.nil?
|
652
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
653
|
+
execute_or_queue_command(command, &block)
|
654
|
+
end
|
655
|
+
|
509
656
|
# Creates new workflow template.
|
510
657
|
# @param [String] parent
|
511
658
|
# Required. The resource name of the region or location, as described in https://
|
@@ -1821,6 +1968,73 @@ module Google
|
|
1821
1968
|
execute_or_queue_command(command, &block)
|
1822
1969
|
end
|
1823
1970
|
|
1971
|
+
# Gets the resource representation for a node group in a cluster.
|
1972
|
+
# @param [String] name
|
1973
|
+
# Required. The name of the node group to retrieve. Format: projects/`project`/
|
1974
|
+
# regions/`region`/clusters/`cluster`/nodeGroups/`nodeGroup`
|
1975
|
+
# @param [String] fields
|
1976
|
+
# Selector specifying which fields to include in a partial response.
|
1977
|
+
# @param [String] quota_user
|
1978
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1979
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1980
|
+
# @param [Google::Apis::RequestOptions] options
|
1981
|
+
# Request-specific options
|
1982
|
+
#
|
1983
|
+
# @yield [result, err] Result & error if block supplied
|
1984
|
+
# @yieldparam result [Google::Apis::DataprocV1::NodeGroup] parsed result object
|
1985
|
+
# @yieldparam err [StandardError] error object if request failed
|
1986
|
+
#
|
1987
|
+
# @return [Google::Apis::DataprocV1::NodeGroup]
|
1988
|
+
#
|
1989
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1990
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1991
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1992
|
+
def get_project_region_cluster_node_group(name, fields: nil, quota_user: nil, options: nil, &block)
|
1993
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
1994
|
+
command.response_representation = Google::Apis::DataprocV1::NodeGroup::Representation
|
1995
|
+
command.response_class = Google::Apis::DataprocV1::NodeGroup
|
1996
|
+
command.params['name'] = name unless name.nil?
|
1997
|
+
command.query['fields'] = fields unless fields.nil?
|
1998
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1999
|
+
execute_or_queue_command(command, &block)
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
# Resizes a node group in a cluster. The returned Operation.metadata is
|
2003
|
+
# NodeGroupOperationMetadata (https://cloud.google.com/dataproc/docs/reference/
|
2004
|
+
# rpc/google.cloud.dataproc.v1#nodegroupoperationmetadata).
|
2005
|
+
# @param [String] name
|
2006
|
+
# Required. The name of the node group to resize. Format: projects/`project`/
|
2007
|
+
# regions/`region`/clusters/`cluster`/nodeGroups/`nodeGroup`
|
2008
|
+
# @param [Google::Apis::DataprocV1::ResizeNodeGroupRequest] resize_node_group_request_object
|
2009
|
+
# @param [String] fields
|
2010
|
+
# Selector specifying which fields to include in a partial response.
|
2011
|
+
# @param [String] quota_user
|
2012
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2013
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2014
|
+
# @param [Google::Apis::RequestOptions] options
|
2015
|
+
# Request-specific options
|
2016
|
+
#
|
2017
|
+
# @yield [result, err] Result & error if block supplied
|
2018
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
2019
|
+
# @yieldparam err [StandardError] error object if request failed
|
2020
|
+
#
|
2021
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
2022
|
+
#
|
2023
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2024
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2025
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2026
|
+
def resize_node_group(name, resize_node_group_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2027
|
+
command = make_simple_command(:post, 'v1/{+name}:resize', options)
|
2028
|
+
command.request_representation = Google::Apis::DataprocV1::ResizeNodeGroupRequest::Representation
|
2029
|
+
command.request_object = resize_node_group_request_object
|
2030
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
2031
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
2032
|
+
command.params['name'] = name unless name.nil?
|
2033
|
+
command.query['fields'] = fields unless fields.nil?
|
2034
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2035
|
+
execute_or_queue_command(command, &block)
|
2036
|
+
end
|
2037
|
+
|
1824
2038
|
# Starts a job cancellation request. To access the job resource after
|
1825
2039
|
# cancellation, call regions/`region`/jobs.list (https://cloud.google.com/
|
1826
2040
|
# dataproc/docs/reference/rest/v1/projects.regions.jobs/list) or regions/`region`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dataproc_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataproc_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.40.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dataproc_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|