google-cloud-run-v2 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -99
  3. data/lib/google/cloud/run/v2/condition_pb.rb +1 -1
  4. data/lib/google/cloud/run/v2/execution_pb.rb +2 -1
  5. data/lib/google/cloud/run/v2/execution_services_pb.rb +2 -0
  6. data/lib/google/cloud/run/v2/executions/client.rb +148 -14
  7. data/lib/google/cloud/run/v2/executions/operations.rb +28 -6
  8. data/lib/google/cloud/run/v2/executions/rest/client.rb +143 -13
  9. data/lib/google/cloud/run/v2/executions/rest/operations.rb +33 -8
  10. data/lib/google/cloud/run/v2/executions/rest/service_stub.rb +74 -2
  11. data/lib/google/cloud/run/v2/job_pb.rb +8 -1
  12. data/lib/google/cloud/run/v2/jobs/client.rb +67 -21
  13. data/lib/google/cloud/run/v2/jobs/operations.rb +28 -6
  14. data/lib/google/cloud/run/v2/jobs/rest/client.rb +39 -8
  15. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +33 -8
  16. data/lib/google/cloud/run/v2/jobs/rest/service_stub.rb +14 -2
  17. data/lib/google/cloud/run/v2/k8s.min_pb.rb +3 -1
  18. data/lib/google/cloud/run/v2/revisions/client.rb +33 -8
  19. data/lib/google/cloud/run/v2/revisions/operations.rb +28 -6
  20. data/lib/google/cloud/run/v2/revisions/rest/client.rb +35 -7
  21. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +33 -8
  22. data/lib/google/cloud/run/v2/revisions/rest/service_stub.rb +14 -2
  23. data/lib/google/cloud/run/v2/services/client.rb +33 -8
  24. data/lib/google/cloud/run/v2/services/operations.rb +28 -6
  25. data/lib/google/cloud/run/v2/services/rest/client.rb +35 -7
  26. data/lib/google/cloud/run/v2/services/rest/operations.rb +33 -8
  27. data/lib/google/cloud/run/v2/services/rest/service_stub.rb +14 -2
  28. data/lib/google/cloud/run/v2/task_pb.rb +1 -1
  29. data/lib/google/cloud/run/v2/tasks/client.rb +32 -8
  30. data/lib/google/cloud/run/v2/tasks/rest/client.rb +34 -7
  31. data/lib/google/cloud/run/v2/tasks/rest/service_stub.rb +14 -2
  32. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -1
  33. data/lib/google/cloud/run/v2/version.rb +1 -1
  34. data/proto_docs/google/api/client.rb +14 -0
  35. data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
  36. data/proto_docs/google/cloud/run/v2/execution.rb +26 -6
  37. data/proto_docs/google/cloud/run/v2/job.rb +42 -0
  38. data/proto_docs/google/cloud/run/v2/k8s.min.rb +44 -4
  39. data/proto_docs/google/cloud/run/v2/task.rb +7 -2
  40. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +33 -5
  41. metadata +7 -7
@@ -139,9 +139,51 @@ module Google
139
139
  # @return [::String]
140
140
  # A system-generated fingerprint for this version of the
141
141
  # resource. May be used to detect modification conflict during updates.
142
+ # @!attribute [rw] overrides
143
+ # @return [::Google::Cloud::Run::V2::RunJobRequest::Overrides]
144
+ # Overrides specification for a given execution of a job. If provided,
145
+ # overrides will be applied to update the execution or task spec.
142
146
  class RunJobRequest
143
147
  include ::Google::Protobuf::MessageExts
144
148
  extend ::Google::Protobuf::MessageExts::ClassMethods
149
+
150
+ # RunJob Overrides that contains Execution fields to be overridden.
151
+ # @!attribute [rw] container_overrides
152
+ # @return [::Array<::Google::Cloud::Run::V2::RunJobRequest::Overrides::ContainerOverride>]
153
+ # Per container override specification.
154
+ # @!attribute [rw] task_count
155
+ # @return [::Integer]
156
+ # Optional. The desired number of tasks the execution should run. Will
157
+ # replace existing task_count value.
158
+ # @!attribute [rw] timeout
159
+ # @return [::Google::Protobuf::Duration]
160
+ # Duration in seconds the task may be active before the system will
161
+ # actively try to mark it failed and kill associated containers. Will
162
+ # replace existing timeout_seconds value.
163
+ class Overrides
164
+ include ::Google::Protobuf::MessageExts
165
+ extend ::Google::Protobuf::MessageExts::ClassMethods
166
+
167
+ # Per-container override specification.
168
+ # @!attribute [rw] name
169
+ # @return [::String]
170
+ # The name of the container specified as a DNS_LABEL.
171
+ # @!attribute [rw] args
172
+ # @return [::Array<::String>]
173
+ # Optional. Arguments to the entrypoint. Will replace existing args for
174
+ # override.
175
+ # @!attribute [rw] env
176
+ # @return [::Array<::Google::Cloud::Run::V2::EnvVar>]
177
+ # List of environment variables to set in the container. Will be merged
178
+ # with existing env for override.
179
+ # @!attribute [rw] clear_args
180
+ # @return [::Boolean]
181
+ # Optional. True if the intention is to clear out existing args list.
182
+ class ContainerOverride
183
+ include ::Google::Protobuf::MessageExts
184
+ extend ::Google::Protobuf::MessageExts::ClassMethods
185
+ end
186
+ end
145
187
  end
146
188
 
147
189
  # Job represents the configuration of a single job, which references a
@@ -24,7 +24,7 @@ module Google
24
24
  # A single application container.
25
25
  # This specifies both the container to run, the command to run in the container
26
26
  # and the arguments to supply to it.
27
- # Note that additional arguments may be supplied by the system to the container
27
+ # Note that additional arguments can be supplied by the system to the container
28
28
  # at runtime.
29
29
  # @!attribute [rw] name
30
30
  # @return [::String]
@@ -74,6 +74,9 @@ module Google
74
74
  # All other probes are disabled if a startup probe is provided, until it
75
75
  # succeeds. Container will not be added to service endpoints if the probe
76
76
  # fails.
77
+ # @!attribute [rw] depends_on
78
+ # @return [::Array<::String>]
79
+ # Names of the containers that must start before this container.
77
80
  class Container
78
81
  include ::Google::Protobuf::MessageExts
79
82
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -115,8 +118,8 @@ module Google
115
118
  # EnvVar represents an environment variable present in a Container.
116
119
  # @!attribute [rw] name
117
120
  # @return [::String]
118
- # Required. Name of the environment variable. Must be a C_IDENTIFIER, and
119
- # mnay not exceed 32768 characters.
121
+ # Required. Name of the environment variable. Must not exceed 32768
122
+ # characters.
120
123
  # @!attribute [rw] value
121
124
  # @return [::String]
122
125
  # Variable references $(VAR_NAME) are expanded
@@ -203,6 +206,9 @@ module Google
203
206
  # For Cloud SQL volumes, contains the specific instances that should be
204
207
  # mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
205
208
  # more information on how to connect Cloud SQL and Cloud Run.
209
+ # @!attribute [rw] empty_dir
210
+ # @return [::Google::Cloud::Run::V2::EmptyDirVolumeSource]
211
+ # Ephemeral storage used as a shared volume.
206
212
  class Volume
207
213
  include ::Google::Protobuf::MessageExts
208
214
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -297,6 +303,40 @@ module Google
297
303
  extend ::Google::Protobuf::MessageExts::ClassMethods
298
304
  end
299
305
 
306
+ # In memory (tmpfs) ephemeral storage.
307
+ # It is ephemeral in the sense that when the sandbox is taken down, the data is
308
+ # destroyed with it (it does not persist across sandbox runs).
309
+ # @!attribute [rw] medium
310
+ # @return [::Google::Cloud::Run::V2::EmptyDirVolumeSource::Medium]
311
+ # The medium on which the data is stored. Acceptable values today is only
312
+ # MEMORY or none. When none, the default will currently be backed by memory
313
+ # but could change over time. +optional
314
+ # @!attribute [rw] size_limit
315
+ # @return [::String]
316
+ # Limit on the storage usable by this EmptyDir volume.
317
+ # The size limit is also applicable for memory medium.
318
+ # The maximum usage on memory medium EmptyDir would be the minimum value
319
+ # between the SizeLimit specified here and the sum of memory limits of all
320
+ # containers. The default is nil which means that the limit is undefined.
321
+ # More info:
322
+ # https://cloud.google.com/run/docs/configuring/in-memory-volumes#configure-volume.
323
+ # Info in Kubernetes:
324
+ # https://kubernetes.io/docs/concepts/storage/volumes/#emptydir
325
+ class EmptyDirVolumeSource
326
+ include ::Google::Protobuf::MessageExts
327
+ extend ::Google::Protobuf::MessageExts::ClassMethods
328
+
329
+ # The different types of medium supported for EmptyDir.
330
+ module Medium
331
+ # When not specified, falls back to the default implementation which
332
+ # is currently in memory (this may change over time).
333
+ MEDIUM_UNSPECIFIED = 0
334
+
335
+ # Explicitly set the EmptyDir to be in memory. Uses tmpfs.
336
+ MEMORY = 1
337
+ end
338
+ end
339
+
300
340
  # Probe describes a health check to be performed against a container to
301
341
  # determine whether it is alive or ready to receive traffic.
302
342
  # @!attribute [rw] initial_delay_seconds
@@ -386,7 +426,7 @@ module Google
386
426
  # @!attribute [rw] service
387
427
  # @return [::String]
388
428
  # Service is the name of the service to place in the gRPC HealthCheckRequest
389
- # (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If
429
+ # (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If
390
430
  # this is not specified, the default behavior is defined by gRPC.
391
431
  class GRPCAction
392
432
  include ::Google::Protobuf::MessageExts
@@ -96,8 +96,13 @@ module Google
96
96
  # when modifying objects.
97
97
  # @!attribute [r] create_time
98
98
  # @return [::Google::Protobuf::Timestamp]
99
- # Output only. Represents time when the task was created by the job
100
- # controller. It is not guaranteed to be set in happens-before order across
99
+ # Output only. Represents time when the task was created by the system.
100
+ # It is not guaranteed to be set in happens-before order across separate
101
+ # operations.
102
+ # @!attribute [r] scheduled_time
103
+ # @return [::Google::Protobuf::Timestamp]
104
+ # Output only. Represents time when the task was scheduled to run by the
105
+ # system. It is not guaranteed to be set in happens-before order across
101
106
  # separate operations.
102
107
  # @!attribute [r] start_time
103
108
  # @return [::Google::Protobuf::Timestamp]
@@ -21,22 +21,50 @@ module Google
21
21
  module Cloud
22
22
  module Run
23
23
  module V2
24
- # VPC Access settings. For more information on creating a VPC Connector, visit
25
- # https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
26
- # information on how to configure Cloud Run with an existing VPC Connector,
27
- # visit https://cloud.google.com/run/docs/configuring/connecting-vpc
24
+ # VPC Access settings. For more information on sending traffic to a VPC
25
+ # network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
28
26
  # @!attribute [rw] connector
29
27
  # @return [::String]
30
28
  # VPC Access connector name.
31
29
  # Format: projects/\\{project}/locations/\\{location}/connectors/\\{connector},
32
30
  # where \\{project} can be project id or number.
31
+ # For more information on sending traffic to a VPC network via a connector,
32
+ # visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
33
33
  # @!attribute [rw] egress
34
34
  # @return [::Google::Cloud::Run::V2::VpcAccess::VpcEgress]
35
- # Traffic VPC egress settings.
35
+ # Traffic VPC egress settings. If not provided, it defaults to
36
+ # PRIVATE_RANGES_ONLY.
37
+ # @!attribute [rw] network_interfaces
38
+ # @return [::Array<::Google::Cloud::Run::V2::VpcAccess::NetworkInterface>]
39
+ # Direct VPC egress settings. Currently only single network interface is
40
+ # supported.
36
41
  class VpcAccess
37
42
  include ::Google::Protobuf::MessageExts
38
43
  extend ::Google::Protobuf::MessageExts::ClassMethods
39
44
 
45
+ # Direct VPC egress settings.
46
+ # @!attribute [rw] network
47
+ # @return [::String]
48
+ # The VPC network that the Cloud Run resource will be able to send traffic
49
+ # to. At least one of network or subnetwork must be specified. If both
50
+ # network and subnetwork are specified, the given VPC subnetwork must
51
+ # belong to the given VPC network. If network is not specified, it will be
52
+ # looked up from the subnetwork.
53
+ # @!attribute [rw] subnetwork
54
+ # @return [::String]
55
+ # The VPC subnetwork that the Cloud Run resource will get IPs from. At
56
+ # least one of network or subnetwork must be specified. If both
57
+ # network and subnetwork are specified, the given VPC subnetwork must
58
+ # belong to the given VPC network. If subnetwork is not specified, the
59
+ # subnetwork with the same name with the network will be used.
60
+ # @!attribute [rw] tags
61
+ # @return [::Array<::String>]
62
+ # Network tags applied to this Cloud Run resource.
63
+ class NetworkInterface
64
+ include ::Google::Protobuf::MessageExts
65
+ extend ::Google::Protobuf::MessageExts::ClassMethods
66
+ end
67
+
40
68
  # Egress options for VPC access.
41
69
  module VpcEgress
42
70
  # Unspecified
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-run-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.13.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-09-12 00:00:00.000000000 Z
11
+ date: 2024-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.0
19
+ version: 0.21.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.20.0
29
+ version: 0.21.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.4'
53
+ version: '0.7'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.a
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0.4'
63
+ version: '0.7'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
@@ -315,7 +315,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
315
  - !ruby/object:Gem::Version
316
316
  version: '0'
317
317
  requirements: []
318
- rubygems_version: 3.4.19
318
+ rubygems_version: 3.5.3
319
319
  signing_key:
320
320
  specification_version: 4
321
321
  summary: Deploy and manage user provided container images that scale automatically