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.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/run/v2/condition_pb.rb +111 -0
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +88 -0
- data/lib/google/cloud/run/v2/revision_pb.rb +81 -0
- data/lib/google/cloud/run/v2/revision_services_pb.rb +49 -0
- data/lib/google/cloud/run/v2/revision_template_pb.rb +39 -0
- data/lib/google/cloud/run/v2/revisions/client.rb +619 -0
- data/lib/google/cloud/run/v2/revisions/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/revisions/operations.rb +767 -0
- data/lib/google/cloud/run/v2/revisions/paths.rb +73 -0
- data/lib/google/cloud/run/v2/revisions.rb +50 -0
- data/lib/google/cloud/run/v2/service_pb.rb +100 -0
- data/lib/google/cloud/run/v2/service_services_pb.rb +65 -0
- data/lib/google/cloud/run/v2/services/client.rb +1154 -0
- data/lib/google/cloud/run/v2/services/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/services/operations.rb +767 -0
- data/lib/google/cloud/run/v2/services/paths.rb +166 -0
- data/lib/google/cloud/run/v2/services.rb +50 -0
- data/lib/google/cloud/run/v2/traffic_target_pb.rb +41 -0
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +56 -0
- data/lib/google/cloud/run/v2/version.rb +28 -0
- data/lib/google/cloud/run/v2.rb +41 -0
- data/lib/google-cloud-run-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/run/v2/condition.rb +260 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +290 -0
- data/proto_docs/google/cloud/run/v2/revision.rb +225 -0
- data/proto_docs/google/cloud/run/v2/revision_template.rb +98 -0
- data/proto_docs/google/cloud/run/v2/service.rb +307 -0
- data/proto_docs/google/cloud/run/v2/traffic_target.rb +81 -0
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +109 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +418 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +253 -0
@@ -0,0 +1,166 @@
|
|
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
|
+
module Services
|
25
|
+
# Path helper methods for the Services API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Connector resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/connectors/{connector}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param connector [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def connector_path project:, location:, connector:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/connectors/#{connector}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified CryptoKey resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param key_ring [String]
|
56
|
+
# @param crypto_key [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a fully-qualified Location resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
#
|
77
|
+
# @return [::String]
|
78
|
+
def location_path project:, location:
|
79
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/#{location}"
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Create a fully-qualified Revision resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/locations/{location}/services/{service}/revisions/{revision}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param location [String]
|
93
|
+
# @param service [String]
|
94
|
+
# @param revision [String]
|
95
|
+
#
|
96
|
+
# @return [::String]
|
97
|
+
def revision_path project:, location:, service:, revision:
|
98
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
99
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
100
|
+
raise ::ArgumentError, "service cannot contain /" if service.to_s.include? "/"
|
101
|
+
|
102
|
+
"projects/#{project}/locations/#{location}/services/#{service}/revisions/#{revision}"
|
103
|
+
end
|
104
|
+
|
105
|
+
##
|
106
|
+
# Create a fully-qualified Secret resource string.
|
107
|
+
#
|
108
|
+
# The resource will be in the following format:
|
109
|
+
#
|
110
|
+
# `projects/{project}/secrets/{secret}`
|
111
|
+
#
|
112
|
+
# @param project [String]
|
113
|
+
# @param secret [String]
|
114
|
+
#
|
115
|
+
# @return [::String]
|
116
|
+
def secret_path project:, secret:
|
117
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
118
|
+
|
119
|
+
"projects/#{project}/secrets/#{secret}"
|
120
|
+
end
|
121
|
+
|
122
|
+
##
|
123
|
+
# Create a fully-qualified SecretVersion resource string.
|
124
|
+
#
|
125
|
+
# The resource will be in the following format:
|
126
|
+
#
|
127
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`
|
128
|
+
#
|
129
|
+
# @param project [String]
|
130
|
+
# @param secret [String]
|
131
|
+
# @param version [String]
|
132
|
+
#
|
133
|
+
# @return [::String]
|
134
|
+
def secret_version_path project:, secret:, version:
|
135
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
136
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
137
|
+
|
138
|
+
"projects/#{project}/secrets/#{secret}/versions/#{version}"
|
139
|
+
end
|
140
|
+
|
141
|
+
##
|
142
|
+
# Create a fully-qualified Service resource string.
|
143
|
+
#
|
144
|
+
# The resource will be in the following format:
|
145
|
+
#
|
146
|
+
# `projects/{project}/locations/{location}/services/{service}`
|
147
|
+
#
|
148
|
+
# @param project [String]
|
149
|
+
# @param location [String]
|
150
|
+
# @param service [String]
|
151
|
+
#
|
152
|
+
# @return [::String]
|
153
|
+
def service_path project:, location:, service:
|
154
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
155
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
156
|
+
|
157
|
+
"projects/#{project}/locations/#{location}/services/#{service}"
|
158
|
+
end
|
159
|
+
|
160
|
+
extend self
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
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
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/run/v2/version"
|
24
|
+
|
25
|
+
require "google/cloud/run/v2/services/credentials"
|
26
|
+
require "google/cloud/run/v2/services/paths"
|
27
|
+
require "google/cloud/run/v2/services/operations"
|
28
|
+
require "google/cloud/run/v2/services/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Run
|
33
|
+
module V2
|
34
|
+
##
|
35
|
+
# Cloud Run Service Control Plane API
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/run/v2/services"
|
40
|
+
# client = ::Google::Cloud::Run::V2::Services::Client.new
|
41
|
+
#
|
42
|
+
module Services
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
helper_path = ::File.join __dir__, "services", "helpers.rb"
|
50
|
+
require "google/cloud/run/v2/services/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/run/v2/traffic_target.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/run/v2/traffic_target.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.run.v2.TrafficTarget" do
|
11
|
+
optional :type, :enum, 1, "google.cloud.run.v2.TrafficTargetAllocationType"
|
12
|
+
optional :revision, :string, 2
|
13
|
+
optional :percent, :int32, 3
|
14
|
+
optional :tag, :string, 4
|
15
|
+
end
|
16
|
+
add_message "google.cloud.run.v2.TrafficTargetStatus" do
|
17
|
+
optional :type, :enum, 1, "google.cloud.run.v2.TrafficTargetAllocationType"
|
18
|
+
optional :revision, :string, 2
|
19
|
+
optional :percent, :int32, 3
|
20
|
+
optional :tag, :string, 4
|
21
|
+
optional :uri, :string, 5
|
22
|
+
end
|
23
|
+
add_enum "google.cloud.run.v2.TrafficTargetAllocationType" do
|
24
|
+
value :TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED, 0
|
25
|
+
value :TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST, 1
|
26
|
+
value :TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION, 2
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module Run
|
34
|
+
module V2
|
35
|
+
TrafficTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TrafficTarget").msgclass
|
36
|
+
TrafficTargetStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TrafficTargetStatus").msgclass
|
37
|
+
TrafficTargetAllocationType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TrafficTargetAllocationType").enummodule
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/run/v2/vendor_settings.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/resource_pb'
|
7
|
+
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/run/v2/vendor_settings.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.run.v2.VpcAccess" do
|
11
|
+
optional :connector, :string, 1
|
12
|
+
optional :egress, :enum, 2, "google.cloud.run.v2.VpcAccess.VpcEgress"
|
13
|
+
end
|
14
|
+
add_enum "google.cloud.run.v2.VpcAccess.VpcEgress" do
|
15
|
+
value :VPC_EGRESS_UNSPECIFIED, 0
|
16
|
+
value :ALL_TRAFFIC, 1
|
17
|
+
value :PRIVATE_RANGES_ONLY, 2
|
18
|
+
end
|
19
|
+
add_message "google.cloud.run.v2.BinaryAuthorization" do
|
20
|
+
optional :breakglass_justification, :string, 2
|
21
|
+
oneof :binauthz_method do
|
22
|
+
optional :use_default, :bool, 1
|
23
|
+
end
|
24
|
+
end
|
25
|
+
add_message "google.cloud.run.v2.RevisionScaling" do
|
26
|
+
optional :min_instance_count, :int32, 1
|
27
|
+
optional :max_instance_count, :int32, 2
|
28
|
+
end
|
29
|
+
add_enum "google.cloud.run.v2.IngressTraffic" do
|
30
|
+
value :INGRESS_TRAFFIC_UNSPECIFIED, 0
|
31
|
+
value :INGRESS_TRAFFIC_ALL, 1
|
32
|
+
value :INGRESS_TRAFFIC_INTERNAL_ONLY, 2
|
33
|
+
value :INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER, 3
|
34
|
+
end
|
35
|
+
add_enum "google.cloud.run.v2.ExecutionEnvironment" do
|
36
|
+
value :EXECUTION_ENVIRONMENT_UNSPECIFIED, 0
|
37
|
+
value :EXECUTION_ENVIRONMENT_DEFAULT, 1
|
38
|
+
value :EXECUTION_ENVIRONMENT_GEN2, 2
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
module Google
|
44
|
+
module Cloud
|
45
|
+
module Run
|
46
|
+
module V2
|
47
|
+
VpcAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VpcAccess").msgclass
|
48
|
+
VpcAccess::VpcEgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VpcAccess.VpcEgress").enummodule
|
49
|
+
BinaryAuthorization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.BinaryAuthorization").msgclass
|
50
|
+
RevisionScaling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RevisionScaling").msgclass
|
51
|
+
IngressTraffic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.IngressTraffic").enummodule
|
52
|
+
ExecutionEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ExecutionEnvironment").enummodule
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,28 @@
|
|
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
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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
|
+
require "google/cloud/run/v2/revisions"
|
20
|
+
require "google/cloud/run/v2/services"
|
21
|
+
require "google/cloud/run/v2/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module Run
|
26
|
+
##
|
27
|
+
# To load this package, including all its services, and instantiate a client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/run/v2"
|
32
|
+
# client = ::Google::Cloud::Run::V2::Revisions::Client.new
|
33
|
+
#
|
34
|
+
module V2
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
helper_path = ::File.join __dir__, "v2", "_helpers.rb"
|
41
|
+
require "google/cloud/run/v2/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,21 @@
|
|
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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/run/v2"
|
@@ -0,0 +1,71 @@
|
|
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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 Api
|
22
|
+
# The launch stage as defined by [Google Cloud Platform
|
23
|
+
# Launch Stages](http://cloud.google.com/terms/launch-stages).
|
24
|
+
module LaunchStage
|
25
|
+
# Do not use this default value.
|
26
|
+
LAUNCH_STAGE_UNSPECIFIED = 0
|
27
|
+
|
28
|
+
# The feature is not yet implemented. Users can not use it.
|
29
|
+
UNIMPLEMENTED = 6
|
30
|
+
|
31
|
+
# Prelaunch features are hidden from users and are only visible internally.
|
32
|
+
PRELAUNCH = 7
|
33
|
+
|
34
|
+
# Early Access features are limited to a closed group of testers. To use
|
35
|
+
# these features, you must sign up in advance and sign a Trusted Tester
|
36
|
+
# agreement (which includes confidentiality provisions). These features may
|
37
|
+
# be unstable, changed in backward-incompatible ways, and are not
|
38
|
+
# guaranteed to be released.
|
39
|
+
EARLY_ACCESS = 1
|
40
|
+
|
41
|
+
# Alpha is a limited availability test for releases before they are cleared
|
42
|
+
# for widespread use. By Alpha, all significant design issues are resolved
|
43
|
+
# and we are in the process of verifying functionality. Alpha customers
|
44
|
+
# need to apply for access, agree to applicable terms, and have their
|
45
|
+
# projects allowlisted. Alpha releases don’t have to be feature complete,
|
46
|
+
# no SLAs are provided, and there are no technical support obligations, but
|
47
|
+
# they will be far enough along that customers can actually use them in
|
48
|
+
# test environments or for limited-use tests -- just like they would in
|
49
|
+
# normal production cases.
|
50
|
+
ALPHA = 2
|
51
|
+
|
52
|
+
# Beta is the point at which we are ready to open a release for any
|
53
|
+
# customer to use. There are no SLA or technical support obligations in a
|
54
|
+
# Beta release. Products will be complete from a feature perspective, but
|
55
|
+
# may have some open outstanding issues. Beta releases are suitable for
|
56
|
+
# limited production use cases.
|
57
|
+
BETA = 3
|
58
|
+
|
59
|
+
# GA features are open to all developers and are considered stable and
|
60
|
+
# fully qualified for production use.
|
61
|
+
GA = 4
|
62
|
+
|
63
|
+
# Deprecated features are scheduled to be shut down and removed. For more
|
64
|
+
# information, see the “Deprecation Policy” section of our [Terms of
|
65
|
+
# Service](https://cloud.google.com/terms/)
|
66
|
+
# and the [Google Cloud Platform Subject to the Deprecation
|
67
|
+
# Policy](https://cloud.google.com/terms/deprecation) documentation.
|
68
|
+
DEPRECATED = 5
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|