google-apis-dataproc_v1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b916d8c2e8b493aa477a8f68c490a9736b170845ad6bf9bff532f3e4879b6f3
4
- data.tar.gz: caab6d7c6b145ad1a287d4e55d2c02a170c1e9cb8d706eb6cea99a01002fcf28
3
+ metadata.gz: f16a47309d3f311721e3ad4cc28d0b3fdc984cdba7463b6603823ddf5c707b07
4
+ data.tar.gz: 39dcf8bbffca9da8281adf5fbdc3250468dc4925d7d8c0e5e57838cc7881b889
5
5
  SHA512:
6
- metadata.gz: c3428112f13f2673cd8af30d9dba23e7ee3e693051fdd8d3e90ad550a53cfc3a2effce63d4349e4b84ffd3b74724f28edced5ddf7476da8d077e4f774eed86e7
7
- data.tar.gz: 5a43a599b389fbb6fab410907dace48cb30bb661f8272efd42b9229a006f08314c6cca6d8ea7651b3d0ff617e8771e563f1b4858a9b1f3491a9664b97d364330
6
+ metadata.gz: '09565a436cbf77187f14e54523377c4fb11db8eadef43e848580432e4fbb4756bfd5fe97ed5562537ad1007b5f07d47ad26cf259e2957b7302709e4239c8c889'
7
+ data.tar.gz: a6fc85a257deb148e9546d7b9a51401deac4a4eb4f820b96f0ecdce5e910128b4527633deccaf76cfec4f555f9c5de8bbd2407cf68f24954319bff104cc27b03
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-dataproc_v1
2
2
 
3
+ ### v0.6.0 (2021-03-18)
4
+
5
+ * Regenerated from discovery document revision 20210315
6
+
7
+ ### v0.5.0 (2021-03-12)
8
+
9
+ * Regenerated from discovery document revision 20210305
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.3.0 (2021-02-12)
17
+
18
+ * Regenerated from discovery document revision 20210205
19
+
20
+ ### v0.2.0 (2021-02-04)
21
+
22
+ * Regenerated from discovery document revision 20210128
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated from discovery document revision 20201229
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1'
31
31
 
32
- # View and manage your data across Google Cloud Platform services
32
+ # See, edit, configure, and delete your Google Cloud Platform data
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
  end
35
35
  end
@@ -440,13 +440,18 @@ 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`
446
451
  # @return [Google::Apis::DataprocV1::InstanceGroupConfig]
447
452
  attr_accessor :secondary_worker_config
448
453
 
449
- # Security related configuration, including Kerberos.
454
+ # Security related configuration, including encryption, Kerberos, etc.
450
455
  # Corresponds to the JSON property `securityConfig`
451
456
  # @return [Google::Apis::DataprocV1::SecurityConfig]
452
457
  attr_accessor :security_config
@@ -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
- # ssd" (Persistent Disk Solid State Drive) or "pd-standard" (Persistent Disk
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 shielded VMs.
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
@@ -1361,8 +1369,9 @@ module Google
1361
1369
  # @return [String]
1362
1370
  attr_accessor :min_cpu_platform
1363
1371
 
1364
- # Optional. The number of VM instances in the instance group. For master
1365
- # instance groups, must be set to 1.
1372
+ # Optional. The number of VM instances in the instance group. For HA cluster
1373
+ # master_config groups, must be set to 3. For standard cluster master_config
1374
+ # groups, must be set to 1.
1366
1375
  # Corresponds to the JSON property `numInstances`
1367
1376
  # @return [Fixnum]
1368
1377
  attr_accessor :num_instances
@@ -1659,6 +1668,11 @@ module Google
1659
1668
  class JobPlacement
1660
1669
  include Google::Apis::Core::Hashable
1661
1670
 
1671
+ # Optional. Cluster labels to identify a cluster where the job will be submitted.
1672
+ # Corresponds to the JSON property `clusterLabels`
1673
+ # @return [Hash<String,String>]
1674
+ attr_accessor :cluster_labels
1675
+
1662
1676
  # Required. The name of the cluster where the job will be submitted.
1663
1677
  # Corresponds to the JSON property `clusterName`
1664
1678
  # @return [String]
@@ -1676,6 +1690,7 @@ module Google
1676
1690
 
1677
1691
  # Update properties of this object
1678
1692
  def update!(**args)
1693
+ @cluster_labels = args[:cluster_labels] if args.key?(:cluster_labels)
1679
1694
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
1680
1695
  @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
1681
1696
  end
@@ -1923,7 +1938,7 @@ module Google
1923
1938
  # Optional. The duration to keep the cluster alive while idling (when no jobs
1924
1939
  # are running). Passing this threshold will cause the cluster to be deleted.
1925
1940
  # 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).
1941
+ # of Duration (https://developers.google.com/protocol-buffers/docs/proto3#json)).
1927
1942
  # Corresponds to the JSON property `idleDeleteTtl`
1928
1943
  # @return [String]
1929
1944
  attr_accessor :idle_delete_ttl
@@ -2165,6 +2180,26 @@ module Google
2165
2180
  end
2166
2181
  end
2167
2182
 
2183
+ # Specifies a Metastore configuration.
2184
+ class MetastoreConfig
2185
+ include Google::Apis::Core::Hashable
2186
+
2187
+ # Required. Resource name of an existing Dataproc Metastore service.Example:
2188
+ # projects/[project_id]/locations/[dataproc_region]/services/[service-name]
2189
+ # Corresponds to the JSON property `dataprocMetastoreService`
2190
+ # @return [String]
2191
+ attr_accessor :dataproc_metastore_service
2192
+
2193
+ def initialize(**args)
2194
+ update!(**args)
2195
+ end
2196
+
2197
+ # Update properties of this object
2198
+ def update!(**args)
2199
+ @dataproc_metastore_service = args[:dataproc_metastore_service] if args.key?(:dataproc_metastore_service)
2200
+ end
2201
+ end
2202
+
2168
2203
  # Node Group Affinity for clusters using sole-tenant node groups.
2169
2204
  class NodeGroupAffinity
2170
2205
  include Google::Apis::Core::Hashable
@@ -2771,7 +2806,7 @@ module Google
2771
2806
  end
2772
2807
  end
2773
2808
 
2774
- # Security related configuration, including Kerberos.
2809
+ # Security related configuration, including encryption, Kerberos, etc.
2775
2810
  class SecurityConfig
2776
2811
  include Google::Apis::Core::Hashable
2777
2812
 
@@ -2835,7 +2870,8 @@ module Google
2835
2870
  end
2836
2871
  end
2837
2872
 
2838
- # Shielded Instance Config for clusters using shielded VMs.
2873
+ # Shielded Instance Config for clusters using Compute Engine Shielded VMs (https:
2874
+ # //cloud.google.com/security/shielded-cloud/shielded-vm).
2839
2875
  class ShieldedInstanceConfig
2840
2876
  include Google::Apis::Core::Hashable
2841
2877
 
@@ -3094,6 +3130,40 @@ module Google
3094
3130
  end
3095
3131
  end
3096
3132
 
3133
+ # A request to start a cluster.
3134
+ class StartClusterRequest
3135
+ include Google::Apis::Core::Hashable
3136
+
3137
+ # Optional. Specifying the cluster_uuid means the RPC will fail (with error
3138
+ # NOT_FOUND) if a cluster with the specified UUID does not exist.
3139
+ # Corresponds to the JSON property `clusterUuid`
3140
+ # @return [String]
3141
+ attr_accessor :cluster_uuid
3142
+
3143
+ # Optional. A unique id used to identify the request. If the server receives two
3144
+ # StartClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
3145
+ # google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s with
3146
+ # the same id, then the second request will be ignored and the first google.
3147
+ # longrunning.Operation created and stored in the backend is returned.
3148
+ # Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
3149
+ # Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
3150
+ # numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
3151
+ # characters.
3152
+ # Corresponds to the JSON property `requestId`
3153
+ # @return [String]
3154
+ attr_accessor :request_id
3155
+
3156
+ def initialize(**args)
3157
+ update!(**args)
3158
+ end
3159
+
3160
+ # Update properties of this object
3161
+ def update!(**args)
3162
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
3163
+ @request_id = args[:request_id] if args.key?(:request_id)
3164
+ end
3165
+ end
3166
+
3097
3167
  # The Status type defines a logical error model that is suitable for different
3098
3168
  # programming environments, including REST APIs and RPC APIs. It is used by gRPC
3099
3169
  # (https://github.com/grpc). Each Status message contains three pieces of data:
@@ -3133,6 +3203,40 @@ module Google
3133
3203
  end
3134
3204
  end
3135
3205
 
3206
+ # A request to stop a cluster.
3207
+ class StopClusterRequest
3208
+ include Google::Apis::Core::Hashable
3209
+
3210
+ # Optional. Specifying the cluster_uuid means the RPC will fail (with error
3211
+ # NOT_FOUND) if a cluster with the specified UUID does not exist.
3212
+ # Corresponds to the JSON property `clusterUuid`
3213
+ # @return [String]
3214
+ attr_accessor :cluster_uuid
3215
+
3216
+ # Optional. A unique id used to identify the request. If the server receives two
3217
+ # StopClusterRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
3218
+ # google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s with
3219
+ # the same id, then the second request will be ignored and the first google.
3220
+ # longrunning.Operation created and stored in the backend is returned.
3221
+ # Recommendation: Set this value to a UUID (https://en.wikipedia.org/wiki/
3222
+ # Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
3223
+ # numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
3224
+ # characters.
3225
+ # Corresponds to the JSON property `requestId`
3226
+ # @return [String]
3227
+ attr_accessor :request_id
3228
+
3229
+ def initialize(**args)
3230
+ update!(**args)
3231
+ end
3232
+
3233
+ # Update properties of this object
3234
+ def update!(**args)
3235
+ @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
3236
+ @request_id = args[:request_id] if args.key?(:request_id)
3237
+ end
3238
+ end
3239
+
3136
3240
  # A request to submit a job.
3137
3241
  class SubmitJobRequest
3138
3242
  include Google::Apis::Core::Hashable
@@ -3143,12 +3247,13 @@ module Google
3143
3247
  attr_accessor :job
3144
3248
 
3145
3249
  # Optional. A unique id used to identify the request. If the server receives two
3146
- # SubmitJobRequest requests with the same id, then the second request will be
3147
- # ignored and the first Job created and stored in the backend is returned.It is
3148
- # recommended to always set this value to a UUID (https://en.wikipedia.org/wiki/
3149
- # Universally_unique_identifier).The id must contain only letters (a-z, A-Z),
3150
- # numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40
3151
- # characters.
3250
+ # SubmitJobRequest (https://cloud.google.com/dataproc/docs/reference/rpc/google.
3251
+ # cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s with the same id,
3252
+ # then the second request will be ignored and the first Job created and stored
3253
+ # in the backend is returned.It is recommended to always set this value to a
3254
+ # UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
3255
+ # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
3256
+ # ). The maximum length is 40 characters.
3152
3257
  # Corresponds to the JSON property `requestId`
3153
3258
  # @return [String]
3154
3259
  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.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201229"
25
+ REVISION = "20210315"
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
@@ -896,6 +916,7 @@ module Google
896
916
  class JobPlacement
897
917
  # @private
898
918
  class Representation < Google::Apis::Core::JsonRepresentation
919
+ hash :cluster_labels, as: 'clusterLabels'
899
920
  property :cluster_name, as: 'clusterName'
900
921
  property :cluster_uuid, as: 'clusterUuid'
901
922
  end
@@ -1028,6 +1049,13 @@ module Google
1028
1049
  end
1029
1050
  end
1030
1051
 
1052
+ class MetastoreConfig
1053
+ # @private
1054
+ class Representation < Google::Apis::Core::JsonRepresentation
1055
+ property :dataproc_metastore_service, as: 'dataprocMetastoreService'
1056
+ end
1057
+ end
1058
+
1031
1059
  class NodeGroupAffinity
1032
1060
  # @private
1033
1061
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1246,6 +1274,14 @@ module Google
1246
1274
  end
1247
1275
  end
1248
1276
 
1277
+ class StartClusterRequest
1278
+ # @private
1279
+ class Representation < Google::Apis::Core::JsonRepresentation
1280
+ property :cluster_uuid, as: 'clusterUuid'
1281
+ property :request_id, as: 'requestId'
1282
+ end
1283
+ end
1284
+
1249
1285
  class Status
1250
1286
  # @private
1251
1287
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1255,6 +1291,14 @@ module Google
1255
1291
  end
1256
1292
  end
1257
1293
 
1294
+ class StopClusterRequest
1295
+ # @private
1296
+ class Representation < Google::Apis::Core::JsonRepresentation
1297
+ property :cluster_uuid, as: 'clusterUuid'
1298
+ property :request_id, as: 'requestId'
1299
+ end
1300
+ end
1301
+
1258
1302
  class SubmitJobRequest
1259
1303
  # @private
1260
1304
  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 requests with the same id, then the second request will
1085
- # be ignored and the first google.longrunning.Operation created and stored in
1086
- # the backend is returned.It is recommended to always set this value to a UUID (
1087
- # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
1088
- # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
1089
- # ). The maximum length is 40 characters.
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 requests with the same id, then the second request will
1137
- # be ignored and the first google.longrunning.Operation created and stored in
1138
- # the backend is returned.It is recommended to always set this value to a UUID (
1139
- # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
1140
- # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
1141
- # ). The maximum length is 40 characters.
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 requests with the same id, then the second request will
1407
- # be ignored and the first google.longrunning.Operation created and stored in
1408
- # the backend is returned.It is recommended to always set this value to a UUID (
1409
- # https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
1410
- # contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-
1411
- # ). The maximum length is 40 characters.
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.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-03-22 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.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.6.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: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Dataproc API V1