google-cloud-run-v2 0.1.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 (50) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/run/v2/condition_pb.rb +111 -0
  7. data/lib/google/cloud/run/v2/k8s.min_pb.rb +88 -0
  8. data/lib/google/cloud/run/v2/revision_pb.rb +81 -0
  9. data/lib/google/cloud/run/v2/revision_services_pb.rb +49 -0
  10. data/lib/google/cloud/run/v2/revision_template_pb.rb +39 -0
  11. data/lib/google/cloud/run/v2/revisions/client.rb +619 -0
  12. data/lib/google/cloud/run/v2/revisions/credentials.rb +47 -0
  13. data/lib/google/cloud/run/v2/revisions/operations.rb +767 -0
  14. data/lib/google/cloud/run/v2/revisions/paths.rb +73 -0
  15. data/lib/google/cloud/run/v2/revisions.rb +50 -0
  16. data/lib/google/cloud/run/v2/service_pb.rb +100 -0
  17. data/lib/google/cloud/run/v2/service_services_pb.rb +65 -0
  18. data/lib/google/cloud/run/v2/services/client.rb +1154 -0
  19. data/lib/google/cloud/run/v2/services/credentials.rb +47 -0
  20. data/lib/google/cloud/run/v2/services/operations.rb +767 -0
  21. data/lib/google/cloud/run/v2/services/paths.rb +166 -0
  22. data/lib/google/cloud/run/v2/services.rb +50 -0
  23. data/lib/google/cloud/run/v2/traffic_target_pb.rb +41 -0
  24. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +56 -0
  25. data/lib/google/cloud/run/v2/version.rb +28 -0
  26. data/lib/google/cloud/run/v2.rb +41 -0
  27. data/lib/google-cloud-run-v2.rb +21 -0
  28. data/proto_docs/README.md +4 -0
  29. data/proto_docs/google/api/field_behavior.rb +71 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/api/resource.rb +222 -0
  32. data/proto_docs/google/cloud/run/v2/condition.rb +260 -0
  33. data/proto_docs/google/cloud/run/v2/k8s.min.rb +290 -0
  34. data/proto_docs/google/cloud/run/v2/revision.rb +225 -0
  35. data/proto_docs/google/cloud/run/v2/revision_template.rb +98 -0
  36. data/proto_docs/google/cloud/run/v2/service.rb +307 -0
  37. data/proto_docs/google/cloud/run/v2/traffic_target.rb +81 -0
  38. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +109 -0
  39. data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
  40. data/proto_docs/google/iam/v1/options.rb +50 -0
  41. data/proto_docs/google/iam/v1/policy.rb +418 -0
  42. data/proto_docs/google/longrunning/operations.rb +164 -0
  43. data/proto_docs/google/protobuf/any.rb +141 -0
  44. data/proto_docs/google/protobuf/duration.rb +98 -0
  45. data/proto_docs/google/protobuf/empty.rb +36 -0
  46. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  47. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  48. data/proto_docs/google/rpc/status.rb +46 -0
  49. data/proto_docs/google/type/expr.rb +75 -0
  50. metadata +253 -0
@@ -0,0 +1,290 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+ # A single application container.
25
+ # This specifies both the container to run, the command to run in the container
26
+ # and the arguments to supply to it.
27
+ # Note that additional arguments may be supplied by the system to the container
28
+ # at runtime.
29
+ # @!attribute [rw] name
30
+ # @return [::String]
31
+ # Name of the container specified as a DNS_LABEL.
32
+ # @!attribute [rw] image
33
+ # @return [::String]
34
+ # Required. URL of the Container image in Google Container Registry or Docker
35
+ # More info: https://kubernetes.io/docs/concepts/containers/images
36
+ # @!attribute [rw] command
37
+ # @return [::Array<::String>]
38
+ # Entrypoint array. Not executed within a shell.
39
+ # The docker image's ENTRYPOINT is used if this is not provided.
40
+ # Variable references $(VAR_NAME) are expanded using the container's
41
+ # environment. If a variable cannot be resolved, the reference in the input
42
+ # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
43
+ # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
44
+ # regardless of whether the variable exists or not.
45
+ # More info:
46
+ # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
47
+ # @!attribute [rw] args
48
+ # @return [::Array<::String>]
49
+ # Arguments to the entrypoint.
50
+ # The docker image's CMD is used if this is not provided.
51
+ # Variable references $(VAR_NAME) are expanded using the container's
52
+ # environment. If a variable cannot be resolved, the reference in the input
53
+ # string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
54
+ # double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
55
+ # regardless of whether the variable exists or not.
56
+ # More info:
57
+ # https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
58
+ # @!attribute [rw] env
59
+ # @return [::Array<::Google::Cloud::Run::V2::EnvVar>]
60
+ # List of environment variables to set in the container.
61
+ # @!attribute [rw] resources
62
+ # @return [::Google::Cloud::Run::V2::ResourceRequirements]
63
+ # Compute Resource requirements by this container.
64
+ # More info:
65
+ # https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
66
+ # @!attribute [rw] ports
67
+ # @return [::Array<::Google::Cloud::Run::V2::ContainerPort>]
68
+ # List of ports to expose from the container. Only a single port can be
69
+ # specified. The specified ports must be listening on all interfaces
70
+ # (0.0.0.0) within the container to be accessible.
71
+ #
72
+ # If omitted, a port number will be chosen and passed to the container
73
+ # through the PORT environment variable for the container to listen on.
74
+ # @!attribute [rw] volume_mounts
75
+ # @return [::Array<::Google::Cloud::Run::V2::VolumeMount>]
76
+ # Volume to mount into the container's filesystem.
77
+ class Container
78
+ include ::Google::Protobuf::MessageExts
79
+ extend ::Google::Protobuf::MessageExts::ClassMethods
80
+ end
81
+
82
+ # ResourceRequirements describes the compute resource requirements.
83
+ # @!attribute [rw] limits
84
+ # @return [::Google::Protobuf::Map{::String => ::String}]
85
+ # Only memory and CPU are supported. Note: The only
86
+ # supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
87
+ # least 2Gi of memory.
88
+ # The values of the map is string form of the 'quantity' k8s type:
89
+ # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
90
+ # @!attribute [rw] cpu_idle
91
+ # @return [::Boolean]
92
+ # Determines whether CPU should be throttled or not outside of requests.
93
+ class ResourceRequirements
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+
97
+ # @!attribute [rw] key
98
+ # @return [::String]
99
+ # @!attribute [rw] value
100
+ # @return [::String]
101
+ class LimitsEntry
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+ end
106
+
107
+ # EnvVar represents an environment variable present in a Container.
108
+ # @!attribute [rw] name
109
+ # @return [::String]
110
+ # Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not
111
+ # exceed 32768 characters.
112
+ # @!attribute [rw] value
113
+ # @return [::String]
114
+ # Variable references $(VAR_NAME) are expanded
115
+ # using the previous defined environment variables in the container and
116
+ # any route environment variables. If a variable cannot be resolved,
117
+ # the reference in the input string will be unchanged. The $(VAR_NAME)
118
+ # syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
119
+ # references will never be expanded, regardless of whether the variable
120
+ # exists or not.
121
+ # Defaults to "", and the maximum length is 32768 bytes.
122
+ # @!attribute [rw] value_source
123
+ # @return [::Google::Cloud::Run::V2::EnvVarSource]
124
+ # Source for the environment variable's value.
125
+ class EnvVar
126
+ include ::Google::Protobuf::MessageExts
127
+ extend ::Google::Protobuf::MessageExts::ClassMethods
128
+ end
129
+
130
+ # EnvVarSource represents a source for the value of an EnvVar.
131
+ # @!attribute [rw] secret_key_ref
132
+ # @return [::Google::Cloud::Run::V2::SecretKeySelector]
133
+ # Selects a secret and a specific version from Cloud Secret Manager.
134
+ class EnvVarSource
135
+ include ::Google::Protobuf::MessageExts
136
+ extend ::Google::Protobuf::MessageExts::ClassMethods
137
+ end
138
+
139
+ # SecretEnvVarSource represents a source for the value of an EnvVar.
140
+ # @!attribute [rw] secret
141
+ # @return [::String]
142
+ # Required. The name of the secret in Cloud Secret Manager.
143
+ # Format: \\{secret_name} if the secret is in the same project.
144
+ # projects/\\{project}/secrets/\\{secret_name} if the secret is
145
+ # in a different project.
146
+ # @!attribute [rw] version
147
+ # @return [::String]
148
+ # The Cloud Secret Manager secret version.
149
+ # Can be 'latest' for the latest value or an integer for a specific version.
150
+ class SecretKeySelector
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # ContainerPort represents a network port in a single container.
156
+ # @!attribute [rw] name
157
+ # @return [::String]
158
+ # If specified, used to specify which protocol to use.
159
+ # Allowed values are "http1" and "h2c".
160
+ # @!attribute [rw] container_port
161
+ # @return [::Integer]
162
+ # Port number the container listens on.
163
+ # This must be a valid TCP port number, 0 < container_port < 65536.
164
+ class ContainerPort
165
+ include ::Google::Protobuf::MessageExts
166
+ extend ::Google::Protobuf::MessageExts::ClassMethods
167
+ end
168
+
169
+ # VolumeMount describes a mounting of a Volume within a container.
170
+ # @!attribute [rw] name
171
+ # @return [::String]
172
+ # Required. This must match the Name of a Volume.
173
+ # @!attribute [rw] mount_path
174
+ # @return [::String]
175
+ # Required. Path within the container at which the volume should be mounted. Must
176
+ # not contain ':'. For Cloud SQL volumes, it can be left empty, or must
177
+ # otherwise be `/cloudsql`. All instances defined in the Volume will be
178
+ # available as `/cloudsql/[instance]`. For more information on Cloud SQL
179
+ # volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
180
+ class VolumeMount
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
185
+ # Volume represents a named volume in a container.
186
+ # @!attribute [rw] name
187
+ # @return [::String]
188
+ # Required. Volume's name.
189
+ # @!attribute [rw] secret
190
+ # @return [::Google::Cloud::Run::V2::SecretVolumeSource]
191
+ # Secret represents a secret that should populate this volume.
192
+ # More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
193
+ # @!attribute [rw] cloud_sql_instance
194
+ # @return [::Google::Cloud::Run::V2::CloudSqlInstance]
195
+ # For Cloud SQL volumes, contains the specific instances that should be
196
+ # mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for
197
+ # more information on how to connect Cloud SQL and Cloud Run.
198
+ class Volume
199
+ include ::Google::Protobuf::MessageExts
200
+ extend ::Google::Protobuf::MessageExts::ClassMethods
201
+ end
202
+
203
+ # The secret's value will be presented as the content of a file whose
204
+ # name is defined in the item path. If no items are defined, the name of
205
+ # the file is the secret.
206
+ # @!attribute [rw] secret
207
+ # @return [::String]
208
+ # Required. The name of the secret in Cloud Secret Manager.
209
+ # Format: \\{secret} if the secret is in the same project.
210
+ # projects/\\{project}/secrets/\\{secret} if the secret is
211
+ # in a different project.
212
+ # @!attribute [rw] items
213
+ # @return [::Array<::Google::Cloud::Run::V2::VersionToPath>]
214
+ # If unspecified, the volume will expose a file whose name is the
215
+ # secret, relative to VolumeMount.mount_path.
216
+ # If specified, the key will be used as the version to fetch from Cloud
217
+ # Secret Manager and the path will be the name of the file exposed in the
218
+ # volume. When items are defined, they must specify a path and a version.
219
+ # @!attribute [rw] default_mode
220
+ # @return [::Integer]
221
+ # Integer representation of mode bits to use on created files by default.
222
+ # Must be a value between 0000 and 0777 (octal), defaulting to 0644.
223
+ # Directories within the path are not affected by this setting.
224
+ #
225
+ # Notes
226
+ #
227
+ # * Internally, a umask of 0222 will be applied to any non-zero value.
228
+ # * This is an integer representation of the mode bits. So, the octal
229
+ # integer value should look exactly as the chmod numeric notation with a
230
+ # leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or
231
+ # 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or
232
+ # 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493
233
+ # (base-10).
234
+ # * This might be in conflict with other options that affect the
235
+ # file mode, like fsGroup, and the result can be other mode bits set.
236
+ #
237
+ # This might be in conflict with other options that affect the
238
+ # file mode, like fsGroup, and as a result, other mode bits could be set.
239
+ class SecretVolumeSource
240
+ include ::Google::Protobuf::MessageExts
241
+ extend ::Google::Protobuf::MessageExts::ClassMethods
242
+ end
243
+
244
+ # VersionToPath maps a specific version of a secret to a relative file to mount
245
+ # to, relative to VolumeMount's mount_path.
246
+ # @!attribute [rw] path
247
+ # @return [::String]
248
+ # Required. The relative path of the secret in the container.
249
+ # @!attribute [rw] version
250
+ # @return [::String]
251
+ # The Cloud Secret Manager secret version.
252
+ # Can be 'latest' for the latest value or an integer for a specific version.
253
+ # @!attribute [rw] mode
254
+ # @return [::Integer]
255
+ # Integer octal mode bits to use on this file, must be a value between
256
+ # 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be
257
+ # used.
258
+ #
259
+ # Notes
260
+ #
261
+ # * Internally, a umask of 0222 will be applied to any non-zero value.
262
+ # * This is an integer representation of the mode bits. So, the octal
263
+ # integer value should look exactly as the chmod numeric notation with a
264
+ # leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or
265
+ # 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or
266
+ # 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493
267
+ # (base-10).
268
+ # * This might be in conflict with other options that affect the
269
+ # file mode, like fsGroup, and the result can be other mode bits set.
270
+ class VersionToPath
271
+ include ::Google::Protobuf::MessageExts
272
+ extend ::Google::Protobuf::MessageExts::ClassMethods
273
+ end
274
+
275
+ # Represents a specific Cloud SQL instance.
276
+ # @!attribute [rw] connections
277
+ # @return [::Array<::String>]
278
+ # The Cloud SQL instance connection names, as can be found in
279
+ # https://console.cloud.google.com/sql/instances. Visit
280
+ # https://cloud.google.com/sql/docs/mysql/connect-run for more information on
281
+ # how to connect Cloud SQL and Cloud Run. Format:
282
+ # \\{project}:\\{location}:\\{instance}
283
+ class CloudSqlInstance
284
+ include ::Google::Protobuf::MessageExts
285
+ extend ::Google::Protobuf::MessageExts::ClassMethods
286
+ end
287
+ end
288
+ end
289
+ end
290
+ end
@@ -0,0 +1,225 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 obtaining a Revision by its full name.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Required. The full name of the Revision.
28
+ # Format:
29
+ # projects/\\{project}/locations/\\{location}/services/\\{service}/revisions/\\{revision}
30
+ class GetRevisionRequest
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # Request message for retrieving a list of Revisions.
36
+ # @!attribute [rw] parent
37
+ # @return [::String]
38
+ # Required. The Service from which the Revisions should be listed.
39
+ # To list all Revisions across Services, use "-" instead of Service name.
40
+ # Format:
41
+ # projects/\\{project}/locations/\\{location}/services/\\{service}
42
+ # @!attribute [rw] page_size
43
+ # @return [::Integer]
44
+ # Maximum number of revisions to return in this call.
45
+ # @!attribute [rw] page_token
46
+ # @return [::String]
47
+ # A page token received from a previous call to ListRevisions.
48
+ # All other parameters must match.
49
+ # @!attribute [rw] show_deleted
50
+ # @return [::Boolean]
51
+ # If true, returns deleted (but unexpired) resources along with active ones.
52
+ class ListRevisionsRequest
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+
57
+ # Response message containing a list of Revisions.
58
+ # @!attribute [rw] revisions
59
+ # @return [::Array<::Google::Cloud::Run::V2::Revision>]
60
+ # The resulting list of Revisions.
61
+ # @!attribute [rw] next_page_token
62
+ # @return [::String]
63
+ # A token indicating there are more items than page_size. Use it in the next
64
+ # ListRevisions request to continue.
65
+ class ListRevisionsResponse
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # Request message for deleting a retired Revision.
71
+ # Revision lifecycle is usually managed by making changes to the parent
72
+ # Service. Only retired revisions can be deleted with this API.
73
+ # @!attribute [rw] name
74
+ # @return [::String]
75
+ # Required. The name of the Revision to delete.
76
+ # Format:
77
+ # projects/\\{project}/locations/\\{location}/services/\\{service}/revisions/\\{revision}
78
+ # @!attribute [rw] validate_only
79
+ # @return [::Boolean]
80
+ # Indicates that the request should be validated without actually
81
+ # deleting any resources.
82
+ # @!attribute [rw] etag
83
+ # @return [::String]
84
+ # A system-generated fingerprint for this version of the
85
+ # resource. This may be used to detect modification conflict during updates.
86
+ class DeleteRevisionRequest
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+ end
90
+
91
+ # A Revision is an immutable snapshot of code and configuration. A Revision
92
+ # references a container image. Revisions are only created by updates to its
93
+ # parent Service.
94
+ # @!attribute [r] name
95
+ # @return [::String]
96
+ # Output only. The unique name of this Revision.
97
+ # @!attribute [r] uid
98
+ # @return [::String]
99
+ # Output only. Server assigned unique identifier for the Revision. The value is a UUID4
100
+ # string and guaranteed to remain unchanged until the resource is deleted.
101
+ # @!attribute [r] generation
102
+ # @return [::Integer]
103
+ # Output only. A number that monotonically increases every time the user
104
+ # modifies the desired state.
105
+ # @!attribute [rw] labels
106
+ # @return [::Google::Protobuf::Map{::String => ::String}]
107
+ # KRM-style labels for the resource.
108
+ # User-provided labels are shared with Google's billing system, so they can
109
+ # be used to filter, or break down billing charges by team, component,
110
+ # environment, state, etc. For more information, visit
111
+ # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
112
+ # https://cloud.google.com/run/docs/configuring/labels
113
+ # Cloud Run will populate some labels with 'run.googleapis.com' or
114
+ # 'serving.knative.dev' namespaces. Those labels are read-only, and user
115
+ # changes will not be preserved.
116
+ # @!attribute [rw] annotations
117
+ # @return [::Google::Protobuf::Map{::String => ::String}]
118
+ # KRM-style annotations for the resource.
119
+ # @!attribute [r] create_time
120
+ # @return [::Google::Protobuf::Timestamp]
121
+ # Output only. The creation time.
122
+ # @!attribute [r] update_time
123
+ # @return [::Google::Protobuf::Timestamp]
124
+ # Output only. The last-modified time.
125
+ # @!attribute [r] delete_time
126
+ # @return [::Google::Protobuf::Timestamp]
127
+ # Output only. For a deleted resource, the deletion time. It is only
128
+ # populated as a response to a Delete request.
129
+ # @!attribute [r] expire_time
130
+ # @return [::Google::Protobuf::Timestamp]
131
+ # Output only. For a deleted resource, the time after which it will be
132
+ # permamently deleted. It is only populated as a response to a Delete
133
+ # request.
134
+ # @!attribute [rw] launch_stage
135
+ # @return [::Google::Api::LaunchStage]
136
+ # Set the launch stage to a preview stage on write to allow use of preview
137
+ # features in that stage. On read, describes whether the resource uses
138
+ # preview features. Launch Stages are defined at [Google Cloud Platform
139
+ # Launch Stages](https://cloud.google.com/terms/launch-stages).
140
+ # @!attribute [r] service
141
+ # @return [::String]
142
+ # Output only. The name of the parent service.
143
+ # @!attribute [rw] scaling
144
+ # @return [::Google::Cloud::Run::V2::RevisionScaling]
145
+ # Scaling settings for this revision.
146
+ # @!attribute [rw] vpc_access
147
+ # @return [::Google::Cloud::Run::V2::VpcAccess]
148
+ # VPC Access configuration for this Revision. For more information, visit
149
+ # https://cloud.google.com/run/docs/configuring/connecting-vpc.
150
+ # @!attribute [rw] container_concurrency
151
+ # @return [::Integer]
152
+ # Sets the maximum number of requests that each serving instance can receive.
153
+ # @!attribute [rw] timeout
154
+ # @return [::Google::Protobuf::Duration]
155
+ # Max allowed time for an instance to respond to a request.
156
+ # @!attribute [rw] service_account
157
+ # @return [::String]
158
+ # Email address of the IAM service account associated with the revision of
159
+ # the service. The service account represents the identity of the running
160
+ # revision, and determines what permissions the revision has.
161
+ # @!attribute [rw] containers
162
+ # @return [::Array<::Google::Cloud::Run::V2::Container>]
163
+ # Holds the single container that defines the unit of execution for this
164
+ # Revision.
165
+ # @!attribute [rw] volumes
166
+ # @return [::Array<::Google::Cloud::Run::V2::Volume>]
167
+ # A list of Volumes to make available to containers.
168
+ # @!attribute [rw] confidential
169
+ # @return [::Boolean]
170
+ # Indicates whether Confidential Cloud Run is enabled in this Revision.
171
+ # @!attribute [rw] execution_environment
172
+ # @return [::Google::Cloud::Run::V2::ExecutionEnvironment]
173
+ # The execution environment being used to host this Revision.
174
+ # @!attribute [rw] encryption_key
175
+ # @return [::String]
176
+ # A reference to a customer managed encryption key (CMEK) to use to encrypt
177
+ # this container image. For more information, go to
178
+ # https://cloud.google.com/run/docs/securing/using-cmek
179
+ # @!attribute [r] reconciling
180
+ # @return [::Boolean]
181
+ # Output only. Indicates whether the resource's reconciliation is still in progress.
182
+ # See comments in `Service.reconciling` for additional information on
183
+ # reconciliation process in Cloud Run.
184
+ # @!attribute [r] conditions
185
+ # @return [::Array<::Google::Cloud::Run::V2::Condition>]
186
+ # Output only. The Condition of this Revision, containing its readiness status, and
187
+ # detailed error information in case it did not reach a serving state.
188
+ # @!attribute [r] observed_generation
189
+ # @return [::Integer]
190
+ # Output only. The generation of this Revision currently serving traffic. See comments in
191
+ # `reconciling` for additional information on reconciliation process in Cloud
192
+ # Run.
193
+ # @!attribute [r] log_uri
194
+ # @return [::String]
195
+ # Output only. The Google Console URI to obtain logs for the Revision.
196
+ # @!attribute [r] etag
197
+ # @return [::String]
198
+ # Output only. A system-generated fingerprint for this version of the
199
+ # resource. May be used to detect modification conflict during updates.
200
+ class Revision
201
+ include ::Google::Protobuf::MessageExts
202
+ extend ::Google::Protobuf::MessageExts::ClassMethods
203
+
204
+ # @!attribute [rw] key
205
+ # @return [::String]
206
+ # @!attribute [rw] value
207
+ # @return [::String]
208
+ class LabelsEntry
209
+ include ::Google::Protobuf::MessageExts
210
+ extend ::Google::Protobuf::MessageExts::ClassMethods
211
+ end
212
+
213
+ # @!attribute [rw] key
214
+ # @return [::String]
215
+ # @!attribute [rw] value
216
+ # @return [::String]
217
+ class AnnotationsEntry
218
+ include ::Google::Protobuf::MessageExts
219
+ extend ::Google::Protobuf::MessageExts::ClassMethods
220
+ end
221
+ end
222
+ end
223
+ end
224
+ end
225
+ end
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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
+ # RevisionTemplate describes the data a revision should have when created from
25
+ # a template.
26
+ # @!attribute [rw] revision
27
+ # @return [::String]
28
+ # The unique name for the revision. If this field is omitted, it will be
29
+ # automatically generated based on the Service name.
30
+ # @!attribute [rw] labels
31
+ # @return [::Google::Protobuf::Map{::String => ::String}]
32
+ # KRM-style labels for the resource.
33
+ # @!attribute [rw] annotations
34
+ # @return [::Google::Protobuf::Map{::String => ::String}]
35
+ # KRM-style annotations for the resource.
36
+ # @!attribute [rw] scaling
37
+ # @return [::Google::Cloud::Run::V2::RevisionScaling]
38
+ # Scaling settings for this Revision.
39
+ # @!attribute [rw] vpc_access
40
+ # @return [::Google::Cloud::Run::V2::VpcAccess]
41
+ # VPC Access configuration to use for this Revision. For more information,
42
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
43
+ # @!attribute [rw] container_concurrency
44
+ # @return [::Integer]
45
+ # Sets the maximum number of requests that each serving instance can receive.
46
+ # @!attribute [rw] timeout
47
+ # @return [::Google::Protobuf::Duration]
48
+ # Max allowed time for an instance to respond to a request.
49
+ # @!attribute [rw] service_account
50
+ # @return [::String]
51
+ # Email address of the IAM service account associated with the revision of
52
+ # the service. The service account represents the identity of the running
53
+ # revision, and determines what permissions the revision has. If not
54
+ # provided, the revision will use the project's default service account.
55
+ # @!attribute [rw] containers
56
+ # @return [::Array<::Google::Cloud::Run::V2::Container>]
57
+ # Holds the single container that defines the unit of execution for this
58
+ # Revision.
59
+ # @!attribute [rw] volumes
60
+ # @return [::Array<::Google::Cloud::Run::V2::Volume>]
61
+ # A list of Volumes to make available to containers.
62
+ # @!attribute [rw] confidential
63
+ # @return [::Boolean]
64
+ # Enables Confidential Cloud Run in Revisions created using this template.
65
+ # @!attribute [rw] execution_environment
66
+ # @return [::Google::Cloud::Run::V2::ExecutionEnvironment]
67
+ # The sandbox environment to host this Revision.
68
+ # @!attribute [rw] encryption_key
69
+ # @return [::String]
70
+ # A reference to a customer managed encryption key (CMEK) to use to encrypt
71
+ # this container image. For more information, go to
72
+ # https://cloud.google.com/run/docs/securing/using-cmek
73
+ class RevisionTemplate
74
+ include ::Google::Protobuf::MessageExts
75
+ extend ::Google::Protobuf::MessageExts::ClassMethods
76
+
77
+ # @!attribute [rw] key
78
+ # @return [::String]
79
+ # @!attribute [rw] value
80
+ # @return [::String]
81
+ class LabelsEntry
82
+ include ::Google::Protobuf::MessageExts
83
+ extend ::Google::Protobuf::MessageExts::ClassMethods
84
+ end
85
+
86
+ # @!attribute [rw] key
87
+ # @return [::String]
88
+ # @!attribute [rw] value
89
+ # @return [::String]
90
+ class AnnotationsEntry
91
+ include ::Google::Protobuf::MessageExts
92
+ extend ::Google::Protobuf::MessageExts::ClassMethods
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end