google-apis-dataproc_v1 0.15.0 → 0.16.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: a276319007f0b1224b8fd2bfce0f2fd2cc5f934754a6d623cabed502f1fbc7a0
4
- data.tar.gz: fb9a39f765721009be2bd63d6cb5502a4e6dcd44e1b902a36920a74921f0e637
3
+ metadata.gz: 141060e3d89f74337420ce1e6b71f7cb4a7d6ae0a8fb0bd9f85f3f06f050d7dc
4
+ data.tar.gz: 99dfb5eeb6b277bd43a2f86b24386a850e3d2392d56d7d2e470373b84b59ddfb
5
5
  SHA512:
6
- metadata.gz: 64734cbdd14a7b557fd57e830bad092901f331bbcb8971803e4569b66ce2943355825b6250651bcf942d60dde4d569ed91398a42eb92e4a77c9e8f0d0c777306
7
- data.tar.gz: 3aac84e7c3f69432c000cf394621e690366f94ef45a357cbcdfc765ada5d5831776f7212c9f1bcc377476dfa04bc0656ef92e1256fb46634d5fe7d87cdbf9b60
6
+ metadata.gz: 5e16b6a915e1c2be002017d47d8b96f97d4806909894402d84781640e2e47078aa90733094bf4f06549451b1dc2f4b8a6c0cfcf6c852a6220f28856c36bd6fcf
7
+ data.tar.gz: b027cabca3668ed89097d6fdc51a7fa2cdafc88f70a69106be794ab0f8a1e502a835e47d695b86506b4cb5c8d471a45ea8d80bed79c1991e44ed8a162d71ed9a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-dataproc_v1
2
2
 
3
+ ### v0.16.0 (2021-10-21)
4
+
5
+ * Regenerated from discovery document revision 20211019
6
+ * Unspecified changes
7
+
3
8
  ### v0.15.0 (2021-10-08)
4
9
 
5
10
  * Regenerated from discovery document revision 20210930
data/OVERVIEW.md CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Dataproc service in particular.)
67
67
 
@@ -98,6 +98,16 @@ module Google
98
98
  # @return [String]
99
99
  attr_accessor :id
100
100
 
101
+ # Optional. The labels to associate with this autoscaling policy. Label keys
102
+ # must contain 1 to 63 characters, and must conform to RFC 1035 (https://www.
103
+ # ietf.org/rfc/rfc1035.txt). Label values may be empty, but, if present, must
104
+ # contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/
105
+ # rfc/rfc1035.txt). No more than 32 labels can be associated with an autoscaling
106
+ # policy.
107
+ # Corresponds to the JSON property `labels`
108
+ # @return [Hash<String,String>]
109
+ attr_accessor :labels
110
+
101
111
  # Output only. The "resource name" of the autoscaling policy, as described in
102
112
  # https://cloud.google.com/apis/design/resource_names. For projects.regions.
103
113
  # autoscalingPolicies, the resource name of the policy has the following format:
@@ -129,6 +139,7 @@ module Google
129
139
  def update!(**args)
130
140
  @basic_algorithm = args[:basic_algorithm] if args.key?(:basic_algorithm)
131
141
  @id = args[:id] if args.key?(:id)
142
+ @labels = args[:labels] if args.key?(:labels)
132
143
  @name = args[:name] if args.key?(:name)
133
144
  @secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
134
145
  @worker_config = args[:worker_config] if args.key?(:worker_config)
@@ -146,6 +157,11 @@ module Google
146
157
  # @return [String]
147
158
  attr_accessor :cooldown_period
148
159
 
160
+ # Basic autoscaling configurations for Spark Standalone.
161
+ # Corresponds to the JSON property `sparkStandaloneConfig`
162
+ # @return [Google::Apis::DataprocV1::SparkStandaloneAutoscalingConfig]
163
+ attr_accessor :spark_standalone_config
164
+
149
165
  # Basic autoscaling configurations for YARN.
150
166
  # Corresponds to the JSON property `yarnConfig`
151
167
  # @return [Google::Apis::DataprocV1::BasicYarnAutoscalingConfig]
@@ -158,6 +174,7 @@ module Google
158
174
  # Update properties of this object
159
175
  def update!(**args)
160
176
  @cooldown_period = args[:cooldown_period] if args.key?(:cooldown_period)
177
+ @spark_standalone_config = args[:spark_standalone_config] if args.key?(:spark_standalone_config)
161
178
  @yarn_config = args[:yarn_config] if args.key?(:yarn_config)
162
179
  end
163
180
  end
@@ -289,7 +306,7 @@ module Google
289
306
  end
290
307
  end
291
308
 
292
- # Associates members with a role.
309
+ # Associates members, or principals, with a role.
293
310
  class Binding
294
311
  include Google::Apis::Core::Hashable
295
312
 
@@ -312,7 +329,7 @@ module Google
312
329
  # @return [Google::Apis::DataprocV1::Expr]
313
330
  attr_accessor :condition
314
331
 
315
- # Specifies the identities requesting access for a Cloud Platform resource.
332
+ # Specifies the principals requesting access for a Cloud Platform resource.
316
333
  # members can have the following values: allUsers: A special identifier that
317
334
  # represents anyone who is on the internet; with or without a Google account.
318
335
  # allAuthenticatedUsers: A special identifier that represents anyone who is
@@ -341,8 +358,8 @@ module Google
341
358
  # @return [Array<String>]
342
359
  attr_accessor :members
343
360
 
344
- # Role that is assigned to members. For example, roles/viewer, roles/editor, or
345
- # roles/owner.
361
+ # Role that is assigned to the list of members, or principals. For example,
362
+ # roles/viewer, roles/editor, or roles/owner.
346
363
  # Corresponds to the JSON property `role`
347
364
  # @return [String]
348
365
  attr_accessor :role
@@ -2685,16 +2702,16 @@ module Google
2685
2702
 
2686
2703
  # An Identity and Access Management (IAM) policy, which specifies access
2687
2704
  # controls for Google Cloud resources.A Policy is a collection of bindings. A
2688
- # binding binds one or more members to a single role. Members can be user
2689
- # accounts, service accounts, Google groups, and domains (such as G Suite). A
2690
- # role is a named list of permissions; each role can be an IAM predefined role
2691
- # or a user-created custom role.For some types of Google Cloud resources, a
2692
- # binding can also specify a condition, which is a logical expression that
2693
- # allows access to a resource only if the expression evaluates to true. A
2694
- # condition can add constraints based on attributes of the request, the resource,
2695
- # or both. To learn which resources support conditions in their IAM policies,
2696
- # see the IAM documentation (https://cloud.google.com/iam/help/conditions/
2697
- # resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
2705
+ # binding binds one or more members, or principals, to a single role. Principals
2706
+ # can be user accounts, service accounts, Google groups, and domains (such as G
2707
+ # Suite). A role is a named list of permissions; each role can be an IAM
2708
+ # predefined role or a user-created custom role.For some types of Google Cloud
2709
+ # resources, a binding can also specify a condition, which is a logical
2710
+ # expression that allows access to a resource only if the expression evaluates
2711
+ # to true. A condition can add constraints based on attributes of the request,
2712
+ # the resource, or both. To learn which resources support conditions in their
2713
+ # IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/
2714
+ # conditions/resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
2698
2715
  # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
2699
2716
  # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
2700
2717
  # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
@@ -2713,13 +2730,14 @@ module Google
2713
2730
  class Policy
2714
2731
  include Google::Apis::Core::Hashable
2715
2732
 
2716
- # Associates a list of members to a role. Optionally, may specify a condition
2717
- # that determines how and when the bindings are applied. Each of the bindings
2718
- # must contain at least one member.The bindings in a Policy can refer to up to 1,
2719
- # 500 members; up to 250 of these members can be Google groups. Each occurrence
2720
- # of a member counts towards these limits. For example, if the bindings grant 50
2721
- # different roles to user:alice@example.com, and not to any other member, then
2722
- # you can add another 1,450 members to the bindings in the Policy.
2733
+ # Associates a list of members, or principals, with a role. Optionally, may
2734
+ # specify a condition that determines how and when the bindings are applied.
2735
+ # Each of the bindings must contain at least one principal.The bindings in a
2736
+ # Policy can refer to up to 1,500 principals; up to 250 of these principals can
2737
+ # be Google groups. Each occurrence of a principal counts towards these limits.
2738
+ # For example, if the bindings grant 50 different roles to user:alice@example.
2739
+ # com, and not to any other principal, then you can add another 1,450 principals
2740
+ # to the bindings in the Policy.
2723
2741
  # Corresponds to the JSON property `bindings`
2724
2742
  # @return [Array<Google::Apis::DataprocV1::Binding>]
2725
2743
  attr_accessor :bindings
@@ -3105,16 +3123,16 @@ module Google
3105
3123
 
3106
3124
  # An Identity and Access Management (IAM) policy, which specifies access
3107
3125
  # controls for Google Cloud resources.A Policy is a collection of bindings. A
3108
- # binding binds one or more members to a single role. Members can be user
3109
- # accounts, service accounts, Google groups, and domains (such as G Suite). A
3110
- # role is a named list of permissions; each role can be an IAM predefined role
3111
- # or a user-created custom role.For some types of Google Cloud resources, a
3112
- # binding can also specify a condition, which is a logical expression that
3113
- # allows access to a resource only if the expression evaluates to true. A
3114
- # condition can add constraints based on attributes of the request, the resource,
3115
- # or both. To learn which resources support conditions in their IAM policies,
3116
- # see the IAM documentation (https://cloud.google.com/iam/help/conditions/
3117
- # resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
3126
+ # binding binds one or more members, or principals, to a single role. Principals
3127
+ # can be user accounts, service accounts, Google groups, and domains (such as G
3128
+ # Suite). A role is a named list of permissions; each role can be an IAM
3129
+ # predefined role or a user-created custom role.For some types of Google Cloud
3130
+ # resources, a binding can also specify a condition, which is a logical
3131
+ # expression that allows access to a resource only if the expression evaluates
3132
+ # to true. A condition can add constraints based on attributes of the request,
3133
+ # the resource, or both. To learn which resources support conditions in their
3134
+ # IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/
3135
+ # conditions/resource-policies).JSON example: ` "bindings": [ ` "role": "roles/
3118
3136
  # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
3119
3137
  # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
3120
3138
  # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
@@ -3404,6 +3422,68 @@ module Google
3404
3422
  end
3405
3423
  end
3406
3424
 
3425
+ # Basic autoscaling configurations for Spark Standalone.
3426
+ class SparkStandaloneAutoscalingConfig
3427
+ include Google::Apis::Core::Hashable
3428
+
3429
+ # Required. Timeout for Spark graceful decommissioning of spark workers.
3430
+ # Specifies the duration to wait for spark worker to complete spark
3431
+ # decomissioning tasks before forcefully removing workers. Only applicable to
3432
+ # downscaling operations.Bounds: 0s, 1d.
3433
+ # Corresponds to the JSON property `gracefulDecommissionTimeout`
3434
+ # @return [String]
3435
+ attr_accessor :graceful_decommission_timeout
3436
+
3437
+ # Required. Fraction of required executors to remove from Spark Serverless
3438
+ # clusters. A scale-down factor of 1.0 will result in scaling down so that there
3439
+ # are no more executors for the Spark Job.(more aggressive scaling). A scale-
3440
+ # down factor closer to 0 will result in a smaller magnitude of scaling donw (
3441
+ # less aggressive scaling).Bounds: 0.0, 1.0.
3442
+ # Corresponds to the JSON property `scaleDownFactor`
3443
+ # @return [Float]
3444
+ attr_accessor :scale_down_factor
3445
+
3446
+ # Optional. Minimum scale-down threshold as a fraction of total cluster size
3447
+ # before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1
3448
+ # means the autoscaler must recommend at least a 2 worker scale-down for the
3449
+ # cluster to scale. A threshold of 0 means the autoscaler will scale down on any
3450
+ # recommended change.Bounds: 0.0, 1.0. Default: 0.0.
3451
+ # Corresponds to the JSON property `scaleDownMinWorkerFraction`
3452
+ # @return [Float]
3453
+ attr_accessor :scale_down_min_worker_fraction
3454
+
3455
+ # Required. Fraction of required workers to add to Spark Standalone clusters. A
3456
+ # scale-up factor of 1.0 will result in scaling up so that there are no more
3457
+ # required workers for the Spark Job (more aggressive scaling). A scale-up
3458
+ # factor closer to 0 will result in a smaller magnitude of scaling up (less
3459
+ # aggressive scaling).Bounds: 0.0, 1.0.
3460
+ # Corresponds to the JSON property `scaleUpFactor`
3461
+ # @return [Float]
3462
+ attr_accessor :scale_up_factor
3463
+
3464
+ # Optional. Minimum scale-up threshold as a fraction of total cluster size
3465
+ # before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1
3466
+ # means the autoscaler must recommend at least a 2-worker scale-up for the
3467
+ # cluster to scale. A threshold of 0 means the autoscaler will scale up on any
3468
+ # recommended change.Bounds: 0.0, 1.0. Default: 0.0.
3469
+ # Corresponds to the JSON property `scaleUpMinWorkerFraction`
3470
+ # @return [Float]
3471
+ attr_accessor :scale_up_min_worker_fraction
3472
+
3473
+ def initialize(**args)
3474
+ update!(**args)
3475
+ end
3476
+
3477
+ # Update properties of this object
3478
+ def update!(**args)
3479
+ @graceful_decommission_timeout = args[:graceful_decommission_timeout] if args.key?(:graceful_decommission_timeout)
3480
+ @scale_down_factor = args[:scale_down_factor] if args.key?(:scale_down_factor)
3481
+ @scale_down_min_worker_fraction = args[:scale_down_min_worker_fraction] if args.key?(:scale_down_min_worker_fraction)
3482
+ @scale_up_factor = args[:scale_up_factor] if args.key?(:scale_up_factor)
3483
+ @scale_up_min_worker_fraction = args[:scale_up_min_worker_fraction] if args.key?(:scale_up_min_worker_fraction)
3484
+ end
3485
+ end
3486
+
3407
3487
  # A request to start a cluster.
3408
3488
  class StartClusterRequest
3409
3489
  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.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210930"
25
+ REVISION = "20211019"
26
26
  end
27
27
  end
28
28
  end
@@ -472,6 +472,12 @@ module Google
472
472
  include Google::Apis::Core::JsonObjectSupport
473
473
  end
474
474
 
475
+ class SparkStandaloneAutoscalingConfig
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
475
481
  class StartClusterRequest
476
482
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
483
 
@@ -577,6 +583,7 @@ module Google
577
583
  property :basic_algorithm, as: 'basicAlgorithm', class: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm, decorator: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm::Representation
578
584
 
579
585
  property :id, as: 'id'
586
+ hash :labels, as: 'labels'
580
587
  property :name, as: 'name'
581
588
  property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig::Representation
582
589
 
@@ -589,6 +596,8 @@ module Google
589
596
  # @private
590
597
  class Representation < Google::Apis::Core::JsonRepresentation
591
598
  property :cooldown_period, as: 'cooldownPeriod'
599
+ property :spark_standalone_config, as: 'sparkStandaloneConfig', class: Google::Apis::DataprocV1::SparkStandaloneAutoscalingConfig, decorator: Google::Apis::DataprocV1::SparkStandaloneAutoscalingConfig::Representation
600
+
592
601
  property :yarn_config, as: 'yarnConfig', class: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig, decorator: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig::Representation
593
602
 
594
603
  end
@@ -1389,6 +1398,17 @@ module Google
1389
1398
  end
1390
1399
  end
1391
1400
 
1401
+ class SparkStandaloneAutoscalingConfig
1402
+ # @private
1403
+ class Representation < Google::Apis::Core::JsonRepresentation
1404
+ property :graceful_decommission_timeout, as: 'gracefulDecommissionTimeout'
1405
+ property :scale_down_factor, as: 'scaleDownFactor'
1406
+ property :scale_down_min_worker_fraction, as: 'scaleDownMinWorkerFraction'
1407
+ property :scale_up_factor, as: 'scaleUpFactor'
1408
+ property :scale_up_min_worker_fraction, as: 'scaleUpMinWorkerFraction'
1409
+ end
1410
+ end
1411
+
1392
1412
  class StartClusterRequest
1393
1413
  # @private
1394
1414
  class Representation < Google::Apis::Core::JsonRepresentation
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.15.0
4
+ version: 0.16.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-10-11 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dataproc_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dataproc_v1/v0.15.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dataproc_v1
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.16.0
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: []
65
65
  require_paths: