google-cloud-run-v2 0.16.0 → 0.17.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.
@@ -178,6 +178,9 @@ module Google
178
178
  # A reference to a customer managed encryption key (CMEK) to use to encrypt
179
179
  # this container image. For more information, go to
180
180
  # https://cloud.google.com/run/docs/securing/using-cmek
181
+ # @!attribute [rw] service_mesh
182
+ # @return [::Google::Cloud::Run::V2::ServiceMesh]
183
+ # Enables service mesh connectivity.
181
184
  # @!attribute [rw] encryption_key_revocation_action
182
185
  # @return [::Google::Cloud::Run::V2::EncryptionKeyRevocationAction]
183
186
  # The action to take if the encryption key is revoked.
@@ -212,6 +215,9 @@ module Google
212
215
  # @!attribute [r] scaling_status
213
216
  # @return [::Google::Cloud::Run::V2::RevisionScalingStatus]
214
217
  # Output only. The current effective scaling settings for the revision.
218
+ # @!attribute [rw] node_selector
219
+ # @return [::Google::Cloud::Run::V2::NodeSelector]
220
+ # The node selector for the revision.
215
221
  # @!attribute [r] etag
216
222
  # @return [::String]
217
223
  # Output only. A system-generated fingerprint for this version of the
@@ -88,13 +88,20 @@ module Google
88
88
  # @!attribute [rw] max_instance_request_concurrency
89
89
  # @return [::Integer]
90
90
  # Optional. Sets the maximum number of requests that each serving instance
91
- # can receive.
91
+ # can receive. If not specified or 0, defaults to 80 when requested
92
+ # `CPU >= 1` and defaults to 1 when requested `CPU < 1`.
93
+ # @!attribute [rw] service_mesh
94
+ # @return [::Google::Cloud::Run::V2::ServiceMesh]
95
+ # Optional. Enables service mesh connectivity.
92
96
  # @!attribute [rw] session_affinity
93
97
  # @return [::Boolean]
94
98
  # Optional. Enable session affinity.
95
99
  # @!attribute [rw] health_check_disabled
96
100
  # @return [::Boolean]
97
101
  # Optional. Disables health checking containers during deployment.
102
+ # @!attribute [rw] node_selector
103
+ # @return [::Google::Cloud::Run::V2::NodeSelector]
104
+ # Optional. The node selector for the revision template.
98
105
  class RevisionTemplate
99
106
  include ::Google::Protobuf::MessageExts
100
107
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -241,9 +241,23 @@ module Google
241
241
  # @!attribute [rw] scaling
242
242
  # @return [::Google::Cloud::Run::V2::ServiceScaling]
243
243
  # Optional. Specifies service-level scaling settings
244
+ # @!attribute [rw] invoker_iam_disabled
245
+ # @return [::Boolean]
246
+ # Optional. Disables IAM permission check for run.routes.invoke for callers
247
+ # of this service. This setting should not be used with external ingress.
244
248
  # @!attribute [rw] default_uri_disabled
245
249
  # @return [::Boolean]
246
250
  # Optional. Disables public resolution of the default URI of this service.
251
+ # @!attribute [r] urls
252
+ # @return [::Array<::String>]
253
+ # Output only. All URLs serving traffic for this Service.
254
+ # @!attribute [rw] custom_audiences
255
+ # @return [::Array<::String>]
256
+ # One or more custom audiences that you want this service to support. Specify
257
+ # each custom audience as the full URL in a string. The custom audiences are
258
+ # encoded in the token and used to authenticate requests. For more
259
+ # information, see
260
+ # https://cloud.google.com/run/docs/configuring/custom-audiences.
247
261
  # @!attribute [r] observed_generation
248
262
  # @return [::Integer]
249
263
  # Output only. The generation of this Service currently serving traffic. See
@@ -281,13 +295,6 @@ module Google
281
295
  # @!attribute [r] uri
282
296
  # @return [::String]
283
297
  # Output only. The main URI in which this Service is serving traffic.
284
- # @!attribute [rw] custom_audiences
285
- # @return [::Array<::String>]
286
- # One or more custom audiences that you want this service to support. Specify
287
- # each custom audience as the full URL in a string. The custom audiences are
288
- # encoded in the token and used to authenticate requests. For more
289
- # information, see
290
- # https://cloud.google.com/run/docs/configuring/custom-audiences.
291
298
  # @!attribute [r] satisfies_pzs
292
299
  # @return [::Boolean]
293
300
  # Output only. Reserved for future use.
@@ -26,8 +26,8 @@ module Google
26
26
  # @!attribute [rw] connector
27
27
  # @return [::String]
28
28
  # VPC Access connector name.
29
- # Format: projects/\\{project}/locations/\\{location}/connectors/\\{connector},
30
- # where \\{project} can be project id or number.
29
+ # Format: `projects/{project}/locations/{location}/connectors/{connector}`,
30
+ # where `{project}` can be project id or number.
31
31
  # For more information on sending traffic to a VPC network via a connector,
32
32
  # visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
33
33
  # @!attribute [rw] egress
@@ -86,7 +86,7 @@ module Google
86
86
  # @!attribute [rw] policy
87
87
  # @return [::String]
88
88
  # Optional. The path to a binary authorization policy.
89
- # Format: projects/\\{project}/platforms/cloudRun/\\{policy-name}
89
+ # Format: `projects/{project}/platforms/cloudRun/{policy-name}`
90
90
  # @!attribute [rw] breakglass_justification
91
91
  # @return [::String]
92
92
  # Optional. If present, indicates to use Breakglass using this justification.
@@ -106,22 +106,61 @@ module Google
106
106
  # @!attribute [rw] max_instance_count
107
107
  # @return [::Integer]
108
108
  # Optional. Maximum number of serving instances that this resource should
109
- # have.
109
+ # have. When unspecified, the field is set to the server default value of
110
+ # 100. For more information see
111
+ # https://cloud.google.com/run/docs/configuring/max-instances
110
112
  class RevisionScaling
111
113
  include ::Google::Protobuf::MessageExts
112
114
  extend ::Google::Protobuf::MessageExts::ClassMethods
113
115
  end
114
116
 
117
+ # Settings for Cloud Service Mesh. For more information see
118
+ # https://cloud.google.com/service-mesh/docs/overview.
119
+ # @!attribute [rw] mesh
120
+ # @return [::String]
121
+ # The Mesh resource name. Format:
122
+ # `projects/{project}/locations/global/meshes/{mesh}`, where `{project}` can
123
+ # be project id or number.
124
+ class ServiceMesh
125
+ include ::Google::Protobuf::MessageExts
126
+ extend ::Google::Protobuf::MessageExts::ClassMethods
127
+ end
128
+
115
129
  # Scaling settings applied at the service level rather than
116
130
  # at the revision level.
117
131
  # @!attribute [rw] min_instance_count
118
132
  # @return [::Integer]
119
133
  # Optional. total min instances for the service. This number of instances is
120
134
  # divided among all revisions with specified traffic based on the percent
121
- # of traffic they are receiving. (BETA)
135
+ # of traffic they are receiving.
136
+ # @!attribute [rw] scaling_mode
137
+ # @return [::Google::Cloud::Run::V2::ServiceScaling::ScalingMode]
138
+ # Optional. The scaling mode for the service.
122
139
  class ServiceScaling
123
140
  include ::Google::Protobuf::MessageExts
124
141
  extend ::Google::Protobuf::MessageExts::ClassMethods
142
+
143
+ # The scaling mode for the service. If not provided, it defaults to
144
+ # AUTOMATIC.
145
+ module ScalingMode
146
+ # Unspecified.
147
+ SCALING_MODE_UNSPECIFIED = 0
148
+
149
+ # Scale based on traffic between min and max instances.
150
+ AUTOMATIC = 1
151
+
152
+ # Scale to exactly min instances and ignore max instances.
153
+ MANUAL = 2
154
+ end
155
+ end
156
+
157
+ # Hardware constraints configuration.
158
+ # @!attribute [rw] accelerator
159
+ # @return [::String]
160
+ # Required. GPU accelerator type to attach to an instance.
161
+ class NodeSelector
162
+ include ::Google::Protobuf::MessageExts
163
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
164
  end
126
165
 
127
166
  # Allowed ingress traffic for the Container.
@@ -137,6 +176,9 @@ module Google
137
176
 
138
177
  # Both internal and Google Cloud Load Balancer traffic is allowed.
139
178
  INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER = 3
179
+
180
+ # No ingress traffic is allowed.
181
+ INGRESS_TRAFFIC_NONE = 4
140
182
  end
141
183
 
142
184
  # Alternatives for execution environments.
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.16.0
4
+ version: 0.17.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: 2024-07-10 00:00:00.000000000 Z
11
+ date: 2024-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -93,6 +93,15 @@ files:
93
93
  - README.md
94
94
  - lib/google-cloud-run-v2.rb
95
95
  - lib/google/cloud/run/v2.rb
96
+ - lib/google/cloud/run/v2/build_pb.rb
97
+ - lib/google/cloud/run/v2/build_services_pb.rb
98
+ - lib/google/cloud/run/v2/builds.rb
99
+ - lib/google/cloud/run/v2/builds/client.rb
100
+ - lib/google/cloud/run/v2/builds/credentials.rb
101
+ - lib/google/cloud/run/v2/builds/paths.rb
102
+ - lib/google/cloud/run/v2/builds/rest.rb
103
+ - lib/google/cloud/run/v2/builds/rest/client.rb
104
+ - lib/google/cloud/run/v2/builds/rest/service_stub.rb
96
105
  - lib/google/cloud/run/v2/condition_pb.rb
97
106
  - lib/google/cloud/run/v2/execution_pb.rb
98
107
  - lib/google/cloud/run/v2/execution_services_pb.rb
@@ -162,6 +171,7 @@ files:
162
171
  - proto_docs/google/api/launch_stage.rb
163
172
  - proto_docs/google/api/resource.rb
164
173
  - proto_docs/google/api/routing.rb
174
+ - proto_docs/google/cloud/run/v2/build.rb
165
175
  - proto_docs/google/cloud/run/v2/condition.rb
166
176
  - proto_docs/google/cloud/run/v2/execution.rb
167
177
  - proto_docs/google/cloud/run/v2/execution_template.rb
@@ -205,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
215
  - !ruby/object:Gem::Version
206
216
  version: '0'
207
217
  requirements: []
208
- rubygems_version: 3.5.6
218
+ rubygems_version: 3.5.21
209
219
  signing_key:
210
220
  specification_version: 4
211
221
  summary: Deploy and manage user provided container images that scale automatically