google-apis-batch_v1 0.48.0 → 0.50.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: 706294e4fbbcff76d71b10d8620d2e55dba85b250188c0cddd19db667a9f9c73
4
- data.tar.gz: 32410a3468cd97e79356724321e94e05f5554ca3466995e62da3e514177a5f16
3
+ metadata.gz: 9c07571f43f85c14a2e7f9ae19f8b57e610d565fef2ac9c1274294d6ba1426a7
4
+ data.tar.gz: 56e93fdbc935c4dd079110e1cf5990b77c648d59abb9a77b45f2ed5be44ba84d
5
5
  SHA512:
6
- metadata.gz: d5979c1c3d3d0d2a49f1b842b42278b0619107be568fe62b6e8a9c69ff4ec1ddcc4140ad685bf544190894552860406e15bce71705c1c2bc2770605de2f9edbd
7
- data.tar.gz: a3d8cf9834ecb345e675907ff9ea1c1c51f851701a4a5b84a881d6cee75efe9b32c2e19ec016dfc4ac1427d9e2e85563e32cc817005f68f28554762b081c84b1
6
+ metadata.gz: f5d14fa0e5bca98c91fb81979f974e98416c342756dd4a25b9b8056f38930a2762c90b9690a96eaf1697756b038e0eaf540216acca11b76989a1c3378e59aff6
7
+ data.tar.gz: b1f7db41e4c8b4ed8081532f6de7c01785312960e0783949a2249cb348c0225ff28c5b2f14d0cf438675cd0d34a0a024ef78873addf901455545379f503d31b4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-batch_v1
2
2
 
3
+ ### v0.50.0 (2025-04-27)
4
+
5
+ * Regenerated from discovery document revision 20250409
6
+
7
+ ### v0.49.0 (2025-02-26)
8
+
9
+ * Regenerated from discovery document revision 20250122
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.48.0 (2024-12-15)
4
13
 
5
14
  * Regenerated from discovery document revision 20241204
@@ -760,6 +760,34 @@ module Google
760
760
  end
761
761
  end
762
762
 
763
+ # CancelJob Request.
764
+ class CancelJobRequest
765
+ include Google::Apis::Core::Hashable
766
+
767
+ # Optional. An optional request ID to identify requests. Specify a unique
768
+ # request ID so that if you must retry your request, the server will know to
769
+ # ignore the request if it has already been completed. The server will guarantee
770
+ # that for at least 60 minutes after the first request. For example, consider a
771
+ # situation where you make an initial request and the request times out. If you
772
+ # make the request again with the same request ID, the server can check if
773
+ # original operation with the same request ID was received, and if so, will
774
+ # ignore the second request. This prevents clients from accidentally creating
775
+ # duplicate commitments. The request ID must be a valid UUID with the exception
776
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
777
+ # Corresponds to the JSON property `requestId`
778
+ # @return [String]
779
+ attr_accessor :request_id
780
+
781
+ def initialize(**args)
782
+ update!(**args)
783
+ end
784
+
785
+ # Update properties of this object
786
+ def update!(**args)
787
+ @request_id = args[:request_id] if args.key?(:request_id)
788
+ end
789
+ end
790
+
763
791
  # The request message for Operations.CancelOperation.
764
792
  class CancelOperationRequest
765
793
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BatchV1
18
18
  # Version of the google-apis-batch_v1 gem
19
- GEM_VERSION = "0.48.0"
19
+ GEM_VERSION = "0.50.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241204"
25
+ REVISION = "20250409"
26
26
  end
27
27
  end
28
28
  end
@@ -130,6 +130,12 @@ module Google
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
+ class CancelJobRequest
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
133
139
  class CancelOperationRequest
134
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
141
 
@@ -592,6 +598,13 @@ module Google
592
598
  end
593
599
  end
594
600
 
601
+ class CancelJobRequest
602
+ # @private
603
+ class Representation < Google::Apis::Core::JsonRepresentation
604
+ property :request_id, as: 'requestId'
605
+ end
606
+ end
607
+
595
608
  class CancelOperationRequest
596
609
  # @private
597
610
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -84,6 +84,9 @@ module Google
84
84
  # Lists information about the supported locations for this service.
85
85
  # @param [String] name
86
86
  # The resource that owns the locations collection, if applicable.
87
+ # @param [Array<String>, String] extra_location_types
88
+ # Optional. A list of extra location types that should be used as conditions for
89
+ # controlling the visibility of the locations.
87
90
  # @param [String] filter
88
91
  # A filter to narrow down results to a preferred subset. The filtering language
89
92
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -111,11 +114,12 @@ module Google
111
114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
114
- def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
117
+ def list_project_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
115
118
  command = make_simple_command(:get, 'v1/{+name}/locations', options)
116
119
  command.response_representation = Google::Apis::BatchV1::ListLocationsResponse::Representation
117
120
  command.response_class = Google::Apis::BatchV1::ListLocationsResponse
118
121
  command.params['name'] = name unless name.nil?
122
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
119
123
  command.query['filter'] = filter unless filter.nil?
120
124
  command.query['pageSize'] = page_size unless page_size.nil?
121
125
  command.query['pageToken'] = page_token unless page_token.nil?
@@ -124,6 +128,39 @@ module Google
124
128
  execute_or_queue_command(command, &block)
125
129
  end
126
130
 
131
+ # Cancel a Job.
132
+ # @param [String] name
133
+ # Required. Job name.
134
+ # @param [Google::Apis::BatchV1::CancelJobRequest] cancel_job_request_object
135
+ # @param [String] fields
136
+ # Selector specifying which fields to include in a partial response.
137
+ # @param [String] quota_user
138
+ # Available to use for quota purposes for server-side applications. Can be any
139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
140
+ # @param [Google::Apis::RequestOptions] options
141
+ # Request-specific options
142
+ #
143
+ # @yield [result, err] Result & error if block supplied
144
+ # @yieldparam result [Google::Apis::BatchV1::Operation] parsed result object
145
+ # @yieldparam err [StandardError] error object if request failed
146
+ #
147
+ # @return [Google::Apis::BatchV1::Operation]
148
+ #
149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
152
+ def cancel_job(name, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
153
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
154
+ command.request_representation = Google::Apis::BatchV1::CancelJobRequest::Representation
155
+ command.request_object = cancel_job_request_object
156
+ command.response_representation = Google::Apis::BatchV1::Operation::Representation
157
+ command.response_class = Google::Apis::BatchV1::Operation
158
+ command.params['name'] = name unless name.nil?
159
+ command.query['fields'] = fields unless fields.nil?
160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
161
+ execute_or_queue_command(command, &block)
162
+ end
163
+
127
164
  # Create a Job.
128
165
  # @param [String] parent
129
166
  # Required. The parent resource name where the Job will be created. Pattern: "
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-batch_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.0
4
+ version: 0.50.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 2025-04-27 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-batch_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.48.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.50.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-batch_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Batch API V1
82
79
  test_files: []