google-apis-dataproc_v1 0.1.0 → 0.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ad60b8ea6621ba81b61c3d6222291fc5e2960e83624fa95de3b67ce6ce926e5
|
4
|
+
data.tar.gz: 4d6b4683ad69abf1df73ad9272c0eb22a385034f7ea09dbfb15b581acfb6cb16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6e08c55c8dcd7b3facff58d9f5b61955c05696653deb986f63eaca71a279483588837d361c25a15c01ac38d7e99ebe84da58048d1a1a736a0de5214e306f60d
|
7
|
+
data.tar.gz: d8f94275d6747dcefeb098b991c3eeac1e0bd8992859ca9e2451ffd0cc5453dd19f1ac8d74e0f0ea1303b125aaa4ae1e87eee79964230a440e5f1804f97d7e62
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-dataproc_v1
|
2
2
|
|
3
|
+
### v0.2.0 (2021-02-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210128
|
6
|
+
* Regenerated using generator version 0.1.2
|
7
|
+
|
3
8
|
### v0.1.0 (2021-01-07)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20201229
|
@@ -440,6 +440,11 @@ module Google
|
|
440
440
|
# @return [Google::Apis::DataprocV1::InstanceGroupConfig]
|
441
441
|
attr_accessor :master_config
|
442
442
|
|
443
|
+
# Specifies a Metastore configuration.
|
444
|
+
# Corresponds to the JSON property `metastoreConfig`
|
445
|
+
# @return [Google::Apis::DataprocV1::MetastoreConfig]
|
446
|
+
attr_accessor :metastore_config
|
447
|
+
|
443
448
|
# The config settings for Compute Engine resources in an instance group, such as
|
444
449
|
# a master or worker group.
|
445
450
|
# Corresponds to the JSON property `secondaryWorkerConfig`
|
@@ -488,6 +493,7 @@ module Google
|
|
488
493
|
@initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
|
489
494
|
@lifecycle_config = args[:lifecycle_config] if args.key?(:lifecycle_config)
|
490
495
|
@master_config = args[:master_config] if args.key?(:master_config)
|
496
|
+
@metastore_config = args[:metastore_config] if args.key?(:metastore_config)
|
491
497
|
@secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
|
492
498
|
@security_config = args[:security_config] if args.key?(:security_config)
|
493
499
|
@software_config = args[:software_config] if args.key?(:software_config)
|
@@ -762,8 +768,9 @@ module Google
|
|
762
768
|
attr_accessor :boot_disk_size_gb
|
763
769
|
|
764
770
|
# Optional. Type of the boot disk (default is "pd-standard"). Valid values: "pd-
|
765
|
-
#
|
766
|
-
# Hard Disk Drive).
|
771
|
+
# balanced" (Persistent Disk Balanced Solid State Drive), "pd-ssd" (Persistent
|
772
|
+
# Disk Solid State Drive), or "pd-standard" (Persistent Disk Hard Disk Drive).
|
773
|
+
# See Disk types (https://cloud.google.com/compute/docs/disks#disk-types).
|
767
774
|
# Corresponds to the JSON property `bootDiskType`
|
768
775
|
# @return [String]
|
769
776
|
attr_accessor :boot_disk_type
|
@@ -982,7 +989,8 @@ module Google
|
|
982
989
|
# @return [Array<String>]
|
983
990
|
attr_accessor :service_account_scopes
|
984
991
|
|
985
|
-
# Shielded Instance Config for clusters using
|
992
|
+
# Shielded Instance Config for clusters using Compute Engine Shielded VMs (https:
|
993
|
+
# //cloud.google.com/security/shielded-cloud/shielded-vm).
|
986
994
|
# Corresponds to the JSON property `shieldedInstanceConfig`
|
987
995
|
# @return [Google::Apis::DataprocV1::ShieldedInstanceConfig]
|
988
996
|
attr_accessor :shielded_instance_config
|
@@ -1923,7 +1931,7 @@ module Google
|
|
1923
1931
|
# Optional. The duration to keep the cluster alive while idling (when no jobs
|
1924
1932
|
# are running). Passing this threshold will cause the cluster to be deleted.
|
1925
1933
|
# Minimum value is 5 minutes; maximum value is 14 days (see JSON representation
|
1926
|
-
# of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json).
|
1934
|
+
# of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
|
1927
1935
|
# Corresponds to the JSON property `idleDeleteTtl`
|
1928
1936
|
# @return [String]
|
1929
1937
|
attr_accessor :idle_delete_ttl
|
@@ -2165,6 +2173,26 @@ module Google
|
|
2165
2173
|
end
|
2166
2174
|
end
|
2167
2175
|
|
2176
|
+
# Specifies a Metastore configuration.
|
2177
|
+
class MetastoreConfig
|
2178
|
+
include Google::Apis::Core::Hashable
|
2179
|
+
|
2180
|
+
# Required. Resource name of an existing Dataproc Metastore service.Example:
|
2181
|
+
# projects/[project_id]/locations/[dataproc_region]/services/[service-name]
|
2182
|
+
# Corresponds to the JSON property `dataprocMetastoreService`
|
2183
|
+
# @return [String]
|
2184
|
+
attr_accessor :dataproc_metastore_service
|
2185
|
+
|
2186
|
+
def initialize(**args)
|
2187
|
+
update!(**args)
|
2188
|
+
end
|
2189
|
+
|
2190
|
+
# Update properties of this object
|
2191
|
+
def update!(**args)
|
2192
|
+
@dataproc_metastore_service = args[:dataproc_metastore_service] if args.key?(:dataproc_metastore_service)
|
2193
|
+
end
|
2194
|
+
end
|
2195
|
+
|
2168
2196
|
# Node Group Affinity for clusters using sole-tenant node groups.
|
2169
2197
|
class NodeGroupAffinity
|
2170
2198
|
include Google::Apis::Core::Hashable
|
@@ -2835,7 +2863,8 @@ module Google
|
|
2835
2863
|
end
|
2836
2864
|
end
|
2837
2865
|
|
2838
|
-
# Shielded Instance Config for clusters using
|
2866
|
+
# Shielded Instance Config for clusters using Compute Engine Shielded VMs (https:
|
2867
|
+
# //cloud.google.com/security/shielded-cloud/shielded-vm).
|
2839
2868
|
class ShieldedInstanceConfig
|
2840
2869
|
include Google::Apis::Core::Hashable
|
2841
2870
|
|
@@ -3094,6 +3123,40 @@ module Google
|
|
3094
3123
|
end
|
3095
3124
|
end
|
3096
3125
|
|
3126
|
+
# A request to start a cluster.
|
3127
|
+
class StartClusterRequest
|
3128
|
+
include Google::Apis::Core::Hashable
|
3129
|
+
|
3130
|
+
# Optional. Specifying the cluster_uuid means the RPC will fail (with error
|
3131
|
+
# NOT_FOUND) if a cluster with the specified UUID does not exist.
|
3132
|
+
# Corresponds to the JSON property `clusterUuid`
|
3133
|
+
# @return [String]
|
3134
|
+
attr_accessor :cluster_uuid
|
3135
|
+
|
3136
|
+
# Optional. A unique id used to identify the request. If the server receives two
|
3137
|
+
# StartClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
3138
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s with
|
3139
|
+
# the same id, then the second request will be ignored and the first google.
|
3140
|
+
# longrunning.Operation created and stored in the backend is returned.
|
3141
|
+
# Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
|
3142
|
+
# Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
|
3143
|
+
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
3144
|
+
# characters.
|
3145
|
+
# Corresponds to the JSON property `requestId`
|
3146
|
+
# @return [String]
|
3147
|
+
attr_accessor :request_id
|
3148
|
+
|
3149
|
+
def initialize(**args)
|
3150
|
+
update!(**args)
|
3151
|
+
end
|
3152
|
+
|
3153
|
+
# Update properties of this object
|
3154
|
+
def update!(**args)
|
3155
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
3156
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
3157
|
+
end
|
3158
|
+
end
|
3159
|
+
|
3097
3160
|
# The Status type defines a logical error model that is suitable for different
|
3098
3161
|
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
3099
3162
|
# (https://github.com/grpc). Each Status message contains three pieces of data:
|
@@ -3133,6 +3196,40 @@ module Google
|
|
3133
3196
|
end
|
3134
3197
|
end
|
3135
3198
|
|
3199
|
+
# A request to stop a cluster.
|
3200
|
+
class StopClusterRequest
|
3201
|
+
include Google::Apis::Core::Hashable
|
3202
|
+
|
3203
|
+
# Optional. Specifying the cluster_uuid means the RPC will fail (with error
|
3204
|
+
# NOT_FOUND) if a cluster with the specified UUID does not exist.
|
3205
|
+
# Corresponds to the JSON property `clusterUuid`
|
3206
|
+
# @return [String]
|
3207
|
+
attr_accessor :cluster_uuid
|
3208
|
+
|
3209
|
+
# Optional. A unique id used to identify the request. If the server receives two
|
3210
|
+
# StopClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
3211
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s with
|
3212
|
+
# the same id, then the second request will be ignored and the first google.
|
3213
|
+
# longrunning.Operation created and stored in the backend is returned.
|
3214
|
+
# Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
|
3215
|
+
# Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
|
3216
|
+
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
3217
|
+
# characters.
|
3218
|
+
# Corresponds to the JSON property `requestId`
|
3219
|
+
# @return [String]
|
3220
|
+
attr_accessor :request_id
|
3221
|
+
|
3222
|
+
def initialize(**args)
|
3223
|
+
update!(**args)
|
3224
|
+
end
|
3225
|
+
|
3226
|
+
# Update properties of this object
|
3227
|
+
def update!(**args)
|
3228
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
3229
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
3230
|
+
end
|
3231
|
+
end
|
3232
|
+
|
3136
3233
|
# A request to submit a job.
|
3137
3234
|
class SubmitJobRequest
|
3138
3235
|
include Google::Apis::Core::Hashable
|
@@ -3143,12 +3240,13 @@ module Google
|
|
3143
3240
|
attr_accessor :job
|
3144
3241
|
|
3145
3242
|
# Optional. A unique id used to identify the request. If the server receives two
|
3146
|
-
# SubmitJobRequest
|
3147
|
-
#
|
3148
|
-
#
|
3149
|
-
#
|
3150
|
-
#
|
3151
|
-
#
|
3243
|
+
# SubmitJobRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.
|
3244
|
+
# cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s with the same id,
|
3245
|
+
# then the second request will be ignored and the first Job created and stored
|
3246
|
+
# in the backend is returned.It is recommended to always set this value to a
|
3247
|
+
# UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
|
3248
|
+
# contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
|
3249
|
+
# ). The maximum length is 40 characters.
|
3152
3250
|
# Corresponds to the JSON property `requestId`
|
3153
3251
|
# @return [String]
|
3154
3252
|
attr_accessor :request_id
|
@@ -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.2.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.1.
|
22
|
+
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210128"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -310,6 +310,12 @@ module Google
|
|
310
310
|
include Google::Apis::Core::JsonObjectSupport
|
311
311
|
end
|
312
312
|
|
313
|
+
class MetastoreConfig
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
313
319
|
class NodeGroupAffinity
|
314
320
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
321
|
|
@@ -424,12 +430,24 @@ module Google
|
|
424
430
|
include Google::Apis::Core::JsonObjectSupport
|
425
431
|
end
|
426
432
|
|
433
|
+
class StartClusterRequest
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
427
439
|
class Status
|
428
440
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
441
|
|
430
442
|
include Google::Apis::Core::JsonObjectSupport
|
431
443
|
end
|
432
444
|
|
445
|
+
class StopClusterRequest
|
446
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
447
|
+
|
448
|
+
include Google::Apis::Core::JsonObjectSupport
|
449
|
+
end
|
450
|
+
|
433
451
|
class SubmitJobRequest
|
434
452
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
453
|
|
@@ -597,6 +615,8 @@ module Google
|
|
597
615
|
|
598
616
|
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
599
617
|
|
618
|
+
property :metastore_config, as: 'metastoreConfig', class: Google::Apis::DataprocV1::MetastoreConfig, decorator: Google::Apis::DataprocV1::MetastoreConfig::Representation
|
619
|
+
|
600
620
|
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
601
621
|
|
602
622
|
property :security_config, as: 'securityConfig', class: Google::Apis::DataprocV1::SecurityConfig, decorator: Google::Apis::DataprocV1::SecurityConfig::Representation
|
@@ -1028,6 +1048,13 @@ module Google
|
|
1028
1048
|
end
|
1029
1049
|
end
|
1030
1050
|
|
1051
|
+
class MetastoreConfig
|
1052
|
+
# @private
|
1053
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1054
|
+
property :dataproc_metastore_service, as: 'dataprocMetastoreService'
|
1055
|
+
end
|
1056
|
+
end
|
1057
|
+
|
1031
1058
|
class NodeGroupAffinity
|
1032
1059
|
# @private
|
1033
1060
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1246,6 +1273,14 @@ module Google
|
|
1246
1273
|
end
|
1247
1274
|
end
|
1248
1275
|
|
1276
|
+
class StartClusterRequest
|
1277
|
+
# @private
|
1278
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1279
|
+
property :cluster_uuid, as: 'clusterUuid'
|
1280
|
+
property :request_id, as: 'requestId'
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1249
1284
|
class Status
|
1250
1285
|
# @private
|
1251
1286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1255,6 +1290,14 @@ module Google
|
|
1255
1290
|
end
|
1256
1291
|
end
|
1257
1292
|
|
1293
|
+
class StopClusterRequest
|
1294
|
+
# @private
|
1295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1296
|
+
property :cluster_uuid, as: 'clusterUuid'
|
1297
|
+
property :request_id, as: 'requestId'
|
1298
|
+
end
|
1299
|
+
end
|
1300
|
+
|
1258
1301
|
class SubmitJobRequest
|
1259
1302
|
# @private
|
1260
1303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1081,12 +1081,14 @@ module Google
|
|
1081
1081
|
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
1082
1082
|
# @param [String] request_id
|
1083
1083
|
# Optional. A unique id used to identify the request. If the server receives two
|
1084
|
-
# CreateClusterRequest
|
1085
|
-
#
|
1086
|
-
# the
|
1087
|
-
#
|
1088
|
-
#
|
1089
|
-
# ).
|
1084
|
+
# CreateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
1085
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s with
|
1086
|
+
# the same id, then the second request will be ignored and the first google.
|
1087
|
+
# longrunning.Operation created and stored in the backend is returned.It is
|
1088
|
+
# recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
|
1089
|
+
# Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
|
1090
|
+
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
1091
|
+
# characters.
|
1090
1092
|
# @param [String] fields
|
1091
1093
|
# Selector specifying which fields to include in a partial response.
|
1092
1094
|
# @param [String] quota_user
|
@@ -1133,12 +1135,14 @@ module Google
|
|
1133
1135
|
# NOT_FOUND) if cluster with specified UUID does not exist.
|
1134
1136
|
# @param [String] request_id
|
1135
1137
|
# Optional. A unique id used to identify the request. If the server receives two
|
1136
|
-
# DeleteClusterRequest
|
1137
|
-
#
|
1138
|
-
# the
|
1139
|
-
#
|
1140
|
-
#
|
1141
|
-
# ).
|
1138
|
+
# DeleteClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
1139
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s with
|
1140
|
+
# the same id, then the second request will be ignored and the first google.
|
1141
|
+
# longrunning.Operation created and stored in the backend is returned.It is
|
1142
|
+
# recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
|
1143
|
+
# Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
|
1144
|
+
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
1145
|
+
# characters.
|
1142
1146
|
# @param [String] fields
|
1143
1147
|
# Selector specifying which fields to include in a partial response.
|
1144
1148
|
# @param [String] quota_user
|
@@ -1403,12 +1407,14 @@ module Google
|
|
1403
1407
|
# higher.
|
1404
1408
|
# @param [String] request_id
|
1405
1409
|
# Optional. A unique id used to identify the request. If the server receives two
|
1406
|
-
# UpdateClusterRequest
|
1407
|
-
#
|
1408
|
-
# the
|
1409
|
-
#
|
1410
|
-
#
|
1411
|
-
# ).
|
1410
|
+
# UpdateClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
|
1411
|
+
# google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s with
|
1412
|
+
# the same id, then the second request will be ignored and the first google.
|
1413
|
+
# longrunning.Operation created and stored in the backend is returned.It is
|
1414
|
+
# recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
|
1415
|
+
# Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
|
1416
|
+
# numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
|
1417
|
+
# characters.
|
1412
1418
|
# @param [String] update_mask
|
1413
1419
|
# Required. Specifies the path, relative to Cluster, of the field to update. For
|
1414
1420
|
# example, to change the number of workers in a cluster to 5, the update_mask
|
@@ -1493,6 +1499,84 @@ module Google
|
|
1493
1499
|
execute_or_queue_command(command, &block)
|
1494
1500
|
end
|
1495
1501
|
|
1502
|
+
# Starts a cluster in a project.
|
1503
|
+
# @param [String] project_id
|
1504
|
+
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
1505
|
+
# @param [String] region
|
1506
|
+
# Required. The Dataproc region in which to handle the request.
|
1507
|
+
# @param [String] cluster_name
|
1508
|
+
# Required. The cluster name.
|
1509
|
+
# @param [Google::Apis::DataprocV1::StartClusterRequest] start_cluster_request_object
|
1510
|
+
# @param [String] fields
|
1511
|
+
# Selector specifying which fields to include in a partial response.
|
1512
|
+
# @param [String] quota_user
|
1513
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1514
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1515
|
+
# @param [Google::Apis::RequestOptions] options
|
1516
|
+
# Request-specific options
|
1517
|
+
#
|
1518
|
+
# @yield [result, err] Result & error if block supplied
|
1519
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
1520
|
+
# @yieldparam err [StandardError] error object if request failed
|
1521
|
+
#
|
1522
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
1523
|
+
#
|
1524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1527
|
+
def start_cluster(project_id, region, cluster_name, start_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1528
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:start', options)
|
1529
|
+
command.request_representation = Google::Apis::DataprocV1::StartClusterRequest::Representation
|
1530
|
+
command.request_object = start_cluster_request_object
|
1531
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
1532
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
1533
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
1534
|
+
command.params['region'] = region unless region.nil?
|
1535
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
1536
|
+
command.query['fields'] = fields unless fields.nil?
|
1537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1538
|
+
execute_or_queue_command(command, &block)
|
1539
|
+
end
|
1540
|
+
|
1541
|
+
# Stops a cluster in a project.
|
1542
|
+
# @param [String] project_id
|
1543
|
+
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
1544
|
+
# @param [String] region
|
1545
|
+
# Required. The Dataproc region in which to handle the request.
|
1546
|
+
# @param [String] cluster_name
|
1547
|
+
# Required. The cluster name.
|
1548
|
+
# @param [Google::Apis::DataprocV1::StopClusterRequest] stop_cluster_request_object
|
1549
|
+
# @param [String] fields
|
1550
|
+
# Selector specifying which fields to include in a partial response.
|
1551
|
+
# @param [String] quota_user
|
1552
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1553
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1554
|
+
# @param [Google::Apis::RequestOptions] options
|
1555
|
+
# Request-specific options
|
1556
|
+
#
|
1557
|
+
# @yield [result, err] Result & error if block supplied
|
1558
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
1559
|
+
# @yieldparam err [StandardError] error object if request failed
|
1560
|
+
#
|
1561
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
1562
|
+
#
|
1563
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1564
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1565
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1566
|
+
def stop_cluster(project_id, region, cluster_name, stop_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1567
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop', options)
|
1568
|
+
command.request_representation = Google::Apis::DataprocV1::StopClusterRequest::Representation
|
1569
|
+
command.request_object = stop_cluster_request_object
|
1570
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
1571
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
1572
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
1573
|
+
command.params['region'] = region unless region.nil?
|
1574
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
1575
|
+
command.query['fields'] = fields unless fields.nil?
|
1576
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1577
|
+
execute_or_queue_command(command, &block)
|
1578
|
+
end
|
1579
|
+
|
1496
1580
|
# Returns permissions that a caller has on the specified resource. If the
|
1497
1581
|
# resource does not exist, this will return an empty set of permissions, not a
|
1498
1582
|
# NOT_FOUND error.Note: This operation is designed to be used for building
|
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.2.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-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
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.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.2.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dataproc_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.2.6
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Cloud Dataproc API V1
|