google-apis-batch_v1 0.48.0 → 0.49.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: 978178371efc01087beb617f9c3ed2fb73fcd1e22ee3b2b54d5e236814e76439
|
4
|
+
data.tar.gz: 8b4dbd86b0502dd89e057187b7c11991ca0f8b7595795991d03bc94ae15b27dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb8c8f0ed2dba573120bbfd9ad40c237b7565302b5ebde7b1a309a7cb1f06bdb47a256b67958b2f847451065e44094097c15964433561b1410549861cd4eb4ee
|
7
|
+
data.tar.gz: 1731063e80a935a9f87a433fafe902440e026c7a2287e20ae22cb00b51d4df3537359a98ab54c6fa6e7682e64ea25d5278237ece5e3da81b9d3df4d6604d0b33
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-batch_v1
|
2
2
|
|
3
|
+
### v0.49.0 (2025-02-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250122
|
6
|
+
* Regenerated using generator version 0.16.0
|
7
|
+
|
3
8
|
### v0.48.0 (2024-12-15)
|
4
9
|
|
5
10
|
* 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.
|
19
|
+
GEM_VERSION = "0.49.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250122"
|
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
|
@@ -124,6 +124,39 @@ module Google
|
|
124
124
|
execute_or_queue_command(command, &block)
|
125
125
|
end
|
126
126
|
|
127
|
+
# Cancel a Job.
|
128
|
+
# @param [String] name
|
129
|
+
# Required. Job name.
|
130
|
+
# @param [Google::Apis::BatchV1::CancelJobRequest] cancel_job_request_object
|
131
|
+
# @param [String] fields
|
132
|
+
# Selector specifying which fields to include in a partial response.
|
133
|
+
# @param [String] quota_user
|
134
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
135
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
136
|
+
# @param [Google::Apis::RequestOptions] options
|
137
|
+
# Request-specific options
|
138
|
+
#
|
139
|
+
# @yield [result, err] Result & error if block supplied
|
140
|
+
# @yieldparam result [Google::Apis::BatchV1::Operation] parsed result object
|
141
|
+
# @yieldparam err [StandardError] error object if request failed
|
142
|
+
#
|
143
|
+
# @return [Google::Apis::BatchV1::Operation]
|
144
|
+
#
|
145
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
146
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
147
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
148
|
+
def cancel_job(name, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
149
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
150
|
+
command.request_representation = Google::Apis::BatchV1::CancelJobRequest::Representation
|
151
|
+
command.request_object = cancel_job_request_object
|
152
|
+
command.response_representation = Google::Apis::BatchV1::Operation::Representation
|
153
|
+
command.response_class = Google::Apis::BatchV1::Operation
|
154
|
+
command.params['name'] = name unless name.nil?
|
155
|
+
command.query['fields'] = fields unless fields.nil?
|
156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
157
|
+
execute_or_queue_command(command, &block)
|
158
|
+
end
|
159
|
+
|
127
160
|
# Create a Job.
|
128
161
|
# @param [String] parent
|
129
162
|
# 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.
|
4
|
+
version: 0.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-02 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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-batch_v1/v0.49.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
|
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: []
|