google-apis-run_v2 0.27.0 → 0.29.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 +9 -0
- data/lib/google/apis/run_v2/classes.rb +45 -0
- data/lib/google/apis/run_v2/gem_version.rb +3 -3
- data/lib/google/apis/run_v2/representations.rb +17 -0
- data/lib/google/apis/run_v2/service.rb +40 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88bb5fa299726bc7f6780b4058608fca20566da5ebc93c73dae9a84b91ca3852
|
4
|
+
data.tar.gz: 7bb4da159e65453398285319b6df3f307be2dd28a0e4bc61d9c1a5de0c4bb587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0b9644f9e690358177a417b32d36786ce96a67223d80bfe95723d5eadaff6d15930d43f6a4149a236aebbff5cd18dce6d1d32addacd7848e259df07120c6820
|
7
|
+
data.tar.gz: 5f7dc90436ac4346ab93a2ebaeaf9672bd607543012f7ff2a2c0427aefbaad462b609de0d7b4758b133e919091b279718d1b2fa62b223ff9f3f4b76af0ca82f9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-run_v2
|
2
2
|
|
3
|
+
### v0.29.0 (2023-01-22)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230113
|
6
|
+
|
7
|
+
### v0.28.0 (2023-01-08)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230102
|
10
|
+
* Regenerated using generator version 0.11.1
|
11
|
+
|
3
12
|
### v0.27.0 (2022-12-19)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20221211
|
@@ -339,6 +339,11 @@ module Google
|
|
339
339
|
# @return [Hash<String,String>]
|
340
340
|
attr_accessor :annotations
|
341
341
|
|
342
|
+
# Output only. The number of tasks which reached phase Cancelled.
|
343
|
+
# Corresponds to the JSON property `cancelledCount`
|
344
|
+
# @return [Fixnum]
|
345
|
+
attr_accessor :cancelled_count
|
346
|
+
|
342
347
|
# Output only. Represents time when the execution was completed. It is not
|
343
348
|
# guaranteed to be set in happens-before order across separate operations.
|
344
349
|
# Corresponds to the JSON property `completionTime`
|
@@ -409,6 +414,11 @@ module Google
|
|
409
414
|
# @return [String]
|
410
415
|
attr_accessor :launch_stage
|
411
416
|
|
417
|
+
# Output only. URI where logs for this execution can be found in Cloud Console.
|
418
|
+
# Corresponds to the JSON property `logUri`
|
419
|
+
# @return [String]
|
420
|
+
attr_accessor :log_uri
|
421
|
+
|
412
422
|
# Output only. The unique name of this Execution.
|
413
423
|
# Corresponds to the JSON property `name`
|
414
424
|
# @return [String]
|
@@ -438,6 +448,11 @@ module Google
|
|
438
448
|
attr_accessor :reconciling
|
439
449
|
alias_method :reconciling?, :reconciling
|
440
450
|
|
451
|
+
# Output only. The number of tasks which have retried at least once.
|
452
|
+
# Corresponds to the JSON property `retriedCount`
|
453
|
+
# @return [Fixnum]
|
454
|
+
attr_accessor :retried_count
|
455
|
+
|
441
456
|
# Output only. The number of actively running tasks.
|
442
457
|
# Corresponds to the JSON property `runningCount`
|
443
458
|
# @return [Fixnum]
|
@@ -487,6 +502,7 @@ module Google
|
|
487
502
|
# Update properties of this object
|
488
503
|
def update!(**args)
|
489
504
|
@annotations = args[:annotations] if args.key?(:annotations)
|
505
|
+
@cancelled_count = args[:cancelled_count] if args.key?(:cancelled_count)
|
490
506
|
@completion_time = args[:completion_time] if args.key?(:completion_time)
|
491
507
|
@conditions = args[:conditions] if args.key?(:conditions)
|
492
508
|
@create_time = args[:create_time] if args.key?(:create_time)
|
@@ -498,10 +514,12 @@ module Google
|
|
498
514
|
@job = args[:job] if args.key?(:job)
|
499
515
|
@labels = args[:labels] if args.key?(:labels)
|
500
516
|
@launch_stage = args[:launch_stage] if args.key?(:launch_stage)
|
517
|
+
@log_uri = args[:log_uri] if args.key?(:log_uri)
|
501
518
|
@name = args[:name] if args.key?(:name)
|
502
519
|
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
503
520
|
@parallelism = args[:parallelism] if args.key?(:parallelism)
|
504
521
|
@reconciling = args[:reconciling] if args.key?(:reconciling)
|
522
|
+
@retried_count = args[:retried_count] if args.key?(:retried_count)
|
505
523
|
@running_count = args[:running_count] if args.key?(:running_count)
|
506
524
|
@start_time = args[:start_time] if args.key?(:start_time)
|
507
525
|
@succeeded_count = args[:succeeded_count] if args.key?(:succeeded_count)
|
@@ -1907,6 +1925,11 @@ module Google
|
|
1907
1925
|
# @return [Google::Apis::RunV2::GoogleCloudRunV2TaskAttemptResult]
|
1908
1926
|
attr_accessor :last_attempt_result
|
1909
1927
|
|
1928
|
+
# Output only. URI where logs for this execution can be found in Cloud Console.
|
1929
|
+
# Corresponds to the JSON property `logUri`
|
1930
|
+
# @return [String]
|
1931
|
+
attr_accessor :log_uri
|
1932
|
+
|
1910
1933
|
# Number of retries allowed per Task, before marking this Task failed.
|
1911
1934
|
# Corresponds to the JSON property `maxRetries`
|
1912
1935
|
# @return [Fixnum]
|
@@ -2004,6 +2027,7 @@ module Google
|
|
2004
2027
|
@job = args[:job] if args.key?(:job)
|
2005
2028
|
@labels = args[:labels] if args.key?(:labels)
|
2006
2029
|
@last_attempt_result = args[:last_attempt_result] if args.key?(:last_attempt_result)
|
2030
|
+
@log_uri = args[:log_uri] if args.key?(:log_uri)
|
2007
2031
|
@max_retries = args[:max_retries] if args.key?(:max_retries)
|
2008
2032
|
@name = args[:name] if args.key?(:name)
|
2009
2033
|
@observed_generation = args[:observed_generation] if args.key?(:observed_generation)
|
@@ -2763,6 +2787,27 @@ module Google
|
|
2763
2787
|
end
|
2764
2788
|
end
|
2765
2789
|
|
2790
|
+
# The request message for Operations.WaitOperation.
|
2791
|
+
class GoogleLongrunningWaitOperationRequest
|
2792
|
+
include Google::Apis::Core::Hashable
|
2793
|
+
|
2794
|
+
# The maximum duration to wait before timing out. If left blank, the wait will
|
2795
|
+
# be at most the time permitted by the underlying HTTP/RPC protocol. If RPC
|
2796
|
+
# context deadline is also specified, the shorter one will be used.
|
2797
|
+
# Corresponds to the JSON property `timeout`
|
2798
|
+
# @return [String]
|
2799
|
+
attr_accessor :timeout
|
2800
|
+
|
2801
|
+
def initialize(**args)
|
2802
|
+
update!(**args)
|
2803
|
+
end
|
2804
|
+
|
2805
|
+
# Update properties of this object
|
2806
|
+
def update!(**args)
|
2807
|
+
@timeout = args[:timeout] if args.key?(:timeout)
|
2808
|
+
end
|
2809
|
+
end
|
2810
|
+
|
2766
2811
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
2767
2812
|
# messages in your APIs. A typical example is to use it as the request or the
|
2768
2813
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RunV2
|
18
18
|
# Version of the google-apis-run_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.29.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230113"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -304,6 +304,12 @@ module Google
|
|
304
304
|
include Google::Apis::Core::JsonObjectSupport
|
305
305
|
end
|
306
306
|
|
307
|
+
class GoogleLongrunningWaitOperationRequest
|
308
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
|
+
|
310
|
+
include Google::Apis::Core::JsonObjectSupport
|
311
|
+
end
|
312
|
+
|
307
313
|
class GoogleProtobufEmpty
|
308
314
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
309
315
|
|
@@ -404,6 +410,7 @@ module Google
|
|
404
410
|
# @private
|
405
411
|
class Representation < Google::Apis::Core::JsonRepresentation
|
406
412
|
hash :annotations, as: 'annotations'
|
413
|
+
property :cancelled_count, as: 'cancelledCount'
|
407
414
|
property :completion_time, as: 'completionTime'
|
408
415
|
collection :conditions, as: 'conditions', class: Google::Apis::RunV2::GoogleCloudRunV2Condition, decorator: Google::Apis::RunV2::GoogleCloudRunV2Condition::Representation
|
409
416
|
|
@@ -416,10 +423,12 @@ module Google
|
|
416
423
|
property :job, as: 'job'
|
417
424
|
hash :labels, as: 'labels'
|
418
425
|
property :launch_stage, as: 'launchStage'
|
426
|
+
property :log_uri, as: 'logUri'
|
419
427
|
property :name, as: 'name'
|
420
428
|
property :observed_generation, :numeric_string => true, as: 'observedGeneration'
|
421
429
|
property :parallelism, as: 'parallelism'
|
422
430
|
property :reconciling, as: 'reconciling'
|
431
|
+
property :retried_count, as: 'retriedCount'
|
423
432
|
property :running_count, as: 'runningCount'
|
424
433
|
property :start_time, as: 'startTime'
|
425
434
|
property :succeeded_count, as: 'succeededCount'
|
@@ -743,6 +752,7 @@ module Google
|
|
743
752
|
hash :labels, as: 'labels'
|
744
753
|
property :last_attempt_result, as: 'lastAttemptResult', class: Google::Apis::RunV2::GoogleCloudRunV2TaskAttemptResult, decorator: Google::Apis::RunV2::GoogleCloudRunV2TaskAttemptResult::Representation
|
745
754
|
|
755
|
+
property :log_uri, as: 'logUri'
|
746
756
|
property :max_retries, as: 'maxRetries'
|
747
757
|
property :name, as: 'name'
|
748
758
|
property :observed_generation, :numeric_string => true, as: 'observedGeneration'
|
@@ -926,6 +936,13 @@ module Google
|
|
926
936
|
end
|
927
937
|
end
|
928
938
|
|
939
|
+
class GoogleLongrunningWaitOperationRequest
|
940
|
+
# @private
|
941
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
942
|
+
property :timeout, as: 'timeout'
|
943
|
+
end
|
944
|
+
end
|
945
|
+
|
929
946
|
class GoogleProtobufEmpty
|
930
947
|
# @private
|
931
948
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -705,6 +705,46 @@ module Google
|
|
705
705
|
execute_or_queue_command(command, &block)
|
706
706
|
end
|
707
707
|
|
708
|
+
# Waits until the specified long-running operation is done or reaches at most a
|
709
|
+
# specified timeout, returning the latest state. If the operation is already
|
710
|
+
# done, the latest state is immediately returned. If the timeout specified is
|
711
|
+
# greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If
|
712
|
+
# the server does not support this method, it returns `google.rpc.Code.
|
713
|
+
# UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return
|
714
|
+
# the latest state before the specified timeout (including immediately), meaning
|
715
|
+
# even an immediate response is no guarantee that the operation is done.
|
716
|
+
# @param [String] name
|
717
|
+
# The name of the operation resource to wait on.
|
718
|
+
# @param [Google::Apis::RunV2::GoogleLongrunningWaitOperationRequest] google_longrunning_wait_operation_request_object
|
719
|
+
# @param [String] fields
|
720
|
+
# Selector specifying which fields to include in a partial response.
|
721
|
+
# @param [String] quota_user
|
722
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
723
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
724
|
+
# @param [Google::Apis::RequestOptions] options
|
725
|
+
# Request-specific options
|
726
|
+
#
|
727
|
+
# @yield [result, err] Result & error if block supplied
|
728
|
+
# @yieldparam result [Google::Apis::RunV2::GoogleLongrunningOperation] parsed result object
|
729
|
+
# @yieldparam err [StandardError] error object if request failed
|
730
|
+
#
|
731
|
+
# @return [Google::Apis::RunV2::GoogleLongrunningOperation]
|
732
|
+
#
|
733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
736
|
+
def wait_project_location_operation(name, google_longrunning_wait_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
737
|
+
command = make_simple_command(:post, 'v2/{+name}:wait', options)
|
738
|
+
command.request_representation = Google::Apis::RunV2::GoogleLongrunningWaitOperationRequest::Representation
|
739
|
+
command.request_object = google_longrunning_wait_operation_request_object
|
740
|
+
command.response_representation = Google::Apis::RunV2::GoogleLongrunningOperation::Representation
|
741
|
+
command.response_class = Google::Apis::RunV2::GoogleLongrunningOperation
|
742
|
+
command.params['name'] = name unless name.nil?
|
743
|
+
command.query['fields'] = fields unless fields.nil?
|
744
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
745
|
+
execute_or_queue_command(command, &block)
|
746
|
+
end
|
747
|
+
|
708
748
|
# Creates a new Service in a given project and location.
|
709
749
|
# @param [String] parent
|
710
750
|
# Required. The location and project in which this service should be created.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-run_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.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: 2023-01-
|
11
|
+
date: 2023-01-22 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-run_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-run_v2/v0.29.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-run_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud Run Admin API V2
|