google-apis-workloadmanager_v1 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/workloadmanager_v1/classes.rb +764 -0
- data/lib/google/apis/workloadmanager_v1/gem_version.rb +2 -2
- data/lib/google/apis/workloadmanager_v1/representations.rb +380 -0
- data/lib/google/apis/workloadmanager_v1/service.rb +154 -0
- metadata +3 -3
@@ -175,6 +175,48 @@ module Google
|
|
175
175
|
execute_or_queue_command(command, &block)
|
176
176
|
end
|
177
177
|
|
178
|
+
# Deletes a single Evaluation.
|
179
|
+
# @param [String] name
|
180
|
+
# Required. Name of the resource
|
181
|
+
# @param [String] request_id
|
182
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
183
|
+
# request ID so that if you must retry your request, the server will know to
|
184
|
+
# ignore the request if it has already been completed. The server will guarantee
|
185
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
186
|
+
# situation where you make an initial request and the request times out. If you
|
187
|
+
# make the request again with the same request ID, the server can check if
|
188
|
+
# original operation with the same request ID was received, and if so, will
|
189
|
+
# ignore the second request. This prevents clients from accidentally creating
|
190
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
191
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
192
|
+
# @param [String] fields
|
193
|
+
# Selector specifying which fields to include in a partial response.
|
194
|
+
# @param [String] quota_user
|
195
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
196
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
197
|
+
# @param [Google::Apis::RequestOptions] options
|
198
|
+
# Request-specific options
|
199
|
+
#
|
200
|
+
# @yield [result, err] Result & error if block supplied
|
201
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::Operation] parsed result object
|
202
|
+
# @yieldparam err [StandardError] error object if request failed
|
203
|
+
#
|
204
|
+
# @return [Google::Apis::WorkloadmanagerV1::Operation]
|
205
|
+
#
|
206
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
207
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
208
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
209
|
+
def delete_project_location_evaluation(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
210
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
211
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation
|
212
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::Operation
|
213
|
+
command.params['name'] = name unless name.nil?
|
214
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
178
220
|
# Gets details of a single Evaluation.
|
179
221
|
# @param [String] name
|
180
222
|
# Required. Name of the resource
|
@@ -248,6 +290,48 @@ module Google
|
|
248
290
|
execute_or_queue_command(command, &block)
|
249
291
|
end
|
250
292
|
|
293
|
+
# Deletes a single Execution.
|
294
|
+
# @param [String] name
|
295
|
+
# Required. Name of the resource
|
296
|
+
# @param [String] request_id
|
297
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
298
|
+
# request ID so that if you must retry your request, the server will know to
|
299
|
+
# ignore the request if it has already been completed. The server will guarantee
|
300
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
301
|
+
# situation where you make an initial request and the request times out. If you
|
302
|
+
# make the request again with the same request ID, the server can check if
|
303
|
+
# original operation with the same request ID was received, and if so, will
|
304
|
+
# ignore the second request. This prevents clients from accidentally creating
|
305
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
306
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
307
|
+
# @param [String] fields
|
308
|
+
# Selector specifying which fields to include in a partial response.
|
309
|
+
# @param [String] quota_user
|
310
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
311
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
312
|
+
# @param [Google::Apis::RequestOptions] options
|
313
|
+
# Request-specific options
|
314
|
+
#
|
315
|
+
# @yield [result, err] Result & error if block supplied
|
316
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::Operation] parsed result object
|
317
|
+
# @yieldparam err [StandardError] error object if request failed
|
318
|
+
#
|
319
|
+
# @return [Google::Apis::WorkloadmanagerV1::Operation]
|
320
|
+
#
|
321
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
322
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
323
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
324
|
+
def delete_project_location_evaluation_execution(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
325
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
326
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::Operation::Representation
|
327
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::Operation
|
328
|
+
command.params['name'] = name unless name.nil?
|
329
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
330
|
+
command.query['fields'] = fields unless fields.nil?
|
331
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
332
|
+
execute_or_queue_command(command, &block)
|
333
|
+
end
|
334
|
+
|
251
335
|
# Gets details of a single Execution.
|
252
336
|
# @param [String] name
|
253
337
|
# Required. Name of the resource
|
@@ -665,6 +749,76 @@ module Google
|
|
665
749
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
666
750
|
execute_or_queue_command(command, &block)
|
667
751
|
end
|
752
|
+
|
753
|
+
# Gets details of a single workload.
|
754
|
+
# @param [String] name
|
755
|
+
# Required. Name of the resource
|
756
|
+
# @param [String] fields
|
757
|
+
# Selector specifying which fields to include in a partial response.
|
758
|
+
# @param [String] quota_user
|
759
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
760
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
761
|
+
# @param [Google::Apis::RequestOptions] options
|
762
|
+
# Request-specific options
|
763
|
+
#
|
764
|
+
# @yield [result, err] Result & error if block supplied
|
765
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::WorkloadProfile] parsed result object
|
766
|
+
# @yieldparam err [StandardError] error object if request failed
|
767
|
+
#
|
768
|
+
# @return [Google::Apis::WorkloadmanagerV1::WorkloadProfile]
|
769
|
+
#
|
770
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
771
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
772
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
773
|
+
def get_project_location_workload_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
774
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
775
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::WorkloadProfile::Representation
|
776
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::WorkloadProfile
|
777
|
+
command.params['name'] = name unless name.nil?
|
778
|
+
command.query['fields'] = fields unless fields.nil?
|
779
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
780
|
+
execute_or_queue_command(command, &block)
|
781
|
+
end
|
782
|
+
|
783
|
+
# List workloads
|
784
|
+
# @param [String] parent
|
785
|
+
# Required. Parent value for ListWorkloadRequest
|
786
|
+
# @param [String] filter
|
787
|
+
# Optional. Filtering results
|
788
|
+
# @param [Fixnum] page_size
|
789
|
+
# Optional. Requested page size. Server may return fewer items than requested.
|
790
|
+
# If unspecified, server will pick an appropriate default.
|
791
|
+
# @param [String] page_token
|
792
|
+
# Optional. A token identifying a page of results the server should return.
|
793
|
+
# @param [String] fields
|
794
|
+
# Selector specifying which fields to include in a partial response.
|
795
|
+
# @param [String] quota_user
|
796
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
797
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
798
|
+
# @param [Google::Apis::RequestOptions] options
|
799
|
+
# Request-specific options
|
800
|
+
#
|
801
|
+
# @yield [result, err] Result & error if block supplied
|
802
|
+
# @yieldparam result [Google::Apis::WorkloadmanagerV1::ListWorkloadProfilesResponse] parsed result object
|
803
|
+
# @yieldparam err [StandardError] error object if request failed
|
804
|
+
#
|
805
|
+
# @return [Google::Apis::WorkloadmanagerV1::ListWorkloadProfilesResponse]
|
806
|
+
#
|
807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
810
|
+
def list_project_location_workload_profiles(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
811
|
+
command = make_simple_command(:get, 'v1/{+parent}/workloadProfiles', options)
|
812
|
+
command.response_representation = Google::Apis::WorkloadmanagerV1::ListWorkloadProfilesResponse::Representation
|
813
|
+
command.response_class = Google::Apis::WorkloadmanagerV1::ListWorkloadProfilesResponse
|
814
|
+
command.params['parent'] = parent unless parent.nil?
|
815
|
+
command.query['filter'] = filter unless filter.nil?
|
816
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
817
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
execute_or_queue_command(command, &block)
|
821
|
+
end
|
668
822
|
|
669
823
|
protected
|
670
824
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-workloadmanager_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.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: 2024-
|
11
|
+
date: 2024-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workloadmanager_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-workloadmanager_v1/v0.15.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-workloadmanager_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|