google-apis-run_v2 0.24.0 → 0.25.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/run_v2/classes.rb +42 -8
- data/lib/google/apis/run_v2/gem_version.rb +2 -2
- data/lib/google/apis/run_v2/representations.rb +16 -0
- data/lib/google/apis/run_v2/service.rb +31 -27
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0427befb980d48ab293de229231f6a41c69064c72d6b7f027c0ba179b390c536
|
4
|
+
data.tar.gz: f77a78e2bf19ae9e883b915234760f91202f291a4947aa37528d44a47abb8d23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a064cafc0662ee9c946b741624df9f149cdca0d333ce5794f333329fb765f7fe06523567219ba1b4e6a05177182521d86841258e9e071cc9fadd0a8f1c89cb01
|
7
|
+
data.tar.gz: 5cf9e86fcd62c43da659deaa4b63dbbee62b7bae68c16253d607f010b84289ef806092e8acc5e48ab3838756b26e276c2f9084d92106d97e2f9ec393e6f35cec
|
data/CHANGELOG.md
CHANGED
@@ -597,6 +597,34 @@ module Google
|
|
597
597
|
end
|
598
598
|
end
|
599
599
|
|
600
|
+
# GRPCAction describes an action involving a GRPC port.
|
601
|
+
class GoogleCloudRunV2GrpcAction
|
602
|
+
include Google::Apis::Core::Hashable
|
603
|
+
|
604
|
+
# Port number of the gRPC service. Number must be in the range 1 to 65535. If
|
605
|
+
# not specified, defaults to 8080.
|
606
|
+
# Corresponds to the JSON property `port`
|
607
|
+
# @return [Fixnum]
|
608
|
+
attr_accessor :port
|
609
|
+
|
610
|
+
# Service is the name of the service to place in the gRPC HealthCheckRequest (
|
611
|
+
# see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this
|
612
|
+
# is not specified, the default behavior is defined by gRPC.
|
613
|
+
# Corresponds to the JSON property `service`
|
614
|
+
# @return [String]
|
615
|
+
attr_accessor :service
|
616
|
+
|
617
|
+
def initialize(**args)
|
618
|
+
update!(**args)
|
619
|
+
end
|
620
|
+
|
621
|
+
# Update properties of this object
|
622
|
+
def update!(**args)
|
623
|
+
@port = args[:port] if args.key?(:port)
|
624
|
+
@service = args[:service] if args.key?(:service)
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
600
628
|
# HTTPGetAction describes an action based on HTTP Get requests.
|
601
629
|
class GoogleCloudRunV2HttpGetAction
|
602
630
|
include Google::Apis::Core::Hashable
|
@@ -981,6 +1009,11 @@ module Google
|
|
981
1009
|
# @return [Fixnum]
|
982
1010
|
attr_accessor :failure_threshold
|
983
1011
|
|
1012
|
+
# GRPCAction describes an action involving a GRPC port.
|
1013
|
+
# Corresponds to the JSON property `grpc`
|
1014
|
+
# @return [Google::Apis::RunV2::GoogleCloudRunV2GrpcAction]
|
1015
|
+
attr_accessor :grpc
|
1016
|
+
|
984
1017
|
# HTTPGetAction describes an action based on HTTP Get requests.
|
985
1018
|
# Corresponds to the JSON property `httpGet`
|
986
1019
|
# @return [Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction]
|
@@ -1022,6 +1055,7 @@ module Google
|
|
1022
1055
|
# Update properties of this object
|
1023
1056
|
def update!(**args)
|
1024
1057
|
@failure_threshold = args[:failure_threshold] if args.key?(:failure_threshold)
|
1058
|
+
@grpc = args[:grpc] if args.key?(:grpc)
|
1025
1059
|
@http_get = args[:http_get] if args.key?(:http_get)
|
1026
1060
|
@initial_delay_seconds = args[:initial_delay_seconds] if args.key?(:initial_delay_seconds)
|
1027
1061
|
@period_seconds = args[:period_seconds] if args.key?(:period_seconds)
|
@@ -1041,9 +1075,9 @@ module Google
|
|
1041
1075
|
alias_method :cpu_idle?, :cpu_idle
|
1042
1076
|
|
1043
1077
|
# Only memory and CPU are supported. Note: The only supported values for CPU are
|
1044
|
-
# '1', '2', and '
|
1045
|
-
# of the map is string form of the 'quantity' k8s type: https://github.
|
1046
|
-
# kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
|
1078
|
+
# '1', '2', '4', and '8'. Setting 4 CPU requires at least 2Gi of memory. The
|
1079
|
+
# values of the map is string form of the 'quantity' k8s type: https://github.
|
1080
|
+
# com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/
|
1047
1081
|
# resource/quantity.go
|
1048
1082
|
# Corresponds to the JSON property `limits`
|
1049
1083
|
# @return [Hash<String,String>]
|
@@ -1414,8 +1448,8 @@ module Google
|
|
1414
1448
|
# @return [String]
|
1415
1449
|
attr_accessor :secret
|
1416
1450
|
|
1417
|
-
# The Cloud Secret Manager secret version. Can be 'latest' for the latest
|
1418
|
-
#
|
1451
|
+
# The Cloud Secret Manager secret version. Can be 'latest' for the latest
|
1452
|
+
# version, an integer for a specific version, or a version alias.
|
1419
1453
|
# Corresponds to the JSON property `version`
|
1420
1454
|
# @return [String]
|
1421
1455
|
attr_accessor :version
|
@@ -2167,8 +2201,8 @@ module Google
|
|
2167
2201
|
# @return [String]
|
2168
2202
|
attr_accessor :path
|
2169
2203
|
|
2170
|
-
# The Cloud Secret Manager secret version. Can be 'latest' for the latest value
|
2171
|
-
# or an integer for a specific version.
|
2204
|
+
# The Cloud Secret Manager secret version. Can be 'latest' for the latest value,
|
2205
|
+
# or an integer or a secret alias for a specific version.
|
2172
2206
|
# Corresponds to the JSON property `version`
|
2173
2207
|
# @return [String]
|
2174
2208
|
attr_accessor :version
|
@@ -2255,7 +2289,7 @@ module Google
|
|
2255
2289
|
include Google::Apis::Core::Hashable
|
2256
2290
|
|
2257
2291
|
# VPC Access connector name. Format: projects/`project`/locations/`location`/
|
2258
|
-
# connectors/`connector`
|
2292
|
+
# connectors/`connector`, where `project` can be project id or number.
|
2259
2293
|
# Corresponds to the JSON property `connector`
|
2260
2294
|
# @return [String]
|
2261
2295
|
attr_accessor :connector
|
@@ -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.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221106"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -82,6 +82,12 @@ module Google
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
+
class GoogleCloudRunV2GrpcAction
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
85
91
|
class GoogleCloudRunV2HttpGetAction
|
86
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
93
|
|
@@ -446,6 +452,14 @@ module Google
|
|
446
452
|
end
|
447
453
|
end
|
448
454
|
|
455
|
+
class GoogleCloudRunV2GrpcAction
|
456
|
+
# @private
|
457
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
458
|
+
property :port, as: 'port'
|
459
|
+
property :service, as: 'service'
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
449
463
|
class GoogleCloudRunV2HttpGetAction
|
450
464
|
# @private
|
451
465
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -546,6 +560,8 @@ module Google
|
|
546
560
|
# @private
|
547
561
|
class Representation < Google::Apis::Core::JsonRepresentation
|
548
562
|
property :failure_threshold, as: 'failureThreshold'
|
563
|
+
property :grpc, as: 'grpc', class: Google::Apis::RunV2::GoogleCloudRunV2GrpcAction, decorator: Google::Apis::RunV2::GoogleCloudRunV2GrpcAction::Representation
|
564
|
+
|
549
565
|
property :http_get, as: 'httpGet', class: Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction, decorator: Google::Apis::RunV2::GoogleCloudRunV2HttpGetAction::Representation
|
550
566
|
|
551
567
|
property :initial_delay_seconds, as: 'initialDelaySeconds'
|
@@ -52,10 +52,11 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
-
#
|
55
|
+
# Creates a Job.
|
56
56
|
# @param [String] parent
|
57
57
|
# Required. The location and project in which this Job should be created. Format:
|
58
|
-
# projects/`project`/locations/`location`
|
58
|
+
# projects/`project`/locations/`location`, where `project` can be project id or
|
59
|
+
# number.
|
59
60
|
# @param [Google::Apis::RunV2::GoogleCloudRunV2Job] google_cloud_run_v2_job_object
|
60
61
|
# @param [String] job_id
|
61
62
|
# Required. The unique identifier for the Job. The name of the job becomes `
|
@@ -97,7 +98,7 @@ module Google
|
|
97
98
|
# Deletes a Job.
|
98
99
|
# @param [String] name
|
99
100
|
# Required. The full name of the Job. Format: projects/`project`/locations/`
|
100
|
-
# location`/jobs/`job`
|
101
|
+
# location`/jobs/`job`, where `project` can be project id or number.
|
101
102
|
# @param [String] etag
|
102
103
|
# A system-generated fingerprint for this version of the resource. May be used
|
103
104
|
# to detect modification conflict during updates.
|
@@ -136,7 +137,7 @@ module Google
|
|
136
137
|
# Gets information about a Job.
|
137
138
|
# @param [String] name
|
138
139
|
# Required. The full name of the Job. Format: projects/`project`/locations/`
|
139
|
-
# location`/jobs/`job`
|
140
|
+
# location`/jobs/`job`, where `project` can be project id or number.
|
140
141
|
# @param [String] fields
|
141
142
|
# Selector specifying which fields to include in a partial response.
|
142
143
|
# @param [String] quota_user
|
@@ -164,7 +165,7 @@ module Google
|
|
164
165
|
execute_or_queue_command(command, &block)
|
165
166
|
end
|
166
167
|
|
167
|
-
#
|
168
|
+
# Gets the IAM Access Control policy currently in effect for the given Job. This
|
168
169
|
# result does not include any inherited policies.
|
169
170
|
# @param [String] resource
|
170
171
|
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
@@ -209,10 +210,10 @@ module Google
|
|
209
210
|
execute_or_queue_command(command, &block)
|
210
211
|
end
|
211
212
|
|
212
|
-
#
|
213
|
+
# Lists Jobs.
|
213
214
|
# @param [String] parent
|
214
215
|
# Required. The location and project to list resources on. Format: projects/`
|
215
|
-
# project`/locations/`location`
|
216
|
+
# project`/locations/`location`, where `project` can be project id or number.
|
216
217
|
# @param [Fixnum] page_size
|
217
218
|
# Maximum number of Jobs to return in this call.
|
218
219
|
# @param [String] page_token
|
@@ -296,7 +297,7 @@ module Google
|
|
296
297
|
# Triggers creation of a new Execution of this Job.
|
297
298
|
# @param [String] name
|
298
299
|
# Required. The full name of the Job. Format: projects/`project`/locations/`
|
299
|
-
# location`/jobs/`job`
|
300
|
+
# location`/jobs/`job`, where `project` can be project id or number.
|
300
301
|
# @param [Google::Apis::RunV2::GoogleCloudRunV2RunJobRequest] google_cloud_run_v2_run_job_request_object
|
301
302
|
# @param [String] fields
|
302
303
|
# Selector specifying which fields to include in a partial response.
|
@@ -399,10 +400,11 @@ module Google
|
|
399
400
|
execute_or_queue_command(command, &block)
|
400
401
|
end
|
401
402
|
|
402
|
-
#
|
403
|
+
# Deletes an Execution.
|
403
404
|
# @param [String] name
|
404
405
|
# Required. The name of the Execution to delete. Format: projects/`project`/
|
405
|
-
# locations/`location`/jobs/`job`/executions/`execution`
|
406
|
+
# locations/`location`/jobs/`job`/executions/`execution`, where `project` can be
|
407
|
+
# project id or number.
|
406
408
|
# @param [String] etag
|
407
409
|
# A system-generated fingerprint for this version of the resource. This may be
|
408
410
|
# used to detect modification conflict during updates.
|
@@ -438,10 +440,11 @@ module Google
|
|
438
440
|
execute_or_queue_command(command, &block)
|
439
441
|
end
|
440
442
|
|
441
|
-
# Gets information about
|
443
|
+
# Gets information about an Execution.
|
442
444
|
# @param [String] name
|
443
445
|
# Required. The full name of the Execution. Format: projects/`project`/locations/
|
444
|
-
# `location`/jobs/`job`/executions/`execution`
|
446
|
+
# `location`/jobs/`job`/executions/`execution`, where `project` can be project
|
447
|
+
# id or number.
|
445
448
|
# @param [String] fields
|
446
449
|
# Selector specifying which fields to include in a partial response.
|
447
450
|
# @param [String] quota_user
|
@@ -469,11 +472,12 @@ module Google
|
|
469
472
|
execute_or_queue_command(command, &block)
|
470
473
|
end
|
471
474
|
|
472
|
-
#
|
475
|
+
# Lists Executions from a Job.
|
473
476
|
# @param [String] parent
|
474
477
|
# Required. The Execution from which the Executions should be listed. To list
|
475
478
|
# all Executions across Jobs, use "-" instead of Job name. Format: projects/`
|
476
|
-
# project`/locations/`location`/jobs/`job`
|
479
|
+
# project`/locations/`location`/jobs/`job`, where `project` can be project id or
|
480
|
+
# number.
|
477
481
|
# @param [Fixnum] page_size
|
478
482
|
# Maximum number of Executions to return in this call.
|
479
483
|
# @param [String] page_token
|
@@ -542,7 +546,7 @@ module Google
|
|
542
546
|
execute_or_queue_command(command, &block)
|
543
547
|
end
|
544
548
|
|
545
|
-
#
|
549
|
+
# Lists Tasks from an Execution of a Job.
|
546
550
|
# @param [String] parent
|
547
551
|
# Required. The Execution from which the Tasks should be listed. To list all
|
548
552
|
# Tasks across Executions of a Job, use "-" instead of Execution name. To list
|
@@ -704,13 +708,13 @@ module Google
|
|
704
708
|
# Creates a new Service in a given project and location.
|
705
709
|
# @param [String] parent
|
706
710
|
# Required. The location and project in which this service should be created.
|
707
|
-
# Format: projects/`project`/locations/`location`
|
708
|
-
# digits, and hyphens.
|
711
|
+
# Format: projects/`project`/locations/`location`, where `project` can be
|
712
|
+
# project id or number. Only lowercase characters, digits, and hyphens.
|
709
713
|
# @param [Google::Apis::RunV2::GoogleCloudRunV2Service] google_cloud_run_v2_service_object
|
710
714
|
# @param [String] service_id
|
711
715
|
# Required. The unique identifier for the Service. It must begin with letter,
|
712
|
-
# and
|
713
|
-
#
|
716
|
+
# and cannot end with hyphen; must contain fewer than 50 characters. The name of
|
717
|
+
# the service becomes `parent`/services/`service_id`.
|
714
718
|
# @param [Boolean] validate_only
|
715
719
|
# Indicates that the request should be validated and default values populated,
|
716
720
|
# without persisting the request or creating any resources.
|
@@ -749,7 +753,7 @@ module Google
|
|
749
753
|
# will delete all revisions.
|
750
754
|
# @param [String] name
|
751
755
|
# Required. The full name of the Service. Format: projects/`project`/locations/`
|
752
|
-
# location`/services/`service`
|
756
|
+
# location`/services/`service`, where `project` can be project id or number.
|
753
757
|
# @param [String] etag
|
754
758
|
# A system-generated fingerprint for this version of the resource. May be used
|
755
759
|
# to detect modification conflict during updates.
|
@@ -788,7 +792,7 @@ module Google
|
|
788
792
|
# Gets information about a Service.
|
789
793
|
# @param [String] name
|
790
794
|
# Required. The full name of the Service. Format: projects/`project`/locations/`
|
791
|
-
# location`/services/`service`
|
795
|
+
# location`/services/`service`, where `project` can be project id or number.
|
792
796
|
# @param [String] fields
|
793
797
|
# Selector specifying which fields to include in a partial response.
|
794
798
|
# @param [String] quota_user
|
@@ -816,7 +820,7 @@ module Google
|
|
816
820
|
execute_or_queue_command(command, &block)
|
817
821
|
end
|
818
822
|
|
819
|
-
#
|
823
|
+
# Gets the IAM Access Control policy currently in effect for the given Cloud Run
|
820
824
|
# Service. This result does not include any inherited policies.
|
821
825
|
# @param [String] resource
|
822
826
|
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
@@ -861,11 +865,11 @@ module Google
|
|
861
865
|
execute_or_queue_command(command, &block)
|
862
866
|
end
|
863
867
|
|
864
|
-
#
|
868
|
+
# Lists Services.
|
865
869
|
# @param [String] parent
|
866
870
|
# Required. The location and project to list resources on. Location must be a
|
867
|
-
# valid GCP region, and
|
868
|
-
# locations/`location`
|
871
|
+
# valid GCP region, and cannot be the "-" wildcard. Format: projects/`project`/
|
872
|
+
# locations/`location`, where `project` can be project id or number.
|
869
873
|
# @param [Fixnum] page_size
|
870
874
|
# Maximum number of Services to return in this call.
|
871
875
|
# @param [String] page_token
|
@@ -1020,7 +1024,7 @@ module Google
|
|
1020
1024
|
execute_or_queue_command(command, &block)
|
1021
1025
|
end
|
1022
1026
|
|
1023
|
-
#
|
1027
|
+
# Deletes a Revision.
|
1024
1028
|
# @param [String] name
|
1025
1029
|
# Required. The name of the Revision to delete. Format: projects/`project`/
|
1026
1030
|
# locations/`location`/services/`service`/revisions/`revision`
|
@@ -1090,7 +1094,7 @@ module Google
|
|
1090
1094
|
execute_or_queue_command(command, &block)
|
1091
1095
|
end
|
1092
1096
|
|
1093
|
-
#
|
1097
|
+
# Lists Revisions from a given Service, or from a given location.
|
1094
1098
|
# @param [String] parent
|
1095
1099
|
# Required. The Service from which the Revisions should be listed. To list all
|
1096
1100
|
# Revisions across Services, use "-" instead of Service name. Format: projects/`
|
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.25.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: 2022-11-
|
11
|
+
date: 2022-11-14 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.25.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: []
|