google-cloud-functions-v2 0.3.0 → 0.4.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 +4 -4
- data/lib/google/cloud/functions/v2/function_service/client.rb +1 -1
- data/lib/google/cloud/functions/v2/function_service/rest/client.rb +1 -1
- data/lib/google/cloud/functions/v2/functions_pb.rb +28 -251
- data/lib/google/cloud/functions/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +58 -1
- data/proto_docs/google/cloud/functions/v2/functions.rb +26 -18
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 012a9474a58f8e02a1f00ba27190c71746da88e547f77094583595ce39db2a9e
|
|
4
|
+
data.tar.gz: 6f9c3c16d2db384900fad7876e21ed54321450c381c2bed5b4747e4123dc0f4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0defe9614c2fd1ac748048a62558f1b725d6671b9cd92a5052289ae23b46ec2b3a0fed1f5b267796587b0704d5f202e482693da37adb332e0a63954ef23d974
|
|
7
|
+
data.tar.gz: 8a8c954834cac8324abb22b0bf116c7701c04ca4da01028ab0cca869094c7fe9b3035c8ff407e85eb6feb91b08fc8ad386d743075e67e25c01577867ecefd197
|
|
@@ -727,7 +727,7 @@ module Google
|
|
|
727
727
|
# Required. The project and location in which the Google Cloud Storage signed
|
|
728
728
|
# URL should be generated, specified in the format `projects/*/locations/*`.
|
|
729
729
|
# @param kms_key_name [::String]
|
|
730
|
-
# Resource name of a KMS crypto key (managed by the user) used to
|
|
730
|
+
# [Preview] Resource name of a KMS crypto key (managed by the user) used to
|
|
731
731
|
# encrypt/decrypt function source code objects in intermediate Cloud Storage
|
|
732
732
|
# buckets. When you generate an upload url and upload your source code, it
|
|
733
733
|
# gets copied to an intermediate Cloud Storage bucket. The source code is
|
|
@@ -579,7 +579,7 @@ module Google
|
|
|
579
579
|
# Required. The project and location in which the Google Cloud Storage signed
|
|
580
580
|
# URL should be generated, specified in the format `projects/*/locations/*`.
|
|
581
581
|
# @param kms_key_name [::String]
|
|
582
|
-
# Resource name of a KMS crypto key (managed by the user) used to
|
|
582
|
+
# [Preview] Resource name of a KMS crypto key (managed by the user) used to
|
|
583
583
|
# encrypt/decrypt function source code objects in intermediate Cloud Storage
|
|
584
584
|
# buckets. When you generate an upload url and upload your source code, it
|
|
585
585
|
# gets copied to an intermediate Cloud Storage bucket. The source code is
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
3
|
# source: google/cloud/functions/v2/functions.proto
|
|
3
4
|
|
|
@@ -13,259 +14,34 @@ require 'google/protobuf/empty_pb'
|
|
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
|
14
15
|
require 'google/protobuf/timestamp_pb'
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
add_file("google/cloud/functions/v2/functions.proto", :syntax => :proto3) do
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
add_message "google.cloud.functions.v2.StateMessage" do
|
|
41
|
-
optional :severity, :enum, 1, "google.cloud.functions.v2.StateMessage.Severity"
|
|
42
|
-
optional :type, :string, 2
|
|
43
|
-
optional :message, :string, 3
|
|
44
|
-
end
|
|
45
|
-
add_enum "google.cloud.functions.v2.StateMessage.Severity" do
|
|
46
|
-
value :SEVERITY_UNSPECIFIED, 0
|
|
47
|
-
value :ERROR, 1
|
|
48
|
-
value :WARNING, 2
|
|
49
|
-
value :INFO, 3
|
|
50
|
-
end
|
|
51
|
-
add_message "google.cloud.functions.v2.StorageSource" do
|
|
52
|
-
optional :bucket, :string, 1
|
|
53
|
-
optional :object, :string, 2
|
|
54
|
-
optional :generation, :int64, 3
|
|
55
|
-
end
|
|
56
|
-
add_message "google.cloud.functions.v2.RepoSource" do
|
|
57
|
-
optional :project_id, :string, 1
|
|
58
|
-
optional :repo_name, :string, 2
|
|
59
|
-
optional :dir, :string, 6
|
|
60
|
-
optional :invert_regex, :bool, 7
|
|
61
|
-
oneof :revision do
|
|
62
|
-
optional :branch_name, :string, 3
|
|
63
|
-
optional :tag_name, :string, 4
|
|
64
|
-
optional :commit_sha, :string, 5
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
add_message "google.cloud.functions.v2.Source" do
|
|
68
|
-
oneof :source do
|
|
69
|
-
optional :storage_source, :message, 1, "google.cloud.functions.v2.StorageSource"
|
|
70
|
-
optional :repo_source, :message, 2, "google.cloud.functions.v2.RepoSource"
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
add_message "google.cloud.functions.v2.SourceProvenance" do
|
|
74
|
-
optional :resolved_storage_source, :message, 1, "google.cloud.functions.v2.StorageSource"
|
|
75
|
-
optional :resolved_repo_source, :message, 2, "google.cloud.functions.v2.RepoSource"
|
|
76
|
-
end
|
|
77
|
-
add_message "google.cloud.functions.v2.BuildConfig" do
|
|
78
|
-
optional :build, :string, 1
|
|
79
|
-
optional :runtime, :string, 2
|
|
80
|
-
optional :entry_point, :string, 3
|
|
81
|
-
optional :source, :message, 4, "google.cloud.functions.v2.Source"
|
|
82
|
-
optional :source_provenance, :message, 8, "google.cloud.functions.v2.SourceProvenance"
|
|
83
|
-
optional :worker_pool, :string, 5
|
|
84
|
-
map :environment_variables, :string, :string, 6
|
|
85
|
-
optional :docker_registry, :enum, 10, "google.cloud.functions.v2.BuildConfig.DockerRegistry"
|
|
86
|
-
optional :docker_repository, :string, 7
|
|
87
|
-
end
|
|
88
|
-
add_enum "google.cloud.functions.v2.BuildConfig.DockerRegistry" do
|
|
89
|
-
value :DOCKER_REGISTRY_UNSPECIFIED, 0
|
|
90
|
-
value :CONTAINER_REGISTRY, 1
|
|
91
|
-
value :ARTIFACT_REGISTRY, 2
|
|
92
|
-
end
|
|
93
|
-
add_message "google.cloud.functions.v2.ServiceConfig" do
|
|
94
|
-
optional :service, :string, 1
|
|
95
|
-
optional :timeout_seconds, :int32, 2
|
|
96
|
-
optional :available_memory, :string, 13
|
|
97
|
-
optional :available_cpu, :string, 22
|
|
98
|
-
map :environment_variables, :string, :string, 4
|
|
99
|
-
optional :max_instance_count, :int32, 5
|
|
100
|
-
optional :min_instance_count, :int32, 12
|
|
101
|
-
optional :vpc_connector, :string, 6
|
|
102
|
-
optional :vpc_connector_egress_settings, :enum, 7, "google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings"
|
|
103
|
-
optional :ingress_settings, :enum, 8, "google.cloud.functions.v2.ServiceConfig.IngressSettings"
|
|
104
|
-
optional :uri, :string, 9
|
|
105
|
-
optional :service_account_email, :string, 10
|
|
106
|
-
optional :all_traffic_on_latest_revision, :bool, 16
|
|
107
|
-
repeated :secret_environment_variables, :message, 17, "google.cloud.functions.v2.SecretEnvVar"
|
|
108
|
-
repeated :secret_volumes, :message, 19, "google.cloud.functions.v2.SecretVolume"
|
|
109
|
-
optional :revision, :string, 18
|
|
110
|
-
optional :max_instance_request_concurrency, :int32, 20
|
|
111
|
-
optional :security_level, :enum, 21, "google.cloud.functions.v2.ServiceConfig.SecurityLevel"
|
|
112
|
-
end
|
|
113
|
-
add_enum "google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings" do
|
|
114
|
-
value :VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, 0
|
|
115
|
-
value :PRIVATE_RANGES_ONLY, 1
|
|
116
|
-
value :ALL_TRAFFIC, 2
|
|
117
|
-
end
|
|
118
|
-
add_enum "google.cloud.functions.v2.ServiceConfig.IngressSettings" do
|
|
119
|
-
value :INGRESS_SETTINGS_UNSPECIFIED, 0
|
|
120
|
-
value :ALLOW_ALL, 1
|
|
121
|
-
value :ALLOW_INTERNAL_ONLY, 2
|
|
122
|
-
value :ALLOW_INTERNAL_AND_GCLB, 3
|
|
123
|
-
end
|
|
124
|
-
add_enum "google.cloud.functions.v2.ServiceConfig.SecurityLevel" do
|
|
125
|
-
value :SECURITY_LEVEL_UNSPECIFIED, 0
|
|
126
|
-
value :SECURE_ALWAYS, 1
|
|
127
|
-
value :SECURE_OPTIONAL, 2
|
|
128
|
-
end
|
|
129
|
-
add_message "google.cloud.functions.v2.SecretEnvVar" do
|
|
130
|
-
optional :key, :string, 1
|
|
131
|
-
optional :project_id, :string, 2
|
|
132
|
-
optional :secret, :string, 3
|
|
133
|
-
optional :version, :string, 4
|
|
134
|
-
end
|
|
135
|
-
add_message "google.cloud.functions.v2.SecretVolume" do
|
|
136
|
-
optional :mount_path, :string, 1
|
|
137
|
-
optional :project_id, :string, 2
|
|
138
|
-
optional :secret, :string, 3
|
|
139
|
-
repeated :versions, :message, 4, "google.cloud.functions.v2.SecretVolume.SecretVersion"
|
|
140
|
-
end
|
|
141
|
-
add_message "google.cloud.functions.v2.SecretVolume.SecretVersion" do
|
|
142
|
-
optional :version, :string, 1
|
|
143
|
-
optional :path, :string, 2
|
|
144
|
-
end
|
|
145
|
-
add_message "google.cloud.functions.v2.EventTrigger" do
|
|
146
|
-
optional :trigger, :string, 1
|
|
147
|
-
optional :trigger_region, :string, 2
|
|
148
|
-
optional :event_type, :string, 3
|
|
149
|
-
repeated :event_filters, :message, 4, "google.cloud.functions.v2.EventFilter"
|
|
150
|
-
optional :pubsub_topic, :string, 5
|
|
151
|
-
optional :service_account_email, :string, 6
|
|
152
|
-
optional :retry_policy, :enum, 7, "google.cloud.functions.v2.EventTrigger.RetryPolicy"
|
|
153
|
-
optional :channel, :string, 8
|
|
154
|
-
end
|
|
155
|
-
add_enum "google.cloud.functions.v2.EventTrigger.RetryPolicy" do
|
|
156
|
-
value :RETRY_POLICY_UNSPECIFIED, 0
|
|
157
|
-
value :RETRY_POLICY_DO_NOT_RETRY, 1
|
|
158
|
-
value :RETRY_POLICY_RETRY, 2
|
|
159
|
-
end
|
|
160
|
-
add_message "google.cloud.functions.v2.EventFilter" do
|
|
161
|
-
optional :attribute, :string, 1
|
|
162
|
-
optional :value, :string, 2
|
|
163
|
-
optional :operator, :string, 3
|
|
164
|
-
end
|
|
165
|
-
add_message "google.cloud.functions.v2.GetFunctionRequest" do
|
|
166
|
-
optional :name, :string, 1
|
|
167
|
-
end
|
|
168
|
-
add_message "google.cloud.functions.v2.ListFunctionsRequest" do
|
|
169
|
-
optional :parent, :string, 1
|
|
170
|
-
optional :page_size, :int32, 2
|
|
171
|
-
optional :page_token, :string, 3
|
|
172
|
-
optional :filter, :string, 4
|
|
173
|
-
optional :order_by, :string, 5
|
|
174
|
-
end
|
|
175
|
-
add_message "google.cloud.functions.v2.ListFunctionsResponse" do
|
|
176
|
-
repeated :functions, :message, 1, "google.cloud.functions.v2.Function"
|
|
177
|
-
optional :next_page_token, :string, 2
|
|
178
|
-
repeated :unreachable, :string, 3
|
|
179
|
-
end
|
|
180
|
-
add_message "google.cloud.functions.v2.CreateFunctionRequest" do
|
|
181
|
-
optional :parent, :string, 1
|
|
182
|
-
optional :function, :message, 2, "google.cloud.functions.v2.Function"
|
|
183
|
-
optional :function_id, :string, 3
|
|
184
|
-
end
|
|
185
|
-
add_message "google.cloud.functions.v2.UpdateFunctionRequest" do
|
|
186
|
-
optional :function, :message, 1, "google.cloud.functions.v2.Function"
|
|
187
|
-
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
|
188
|
-
end
|
|
189
|
-
add_message "google.cloud.functions.v2.DeleteFunctionRequest" do
|
|
190
|
-
optional :name, :string, 1
|
|
191
|
-
end
|
|
192
|
-
add_message "google.cloud.functions.v2.GenerateUploadUrlRequest" do
|
|
193
|
-
optional :parent, :string, 1
|
|
194
|
-
optional :kms_key_name, :string, 2
|
|
195
|
-
end
|
|
196
|
-
add_message "google.cloud.functions.v2.GenerateUploadUrlResponse" do
|
|
197
|
-
optional :upload_url, :string, 1
|
|
198
|
-
optional :storage_source, :message, 2, "google.cloud.functions.v2.StorageSource"
|
|
199
|
-
end
|
|
200
|
-
add_message "google.cloud.functions.v2.GenerateDownloadUrlRequest" do
|
|
201
|
-
optional :name, :string, 1
|
|
202
|
-
end
|
|
203
|
-
add_message "google.cloud.functions.v2.GenerateDownloadUrlResponse" do
|
|
204
|
-
optional :download_url, :string, 1
|
|
205
|
-
end
|
|
206
|
-
add_message "google.cloud.functions.v2.ListRuntimesRequest" do
|
|
207
|
-
optional :parent, :string, 1
|
|
208
|
-
optional :filter, :string, 2
|
|
209
|
-
end
|
|
210
|
-
add_message "google.cloud.functions.v2.ListRuntimesResponse" do
|
|
211
|
-
repeated :runtimes, :message, 1, "google.cloud.functions.v2.ListRuntimesResponse.Runtime"
|
|
212
|
-
end
|
|
213
|
-
add_message "google.cloud.functions.v2.ListRuntimesResponse.Runtime" do
|
|
214
|
-
optional :name, :string, 1
|
|
215
|
-
optional :display_name, :string, 5
|
|
216
|
-
optional :stage, :enum, 2, "google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage"
|
|
217
|
-
repeated :warnings, :string, 3
|
|
218
|
-
optional :environment, :enum, 4, "google.cloud.functions.v2.Environment"
|
|
219
|
-
end
|
|
220
|
-
add_enum "google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage" do
|
|
221
|
-
value :RUNTIME_STAGE_UNSPECIFIED, 0
|
|
222
|
-
value :DEVELOPMENT, 1
|
|
223
|
-
value :ALPHA, 2
|
|
224
|
-
value :BETA, 3
|
|
225
|
-
value :GA, 4
|
|
226
|
-
value :DEPRECATED, 5
|
|
227
|
-
value :DECOMMISSIONED, 6
|
|
228
|
-
end
|
|
229
|
-
add_message "google.cloud.functions.v2.OperationMetadata" do
|
|
230
|
-
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
|
231
|
-
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
|
232
|
-
optional :target, :string, 3
|
|
233
|
-
optional :verb, :string, 4
|
|
234
|
-
optional :status_detail, :string, 5
|
|
235
|
-
optional :cancel_requested, :bool, 6
|
|
236
|
-
optional :api_version, :string, 7
|
|
237
|
-
optional :request_resource, :message, 8, "google.protobuf.Any"
|
|
238
|
-
repeated :stages, :message, 9, "google.cloud.functions.v2.Stage"
|
|
239
|
-
end
|
|
240
|
-
add_message "google.cloud.functions.v2.Stage" do
|
|
241
|
-
optional :name, :enum, 1, "google.cloud.functions.v2.Stage.Name"
|
|
242
|
-
optional :message, :string, 2
|
|
243
|
-
optional :state, :enum, 3, "google.cloud.functions.v2.Stage.State"
|
|
244
|
-
optional :resource, :string, 4
|
|
245
|
-
optional :resource_uri, :string, 5
|
|
246
|
-
repeated :state_messages, :message, 6, "google.cloud.functions.v2.StateMessage"
|
|
247
|
-
end
|
|
248
|
-
add_enum "google.cloud.functions.v2.Stage.Name" do
|
|
249
|
-
value :NAME_UNSPECIFIED, 0
|
|
250
|
-
value :ARTIFACT_REGISTRY, 1
|
|
251
|
-
value :BUILD, 2
|
|
252
|
-
value :SERVICE, 3
|
|
253
|
-
value :TRIGGER, 4
|
|
254
|
-
value :SERVICE_ROLLBACK, 5
|
|
255
|
-
value :TRIGGER_ROLLBACK, 6
|
|
256
|
-
end
|
|
257
|
-
add_enum "google.cloud.functions.v2.Stage.State" do
|
|
258
|
-
value :STATE_UNSPECIFIED, 0
|
|
259
|
-
value :NOT_STARTED, 1
|
|
260
|
-
value :IN_PROGRESS, 2
|
|
261
|
-
value :COMPLETE, 3
|
|
262
|
-
end
|
|
263
|
-
add_enum "google.cloud.functions.v2.Environment" do
|
|
264
|
-
value :ENVIRONMENT_UNSPECIFIED, 0
|
|
265
|
-
value :GEN_1, 1
|
|
266
|
-
value :GEN_2, 2
|
|
17
|
+
|
|
18
|
+
descriptor_data = "\n)google/cloud/functions/v2/functions.proto\x12\x19google.cloud.functions.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x87\x07\n\x08\x46unction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12<\n\x0c\x62uild_config\x18\x03 \x01(\x0b\x32&.google.cloud.functions.v2.BuildConfig\x12@\n\x0eservice_config\x18\x04 \x01(\x0b\x32(.google.cloud.functions.v2.ServiceConfig\x12>\n\revent_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v2.EventTrigger\x12=\n\x05state\x18\x06 \x01(\x0e\x32).google.cloud.functions.v2.Function.StateB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12?\n\x06labels\x18\x08 \x03(\x0b\x32/.google.cloud.functions.v2.Function.LabelsEntry\x12\x44\n\x0estate_messages\x18\t \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessageB\x03\xe0\x41\x03\x12;\n\x0b\x65nvironment\x18\n \x01(\x0e\x32&.google.cloud.functions.v2.Environment\x12\x10\n\x03url\x18\x0e \x01(\tB\x03\xe0\x41\x03\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\r\n\tDEPLOYING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05:~\xea\x41{\n&cloudfunctions.googleapis.com/Function\x12<projects/{project}/locations/{location}/functions/{function}*\tfunctions2\x08\x66unction\"\xb9\x01\n\x0cStateMessage\x12\x42\n\x08severity\x18\x01 \x01(\x0e\x32\x30.google.cloud.functions.v2.StateMessage.Severity\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0f\n\x07message\x18\x03 \x01(\t\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"C\n\rStorageSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0e\n\x06object\x18\x02 \x01(\t\x12\x12\n\ngeneration\x18\x03 \x01(\x03\"\xa3\x01\n\nRepoSource\x12\x15\n\x0b\x62ranch_name\x18\x03 \x01(\tH\x00\x12\x12\n\x08tag_name\x18\x04 \x01(\tH\x00\x12\x14\n\ncommit_sha\x18\x05 \x01(\tH\x00\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x11\n\trepo_name\x18\x02 \x01(\t\x12\x0b\n\x03\x64ir\x18\x06 \x01(\t\x12\x14\n\x0cinvert_regex\x18\x07 \x01(\x08\x42\n\n\x08revision\"\x94\x01\n\x06Source\x12\x42\n\x0estorage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSourceH\x00\x12<\n\x0brepo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSourceH\x00\x42\x08\n\x06source\"\xa2\x01\n\x10SourceProvenance\x12I\n\x17resolved_storage_source\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\x12\x43\n\x14resolved_repo_source\x18\x02 \x01(\x0b\x32%.google.cloud.functions.v2.RepoSource\"\xc7\x05\n\x0b\x42uildConfig\x12\x36\n\x05\x62uild\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\x0f\n\x07runtime\x18\x02 \x01(\t\x12\x13\n\x0b\x65ntry_point\x18\x03 \x01(\t\x12\x31\n\x06source\x18\x04 \x01(\x0b\x32!.google.cloud.functions.v2.Source\x12K\n\x11source_provenance\x18\x08 \x01(\x0b\x32+.google.cloud.functions.v2.SourceProvenanceB\x03\xe0\x41\x03\x12>\n\x0bworker_pool\x18\x05 \x01(\tB)\xfa\x41&\n$cloudbuild.googleapis.com/WorkerPool\x12_\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32@.google.cloud.functions.v2.BuildConfig.EnvironmentVariablesEntry\x12N\n\x0f\x64ocker_registry\x18\n \x01(\x0e\x32\x35.google.cloud.functions.v2.BuildConfig.DockerRegistry\x12J\n\x11\x64ocker_repository\x18\x07 \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"`\n\x0e\x44ockerRegistry\x12\x1f\n\x1b\x44OCKER_REGISTRY_UNSPECIFIED\x10\x00\x12\x16\n\x12\x43ONTAINER_REGISTRY\x10\x01\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x02\"\xaa\n\n\rServiceConfig\x12\x33\n\x07service\x18\x01 \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x18\n\x10\x61vailable_memory\x18\r \x01(\t\x12\x15\n\ravailable_cpu\x18\x16 \x01(\t\x12\x61\n\x15\x65nvironment_variables\x18\x04 \x03(\x0b\x32\x42.google.cloud.functions.v2.ServiceConfig.EnvironmentVariablesEntry\x12\x1a\n\x12max_instance_count\x18\x05 \x01(\x05\x12\x1a\n\x12min_instance_count\x18\x0c \x01(\x05\x12>\n\rvpc_connector\x18\x06 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12j\n\x1dvpc_connector_egress_settings\x18\x07 \x01(\x0e\x32\x43.google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x08 \x01(\x0e\x32\x38.google.cloud.functions.v2.ServiceConfig.IngressSettings\x12\x10\n\x03uri\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x15service_account_email\x18\n \x01(\t\x12&\n\x1e\x61ll_traffic_on_latest_revision\x18\x10 \x01(\x08\x12M\n\x1csecret_environment_variables\x18\x11 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x13 \x03(\x0b\x32\'.google.cloud.functions.v2.SecretVolume\x12\x15\n\x08revision\x18\x12 \x01(\tB\x03\xe0\x41\x03\x12(\n max_instance_request_concurrency\x18\x14 \x01(\x05\x12N\n\x0esecurity_level\x18\x15 \x01(\x0e\x32\x36.google.cloud.functions.v2.ServiceConfig.SecurityLevel\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"u\n\x1aVpcConnectorEgressSettings\x12-\n)VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x01\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x02\"x\n\x0fIngressSettings\x12 \n\x1cINGRESS_SETTINGS_UNSPECIFIED\x10\x00\x12\r\n\tALLOW_ALL\x10\x01\x12\x17\n\x13\x41LLOW_INTERNAL_ONLY\x10\x02\x12\x1b\n\x17\x41LLOW_INTERNAL_AND_GCLB\x10\x03\"W\n\rSecurityLevel\x12\x1e\n\x1aSECURITY_LEVEL_UNSPECIFIED\x10\x00\x12\x11\n\rSECURE_ALWAYS\x10\x01\x12\x13\n\x0fSECURE_OPTIONAL\x10\x02\"P\n\x0cSecretEnvVar\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\"\xbf\x01\n\x0cSecretVolume\x12\x12\n\nmount_path\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x0e\n\x06secret\x18\x03 \x01(\t\x12G\n\x08versions\x18\x04 \x03(\x0b\x32\x35.google.cloud.functions.v2.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x85\x04\n\x0c\x45ventTrigger\x12\x38\n\x07trigger\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Trigger\x12\x16\n\x0etrigger_region\x18\x02 \x01(\t\x12\x17\n\nevent_type\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12=\n\revent_filters\x18\x04 \x03(\x0b\x32&.google.cloud.functions.v2.EventFilter\x12\x39\n\x0cpubsub_topic\x18\x05 \x01(\tB#\xe0\x41\x01\xfa\x41\x1d\n\x1bpubsub.googleapis.com/Topic\x12\"\n\x15service_account_email\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12N\n\x0cretry_policy\x18\x07 \x01(\x0e\x32\x33.google.cloud.functions.v2.EventTrigger.RetryPolicyB\x03\xe0\x41\x01\x12\x38\n\x07\x63hannel\x18\x08 \x01(\tB\'\xe0\x41\x01\xfa\x41!\n\x1f\x65ventarc.googleapis.com/Channel\"b\n\x0bRetryPolicy\x12\x1c\n\x18RETRY_POLICY_UNSPECIFIED\x10\x00\x12\x1d\n\x19RETRY_POLICY_DO_NOT_RETRY\x10\x01\x12\x16\n\x12RETRY_POLICY_RETRY\x10\x02\"P\n\x0b\x45ventFilter\x12\x16\n\tattribute\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08operator\x18\x03 \x01(\tB\x03\xe0\x41\x01\"R\n\x12GetFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"\x9f\x01\n\x14ListFunctionsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&cloudfunctions.googleapis.com/Function\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"}\n\x15ListFunctionsResponse\x12\x36\n\tfunctions\x18\x01 \x03(\x0b\x32#.google.cloud.functions.v2.Function\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\xa3\x01\n\x15\x43reateFunctionRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12:\n\x08\x66unction\x18\x02 \x01(\x0b\x32#.google.cloud.functions.v2.FunctionB\x03\xe0\x41\x02\x12\x13\n\x0b\x66unction_id\x18\x03 \x01(\t\"\x84\x01\n\x15UpdateFunctionRequest\x12:\n\x08\x66unction\x18\x01 \x01(\x0b\x32#.google.cloud.functions.v2.FunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"U\n\x15\x44\x65leteFunctionRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"\x93\x01\n\x18GenerateUploadUrlRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"q\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\x12@\n\x0estorage_source\x18\x02 \x01(\x0b\x32(.google.cloud.functions.v2.StorageSource\"Z\n\x1aGenerateDownloadUrlRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&cloudfunctions.googleapis.com/Function\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t\"`\n\x13ListRuntimesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\"\xae\x03\n\x14ListRuntimesResponse\x12I\n\x08runtimes\x18\x01 \x03(\x0b\x32\x37.google.cloud.functions.v2.ListRuntimesResponse.Runtime\x1a\xc9\x01\n\x07Runtime\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x05 \x01(\t\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage\x12\x10\n\x08warnings\x18\x03 \x03(\t\x12;\n\x0b\x65nvironment\x18\x04 \x01(\x0e\x32&.google.cloud.functions.v2.Environment\"\x7f\n\x0cRuntimeStage\x12\x1d\n\x19RUNTIME_STAGE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x44\x45VELOPMENT\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x12\x08\n\x04\x42\x45TA\x10\x03\x12\x06\n\x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05\x12\x12\n\x0e\x44\x45\x43OMMISSIONED\x10\x06\"\xb8\x02\n\x11OperationMetadata\x12/\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06target\x18\x03 \x01(\t\x12\x0c\n\x04verb\x18\x04 \x01(\t\x12\x15\n\rstatus_detail\x18\x05 \x01(\t\x12\x18\n\x10\x63\x61ncel_requested\x18\x06 \x01(\x08\x12\x13\n\x0b\x61pi_version\x18\x07 \x01(\t\x12.\n\x10request_resource\x18\x08 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x30\n\x06stages\x18\t \x03(\x0b\x32 .google.cloud.functions.v2.Stage\"P\n\x10LocationMetadata\x12<\n\x0c\x65nvironments\x18\x01 \x03(\x0e\x32&.google.cloud.functions.v2.Environment\"\xc4\x03\n\x05Stage\x12\x33\n\x04name\x18\x01 \x01(\x0e\x32%.google.cloud.functions.v2.Stage.Name\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x35\n\x05state\x18\x03 \x01(\x0e\x32&.google.cloud.functions.v2.Stage.State\x12\x10\n\x08resource\x18\x04 \x01(\t\x12\x14\n\x0cresource_uri\x18\x05 \x01(\t\x12?\n\x0estate_messages\x18\x06 \x03(\x0b\x32\'.google.cloud.functions.v2.StateMessage\"\x84\x01\n\x04Name\x12\x14\n\x10NAME_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41RTIFACT_REGISTRY\x10\x01\x12\t\n\x05\x42UILD\x10\x02\x12\x0b\n\x07SERVICE\x10\x03\x12\x0b\n\x07TRIGGER\x10\x04\x12\x14\n\x10SERVICE_ROLLBACK\x10\x05\x12\x14\n\x10TRIGGER_ROLLBACK\x10\x06\"N\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03*@\n\x0b\x45nvironment\x12\x1b\n\x17\x45NVIRONMENT_UNSPECIFIED\x10\x00\x12\t\n\x05GEN_1\x10\x01\x12\t\n\x05GEN_2\x10\x02\x32\xaa\x0e\n\x0f\x46unctionService\x12\x9f\x01\n\x0bGetFunction\x12-.google.cloud.functions.v2.GetFunctionRequest\x1a#.google.cloud.functions.v2.Function\"<\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\x12\xb2\x01\n\rListFunctions\x12/.google.cloud.functions.v2.ListFunctionsRequest\x1a\x30.google.cloud.functions.v2.ListFunctionsResponse\">\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/functions\xda\x41\x06parent\x12\x95\x02\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v2.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb1\x01\x82\xd3\xe4\x93\x02\x39\"-/v2/{parent=projects/*/locations/*}/functions:\x08\x66unction\xda\x41\x1bparent,function,function_id\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\x12\x97\x02\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v2.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"\xb3\x01\x82\xd3\xe4\x93\x02\x42\x32\x36/v2/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\xda\x41\x14\x66unction,update_mask\xca\x41Q\n\"google.cloud.functions.v2.Function\x12+google.cloud.functions.v2.OperationMetadata\x12\xe7\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v2.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"\x83\x01\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.functions.v2.OperationMetadata\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v2.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v2.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v2.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v2.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\xae\x01\n\x0cListRuntimes\x12..google.cloud.functions.v2.ListRuntimesRequest\x1a/.google.cloud.functions.v2.ListRuntimesResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/runtimes\xda\x41\x06parent\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xee\x07\n\x1d\x63om.google.cloud.functions.v2B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv2/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41Y\n\x1f\x63loudbuild.googleapis.com/Build\x12\x36projects/{project}/locations/{location}/builds/{build}\xea\x41i\n$cloudbuild.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}\xea\x41X\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Trigger\x12:projects/{project}/locations/{location}/triggers/{trigger}\xea\x41]\n\x1f\x65ventarc.googleapis.com/Channel\x12:projects/{project}/locations/{location}/channels/{channel}\xea\x41@\n\x1bpubsub.googleapis.com/Topic\x12!projects/{project}/topics/{topic}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
|
|
19
|
+
|
|
20
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
+
|
|
22
|
+
begin
|
|
23
|
+
pool.add_serialized_file(descriptor_data)
|
|
24
|
+
rescue TypeError => e
|
|
25
|
+
# Compatibility code: will be removed in the next major version.
|
|
26
|
+
require 'google/protobuf/descriptor_pb'
|
|
27
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
28
|
+
parsed.clear_dependency
|
|
29
|
+
serialized = parsed.class.encode(parsed)
|
|
30
|
+
file = pool.add_serialized_file(serialized)
|
|
31
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
32
|
+
imports = [
|
|
33
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
34
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
35
|
+
["google.protobuf.Any", "google/protobuf/any.proto"],
|
|
36
|
+
]
|
|
37
|
+
imports.each do |type_name, expected_filename|
|
|
38
|
+
import_file = pool.lookup(type_name).file_descriptor
|
|
39
|
+
if import_file.name != expected_filename
|
|
40
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
267
41
|
end
|
|
268
42
|
end
|
|
43
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
|
44
|
+
warn "This will become an error in the next major version."
|
|
269
45
|
end
|
|
270
46
|
|
|
271
47
|
module Google
|
|
@@ -307,6 +83,7 @@ module Google
|
|
|
307
83
|
ListRuntimesResponse::Runtime = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ListRuntimesResponse.Runtime").msgclass
|
|
308
84
|
ListRuntimesResponse::RuntimeStage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage").enummodule
|
|
309
85
|
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.OperationMetadata").msgclass
|
|
86
|
+
LocationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.LocationMetadata").msgclass
|
|
310
87
|
Stage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage").msgclass
|
|
311
88
|
Stage::Name = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage.Name").enummodule
|
|
312
89
|
Stage::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.functions.v2.Stage.State").enummodule
|
|
@@ -83,7 +83,7 @@ module Google
|
|
|
83
83
|
# long-running operation pattern.
|
|
84
84
|
# @!attribute [rw] new_issue_uri
|
|
85
85
|
# @return [::String]
|
|
86
|
-
# Link to a
|
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
|
87
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
88
88
|
# @!attribute [rw] documentation_uri
|
|
89
89
|
# @return [::String]
|
|
@@ -209,9 +209,57 @@ module Google
|
|
|
209
209
|
# @!attribute [rw] common
|
|
210
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
211
211
|
# Some settings.
|
|
212
|
+
# @!attribute [rw] renamed_services
|
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
214
|
+
# Map from original service names to renamed versions.
|
|
215
|
+
# This is used when the default generated types
|
|
216
|
+
# would cause a naming conflict. (Neither name is
|
|
217
|
+
# fully-qualified.)
|
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
|
219
|
+
# @!attribute [rw] renamed_resources
|
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
221
|
+
# Map from full resource types to the effective short name
|
|
222
|
+
# for the resource. This is used when otherwise resource
|
|
223
|
+
# named from different services would cause naming collisions.
|
|
224
|
+
# Example entry:
|
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
|
226
|
+
# @!attribute [rw] ignored_resources
|
|
227
|
+
# @return [::Array<::String>]
|
|
228
|
+
# List of full resource types to ignore during generation.
|
|
229
|
+
# This is typically used for API-specific Location resources,
|
|
230
|
+
# which should be handled by the generator as if they were actually
|
|
231
|
+
# the common Location resources.
|
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
|
234
|
+
# @return [::Array<::String>]
|
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
|
238
|
+
# @return [::Array<::String>]
|
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
|
212
242
|
class DotnetSettings
|
|
213
243
|
include ::Google::Protobuf::MessageExts
|
|
214
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
245
|
+
|
|
246
|
+
# @!attribute [rw] key
|
|
247
|
+
# @return [::String]
|
|
248
|
+
# @!attribute [rw] value
|
|
249
|
+
# @return [::String]
|
|
250
|
+
class RenamedServicesEntry
|
|
251
|
+
include ::Google::Protobuf::MessageExts
|
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# @!attribute [rw] key
|
|
256
|
+
# @return [::String]
|
|
257
|
+
# @!attribute [rw] value
|
|
258
|
+
# @return [::String]
|
|
259
|
+
class RenamedResourcesEntry
|
|
260
|
+
include ::Google::Protobuf::MessageExts
|
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
262
|
+
end
|
|
215
263
|
end
|
|
216
264
|
|
|
217
265
|
# Settings for Ruby client libraries.
|
|
@@ -305,6 +353,15 @@ module Google
|
|
|
305
353
|
|
|
306
354
|
# Street View Org.
|
|
307
355
|
STREET_VIEW = 4
|
|
356
|
+
|
|
357
|
+
# Shopping Org.
|
|
358
|
+
SHOPPING = 5
|
|
359
|
+
|
|
360
|
+
# Geo Org.
|
|
361
|
+
GEO = 6
|
|
362
|
+
|
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
|
364
|
+
GENERATIVE_AI = 7
|
|
308
365
|
end
|
|
309
366
|
|
|
310
367
|
# To where should client libraries be published?
|
|
@@ -27,9 +27,6 @@ module Google
|
|
|
27
27
|
# @return [::String]
|
|
28
28
|
# A user-defined name of the function. Function names must be unique
|
|
29
29
|
# globally and match pattern `projects/*/locations/*/functions/*`
|
|
30
|
-
# @!attribute [rw] environment
|
|
31
|
-
# @return [::Google::Cloud::Functions::V2::Environment]
|
|
32
|
-
# Describe whether the function is 1st Gen or 2nd Gen.
|
|
33
30
|
# @!attribute [rw] description
|
|
34
31
|
# @return [::String]
|
|
35
32
|
# User-provided description of a function.
|
|
@@ -57,16 +54,19 @@ module Google
|
|
|
57
54
|
# @!attribute [r] state_messages
|
|
58
55
|
# @return [::Array<::Google::Cloud::Functions::V2::StateMessage>]
|
|
59
56
|
# Output only. State Messages for this Cloud Function.
|
|
57
|
+
# @!attribute [rw] environment
|
|
58
|
+
# @return [::Google::Cloud::Functions::V2::Environment]
|
|
59
|
+
# Describe whether the function is 1st Gen or 2nd Gen.
|
|
60
|
+
# @!attribute [r] url
|
|
61
|
+
# @return [::String]
|
|
62
|
+
# Output only. The deployed url for the function.
|
|
60
63
|
# @!attribute [rw] kms_key_name
|
|
61
64
|
# @return [::String]
|
|
62
|
-
# Resource name of a KMS crypto key (managed by the user) used to
|
|
65
|
+
# [Preview] Resource name of a KMS crypto key (managed by the user) used to
|
|
63
66
|
# encrypt/decrypt function resources.
|
|
64
67
|
#
|
|
65
68
|
# It must match the pattern
|
|
66
69
|
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
|
|
67
|
-
# @!attribute [r] url
|
|
68
|
-
# @return [::String]
|
|
69
|
-
# Output only. The deployed url for the function.
|
|
70
70
|
class Function
|
|
71
71
|
include ::Google::Protobuf::MessageExts
|
|
72
72
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -267,9 +267,9 @@ module Google
|
|
|
267
267
|
# User-provided build-time environment variables for the function
|
|
268
268
|
# @!attribute [rw] docker_registry
|
|
269
269
|
# @return [::Google::Cloud::Functions::V2::BuildConfig::DockerRegistry]
|
|
270
|
-
#
|
|
271
|
-
#
|
|
272
|
-
#
|
|
270
|
+
# Docker Registry to use for this deployment. This configuration is only
|
|
271
|
+
# applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
|
|
272
|
+
# Registry.
|
|
273
273
|
#
|
|
274
274
|
# If `docker_repository` field is specified, this field will be automatically
|
|
275
275
|
# set as `ARTIFACT_REGISTRY`.
|
|
@@ -277,8 +277,8 @@ module Google
|
|
|
277
277
|
# This field may be overridden by the backend for eligible deployments.
|
|
278
278
|
# @!attribute [rw] docker_repository
|
|
279
279
|
# @return [::String]
|
|
280
|
-
# User managed repository created in Artifact Registry optionally
|
|
281
|
-
# customer managed encryption key. This is the repository to which the
|
|
280
|
+
# User managed repository created in Artifact Registry optionally
|
|
281
|
+
# with a customer managed encryption key. This is the repository to which the
|
|
282
282
|
# function docker image will be pushed after it is built by Cloud Build.
|
|
283
283
|
# If unspecified, GCF will create and use a repository named 'gcf-artifacts'
|
|
284
284
|
# for every deployed region.
|
|
@@ -322,7 +322,6 @@ module Google
|
|
|
322
322
|
|
|
323
323
|
# Describes the Service being deployed.
|
|
324
324
|
# Currently Supported : Cloud Run (fully managed).
|
|
325
|
-
# Next tag: 23
|
|
326
325
|
# @!attribute [r] service
|
|
327
326
|
# @return [::String]
|
|
328
327
|
# Output only. Name of the service associated with a Function.
|
|
@@ -343,7 +342,7 @@ module Google
|
|
|
343
342
|
# a full description.
|
|
344
343
|
# @!attribute [rw] available_cpu
|
|
345
344
|
# @return [::String]
|
|
346
|
-
# The number of CPUs used in a single container instance.
|
|
345
|
+
# [Preview] The number of CPUs used in a single container instance.
|
|
347
346
|
# Default value is calculated from available memory.
|
|
348
347
|
# Supports the same values as Cloud Run, see
|
|
349
348
|
# https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
|
|
@@ -413,8 +412,8 @@ module Google
|
|
|
413
412
|
# Output only. The name of service revision.
|
|
414
413
|
# @!attribute [rw] max_instance_request_concurrency
|
|
415
414
|
# @return [::Integer]
|
|
416
|
-
# Sets the maximum number of concurrent requests that each instance
|
|
417
|
-
# receive. Defaults to 1.
|
|
415
|
+
# [Preview] Sets the maximum number of concurrent requests that each instance
|
|
416
|
+
# can receive. Defaults to 1.
|
|
418
417
|
# @!attribute [rw] security_level
|
|
419
418
|
# @return [::Google::Cloud::Functions::V2::ServiceConfig::SecurityLevel]
|
|
420
419
|
# Security level configure whether the function only accepts https.
|
|
@@ -473,7 +472,7 @@ module Google
|
|
|
473
472
|
#
|
|
474
473
|
# This enforces security protocol on function URL.
|
|
475
474
|
#
|
|
476
|
-
# Security level is only
|
|
475
|
+
# Security level is only configurable for 1st Gen functions, If unspecified,
|
|
477
476
|
# SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY.
|
|
478
477
|
module SecurityLevel
|
|
479
478
|
# Unspecified.
|
|
@@ -754,7 +753,7 @@ module Google
|
|
|
754
753
|
# URL should be generated, specified in the format `projects/*/locations/*`.
|
|
755
754
|
# @!attribute [rw] kms_key_name
|
|
756
755
|
# @return [::String]
|
|
757
|
-
# Resource name of a KMS crypto key (managed by the user) used to
|
|
756
|
+
# [Preview] Resource name of a KMS crypto key (managed by the user) used to
|
|
758
757
|
# encrypt/decrypt function source code objects in intermediate Cloud Storage
|
|
759
758
|
# buckets. When you generate an upload url and upload your source code, it
|
|
760
759
|
# gets copied to an intermediate Cloud Storage bucket. The source code is
|
|
@@ -921,6 +920,15 @@ module Google
|
|
|
921
920
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
922
921
|
end
|
|
923
922
|
|
|
923
|
+
# Extra GCF specific location information.
|
|
924
|
+
# @!attribute [rw] environments
|
|
925
|
+
# @return [::Array<::Google::Cloud::Functions::V2::Environment>]
|
|
926
|
+
# The Cloud Function environments this location supports.
|
|
927
|
+
class LocationMetadata
|
|
928
|
+
include ::Google::Protobuf::MessageExts
|
|
929
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
930
|
+
end
|
|
931
|
+
|
|
924
932
|
# Each Stage of the deployment process
|
|
925
933
|
# @!attribute [rw] name
|
|
926
934
|
# @return [::Google::Cloud::Functions::V2::Stage::Name]
|
|
@@ -43,8 +43,12 @@ module Google
|
|
|
43
43
|
# if (any.is(Foo.class)) {
|
|
44
44
|
# foo = any.unpack(Foo.class);
|
|
45
45
|
# }
|
|
46
|
+
# // or ...
|
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
|
49
|
+
# }
|
|
46
50
|
#
|
|
47
|
-
#
|
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
|
48
52
|
#
|
|
49
53
|
# foo = Foo(...)
|
|
50
54
|
# any = Any()
|
|
@@ -54,7 +58,7 @@ module Google
|
|
|
54
58
|
# any.Unpack(foo)
|
|
55
59
|
# ...
|
|
56
60
|
#
|
|
57
|
-
#
|
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
|
58
62
|
#
|
|
59
63
|
# foo := &pb.Foo{...}
|
|
60
64
|
# any, err := anypb.New(foo)
|
|
@@ -73,9 +77,8 @@ module Google
|
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
74
78
|
# name "y.z".
|
|
75
79
|
#
|
|
76
|
-
#
|
|
77
80
|
# JSON
|
|
78
|
-
#
|
|
81
|
+
# ====
|
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
|
80
83
|
# representation of the deserialized, embedded message, with an
|
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
|
@@ -69,7 +69,6 @@ module Google
|
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
71
71
|
#
|
|
72
|
-
#
|
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
74
73
|
#
|
|
75
74
|
# Instant now = Instant.now();
|
|
@@ -78,7 +77,6 @@ module Google
|
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
79
78
|
# .setNanos(now.getNano()).build();
|
|
80
79
|
#
|
|
81
|
-
#
|
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
|
83
81
|
#
|
|
84
82
|
# timestamp = Timestamp()
|
|
@@ -108,7 +106,7 @@ module Google
|
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
111
|
-
# http://
|
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
|
113
111
|
# @!attribute [rw] seconds
|
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-functions-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.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: 2023-
|
|
11
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.19.0
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.19.0
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|