google-cloud-run-v2 0.25.0 → 0.26.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/run/v2/build_pb.rb +1 -1
  3. data/lib/google/cloud/run/v2/builds/paths.rb +2 -2
  4. data/lib/google/cloud/run/v2/instance_split_pb.rb +46 -0
  5. data/lib/google/cloud/run/v2/rest.rb +1 -0
  6. data/lib/google/cloud/run/v2/revision_pb.rb +1 -1
  7. data/lib/google/cloud/run/v2/revisions/rest/service_stub.rb +21 -0
  8. data/lib/google/cloud/run/v2/services/paths.rb +19 -19
  9. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +2 -1
  10. data/lib/google/cloud/run/v2/version.rb +1 -1
  11. data/lib/google/cloud/run/v2/worker_pool_pb.rb +70 -0
  12. data/lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb +51 -0
  13. data/lib/google/cloud/run/v2/worker_pool_services_pb.rb +63 -0
  14. data/lib/google/cloud/run/v2/worker_pools/client.rb +1258 -0
  15. data/lib/google/cloud/run/v2/worker_pools/credentials.rb +47 -0
  16. data/lib/google/cloud/run/v2/worker_pools/operations.rb +821 -0
  17. data/lib/google/cloud/run/v2/worker_pools/paths.rb +218 -0
  18. data/lib/google/cloud/run/v2/worker_pools/rest/client.rb +1161 -0
  19. data/lib/google/cloud/run/v2/worker_pools/rest/operations.rb +1082 -0
  20. data/lib/google/cloud/run/v2/worker_pools/rest/service_stub.rb +573 -0
  21. data/lib/google/cloud/run/v2/worker_pools/rest.rb +53 -0
  22. data/lib/google/cloud/run/v2/worker_pools.rb +56 -0
  23. data/lib/google/cloud/run/v2.rb +1 -0
  24. data/proto_docs/google/cloud/run/v2/instance_split.rb +71 -0
  25. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +9 -0
  26. data/proto_docs/google/cloud/run/v2/worker_pool.rb +351 -0
  27. data/proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb +117 -0
  28. metadata +17 -1
@@ -22,6 +22,7 @@ require "google/cloud/run/v2/jobs"
22
22
  require "google/cloud/run/v2/revisions"
23
23
  require "google/cloud/run/v2/services"
24
24
  require "google/cloud/run/v2/tasks"
25
+ require "google/cloud/run/v2/worker_pools"
25
26
  require "google/cloud/run/v2/version"
26
27
 
27
28
  module Google
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Run
23
+ module V2
24
+ # Holds a single instance split entry for the Worker. Allocations can be done
25
+ # to a specific Revision name, or pointing to the latest Ready Revision.
26
+ # @!attribute [rw] type
27
+ # @return [::Google::Cloud::Run::V2::InstanceSplitAllocationType]
28
+ # The allocation type for this instance split.
29
+ # @!attribute [rw] revision
30
+ # @return [::String]
31
+ # Revision to which to assign this portion of instances, if split allocation
32
+ # is by revision.
33
+ # @!attribute [rw] percent
34
+ # @return [::Integer]
35
+ # Specifies percent of the instance split to this Revision.
36
+ # This defaults to zero if unspecified.
37
+ class InstanceSplit
38
+ include ::Google::Protobuf::MessageExts
39
+ extend ::Google::Protobuf::MessageExts::ClassMethods
40
+ end
41
+
42
+ # Represents the observed state of a single `InstanceSplit` entry.
43
+ # @!attribute [rw] type
44
+ # @return [::Google::Cloud::Run::V2::InstanceSplitAllocationType]
45
+ # The allocation type for this instance split.
46
+ # @!attribute [rw] revision
47
+ # @return [::String]
48
+ # Revision to which this instance split is assigned.
49
+ # @!attribute [rw] percent
50
+ # @return [::Integer]
51
+ # Specifies percent of the instance split to this Revision.
52
+ class InstanceSplitStatus
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+
57
+ # The type of instance split allocation.
58
+ module InstanceSplitAllocationType
59
+ # Unspecified instance allocation type.
60
+ INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED = 0
61
+
62
+ # Allocates instances to the Service's latest ready Revision.
63
+ INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST = 1
64
+
65
+ # Allocates instances to a Revision by name.
66
+ INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION = 2
67
+ end
68
+ end
69
+ end
70
+ end
71
+ end
@@ -163,6 +163,15 @@ module Google
163
163
  end
164
164
  end
165
165
 
166
+ # Worker pool scaling settings.
167
+ # @!attribute [rw] manual_instance_count
168
+ # @return [::Integer]
169
+ # Optional. The total number of instances in manual scaling mode.
170
+ class WorkerPoolScaling
171
+ include ::Google::Protobuf::MessageExts
172
+ extend ::Google::Protobuf::MessageExts::ClassMethods
173
+ end
174
+
166
175
  # Hardware constraints configuration.
167
176
  # @!attribute [rw] accelerator
168
177
  # @return [::String]
@@ -0,0 +1,351 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Run
23
+ module V2
24
+ # Request message for creating a WorkerPool.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The location and project in which this worker pool should be
28
+ # created. Format: `projects/{project}/locations/{location}`, where
29
+ # `{project}` can be project id or number. Only lowercase characters, digits,
30
+ # and hyphens.
31
+ # @!attribute [rw] worker_pool
32
+ # @return [::Google::Cloud::Run::V2::WorkerPool]
33
+ # Required. The WorkerPool instance to create.
34
+ # @!attribute [rw] worker_pool_id
35
+ # @return [::String]
36
+ # Required. The unique identifier for the WorkerPool. It must begin with
37
+ # letter, and cannot end with hyphen; must contain fewer than 50 characters.
38
+ # The name of the worker pool becomes
39
+ # `{parent}/workerPools/{worker_pool_id}`.
40
+ # @!attribute [rw] validate_only
41
+ # @return [::Boolean]
42
+ # Optional. Indicates that the request should be validated and default values
43
+ # populated, without persisting the request or creating any resources.
44
+ class CreateWorkerPoolRequest
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+
49
+ # Request message for updating a worker pool.
50
+ # @!attribute [rw] update_mask
51
+ # @return [::Google::Protobuf::FieldMask]
52
+ # Optional. The list of fields to be updated.
53
+ # @!attribute [rw] worker_pool
54
+ # @return [::Google::Cloud::Run::V2::WorkerPool]
55
+ # Required. The WorkerPool to be updated.
56
+ # @!attribute [rw] validate_only
57
+ # @return [::Boolean]
58
+ # Optional. Indicates that the request should be validated and default values
59
+ # populated, without persisting the request or updating any resources.
60
+ # @!attribute [rw] allow_missing
61
+ # @return [::Boolean]
62
+ # Optional. If set to true, and if the WorkerPool does not exist, it will
63
+ # create a new one. The caller must have 'run.workerpools.create' permissions
64
+ # if this is set to true and the WorkerPool does not exist.
65
+ # @!attribute [rw] force_new_revision
66
+ # @return [::Boolean]
67
+ # Optional. If set to true, a new revision will be created from the template
68
+ # even if the system doesn't detect any changes from the previously deployed
69
+ # revision.
70
+ #
71
+ # This may be useful for cases where the underlying resources need to be
72
+ # recreated or reinitialized. For example if the image is specified by label,
73
+ # but the underlying image digest has changed) or if the container performs
74
+ # deployment initialization work that needs to be performed again.
75
+ class UpdateWorkerPoolRequest
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+ end
79
+
80
+ # Request message for retrieving a list of WorkerPools.
81
+ # @!attribute [rw] parent
82
+ # @return [::String]
83
+ # Required. The location and project to list resources on.
84
+ # Location must be a valid Google Cloud region, and cannot be the "-"
85
+ # wildcard. Format: `projects/{project}/locations/{location}`, where
86
+ # `{project}` can be project id or number.
87
+ # @!attribute [rw] page_size
88
+ # @return [::Integer]
89
+ # Maximum number of WorkerPools to return in this call.
90
+ # @!attribute [rw] page_token
91
+ # @return [::String]
92
+ # A page token received from a previous call to ListWorkerPools.
93
+ # All other parameters must match.
94
+ # @!attribute [rw] show_deleted
95
+ # @return [::Boolean]
96
+ # If true, returns deleted (but unexpired) resources along with active ones.
97
+ class ListWorkerPoolsRequest
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # Response message containing a list of WorkerPools.
103
+ # @!attribute [rw] worker_pools
104
+ # @return [::Array<::Google::Cloud::Run::V2::WorkerPool>]
105
+ # The resulting list of WorkerPools.
106
+ # @!attribute [rw] next_page_token
107
+ # @return [::String]
108
+ # A token indicating there are more items than page_size. Use it in the next
109
+ # ListWorkerPools request to continue.
110
+ class ListWorkerPoolsResponse
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+ end
114
+
115
+ # Request message for obtaining a WorkerPool by its full name.
116
+ # @!attribute [rw] name
117
+ # @return [::String]
118
+ # Required. The full name of the WorkerPool.
119
+ # Format:
120
+ # `projects/{project}/locations/{location}/workerPools/{worker_pool}`, where
121
+ # `{project}` can be project id or number.
122
+ class GetWorkerPoolRequest
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
127
+ # Request message to delete a WorkerPool by its full name.
128
+ # @!attribute [rw] name
129
+ # @return [::String]
130
+ # Required. The full name of the WorkerPool.
131
+ # Format:
132
+ # `projects/{project}/locations/{location}/workerPools/{worker_pool}`, where
133
+ # `{project}` can be project id or number.
134
+ # @!attribute [rw] validate_only
135
+ # @return [::Boolean]
136
+ # Optional. Indicates that the request should be validated without actually
137
+ # deleting any resources.
138
+ # @!attribute [rw] etag
139
+ # @return [::String]
140
+ # A system-generated fingerprint for this version of the
141
+ # resource. May be used to detect modification conflict during updates.
142
+ class DeleteWorkerPoolRequest
143
+ include ::Google::Protobuf::MessageExts
144
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
+ end
146
+
147
+ # WorkerPool acts as a top-level container that manages a set of
148
+ # configurations and revision templates which implement a pull-based workload.
149
+ # WorkerPool exists to provide a singular abstraction which can be access
150
+ # controlled, reasoned about, and which encapsulates software lifecycle
151
+ # decisions such as rollout policy and team resource ownership.
152
+ # @!attribute [rw] name
153
+ # @return [::String]
154
+ # The fully qualified name of this WorkerPool. In CreateWorkerPoolRequest,
155
+ # this field is ignored, and instead composed from
156
+ # CreateWorkerPoolRequest.parent and CreateWorkerPoolRequest.worker_id.
157
+ #
158
+ # Format:
159
+ # `projects/{project}/locations/{location}/workerPools/{worker_id}`
160
+ # @!attribute [rw] description
161
+ # @return [::String]
162
+ # User-provided description of the WorkerPool. This field currently has a
163
+ # 512-character limit.
164
+ # @!attribute [r] uid
165
+ # @return [::String]
166
+ # Output only. Server assigned unique identifier for the trigger. The value
167
+ # is a UUID4 string and guaranteed to remain unchanged until the resource is
168
+ # deleted.
169
+ # @!attribute [r] generation
170
+ # @return [::Integer]
171
+ # Output only. A number that monotonically increases every time the user
172
+ # modifies the desired state.
173
+ # Please note that unlike v1, this is an int64 value. As with most Google
174
+ # APIs, its JSON representation will be a `string` instead of an `integer`.
175
+ # @!attribute [rw] labels
176
+ # @return [::Google::Protobuf::Map{::String => ::String}]
177
+ # Optional. Unstructured key value map that can be used to organize and
178
+ # categorize objects. User-provided labels are shared with Google's billing
179
+ # system, so they can be used to filter, or break down billing charges by
180
+ # team, component, environment, state, etc. For more information, visit
181
+ # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
182
+ # https://cloud.google.com/run/docs/configuring/labels.
183
+ #
184
+ # Cloud Run API v2 does not support labels with `run.googleapis.com`,
185
+ # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
186
+ # namespaces, and they will be rejected. All system labels in v1 now have a
187
+ # corresponding field in v2 WorkerPool.
188
+ # @!attribute [rw] annotations
189
+ # @return [::Google::Protobuf::Map{::String => ::String}]
190
+ # Optional. Unstructured key value map that may be set by external tools to
191
+ # store and arbitrary metadata. They are not queryable and should be
192
+ # preserved when modifying objects.
193
+ #
194
+ # Cloud Run API v2 does not support annotations with `run.googleapis.com`,
195
+ # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
196
+ # namespaces, and they will be rejected in new resources. All system
197
+ # annotations in v1 now have a corresponding field in v2 WorkerPool.
198
+ #
199
+ # <p>This field follows Kubernetes
200
+ # annotations' namespacing, limits, and rules.
201
+ # @!attribute [r] create_time
202
+ # @return [::Google::Protobuf::Timestamp]
203
+ # Output only. The creation time.
204
+ # @!attribute [r] update_time
205
+ # @return [::Google::Protobuf::Timestamp]
206
+ # Output only. The last-modified time.
207
+ # @!attribute [r] delete_time
208
+ # @return [::Google::Protobuf::Timestamp]
209
+ # Output only. The deletion time. It is only populated as a response to a
210
+ # Delete request.
211
+ # @!attribute [r] expire_time
212
+ # @return [::Google::Protobuf::Timestamp]
213
+ # Output only. For a deleted resource, the time after which it will be
214
+ # permamently deleted.
215
+ # @!attribute [r] creator
216
+ # @return [::String]
217
+ # Output only. Email address of the authenticated creator.
218
+ # @!attribute [r] last_modifier
219
+ # @return [::String]
220
+ # Output only. Email address of the last authenticated modifier.
221
+ # @!attribute [rw] client
222
+ # @return [::String]
223
+ # Arbitrary identifier for the API client.
224
+ # @!attribute [rw] client_version
225
+ # @return [::String]
226
+ # Arbitrary version identifier for the API client.
227
+ # @!attribute [rw] launch_stage
228
+ # @return [::Google::Api::LaunchStage]
229
+ # Optional. The launch stage as defined by [Google Cloud Platform
230
+ # Launch Stages](https://cloud.google.com/terms/launch-stages).
231
+ # Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
232
+ # is assumed.
233
+ # Set the launch stage to a preview stage on input to allow use of preview
234
+ # features in that stage. On read (or output), describes whether the
235
+ # resource uses preview features.
236
+ #
237
+ # For example, if ALPHA is provided as input, but only BETA and GA-level
238
+ # features are used, this field will be BETA on output.
239
+ # @!attribute [rw] binary_authorization
240
+ # @return [::Google::Cloud::Run::V2::BinaryAuthorization]
241
+ # Optional. Settings for the Binary Authorization feature.
242
+ # @!attribute [rw] template
243
+ # @return [::Google::Cloud::Run::V2::WorkerPoolRevisionTemplate]
244
+ # Required. The template used to create revisions for this WorkerPool.
245
+ # @!attribute [rw] instance_splits
246
+ # @return [::Array<::Google::Cloud::Run::V2::InstanceSplit>]
247
+ # Optional. Specifies how to distribute instances over a collection of
248
+ # Revisions belonging to the WorkerPool. If instance split is empty or not
249
+ # provided, defaults to 100% instances assigned to the latest `Ready`
250
+ # Revision.
251
+ # @!attribute [rw] scaling
252
+ # @return [::Google::Cloud::Run::V2::WorkerPoolScaling]
253
+ # Optional. Specifies worker-pool-level scaling settings
254
+ # @!attribute [r] observed_generation
255
+ # @return [::Integer]
256
+ # Output only. The generation of this WorkerPool currently serving traffic.
257
+ # See comments in `reconciling` for additional information on reconciliation
258
+ # process in Cloud Run. Please note that unlike v1, this is an int64 value.
259
+ # As with most Google APIs, its JSON representation will be a `string`
260
+ # instead of an `integer`.
261
+ # @!attribute [r] terminal_condition
262
+ # @return [::Google::Cloud::Run::V2::Condition]
263
+ # Output only. The Condition of this WorkerPool, containing its readiness
264
+ # status, and detailed error information in case it did not reach a serving
265
+ # state. See comments in `reconciling` for additional information on
266
+ # reconciliation process in Cloud Run.
267
+ # @!attribute [r] conditions
268
+ # @return [::Array<::Google::Cloud::Run::V2::Condition>]
269
+ # Output only. The Conditions of all other associated sub-resources. They
270
+ # contain additional diagnostics information in case the WorkerPool does not
271
+ # reach its Serving state. See comments in `reconciling` for additional
272
+ # information on reconciliation process in Cloud Run.
273
+ # @!attribute [r] latest_ready_revision
274
+ # @return [::String]
275
+ # Output only. Name of the latest revision that is serving traffic. See
276
+ # comments in `reconciling` for additional information on reconciliation
277
+ # process in Cloud Run.
278
+ # @!attribute [r] latest_created_revision
279
+ # @return [::String]
280
+ # Output only. Name of the last created revision. See comments in
281
+ # `reconciling` for additional information on reconciliation process in Cloud
282
+ # Run.
283
+ # @!attribute [r] instance_split_statuses
284
+ # @return [::Array<::Google::Cloud::Run::V2::InstanceSplitStatus>]
285
+ # Output only. Detailed status information for corresponding instance splits.
286
+ # See comments in `reconciling` for additional information on reconciliation
287
+ # process in Cloud Run.
288
+ # @!attribute [rw] custom_audiences
289
+ # @return [::Array<::String>]
290
+ # One or more custom audiences that you want this worker pool to support.
291
+ # Specify each custom audience as the full URL in a string. The custom
292
+ # audiences are encoded in the token and used to authenticate requests. For
293
+ # more information, see
294
+ # https://cloud.google.com/run/docs/configuring/custom-audiences.
295
+ # @!attribute [r] satisfies_pzs
296
+ # @return [::Boolean]
297
+ # Output only. Reserved for future use.
298
+ # @!attribute [r] reconciling
299
+ # @return [::Boolean]
300
+ # Output only. Returns true if the WorkerPool is currently being acted upon
301
+ # by the system to bring it into the desired state.
302
+ #
303
+ # When a new WorkerPool is created, or an existing one is updated, Cloud Run
304
+ # will asynchronously perform all necessary steps to bring the WorkerPool to
305
+ # the desired serving state. This process is called reconciliation. While
306
+ # reconciliation is in process, `observed_generation`,
307
+ # `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient
308
+ # values that might mismatch the intended state: Once reconciliation is over
309
+ # (and this field is false), there are two possible outcomes: reconciliation
310
+ # succeeded and the serving state matches the WorkerPool, or there was an
311
+ # error, and reconciliation failed. This state can be found in
312
+ # `terminal_condition.state`.
313
+ #
314
+ # If reconciliation succeeded, the following fields will match: `traffic` and
315
+ # `traffic_statuses`, `observed_generation` and `generation`,
316
+ # `latest_ready_revision` and `latest_created_revision`.
317
+ #
318
+ # If reconciliation failed, `traffic_statuses`, `observed_generation`, and
319
+ # `latest_ready_revision` will have the state of the last serving revision,
320
+ # or empty for newly created WorkerPools. Additional information on the
321
+ # failure can be found in `terminal_condition` and `conditions`.
322
+ # @!attribute [r] etag
323
+ # @return [::String]
324
+ # Output only. A system-generated fingerprint for this version of the
325
+ # resource. May be used to detect modification conflict during updates.
326
+ class WorkerPool
327
+ include ::Google::Protobuf::MessageExts
328
+ extend ::Google::Protobuf::MessageExts::ClassMethods
329
+
330
+ # @!attribute [rw] key
331
+ # @return [::String]
332
+ # @!attribute [rw] value
333
+ # @return [::String]
334
+ class LabelsEntry
335
+ include ::Google::Protobuf::MessageExts
336
+ extend ::Google::Protobuf::MessageExts::ClassMethods
337
+ end
338
+
339
+ # @!attribute [rw] key
340
+ # @return [::String]
341
+ # @!attribute [rw] value
342
+ # @return [::String]
343
+ class AnnotationsEntry
344
+ include ::Google::Protobuf::MessageExts
345
+ extend ::Google::Protobuf::MessageExts::ClassMethods
346
+ end
347
+ end
348
+ end
349
+ end
350
+ end
351
+ end
@@ -0,0 +1,117 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Run
23
+ module V2
24
+ # WorkerPoolRevisionTemplate describes the data a worker pool revision should
25
+ # have when created from a template.
26
+ # @!attribute [rw] revision
27
+ # @return [::String]
28
+ # Optional. The unique name for the revision. If this field is omitted, it
29
+ # will be automatically generated based on the WorkerPool name.
30
+ # @!attribute [rw] labels
31
+ # @return [::Google::Protobuf::Map{::String => ::String}]
32
+ # Optional. Unstructured key value map that can be used to organize and
33
+ # categorize objects. User-provided labels are shared with Google's billing
34
+ # system, so they can be used to filter, or break down billing charges by
35
+ # team, component, environment, state, etc. For more information, visit
36
+ # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
37
+ # https://cloud.google.com/run/docs/configuring/labels.
38
+ #
39
+ # Cloud Run API v2 does not support labels with `run.googleapis.com`,
40
+ # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
41
+ # namespaces, and they will be rejected. All system labels in v1 now have a
42
+ # corresponding field in v2 WorkerPoolRevisionTemplate.
43
+ # @!attribute [rw] annotations
44
+ # @return [::Google::Protobuf::Map{::String => ::String}]
45
+ # Optional. Unstructured key value map that may be set by external tools to
46
+ # store and arbitrary metadata. They are not queryable and should be
47
+ # preserved when modifying objects.
48
+ #
49
+ # Cloud Run API v2 does not support annotations with `run.googleapis.com`,
50
+ # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
51
+ # namespaces, and they will be rejected. All system annotations in v1 now
52
+ # have a corresponding field in v2 WorkerPoolRevisionTemplate.
53
+ #
54
+ # This field follows Kubernetes annotations' namespacing, limits, and
55
+ # rules.
56
+ # @!attribute [rw] vpc_access
57
+ # @return [::Google::Cloud::Run::V2::VpcAccess]
58
+ # Optional. VPC Access configuration to use for this Revision. For more
59
+ # information, visit
60
+ # https://cloud.google.com/run/docs/configuring/connecting-vpc.
61
+ # @!attribute [rw] service_account
62
+ # @return [::String]
63
+ # Optional. Email address of the IAM service account associated with the
64
+ # revision of the service. The service account represents the identity of the
65
+ # running revision, and determines what permissions the revision has. If not
66
+ # provided, the revision will use the project's default service account.
67
+ # @!attribute [rw] containers
68
+ # @return [::Array<::Google::Cloud::Run::V2::Container>]
69
+ # Holds list of the containers that defines the unit of execution for this
70
+ # Revision.
71
+ # @!attribute [rw] volumes
72
+ # @return [::Array<::Google::Cloud::Run::V2::Volume>]
73
+ # Optional. A list of Volumes to make available to containers.
74
+ # @!attribute [rw] encryption_key
75
+ # @return [::String]
76
+ # A reference to a customer managed encryption key (CMEK) to use to encrypt
77
+ # this container image. For more information, go to
78
+ # https://cloud.google.com/run/docs/securing/using-cmek
79
+ # @!attribute [rw] service_mesh
80
+ # @return [::Google::Cloud::Run::V2::ServiceMesh]
81
+ # Optional. Enables service mesh connectivity.
82
+ # @!attribute [rw] encryption_key_revocation_action
83
+ # @return [::Google::Cloud::Run::V2::EncryptionKeyRevocationAction]
84
+ # Optional. The action to take if the encryption key is revoked.
85
+ # @!attribute [rw] encryption_key_shutdown_duration
86
+ # @return [::Google::Protobuf::Duration]
87
+ # Optional. If encryption_key_revocation_action is SHUTDOWN, the duration
88
+ # before shutting down all instances. The minimum increment is 1 hour.
89
+ # @!attribute [rw] node_selector
90
+ # @return [::Google::Cloud::Run::V2::NodeSelector]
91
+ # Optional. The node selector for the revision template.
92
+ class WorkerPoolRevisionTemplate
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+
96
+ # @!attribute [rw] key
97
+ # @return [::String]
98
+ # @!attribute [rw] value
99
+ # @return [::String]
100
+ class LabelsEntry
101
+ include ::Google::Protobuf::MessageExts
102
+ extend ::Google::Protobuf::MessageExts::ClassMethods
103
+ end
104
+
105
+ # @!attribute [rw] key
106
+ # @return [::String]
107
+ # @!attribute [rw] value
108
+ # @return [::String]
109
+ class AnnotationsEntry
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+ end
113
+ end
114
+ end
115
+ end
116
+ end
117
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-run-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -102,6 +102,7 @@ files:
102
102
  - lib/google/cloud/run/v2/executions/rest/client.rb
103
103
  - lib/google/cloud/run/v2/executions/rest/operations.rb
104
104
  - lib/google/cloud/run/v2/executions/rest/service_stub.rb
105
+ - lib/google/cloud/run/v2/instance_split_pb.rb
105
106
  - lib/google/cloud/run/v2/job_pb.rb
106
107
  - lib/google/cloud/run/v2/job_services_pb.rb
107
108
  - lib/google/cloud/run/v2/jobs.rb
@@ -152,6 +153,18 @@ files:
152
153
  - lib/google/cloud/run/v2/traffic_target_pb.rb
153
154
  - lib/google/cloud/run/v2/vendor_settings_pb.rb
154
155
  - lib/google/cloud/run/v2/version.rb
156
+ - lib/google/cloud/run/v2/worker_pool_pb.rb
157
+ - lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb
158
+ - lib/google/cloud/run/v2/worker_pool_services_pb.rb
159
+ - lib/google/cloud/run/v2/worker_pools.rb
160
+ - lib/google/cloud/run/v2/worker_pools/client.rb
161
+ - lib/google/cloud/run/v2/worker_pools/credentials.rb
162
+ - lib/google/cloud/run/v2/worker_pools/operations.rb
163
+ - lib/google/cloud/run/v2/worker_pools/paths.rb
164
+ - lib/google/cloud/run/v2/worker_pools/rest.rb
165
+ - lib/google/cloud/run/v2/worker_pools/rest/client.rb
166
+ - lib/google/cloud/run/v2/worker_pools/rest/operations.rb
167
+ - lib/google/cloud/run/v2/worker_pools/rest/service_stub.rb
155
168
  - proto_docs/README.md
156
169
  - proto_docs/google/api/client.rb
157
170
  - proto_docs/google/api/field_behavior.rb
@@ -162,6 +175,7 @@ files:
162
175
  - proto_docs/google/cloud/run/v2/condition.rb
163
176
  - proto_docs/google/cloud/run/v2/execution.rb
164
177
  - proto_docs/google/cloud/run/v2/execution_template.rb
178
+ - proto_docs/google/cloud/run/v2/instance_split.rb
165
179
  - proto_docs/google/cloud/run/v2/job.rb
166
180
  - proto_docs/google/cloud/run/v2/k8s.min.rb
167
181
  - proto_docs/google/cloud/run/v2/revision.rb
@@ -172,6 +186,8 @@ files:
172
186
  - proto_docs/google/cloud/run/v2/task_template.rb
173
187
  - proto_docs/google/cloud/run/v2/traffic_target.rb
174
188
  - proto_docs/google/cloud/run/v2/vendor_settings.rb
189
+ - proto_docs/google/cloud/run/v2/worker_pool.rb
190
+ - proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb
175
191
  - proto_docs/google/iam/v1/iam_policy.rb
176
192
  - proto_docs/google/iam/v1/options.rb
177
193
  - proto_docs/google/iam/v1/policy.rb