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,307 @@
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 creating a Service.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The location and project in which this service should be created.
28
+ # Format: projects/\\{projectnumber}/locations/\\{location}
29
+ # @!attribute [rw] service
30
+ # @return [::Google::Cloud::Run::V2::Service]
31
+ # Required. The Service instance to create.
32
+ # @!attribute [rw] service_id
33
+ # @return [::String]
34
+ # Required. The unique identifier for the Service. The name of the service becomes
35
+ # \\{parent}/services/\\{service_id}.
36
+ # @!attribute [rw] validate_only
37
+ # @return [::Boolean]
38
+ # Indicates that the request should be validated and default values
39
+ # populated, without persisting the request or creating any resources.
40
+ class CreateServiceRequest
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+
45
+ # Request message for updating a service.
46
+ # @!attribute [rw] service
47
+ # @return [::Google::Cloud::Run::V2::Service]
48
+ # Required. The Service to be updated.
49
+ # @!attribute [rw] update_mask
50
+ # @return [::Google::Protobuf::FieldMask]
51
+ # The list of fields to be updated.
52
+ # @!attribute [rw] validate_only
53
+ # @return [::Boolean]
54
+ # Indicates that the request should be validated and default values
55
+ # populated, without persisting the request or updating any resources.
56
+ # @!attribute [rw] allow_missing
57
+ # @return [::Boolean]
58
+ # If set to true, and if the Service does not exist, it will create a new
59
+ # one. Caller must have both create and update permissions for this call if
60
+ # this is set to true.
61
+ class UpdateServiceRequest
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+
66
+ # Request message for retrieving a list of Services.
67
+ # @!attribute [rw] parent
68
+ # @return [::String]
69
+ # Required. The location and project to list resources on.
70
+ # Location must be a valid GCP region, and may not be the "-" wildcard.
71
+ # Format: projects/\\{projectnumber}/locations/\\{location}
72
+ # @!attribute [rw] page_size
73
+ # @return [::Integer]
74
+ # Maximum number of Services to return in this call.
75
+ # @!attribute [rw] page_token
76
+ # @return [::String]
77
+ # A page token received from a previous call to ListServices.
78
+ # All other parameters must match.
79
+ # @!attribute [rw] show_deleted
80
+ # @return [::Boolean]
81
+ # If true, returns deleted (but unexpired) resources along with active ones.
82
+ class ListServicesRequest
83
+ include ::Google::Protobuf::MessageExts
84
+ extend ::Google::Protobuf::MessageExts::ClassMethods
85
+ end
86
+
87
+ # Response message containing a list of Services.
88
+ # @!attribute [rw] services
89
+ # @return [::Array<::Google::Cloud::Run::V2::Service>]
90
+ # The resulting list of Services.
91
+ # @!attribute [rw] next_page_token
92
+ # @return [::String]
93
+ # A token indicating there are more items than page_size. Use it in the next
94
+ # ListServices request to continue.
95
+ class ListServicesResponse
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # Request message for obtaining a Service by its full name.
101
+ # @!attribute [rw] name
102
+ # @return [::String]
103
+ # Required. The full name of the Service.
104
+ # Format: projects/\\{projectnumber}/locations/\\{location}/services/\\{service}
105
+ class GetServiceRequest
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+
110
+ # Request message to delete a Service by its full name.
111
+ # @!attribute [rw] name
112
+ # @return [::String]
113
+ # Required. The full name of the Service.
114
+ # Format: projects/\\{projectnumber}/locations/\\{location}/services/\\{service}
115
+ # @!attribute [rw] validate_only
116
+ # @return [::Boolean]
117
+ # Indicates that the request should be validated without actually
118
+ # deleting any resources.
119
+ # @!attribute [rw] etag
120
+ # @return [::String]
121
+ # A system-generated fingerprint for this version of the
122
+ # resource. May be used to detect modification conflict during updates.
123
+ class DeleteServiceRequest
124
+ include ::Google::Protobuf::MessageExts
125
+ extend ::Google::Protobuf::MessageExts::ClassMethods
126
+ end
127
+
128
+ # Service acts as a top-level container that manages a set of
129
+ # configurations and revision templates which implement a network service.
130
+ # Service exists to provide a singular abstraction which can be access
131
+ # controlled, reasoned about, and which encapsulates software lifecycle
132
+ # decisions such as rollout policy and team resource ownership.
133
+ # @!attribute [rw] name
134
+ # @return [::String]
135
+ # The fully qualified name of this Service. In CreateServiceRequest, this
136
+ # field is ignored, and instead composed from CreateServiceRequest.parent and
137
+ # CreateServiceRequest.service_id.
138
+ #
139
+ # Format:
140
+ # projects/\\{project}/locations/\\{location}/services/\\{service_id}
141
+ # @!attribute [rw] description
142
+ # @return [::String]
143
+ # User-provided description of the Service. This field currently has a
144
+ # 512-character limit.
145
+ # @!attribute [r] uid
146
+ # @return [::String]
147
+ # Output only. Server assigned unique identifier for the trigger. The value is a UUID4
148
+ # string and guaranteed to remain unchanged until the resource is deleted.
149
+ # @!attribute [r] generation
150
+ # @return [::Integer]
151
+ # Output only. A number that monotonically increases every time the user
152
+ # modifies the desired state.
153
+ # @!attribute [rw] labels
154
+ # @return [::Google::Protobuf::Map{::String => ::String}]
155
+ # Map of string keys and values that can be used to organize and categorize
156
+ # objects.
157
+ # User-provided labels are shared with Google's billing system, so they can
158
+ # be used to filter, or break down billing charges by team, component,
159
+ # environment, state, etc. For more information, visit
160
+ # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
161
+ # https://cloud.google.com/run/docs/configuring/labels
162
+ # Cloud Run will populate some labels with 'run.googleapis.com' or
163
+ # 'serving.knative.dev' namespaces. Those labels are read-only, and user
164
+ # changes will not be preserved.
165
+ # @!attribute [rw] annotations
166
+ # @return [::Google::Protobuf::Map{::String => ::String}]
167
+ # Unstructured key value map that may be set by external tools to store and
168
+ # arbitrary metadata. They are not queryable and should be preserved
169
+ # when modifying objects. Cloud Run will populate some annotations using
170
+ # 'run.googleapis.com' or 'serving.knative.dev' namespaces. This field
171
+ # follows Kubernetes annotations' namespacing, limits, and rules. More info:
172
+ # https://kubernetes.io/docs/user-guide/annotations
173
+ # @!attribute [r] create_time
174
+ # @return [::Google::Protobuf::Timestamp]
175
+ # Output only. The creation time.
176
+ # @!attribute [r] update_time
177
+ # @return [::Google::Protobuf::Timestamp]
178
+ # Output only. The last-modified time.
179
+ # @!attribute [r] delete_time
180
+ # @return [::Google::Protobuf::Timestamp]
181
+ # Output only. The deletion time.
182
+ # @!attribute [r] expire_time
183
+ # @return [::Google::Protobuf::Timestamp]
184
+ # Output only. For a deleted resource, the time after which it will be
185
+ # permamently deleted.
186
+ # @!attribute [r] creator
187
+ # @return [::String]
188
+ # Output only. Email address of the authenticated creator.
189
+ # @!attribute [r] last_modifier
190
+ # @return [::String]
191
+ # Output only. Email address of the last authenticated modifier.
192
+ # @!attribute [rw] client
193
+ # @return [::String]
194
+ # Arbitrary identifier for the API client.
195
+ # @!attribute [rw] client_version
196
+ # @return [::String]
197
+ # Arbitrary version identifier for the API client.
198
+ # @!attribute [rw] ingress
199
+ # @return [::Google::Cloud::Run::V2::IngressTraffic]
200
+ # Provides the ingress settings for this Service. On output, returns the
201
+ # currently observed ingress settings, or INGRESS_TRAFFIC_UNSPECIFIED if no
202
+ # revision is active.
203
+ # @!attribute [rw] launch_stage
204
+ # @return [::Google::Api::LaunchStage]
205
+ # The launch stage as defined by [Google Cloud Platform
206
+ # Launch Stages](https://cloud.google.com/terms/launch-stages).
207
+ # Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
208
+ # is assumed.
209
+ # @!attribute [rw] binary_authorization
210
+ # @return [::Google::Cloud::Run::V2::BinaryAuthorization]
211
+ # Settings for the Binary Authorization feature.
212
+ # @!attribute [rw] template
213
+ # @return [::Google::Cloud::Run::V2::RevisionTemplate]
214
+ # Required. The template used to create revisions for this Service.
215
+ # @!attribute [rw] traffic
216
+ # @return [::Array<::Google::Cloud::Run::V2::TrafficTarget>]
217
+ # Specifies how to distribute traffic over a collection of Revisions
218
+ # belonging to the Service. If traffic is empty or not provided, defaults to
219
+ # 100% traffic to the latest `Ready` Revision.
220
+ # @!attribute [r] observed_generation
221
+ # @return [::Integer]
222
+ # Output only. The generation of this Service currently serving traffic. See comments in
223
+ # `reconciling` for additional information on reconciliation process in Cloud
224
+ # Run.
225
+ # @!attribute [r] terminal_condition
226
+ # @return [::Google::Cloud::Run::V2::Condition]
227
+ # Output only. The Condition of this Service, containing its readiness status, and
228
+ # detailed error information in case it did not reach a serving state. See
229
+ # comments in `reconciling` for additional information on reconciliation
230
+ # process in Cloud Run.
231
+ # @!attribute [r] conditions
232
+ # @return [::Array<::Google::Cloud::Run::V2::Condition>]
233
+ # Output only. The Conditions of all other associated sub-resources. They contain
234
+ # additional diagnostics information in case the Service does not reach its
235
+ # Serving state. See comments in `reconciling` for additional information on
236
+ # reconciliation process in Cloud Run.
237
+ # @!attribute [r] latest_ready_revision
238
+ # @return [::String]
239
+ # Output only. Name of the latest revision that is serving traffic. See comments in
240
+ # `reconciling` for additional information on reconciliation process in Cloud
241
+ # Run.
242
+ # @!attribute [r] latest_created_revision
243
+ # @return [::String]
244
+ # Output only. Name of the last created revision. See comments in `reconciling` for
245
+ # additional information on reconciliation process in Cloud Run.
246
+ # @!attribute [r] traffic_statuses
247
+ # @return [::Array<::Google::Cloud::Run::V2::TrafficTargetStatus>]
248
+ # Output only. Detailed status information for corresponding traffic targets. See comments
249
+ # in `reconciling` for additional information on reconciliation process in
250
+ # Cloud Run.
251
+ # @!attribute [r] uri
252
+ # @return [::String]
253
+ # Output only. The main URI in which this Service is serving traffic.
254
+ # @!attribute [r] reconciling
255
+ # @return [::Boolean]
256
+ # Output only. Returns true if the Service is currently being acted upon by the system to
257
+ # bring it into the desired state.
258
+ #
259
+ # When a new Service is created, or an existing one is updated, Cloud Run
260
+ # will asynchronously perform all necessary steps to bring the Service to the
261
+ # desired serving state. This process is called reconciliation.
262
+ # While reconciliation is in process, `observed_generation`,
263
+ # `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient
264
+ # values that might mismatch the intended state: Once reconciliation is over
265
+ # (and this field is false), there are two possible outcomes: reconciliation
266
+ # succeeded and the serving state matches the Service, or there was an error,
267
+ # and reconciliation failed. This state can be found in
268
+ # `terminal_condition.state`.
269
+ #
270
+ # If reconciliation succeeded, the following fields will match: `traffic` and
271
+ # `traffic_statuses`, `observed_generation` and `generation`,
272
+ # `latest_ready_revision` and `latest_created_revision`.
273
+ #
274
+ # If reconciliation failed, `traffic_statuses`, `observed_generation`, and
275
+ # `latest_ready_revision` will have the state of the last serving revision,
276
+ # or empty for newly created Services. Additional information on the failure
277
+ # can be found in `terminal_condition` and `conditions`.
278
+ # @!attribute [r] etag
279
+ # @return [::String]
280
+ # Output only. A system-generated fingerprint for this version of the
281
+ # resource. May be used to detect modification conflict during updates.
282
+ class Service
283
+ include ::Google::Protobuf::MessageExts
284
+ extend ::Google::Protobuf::MessageExts::ClassMethods
285
+
286
+ # @!attribute [rw] key
287
+ # @return [::String]
288
+ # @!attribute [rw] value
289
+ # @return [::String]
290
+ class LabelsEntry
291
+ include ::Google::Protobuf::MessageExts
292
+ extend ::Google::Protobuf::MessageExts::ClassMethods
293
+ end
294
+
295
+ # @!attribute [rw] key
296
+ # @return [::String]
297
+ # @!attribute [rw] value
298
+ # @return [::String]
299
+ class AnnotationsEntry
300
+ include ::Google::Protobuf::MessageExts
301
+ extend ::Google::Protobuf::MessageExts::ClassMethods
302
+ end
303
+ end
304
+ end
305
+ end
306
+ end
307
+ end
@@ -0,0 +1,81 @@
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
+ # Holds a single traffic routing entry for the Service. 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::TrafficTargetAllocationType]
28
+ # The allocation type for this traffic target.
29
+ # @!attribute [rw] revision
30
+ # @return [::String]
31
+ # Revision to which to send this portion of traffic, if traffic allocation is
32
+ # by revision.
33
+ # @!attribute [rw] percent
34
+ # @return [::Integer]
35
+ # Specifies percent of the traffic to this Revision.
36
+ # This defaults to zero if unspecified.
37
+ # @!attribute [rw] tag
38
+ # @return [::String]
39
+ # Indicates a string to be part of the URI to exclusively reference this
40
+ # target.
41
+ class TrafficTarget
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+
46
+ # Represents the observed state of a single `TrafficTarget` entry.
47
+ # @!attribute [rw] type
48
+ # @return [::Google::Cloud::Run::V2::TrafficTargetAllocationType]
49
+ # The allocation type for this traffic target.
50
+ # @!attribute [rw] revision
51
+ # @return [::String]
52
+ # Revision to which this traffic is sent.
53
+ # @!attribute [rw] percent
54
+ # @return [::Integer]
55
+ # Specifies percent of the traffic to this Revision.
56
+ # @!attribute [rw] tag
57
+ # @return [::String]
58
+ # Indicates the string used in the URI to exclusively reference this target.
59
+ # @!attribute [rw] uri
60
+ # @return [::String]
61
+ # Displays the target URI.
62
+ class TrafficTargetStatus
63
+ include ::Google::Protobuf::MessageExts
64
+ extend ::Google::Protobuf::MessageExts::ClassMethods
65
+ end
66
+
67
+ # The type of instance allocation.
68
+ module TrafficTargetAllocationType
69
+ # Unspecified instance allocation type.
70
+ TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED = 0
71
+
72
+ # Allocates instances to the Service's latest ready Revision.
73
+ TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST = 1
74
+
75
+ # Allocates instances to a Revision by name.
76
+ TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION = 2
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,109 @@
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
+ # 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
28
+ # @!attribute [rw] connector
29
+ # @return [::String]
30
+ # VPC Access connector name.
31
+ # Format: projects/\\{project}/locations/\\{location}/connectors/\\{connector}
32
+ # @!attribute [rw] egress
33
+ # @return [::Google::Cloud::Run::V2::VpcAccess::VpcEgress]
34
+ # Traffic VPC egress settings.
35
+ class VpcAccess
36
+ include ::Google::Protobuf::MessageExts
37
+ extend ::Google::Protobuf::MessageExts::ClassMethods
38
+
39
+ # Egress options for VPC access.
40
+ module VpcEgress
41
+ # Unspecified
42
+ VPC_EGRESS_UNSPECIFIED = 0
43
+
44
+ # All outbound traffic is routed through the VPC connector.
45
+ ALL_TRAFFIC = 1
46
+
47
+ # Only private IP ranges are routed through the VPC connector.
48
+ PRIVATE_RANGES_ONLY = 2
49
+ end
50
+ end
51
+
52
+ # Settings for Binary Authorization feature.
53
+ # @!attribute [rw] use_default
54
+ # @return [::Boolean]
55
+ # If True, indicates to use the default project's binary authorization
56
+ # policy. If False, binary authorization will be disabled.
57
+ # @!attribute [rw] breakglass_justification
58
+ # @return [::String]
59
+ # If present, indicates to use Breakglass using this justification.
60
+ # If use_default is False, then it must be empty.
61
+ # For more information on breakglass, see
62
+ # https://cloud.google.com/binary-authorization/docs/using-breakglass
63
+ class BinaryAuthorization
64
+ include ::Google::Protobuf::MessageExts
65
+ extend ::Google::Protobuf::MessageExts::ClassMethods
66
+ end
67
+
68
+ # Settings for revision-level scaling settings.
69
+ # @!attribute [rw] min_instance_count
70
+ # @return [::Integer]
71
+ # Minimum number of serving instances that this resource should have.
72
+ # @!attribute [rw] max_instance_count
73
+ # @return [::Integer]
74
+ # Maximum number of serving instances that this resource should have.
75
+ class RevisionScaling
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+ end
79
+
80
+ # Allowed ingress traffic for the Container.
81
+ module IngressTraffic
82
+ # Unspecified
83
+ INGRESS_TRAFFIC_UNSPECIFIED = 0
84
+
85
+ # All inbound traffic is allowed.
86
+ INGRESS_TRAFFIC_ALL = 1
87
+
88
+ # Only internal traffic is allowed.
89
+ INGRESS_TRAFFIC_INTERNAL_ONLY = 2
90
+
91
+ # Both internal and Google Cloud Load Balancer traffic is allowed.
92
+ INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER = 3
93
+ end
94
+
95
+ # Alternatives for execution environments.
96
+ module ExecutionEnvironment
97
+ # Unspecified
98
+ EXECUTION_ENVIRONMENT_UNSPECIFIED = 0
99
+
100
+ # Uses the Google-default environment.
101
+ EXECUTION_ENVIRONMENT_DEFAULT = 1
102
+
103
+ # Uses Second Generation environment.
104
+ EXECUTION_ENVIRONMENT_GEN2 = 2
105
+ end
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,87 @@
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 Iam
22
+ module V1
23
+ # Request message for `SetIamPolicy` method.
24
+ # @!attribute [rw] resource
25
+ # @return [::String]
26
+ # REQUIRED: The resource for which the policy is being specified.
27
+ # See the operation documentation for the appropriate value for this field.
28
+ # @!attribute [rw] policy
29
+ # @return [::Google::Iam::V1::Policy]
30
+ # REQUIRED: The complete policy to be applied to the `resource`. The size of
31
+ # the policy is limited to a few 10s of KB. An empty policy is a
32
+ # valid policy but certain Cloud Platform services (such as Projects)
33
+ # might reject them.
34
+ # @!attribute [rw] update_mask
35
+ # @return [::Google::Protobuf::FieldMask]
36
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
37
+ # the fields in the mask will be modified. If no mask is provided, the
38
+ # following default mask is used:
39
+ #
40
+ # `paths: "bindings, etag"`
41
+ class SetIamPolicyRequest
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+
46
+ # Request message for `GetIamPolicy` method.
47
+ # @!attribute [rw] resource
48
+ # @return [::String]
49
+ # REQUIRED: The resource for which the policy is being requested.
50
+ # See the operation documentation for the appropriate value for this field.
51
+ # @!attribute [rw] options
52
+ # @return [::Google::Iam::V1::GetPolicyOptions]
53
+ # OPTIONAL: A `GetPolicyOptions` object for specifying options to
54
+ # `GetIamPolicy`.
55
+ class GetIamPolicyRequest
56
+ include ::Google::Protobuf::MessageExts
57
+ extend ::Google::Protobuf::MessageExts::ClassMethods
58
+ end
59
+
60
+ # Request message for `TestIamPermissions` method.
61
+ # @!attribute [rw] resource
62
+ # @return [::String]
63
+ # REQUIRED: The resource for which the policy detail is being requested.
64
+ # See the operation documentation for the appropriate value for this field.
65
+ # @!attribute [rw] permissions
66
+ # @return [::Array<::String>]
67
+ # The set of permissions to check for the `resource`. Permissions with
68
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
69
+ # information see
70
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
71
+ class TestIamPermissionsRequest
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+ end
75
+
76
+ # Response message for `TestIamPermissions` method.
77
+ # @!attribute [rw] permissions
78
+ # @return [::Array<::String>]
79
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
80
+ # allowed.
81
+ class TestIamPermissionsResponse
82
+ include ::Google::Protobuf::MessageExts
83
+ extend ::Google::Protobuf::MessageExts::ClassMethods
84
+ end
85
+ end
86
+ end
87
+ end
@@ -0,0 +1,50 @@
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 Iam
22
+ module V1
23
+ # Encapsulates settings provided to GetIamPolicy.
24
+ # @!attribute [rw] requested_policy_version
25
+ # @return [::Integer]
26
+ # Optional. The maximum policy version that will be used to format the
27
+ # policy.
28
+ #
29
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
30
+ # rejected.
31
+ #
32
+ # Requests for policies with any conditional role bindings must specify
33
+ # version 3. Policies with no conditional role bindings may specify any valid
34
+ # value or leave the field unset.
35
+ #
36
+ # The policy in the response might use the policy version that you specified,
37
+ # or it might use a lower policy version. For example, if you specify version
38
+ # 3, but the policy has no conditional role bindings, the response uses
39
+ # version 1.
40
+ #
41
+ # To learn which resources support conditions in their IAM policies, see the
42
+ # [IAM
43
+ # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
44
+ class GetPolicyOptions
45
+ include ::Google::Protobuf::MessageExts
46
+ extend ::Google::Protobuf::MessageExts::ClassMethods
47
+ end
48
+ end
49
+ end
50
+ end