google-apis-dataproc_v1 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/lib/google/apis/dataproc_v1/classes.rb +111 -15
- data/lib/google/apis/dataproc_v1/gem_version.rb +3 -3
- data/lib/google/apis/dataproc_v1/representations.rb +34 -0
- data/lib/google/apis/dataproc_v1/service.rb +51 -8
- data/lib/google/apis/dataproc_v1.rb +1 -1
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d30e8ccfda7d6fb1772516a2c32be72e98ab843b57eaffe9694d10cc66c59ac5
|
4
|
+
data.tar.gz: 1a08226168e4164910254669cc8ca20eca8230fe904f6de15f7dd28b751cc83a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5726c387707c723784264b9b9fdebe028d461a06c329d0affc7faedbe77c886ac9261ff1fda235231f80bda489fa5d20d2303f98a05b5b311a538b559191f51c
|
7
|
+
data.tar.gz: 52de3fe053ecfb2f8aff5f14bb75a47ca60c0c0b7392da73dd32b4cc60810fafaf6e89b1de6190685abba95859fe21c62fc35d1f2c6ab097f4b8c219c82c8dcc
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-dataproc_v1
|
2
2
|
|
3
|
+
### v0.14.0 (2021-09-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210902
|
6
|
+
|
7
|
+
### v0.13.0 (2021-09-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210819
|
10
|
+
|
11
|
+
### v0.12.0 (2021-07-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210625
|
14
|
+
* Regenerated using generator version 0.4.0
|
15
|
+
|
16
|
+
### v0.11.0 (2021-06-25)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210622
|
19
|
+
|
3
20
|
### v0.10.0 (2021-06-04)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210521
|
@@ -372,8 +372,8 @@ module Google
|
|
372
372
|
end
|
373
373
|
end
|
374
374
|
|
375
|
-
# Describes the identifying information, config, and status of a
|
376
|
-
#
|
375
|
+
# Describes the identifying information, config, and status of a Dataproc
|
376
|
+
# cluster
|
377
377
|
class Cluster
|
378
378
|
include Google::Apis::Core::Hashable
|
379
379
|
|
@@ -456,9 +456,10 @@ module Google
|
|
456
456
|
# Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for your
|
457
457
|
# cluster's staging bucket according to the Compute Engine zone where your
|
458
458
|
# cluster is deployed, and then create and manage this project-level, per-
|
459
|
-
# location bucket (see Dataproc staging
|
460
|
-
# dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field
|
461
|
-
# requires a Cloud Storage bucket name, not a URI to a Cloud Storage
|
459
|
+
# location bucket (see Dataproc staging and temp buckets (https://cloud.google.
|
460
|
+
# com/dataproc/docs/concepts/configuring-clusters/staging-bucket)). This field
|
461
|
+
# requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage
|
462
|
+
# bucket.
|
462
463
|
# Corresponds to the JSON property `configBucket`
|
463
464
|
# @return [String]
|
464
465
|
attr_accessor :config_bucket
|
@@ -479,7 +480,7 @@ module Google
|
|
479
480
|
# @return [Google::Apis::DataprocV1::GceClusterConfig]
|
480
481
|
attr_accessor :gce_cluster_config
|
481
482
|
|
482
|
-
# The GKE config
|
483
|
+
# The cluster's GKE config.
|
483
484
|
# Corresponds to the JSON property `gkeClusterConfig`
|
484
485
|
# @return [Google::Apis::DataprocV1::GkeClusterConfig]
|
485
486
|
attr_accessor :gke_cluster_config
|
@@ -533,8 +534,10 @@ module Google
|
|
533
534
|
# your cluster's temp bucket according to the Compute Engine zone where your
|
534
535
|
# cluster is deployed, and then create and manage this project-level, per-
|
535
536
|
# location bucket. The default bucket has a TTL of 90 days, but you can use any
|
536
|
-
# TTL (or none) if you specify a bucket
|
537
|
-
#
|
537
|
+
# TTL (or none) if you specify a bucket (see Dataproc staging and temp buckets (
|
538
|
+
# https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-
|
539
|
+
# bucket)). This field requires a Cloud Storage bucket name, not a gs://... URI
|
540
|
+
# to a Cloud Storage bucket.
|
538
541
|
# Corresponds to the JSON property `tempBucket`
|
539
542
|
# @return [String]
|
540
543
|
attr_accessor :temp_bucket
|
@@ -1181,7 +1184,7 @@ module Google
|
|
1181
1184
|
end
|
1182
1185
|
end
|
1183
1186
|
|
1184
|
-
# The GKE config
|
1187
|
+
# The cluster's GKE config.
|
1185
1188
|
class GkeClusterConfig
|
1186
1189
|
include Google::Apis::Core::Hashable
|
1187
1190
|
|
@@ -2704,7 +2707,7 @@ module Google
|
|
2704
2707
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
2705
2708
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
2706
2709
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
2707
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
2710
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
2708
2711
|
# description of IAM and its features, see the IAM documentation (https://cloud.
|
2709
2712
|
# google.com/iam/docs/).
|
2710
2713
|
class Policy
|
@@ -2942,6 +2945,38 @@ module Google
|
|
2942
2945
|
end
|
2943
2946
|
end
|
2944
2947
|
|
2948
|
+
# A request to repair a cluster.
|
2949
|
+
class RepairClusterRequest
|
2950
|
+
include Google::Apis::Core::Hashable
|
2951
|
+
|
2952
|
+
# Optional. Specifying the cluster_uuid means the RPC will fail (with error
|
2953
|
+
# NOT_FOUND) if a cluster with the specified UUID does not exist.
|
2954
|
+
# Corresponds to the JSON property `clusterUuid`
|
2955
|
+
# @return [String]
|
2956
|
+
attr_accessor :cluster_uuid
|
2957
|
+
|
2958
|
+
# Optional. A unique ID used to identify the request. If the server receives two
|
2959
|
+
# RepairClusterRequests with the same ID, the second request is ignored, and the
|
2960
|
+
# first google.longrunning.Operation created and stored in the backend is
|
2961
|
+
# returned.Recommendation: Set this value to a UUID (https://en.wikipedia.org/
|
2962
|
+
# wiki/Universally_unique_identifier).The ID must contain only letters (a-z, A-Z)
|
2963
|
+
# , numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
2964
|
+
# characters.
|
2965
|
+
# Corresponds to the JSON property `requestId`
|
2966
|
+
# @return [String]
|
2967
|
+
attr_accessor :request_id
|
2968
|
+
|
2969
|
+
def initialize(**args)
|
2970
|
+
update!(**args)
|
2971
|
+
end
|
2972
|
+
|
2973
|
+
# Update properties of this object
|
2974
|
+
def update!(**args)
|
2975
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
2976
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
2977
|
+
end
|
2978
|
+
end
|
2979
|
+
|
2945
2980
|
# Reservation Affinity for consuming Zonal reservation.
|
2946
2981
|
class ReservationAffinity
|
2947
2982
|
include Google::Apis::Core::Hashable
|
@@ -2999,6 +3034,67 @@ module Google
|
|
2999
3034
|
end
|
3000
3035
|
end
|
3001
3036
|
|
3037
|
+
# Metadata describing the Session operation.
|
3038
|
+
class SessionOperationMetadata
|
3039
|
+
include Google::Apis::Core::Hashable
|
3040
|
+
|
3041
|
+
# The time when the operation was created.
|
3042
|
+
# Corresponds to the JSON property `createTime`
|
3043
|
+
# @return [String]
|
3044
|
+
attr_accessor :create_time
|
3045
|
+
|
3046
|
+
# Short description of the operation.
|
3047
|
+
# Corresponds to the JSON property `description`
|
3048
|
+
# @return [String]
|
3049
|
+
attr_accessor :description
|
3050
|
+
|
3051
|
+
# The time when the operation was finished.
|
3052
|
+
# Corresponds to the JSON property `doneTime`
|
3053
|
+
# @return [String]
|
3054
|
+
attr_accessor :done_time
|
3055
|
+
|
3056
|
+
# Labels associated with the operation.
|
3057
|
+
# Corresponds to the JSON property `labels`
|
3058
|
+
# @return [Hash<String,String>]
|
3059
|
+
attr_accessor :labels
|
3060
|
+
|
3061
|
+
# The operation type.
|
3062
|
+
# Corresponds to the JSON property `operationType`
|
3063
|
+
# @return [String]
|
3064
|
+
attr_accessor :operation_type
|
3065
|
+
|
3066
|
+
# Name of the session for the operation.
|
3067
|
+
# Corresponds to the JSON property `session`
|
3068
|
+
# @return [String]
|
3069
|
+
attr_accessor :session
|
3070
|
+
|
3071
|
+
# Session UUID for the operation.
|
3072
|
+
# Corresponds to the JSON property `sessionUuid`
|
3073
|
+
# @return [String]
|
3074
|
+
attr_accessor :session_uuid
|
3075
|
+
|
3076
|
+
# Warnings encountered during operation execution.
|
3077
|
+
# Corresponds to the JSON property `warnings`
|
3078
|
+
# @return [Array<String>]
|
3079
|
+
attr_accessor :warnings
|
3080
|
+
|
3081
|
+
def initialize(**args)
|
3082
|
+
update!(**args)
|
3083
|
+
end
|
3084
|
+
|
3085
|
+
# Update properties of this object
|
3086
|
+
def update!(**args)
|
3087
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
3088
|
+
@description = args[:description] if args.key?(:description)
|
3089
|
+
@done_time = args[:done_time] if args.key?(:done_time)
|
3090
|
+
@labels = args[:labels] if args.key?(:labels)
|
3091
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
3092
|
+
@session = args[:session] if args.key?(:session)
|
3093
|
+
@session_uuid = args[:session_uuid] if args.key?(:session_uuid)
|
3094
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
3095
|
+
end
|
3096
|
+
end
|
3097
|
+
|
3002
3098
|
# Request message for SetIamPolicy method.
|
3003
3099
|
class SetIamPolicyRequest
|
3004
3100
|
include Google::Apis::Core::Hashable
|
@@ -3027,7 +3123,7 @@ module Google
|
|
3027
3123
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
3028
3124
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
3029
3125
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
3030
|
-
# timestamp('2020-10-01T00:00:00.000Z')
|
3126
|
+
# timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
|
3031
3127
|
# description of IAM and its features, see the IAM documentation (https://cloud.
|
3032
3128
|
# google.com/iam/docs/).
|
3033
3129
|
# Corresponds to the JSON property `policy`
|
@@ -3314,13 +3410,13 @@ module Google
|
|
3314
3410
|
# @return [String]
|
3315
3411
|
attr_accessor :cluster_uuid
|
3316
3412
|
|
3317
|
-
# Optional. A unique
|
3413
|
+
# Optional. A unique ID used to identify the request. If the server receives two
|
3318
3414
|
# StartClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
3319
3415
|
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s with
|
3320
3416
|
# the same id, then the second request will be ignored and the first google.
|
3321
3417
|
# longrunning.Operation created and stored in the backend is returned.
|
3322
3418
|
# Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
|
3323
|
-
# Universally_unique_identifier).The
|
3419
|
+
# Universally_unique_identifier).The ID must contain only letters (a-z, A-Z),
|
3324
3420
|
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
3325
3421
|
# characters.
|
3326
3422
|
# Corresponds to the JSON property `requestId`
|
@@ -3387,13 +3483,13 @@ module Google
|
|
3387
3483
|
# @return [String]
|
3388
3484
|
attr_accessor :cluster_uuid
|
3389
3485
|
|
3390
|
-
# Optional. A unique
|
3486
|
+
# Optional. A unique ID used to identify the request. If the server receives two
|
3391
3487
|
# StopClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
3392
3488
|
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s with
|
3393
3489
|
# the same id, then the second request will be ignored and the first google.
|
3394
3490
|
# longrunning.Operation created and stored in the backend is returned.
|
3395
3491
|
# Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
|
3396
|
-
# Universally_unique_identifier).The
|
3492
|
+
# Universally_unique_identifier).The ID must contain only letters (a-z, A-Z),
|
3397
3493
|
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
3398
3494
|
# characters.
|
3399
3495
|
# Corresponds to the JSON property `requestId`
|
@@ -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.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210902"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -412,6 +412,12 @@ module Google
|
|
412
412
|
include Google::Apis::Core::JsonObjectSupport
|
413
413
|
end
|
414
414
|
|
415
|
+
class RepairClusterRequest
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
415
421
|
class ReservationAffinity
|
416
422
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
423
|
|
@@ -424,6 +430,12 @@ module Google
|
|
424
430
|
include Google::Apis::Core::JsonObjectSupport
|
425
431
|
end
|
426
432
|
|
433
|
+
class SessionOperationMetadata
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
427
439
|
class SetIamPolicyRequest
|
428
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
441
|
|
@@ -1268,6 +1280,14 @@ module Google
|
|
1268
1280
|
end
|
1269
1281
|
end
|
1270
1282
|
|
1283
|
+
class RepairClusterRequest
|
1284
|
+
# @private
|
1285
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1286
|
+
property :cluster_uuid, as: 'clusterUuid'
|
1287
|
+
property :request_id, as: 'requestId'
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
|
1271
1291
|
class ReservationAffinity
|
1272
1292
|
# @private
|
1273
1293
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1287,6 +1307,20 @@ module Google
|
|
1287
1307
|
end
|
1288
1308
|
end
|
1289
1309
|
|
1310
|
+
class SessionOperationMetadata
|
1311
|
+
# @private
|
1312
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1313
|
+
property :create_time, as: 'createTime'
|
1314
|
+
property :description, as: 'description'
|
1315
|
+
property :done_time, as: 'doneTime'
|
1316
|
+
hash :labels, as: 'labels'
|
1317
|
+
property :operation_type, as: 'operationType'
|
1318
|
+
property :session, as: 'session'
|
1319
|
+
property :session_uuid, as: 'sessionUuid'
|
1320
|
+
collection :warnings, as: 'warnings'
|
1321
|
+
end
|
1322
|
+
end
|
1323
|
+
|
1290
1324
|
class SetIamPolicyRequest
|
1291
1325
|
# @private
|
1292
1326
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1079,14 +1079,16 @@ module Google
|
|
1079
1079
|
# @param [String] region
|
1080
1080
|
# Required. The Dataproc region in which to handle the request.
|
1081
1081
|
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
1082
|
+
# @param [String] action_on_failed_primary_workers
|
1083
|
+
# Optional. Failure action when primary worker creation fails.
|
1082
1084
|
# @param [String] request_id
|
1083
|
-
# Optional. A unique
|
1085
|
+
# Optional. A unique ID used to identify the request. If the server receives two
|
1084
1086
|
# CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
1085
1087
|
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s with
|
1086
1088
|
# the same id, then the second request will be ignored and the first google.
|
1087
1089
|
# longrunning.Operation created and stored in the backend is returned.It is
|
1088
1090
|
# recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
|
1089
|
-
# Universally_unique_identifier).The
|
1091
|
+
# Universally_unique_identifier).The ID must contain only letters (a-z, A-Z),
|
1090
1092
|
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
1091
1093
|
# characters.
|
1092
1094
|
# @param [String] fields
|
@@ -1106,7 +1108,7 @@ module Google
|
|
1106
1108
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1107
1109
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1108
1110
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1109
|
-
def create_cluster(project_id, region, cluster_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1111
|
+
def create_cluster(project_id, region, cluster_object = nil, action_on_failed_primary_workers: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1110
1112
|
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
1111
1113
|
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
1112
1114
|
command.request_object = cluster_object
|
@@ -1114,6 +1116,7 @@ module Google
|
|
1114
1116
|
command.response_class = Google::Apis::DataprocV1::Operation
|
1115
1117
|
command.params['projectId'] = project_id unless project_id.nil?
|
1116
1118
|
command.params['region'] = region unless region.nil?
|
1119
|
+
command.query['actionOnFailedPrimaryWorkers'] = action_on_failed_primary_workers unless action_on_failed_primary_workers.nil?
|
1117
1120
|
command.query['requestId'] = request_id unless request_id.nil?
|
1118
1121
|
command.query['fields'] = fields unless fields.nil?
|
1119
1122
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1134,13 +1137,13 @@ module Google
|
|
1134
1137
|
# Optional. Specifying the cluster_uuid means the RPC should fail (with error
|
1135
1138
|
# NOT_FOUND) if cluster with specified UUID does not exist.
|
1136
1139
|
# @param [String] request_id
|
1137
|
-
# Optional. A unique
|
1140
|
+
# Optional. A unique ID used to identify the request. If the server receives two
|
1138
1141
|
# DeleteClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
1139
1142
|
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s with
|
1140
1143
|
# the same id, then the second request will be ignored and the first google.
|
1141
1144
|
# longrunning.Operation created and stored in the backend is returned.It is
|
1142
1145
|
# recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
|
1143
|
-
# Universally_unique_identifier).The
|
1146
|
+
# Universally_unique_identifier).The ID must contain only letters (a-z, A-Z),
|
1144
1147
|
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
1145
1148
|
# characters.
|
1146
1149
|
# @param [String] fields
|
@@ -1388,7 +1391,8 @@ module Google
|
|
1388
1391
|
|
1389
1392
|
# Updates a cluster in a project. The returned Operation.metadata will be
|
1390
1393
|
# ClusterOperationMetadata (https://cloud.google.com/dataproc/docs/reference/rpc/
|
1391
|
-
# google.cloud.dataproc.v1#clusteroperationmetadata).
|
1394
|
+
# google.cloud.dataproc.v1#clusteroperationmetadata). The cluster must be in a
|
1395
|
+
# RUNNING state or an error is returned.
|
1392
1396
|
# @param [String] project_id
|
1393
1397
|
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
1394
1398
|
# @param [String] region
|
@@ -1406,13 +1410,13 @@ module Google
|
|
1406
1410
|
# buffers/docs/proto3#json)).Only supported on Dataproc image versions 1.2 and
|
1407
1411
|
# higher.
|
1408
1412
|
# @param [String] request_id
|
1409
|
-
# Optional. A unique
|
1413
|
+
# Optional. A unique ID used to identify the request. If the server receives two
|
1410
1414
|
# UpdateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
1411
1415
|
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s with
|
1412
1416
|
# the same id, then the second request will be ignored and the first google.
|
1413
1417
|
# longrunning.Operation created and stored in the backend is returned.It is
|
1414
1418
|
# recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
|
1415
|
-
# Universally_unique_identifier).The
|
1419
|
+
# Universally_unique_identifier).The ID must contain only letters (a-z, A-Z),
|
1416
1420
|
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
1417
1421
|
# characters.
|
1418
1422
|
# @param [String] update_mask
|
@@ -1463,6 +1467,45 @@ module Google
|
|
1463
1467
|
execute_or_queue_command(command, &block)
|
1464
1468
|
end
|
1465
1469
|
|
1470
|
+
# Repairs a cluster.
|
1471
|
+
# @param [String] project_id
|
1472
|
+
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
1473
|
+
# @param [String] region
|
1474
|
+
# Required. The Dataproc region in which to handle the request.
|
1475
|
+
# @param [String] cluster_name
|
1476
|
+
# Required. The cluster name.
|
1477
|
+
# @param [Google::Apis::DataprocV1::RepairClusterRequest] repair_cluster_request_object
|
1478
|
+
# @param [String] fields
|
1479
|
+
# Selector specifying which fields to include in a partial response.
|
1480
|
+
# @param [String] quota_user
|
1481
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1482
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1483
|
+
# @param [Google::Apis::RequestOptions] options
|
1484
|
+
# Request-specific options
|
1485
|
+
#
|
1486
|
+
# @yield [result, err] Result & error if block supplied
|
1487
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
1488
|
+
# @yieldparam err [StandardError] error object if request failed
|
1489
|
+
#
|
1490
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
1491
|
+
#
|
1492
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1493
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1494
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1495
|
+
def repair_cluster(project_id, region, cluster_name, repair_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1496
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:repair', options)
|
1497
|
+
command.request_representation = Google::Apis::DataprocV1::RepairClusterRequest::Representation
|
1498
|
+
command.request_object = repair_cluster_request_object
|
1499
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
1500
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
1501
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
1502
|
+
command.params['region'] = region unless region.nil?
|
1503
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
1504
|
+
command.query['fields'] = fields unless fields.nil?
|
1505
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1506
|
+
execute_or_queue_command(command, &block)
|
1507
|
+
end
|
1508
|
+
|
1466
1509
|
# Sets the access control policy on the specified resource. Replaces any
|
1467
1510
|
# existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
|
1468
1511
|
# errors.
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# This is NOT the gem version.
|
30
30
|
VERSION = 'V1'
|
31
31
|
|
32
|
-
# See, edit, configure, and delete your Google Cloud
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
33
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.14.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: 2021-
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud Dataproc API V1. Simple REST
|
28
34
|
clients are Ruby client libraries that provide access to Google services via their
|
29
35
|
HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dataproc_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.14.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dataproc_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|