Skip to content

Commit 30368be

Browse files
feat: Automated regeneration of dataproc v1 client (#24668)
Auto-created at 2025-10-19 10:02:23 +0000 using the toys pull request generator.
1 parent 4f5b4b2 commit 30368be

File tree

6 files changed

+60
-8
lines changed

6 files changed

+60
-8
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157573,6 +157573,8 @@
157573157573
"/dataproc:v1/ListOperationsResponse/nextPageToken": next_page_token
157574157574
"/dataproc:v1/ListOperationsResponse/operations": operations
157575157575
"/dataproc:v1/ListOperationsResponse/operations/operation": operation
157576+
"/dataproc:v1/ListOperationsResponse/unreachable": unreachable
157577+
"/dataproc:v1/ListOperationsResponse/unreachable/unreachable": unreachable
157576157578
"/dataproc:v1/ListSessionTemplatesResponse": list_session_templates_response
157577157579
"/dataproc:v1/ListSessionTemplatesResponse/nextPageToken": next_page_token
157578157580
"/dataproc:v1/ListSessionTemplatesResponse/sessionTemplates": session_templates
@@ -158611,10 +158613,12 @@
158611158613
"/dataproc:v1/WriteSparkApplicationContextRequest/sparkWrapperObjects/spark_wrapper_object": spark_wrapper_object
158612158614
"/dataproc:v1/WriteSparkApplicationContextResponse": write_spark_application_context_response
158613158615
"/dataproc:v1/YarnApplication": yarn_application
158616+
"/dataproc:v1/YarnApplication/memoryMbSeconds": memory_mb_seconds
158614158617
"/dataproc:v1/YarnApplication/name": name
158615158618
"/dataproc:v1/YarnApplication/progress": progress
158616158619
"/dataproc:v1/YarnApplication/state": state
158617158620
"/dataproc:v1/YarnApplication/trackingUrl": tracking_url
158621+
"/dataproc:v1/YarnApplication/vcoreSeconds": vcore_seconds
158618158622
"/dataproc:v1/dataproc.projects.locations.autoscalingPolicies.create": create_project_location_autoscaling_policy
158619158623
"/dataproc:v1/dataproc.projects.locations.autoscalingPolicies.create/parent": parent
158620158624
"/dataproc:v1/dataproc.projects.locations.autoscalingPolicies.delete": delete_project_location_autoscaling_policy
@@ -158776,6 +158780,7 @@
158776158780
"/dataproc:v1/dataproc.projects.locations.operations.list/name": name
158777158781
"/dataproc:v1/dataproc.projects.locations.operations.list/pageSize": page_size
158778158782
"/dataproc:v1/dataproc.projects.locations.operations.list/pageToken": page_token
158783+
"/dataproc:v1/dataproc.projects.locations.operations.list/returnPartialSuccess": return_partial_success
158779158784
"/dataproc:v1/dataproc.projects.locations.sessionTemplates.create": create_project_location_session_template
158780158785
"/dataproc:v1/dataproc.projects.locations.sessionTemplates.create/parent": parent
158781158786
"/dataproc:v1/dataproc.projects.locations.sessionTemplates.delete": delete_project_location_session_template
@@ -159087,6 +159092,7 @@
159087159092
"/dataproc:v1/dataproc.projects.regions.operations.list/name": name
159088159093
"/dataproc:v1/dataproc.projects.regions.operations.list/pageSize": page_size
159089159094
"/dataproc:v1/dataproc.projects.regions.operations.list/pageToken": page_token
159095+
"/dataproc:v1/dataproc.projects.regions.operations.list/returnPartialSuccess": return_partial_success
159090159096
"/dataproc:v1/dataproc.projects.regions.operations.setIamPolicy": set_operation_iam_policy
159091159097
"/dataproc:v1/dataproc.projects.regions.operations.setIamPolicy/resource": resource
159092159098
"/dataproc:v1/dataproc.projects.regions.operations.testIamPermissions": test_operation_iam_permissions

generated/google-apis-dataproc_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-dataproc_v1
22

3+
### v0.84.0 (2025-10-19)
4+
5+
* Regenerated from discovery document revision 20251003
6+
37
### v0.83.0 (2025-10-12)
48

59
* Regenerated from discovery document revision 20251001

generated/google-apis-dataproc_v1/lib/google/apis/dataproc_v1/classes.rb

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,7 @@ class GceClusterConfig
30163016

30173017
# Optional. Resource manager tags (https://cloud.google.com/resource-manager/
30183018
# docs/tags/tags-creating-and-managing) to add to all instances (see Use secure
3019-
# tags in Dataproc (https://cloud.google.com/dataproc/docs/guides/attach-secure-
3019+
# tags in Dataproc (https://cloud.google.com/dataproc/docs/guides/use-secure-
30203020
# tags)).
30213021
# Corresponds to the JSON property `resourceManagerTags`
30223022
# @return [Hash<String,String>]
@@ -5009,6 +5009,13 @@ class ListOperationsResponse
50095009
# @return [Array<Google::Apis::DataprocV1::Operation>]
50105010
attr_accessor :operations
50115011

5012+
# Unordered list. Unreachable resources. Populated when the request sets
5013+
# ListOperationsRequest.return_partial_success and reads across collections e.g.
5014+
# when attempting to list all resources across all supported locations.
5015+
# Corresponds to the JSON property `unreachable`
5016+
# @return [Array<String>]
5017+
attr_accessor :unreachable
5018+
50125019
def initialize(**args)
50135020
update!(**args)
50145021
end
@@ -5017,6 +5024,7 @@ def initialize(**args)
50175024
def update!(**args)
50185025
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
50195026
@operations = args[:operations] if args.key?(:operations)
5027+
@unreachable = args[:unreachable] if args.key?(:unreachable)
50205028
end
50215029
end
50225030

@@ -11395,13 +11403,14 @@ def update!(**args)
1139511403
class UsageMetrics
1139611404
include Google::Apis::Core::Hashable
1139711405

11398-
# Optional. Accelerator type being used, if any
11406+
# Optional. DEPRECATED Accelerator type being used, if any
1139911407
# Corresponds to the JSON property `acceleratorType`
1140011408
# @return [String]
1140111409
attr_accessor :accelerator_type
1140211410

11403-
# Optional. Accelerator usage in (milliAccelerator x seconds) (see Dataproc
11404-
# Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).
11411+
# Optional. DEPRECATED Accelerator usage in (milliAccelerator x seconds) (see
11412+
# Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/
11413+
# pricing)).
1140511414
# Corresponds to the JSON property `milliAcceleratorSeconds`
1140611415
# @return [Fixnum]
1140711416
attr_accessor :milli_accelerator_seconds
@@ -11975,6 +11984,12 @@ def update!(**args)
1197511984
class YarnApplication
1197611985
include Google::Apis::Core::Hashable
1197711986

11987+
# Optional. The cumulative memory usage of the application for a job, measured
11988+
# in mb-seconds.
11989+
# Corresponds to the JSON property `memoryMbSeconds`
11990+
# @return [Fixnum]
11991+
attr_accessor :memory_mb_seconds
11992+
1197811993
# Required. The application name.
1197911994
# Corresponds to the JSON property `name`
1198011995
# @return [String]
@@ -11998,16 +12013,24 @@ class YarnApplication
1199812013
# @return [String]
1199912014
attr_accessor :tracking_url
1200012015

12016+
# Optional. The cumulative CPU time consumed by the application for a job,
12017+
# measured in vcore-seconds.
12018+
# Corresponds to the JSON property `vcoreSeconds`
12019+
# @return [Fixnum]
12020+
attr_accessor :vcore_seconds
12021+
1200112022
def initialize(**args)
1200212023
update!(**args)
1200312024
end
1200412025

1200512026
# Update properties of this object
1200612027
def update!(**args)
12028+
@memory_mb_seconds = args[:memory_mb_seconds] if args.key?(:memory_mb_seconds)
1200712029
@name = args[:name] if args.key?(:name)
1200812030
@progress = args[:progress] if args.key?(:progress)
1200912031
@state = args[:state] if args.key?(:state)
1201012032
@tracking_url = args[:tracking_url] if args.key?(:tracking_url)
12033+
@vcore_seconds = args[:vcore_seconds] if args.key?(:vcore_seconds)
1201112034
end
1201212035
end
1201312036
end

generated/google-apis-dataproc_v1/lib/google/apis/dataproc_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DataprocV1
1818
# Version of the google-apis-dataproc_v1 gem
19-
GEM_VERSION = "0.83.0"
19+
GEM_VERSION = "0.84.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251001"
25+
REVISION = "20251003"
2626
end
2727
end
2828
end

generated/google-apis-dataproc_v1/lib/google/apis/dataproc_v1/representations.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2845,6 +2845,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
28452845
property :next_page_token, as: 'nextPageToken'
28462846
collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation
28472847

2848+
collection :unreachable, as: 'unreachable'
28482849
end
28492850
end
28502851

@@ -4704,10 +4705,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
47044705
class YarnApplication
47054706
# @private
47064707
class Representation < Google::Apis::Core::JsonRepresentation
4708+
property :memory_mb_seconds, :numeric_string => true, as: 'memoryMbSeconds'
47074709
property :name, as: 'name'
47084710
property :progress, as: 'progress'
47094711
property :state, as: 'state'
47104712
property :tracking_url, as: 'trackingUrl'
4713+
property :vcore_seconds, :numeric_string => true, as: 'vcoreSeconds'
47114714
end
47124715
end
47134716
end

generated/google-apis-dataproc_v1/lib/google/apis/dataproc_v1/service.rb

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,13 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
15531553
# The standard list page size.
15541554
# @param [String] page_token
15551555
# The standard list page token.
1556+
# @param [Boolean] return_partial_success
1557+
# When set to true, operations that are reachable are returned as normal, and
1558+
# those that are unreachable are returned in the ListOperationsResponse.
1559+
# unreachable field.This can only be true when reading across collections e.g.
1560+
# when parent is set to "projects/example/locations/-".This field is not by
1561+
# default supported and will result in an UNIMPLEMENTED error if set unless
1562+
# explicitly documented otherwise in service or product specific documentation.
15561563
# @param [String] fields
15571564
# Selector specifying which fields to include in a partial response.
15581565
# @param [String] quota_user
@@ -1570,14 +1577,15 @@ def get_project_location_operation(name, fields: nil, quota_user: nil, options:
15701577
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
15711578
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
15721579
# @raise [Google::Apis::AuthorizationError] Authorization is required
1573-
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1580+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
15741581
command = make_simple_command(:get, 'v1/{+name}', options)
15751582
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
15761583
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
15771584
command.params['name'] = name unless name.nil?
15781585
command.query['filter'] = filter unless filter.nil?
15791586
command.query['pageSize'] = page_size unless page_size.nil?
15801587
command.query['pageToken'] = page_token unless page_token.nil?
1588+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
15811589
command.query['fields'] = fields unless fields.nil?
15821590
command.query['quotaUser'] = quota_user unless quota_user.nil?
15831591
execute_or_queue_command(command, &block)
@@ -4880,6 +4888,13 @@ def get_operation_iam_policy(resource, get_iam_policy_request_object = nil, fiel
48804888
# The standard list page size.
48814889
# @param [String] page_token
48824890
# The standard list page token.
4891+
# @param [Boolean] return_partial_success
4892+
# When set to true, operations that are reachable are returned as normal, and
4893+
# those that are unreachable are returned in the ListOperationsResponse.
4894+
# unreachable field.This can only be true when reading across collections e.g.
4895+
# when parent is set to "projects/example/locations/-".This field is not by
4896+
# default supported and will result in an UNIMPLEMENTED error if set unless
4897+
# explicitly documented otherwise in service or product specific documentation.
48834898
# @param [String] fields
48844899
# Selector specifying which fields to include in a partial response.
48854900
# @param [String] quota_user
@@ -4897,14 +4912,15 @@ def get_operation_iam_policy(resource, get_iam_policy_request_object = nil, fiel
48974912
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
48984913
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
48994914
# @raise [Google::Apis::AuthorizationError] Authorization is required
4900-
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4915+
def list_operations(name, filter: nil, page_size: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block)
49014916
command = make_simple_command(:get, 'v1/{+name}', options)
49024917
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
49034918
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
49044919
command.params['name'] = name unless name.nil?
49054920
command.query['filter'] = filter unless filter.nil?
49064921
command.query['pageSize'] = page_size unless page_size.nil?
49074922
command.query['pageToken'] = page_token unless page_token.nil?
4923+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
49084924
command.query['fields'] = fields unless fields.nil?
49094925
command.query['quotaUser'] = quota_user unless quota_user.nil?
49104926
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)