google-cloud-functions-v1 0.9.0 → 0.11.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.
@@ -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/v1/functions.proto
3
4
 
@@ -7,168 +8,43 @@ require 'google/api/annotations_pb'
7
8
  require 'google/api/client_pb'
8
9
  require 'google/api/field_behavior_pb'
9
10
  require 'google/api/resource_pb'
11
+ require 'google/cloud/functions/v1/operations_pb'
10
12
  require 'google/iam/v1/iam_policy_pb'
11
13
  require 'google/iam/v1/policy_pb'
12
14
  require 'google/longrunning/operations_pb'
13
15
  require 'google/protobuf/duration_pb'
16
+ require 'google/protobuf/empty_pb'
14
17
  require 'google/protobuf/field_mask_pb'
15
18
  require 'google/protobuf/timestamp_pb'
16
19
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/cloud/functions/v1/functions.proto", :syntax => :proto3) do
19
- add_message "google.cloud.functions.v1.CloudFunction" do
20
- optional :name, :string, 1
21
- optional :description, :string, 2
22
- optional :status, :enum, 7, "google.cloud.functions.v1.CloudFunctionStatus"
23
- optional :entry_point, :string, 8
24
- optional :runtime, :string, 19
25
- optional :timeout, :message, 9, "google.protobuf.Duration"
26
- optional :available_memory_mb, :int32, 10
27
- optional :service_account_email, :string, 11
28
- optional :update_time, :message, 12, "google.protobuf.Timestamp"
29
- optional :version_id, :int64, 14
30
- map :labels, :string, :string, 15
31
- map :environment_variables, :string, :string, 17
32
- map :build_environment_variables, :string, :string, 28
33
- optional :network, :string, 18
34
- optional :max_instances, :int32, 20
35
- optional :min_instances, :int32, 32
36
- optional :vpc_connector, :string, 22
37
- optional :vpc_connector_egress_settings, :enum, 23, "google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings"
38
- optional :ingress_settings, :enum, 24, "google.cloud.functions.v1.CloudFunction.IngressSettings"
39
- optional :kms_key_name, :string, 25
40
- optional :build_worker_pool, :string, 26
41
- optional :build_id, :string, 27
42
- optional :build_name, :string, 33
43
- repeated :secret_environment_variables, :message, 29, "google.cloud.functions.v1.SecretEnvVar"
44
- repeated :secret_volumes, :message, 30, "google.cloud.functions.v1.SecretVolume"
45
- optional :source_token, :string, 31
46
- optional :docker_repository, :string, 34
47
- optional :docker_registry, :enum, 35, "google.cloud.functions.v1.CloudFunction.DockerRegistry"
48
- oneof :source_code do
49
- optional :source_archive_url, :string, 3
50
- optional :source_repository, :message, 4, "google.cloud.functions.v1.SourceRepository"
51
- optional :source_upload_url, :string, 16
52
- end
53
- oneof :trigger do
54
- optional :https_trigger, :message, 5, "google.cloud.functions.v1.HttpsTrigger"
55
- optional :event_trigger, :message, 6, "google.cloud.functions.v1.EventTrigger"
56
- end
57
- end
58
- add_enum "google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings" do
59
- value :VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED, 0
60
- value :PRIVATE_RANGES_ONLY, 1
61
- value :ALL_TRAFFIC, 2
62
- end
63
- add_enum "google.cloud.functions.v1.CloudFunction.IngressSettings" do
64
- value :INGRESS_SETTINGS_UNSPECIFIED, 0
65
- value :ALLOW_ALL, 1
66
- value :ALLOW_INTERNAL_ONLY, 2
67
- value :ALLOW_INTERNAL_AND_GCLB, 3
68
- end
69
- add_enum "google.cloud.functions.v1.CloudFunction.DockerRegistry" do
70
- value :DOCKER_REGISTRY_UNSPECIFIED, 0
71
- value :CONTAINER_REGISTRY, 1
72
- value :ARTIFACT_REGISTRY, 2
73
- end
74
- add_message "google.cloud.functions.v1.SourceRepository" do
75
- optional :url, :string, 1
76
- optional :deployed_url, :string, 2
77
- end
78
- add_message "google.cloud.functions.v1.HttpsTrigger" do
79
- optional :url, :string, 1
80
- optional :security_level, :enum, 2, "google.cloud.functions.v1.HttpsTrigger.SecurityLevel"
81
- end
82
- add_enum "google.cloud.functions.v1.HttpsTrigger.SecurityLevel" do
83
- value :SECURITY_LEVEL_UNSPECIFIED, 0
84
- value :SECURE_ALWAYS, 1
85
- value :SECURE_OPTIONAL, 2
86
- end
87
- add_message "google.cloud.functions.v1.EventTrigger" do
88
- optional :event_type, :string, 1
89
- optional :resource, :string, 2
90
- optional :service, :string, 3
91
- optional :failure_policy, :message, 5, "google.cloud.functions.v1.FailurePolicy"
92
- end
93
- add_message "google.cloud.functions.v1.FailurePolicy" do
94
- oneof :action do
95
- optional :retry, :message, 1, "google.cloud.functions.v1.FailurePolicy.Retry"
96
- end
97
- end
98
- add_message "google.cloud.functions.v1.FailurePolicy.Retry" do
99
- end
100
- add_message "google.cloud.functions.v1.SecretEnvVar" do
101
- optional :key, :string, 1
102
- optional :project_id, :string, 2
103
- optional :secret, :string, 3
104
- optional :version, :string, 4
105
- end
106
- add_message "google.cloud.functions.v1.SecretVolume" do
107
- optional :mount_path, :string, 1
108
- optional :project_id, :string, 2
109
- optional :secret, :string, 3
110
- repeated :versions, :message, 4, "google.cloud.functions.v1.SecretVolume.SecretVersion"
111
- end
112
- add_message "google.cloud.functions.v1.SecretVolume.SecretVersion" do
113
- optional :version, :string, 1
114
- optional :path, :string, 2
115
- end
116
- add_message "google.cloud.functions.v1.CreateFunctionRequest" do
117
- optional :location, :string, 1
118
- optional :function, :message, 2, "google.cloud.functions.v1.CloudFunction"
119
- end
120
- add_message "google.cloud.functions.v1.UpdateFunctionRequest" do
121
- optional :function, :message, 1, "google.cloud.functions.v1.CloudFunction"
122
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
123
- end
124
- add_message "google.cloud.functions.v1.GetFunctionRequest" do
125
- optional :name, :string, 1
126
- end
127
- add_message "google.cloud.functions.v1.ListFunctionsRequest" do
128
- optional :parent, :string, 1
129
- optional :page_size, :int32, 2
130
- optional :page_token, :string, 3
131
- end
132
- add_message "google.cloud.functions.v1.ListFunctionsResponse" do
133
- repeated :functions, :message, 1, "google.cloud.functions.v1.CloudFunction"
134
- optional :next_page_token, :string, 2
135
- repeated :unreachable, :string, 3
136
- end
137
- add_message "google.cloud.functions.v1.DeleteFunctionRequest" do
138
- optional :name, :string, 1
139
- end
140
- add_message "google.cloud.functions.v1.CallFunctionRequest" do
141
- optional :name, :string, 1
142
- optional :data, :string, 2
143
- end
144
- add_message "google.cloud.functions.v1.CallFunctionResponse" do
145
- optional :execution_id, :string, 1
146
- optional :result, :string, 2
147
- optional :error, :string, 3
148
- end
149
- add_message "google.cloud.functions.v1.GenerateUploadUrlRequest" do
150
- optional :parent, :string, 1
151
- optional :kms_key_name, :string, 2
152
- end
153
- add_message "google.cloud.functions.v1.GenerateUploadUrlResponse" do
154
- optional :upload_url, :string, 1
155
- end
156
- add_message "google.cloud.functions.v1.GenerateDownloadUrlRequest" do
157
- optional :name, :string, 1
158
- optional :version_id, :uint64, 2
159
- end
160
- add_message "google.cloud.functions.v1.GenerateDownloadUrlResponse" do
161
- optional :download_url, :string, 1
162
- end
163
- add_enum "google.cloud.functions.v1.CloudFunctionStatus" do
164
- value :CLOUD_FUNCTION_STATUS_UNSPECIFIED, 0
165
- value :ACTIVE, 1
166
- value :OFFLINE, 2
167
- value :DEPLOY_IN_PROGRESS, 3
168
- value :DELETE_IN_PROGRESS, 4
169
- value :UNKNOWN, 5
20
+
21
+ descriptor_data = "\n)google/cloud/functions/v1/functions.proto\x12\x19google.cloud.functions.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a*google/cloud/functions/v1/operations.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe7\x11\n\rCloudFunction\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1c\n\x12source_archive_url\x18\x03 \x01(\tH\x00\x12H\n\x11source_repository\x18\x04 \x01(\x0b\x32+.google.cloud.functions.v1.SourceRepositoryH\x00\x12\x1b\n\x11source_upload_url\x18\x10 \x01(\tH\x00\x12@\n\rhttps_trigger\x18\x05 \x01(\x0b\x32\'.google.cloud.functions.v1.HttpsTriggerH\x01\x12@\n\revent_trigger\x18\x06 \x01(\x0b\x32\'.google.cloud.functions.v1.EventTriggerH\x01\x12\x43\n\x06status\x18\x07 \x01(\x0e\x32..google.cloud.functions.v1.CloudFunctionStatusB\x03\xe0\x41\x03\x12\x13\n\x0b\x65ntry_point\x18\x08 \x01(\t\x12\x0f\n\x07runtime\x18\x13 \x01(\t\x12*\n\x07timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x61vailable_memory_mb\x18\n \x01(\x05\x12\x1d\n\x15service_account_email\x18\x0b \x01(\t\x12\x34\n\x0bupdate_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x17\n\nversion_id\x18\x0e \x01(\x03\x42\x03\xe0\x41\x03\x12\x44\n\x06labels\x18\x0f \x03(\x0b\x32\x34.google.cloud.functions.v1.CloudFunction.LabelsEntry\x12\x61\n\x15\x65nvironment_variables\x18\x11 \x03(\x0b\x32\x42.google.cloud.functions.v1.CloudFunction.EnvironmentVariablesEntry\x12l\n\x1b\x62uild_environment_variables\x18\x1c \x03(\x0b\x32G.google.cloud.functions.v1.CloudFunction.BuildEnvironmentVariablesEntry\x12\x0f\n\x07network\x18\x12 \x01(\t\x12\x15\n\rmax_instances\x18\x14 \x01(\x05\x12\x15\n\rmin_instances\x18 \x01(\x05\x12\x15\n\rvpc_connector\x18\x16 \x01(\t\x12j\n\x1dvpc_connector_egress_settings\x18\x17 \x01(\x0e\x32\x43.google.cloud.functions.v1.CloudFunction.VpcConnectorEgressSettings\x12R\n\x10ingress_settings\x18\x18 \x01(\x0e\x32\x38.google.cloud.functions.v1.CloudFunction.IngressSettings\x12<\n\x0ckms_key_name\x18\x19 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x19\n\x11\x62uild_worker_pool\x18\x1a \x01(\t\x12\x15\n\x08\x62uild_id\x18\x1b \x01(\tB\x03\xe0\x41\x03\x12\x17\n\nbuild_name\x18! \x01(\tB\x03\xe0\x41\x03\x12M\n\x1csecret_environment_variables\x18\x1d \x03(\x0b\x32\'.google.cloud.functions.v1.SecretEnvVar\x12?\n\x0esecret_volumes\x18\x1e \x03(\x0b\x32\'.google.cloud.functions.v1.SecretVolume\x12\x19\n\x0csource_token\x18\x1f \x01(\tB\x03\xe0\x41\x04\x12J\n\x11\x64ocker_repository\x18\" \x01(\tB/\xfa\x41,\n*artifactregistry.googleapis.com/Repository\x12P\n\x0f\x64ocker_registry\x18# \x01(\x0e\x32\x37.google.cloud.functions.v1.CloudFunction.DockerRegistry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a@\n\x1e\x42uildEnvironmentVariablesEntry\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\"`\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:n\xea\x41k\n+cloudfunctions.googleapis.com/CloudFunction\x12<projects/{project}/locations/{location}/functions/{function}B\r\n\x0bsource_codeB\t\n\x07trigger\":\n\x10SourceRepository\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x19\n\x0c\x64\x65ployed_url\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc8\x01\n\x0cHttpsTrigger\x12\x10\n\x03url\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12M\n\x0esecurity_level\x18\x02 \x01(\x0e\x32\x35.google.cloud.functions.v1.HttpsTrigger.SecurityLevel\"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\"\x87\x01\n\x0c\x45ventTrigger\x12\x12\n\nevent_type\x18\x01 \x01(\t\x12\x10\n\x08resource\x18\x02 \x01(\t\x12\x0f\n\x07service\x18\x03 \x01(\t\x12@\n\x0e\x66\x61ilure_policy\x18\x05 \x01(\x0b\x32(.google.cloud.functions.v1.FailurePolicy\"c\n\rFailurePolicy\x12?\n\x05retry\x18\x01 \x01(\x0b\x32..google.cloud.functions.v1.FailurePolicy.RetryH\x00\x1a\x07\n\x05RetryB\x08\n\x06\x61\x63tion\"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.v1.SecretVolume.SecretVersion\x1a.\n\rSecretVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"\x95\x01\n\x15\x43reateFunctionRequest\x12;\n\x08location\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.v1.CloudFunctionB\x03\xe0\x41\x02\"\x89\x01\n\x15UpdateFunctionRequest\x12?\n\x08\x66unction\x18\x01 \x01(\x0b\x32(.google.cloud.functions.v1.CloudFunctionB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"W\n\x12GetFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\"u\n\x14ListFunctionsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x15ListFunctionsResponse\x12;\n\tfunctions\x18\x01 \x03(\x0b\x32(.google.cloud.functions.v1.CloudFunction\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Z\n\x15\x44\x65leteFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\"k\n\x13\x43\x61llFunctionRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudfunctions.googleapis.com/CloudFunction\x12\x11\n\x04\x64\x61ta\x18\x02 \x01(\tB\x03\xe0\x41\x02\"K\n\x14\x43\x61llFunctionResponse\x12\x14\n\x0c\x65xecution_id\x18\x01 \x01(\t\x12\x0e\n\x06result\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"h\n\x18GenerateUploadUrlRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\x12<\n\x0ckms_key_name\x18\x02 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\"/\n\x19GenerateUploadUrlResponse\x12\x12\n\nupload_url\x18\x01 \x01(\t\">\n\x1aGenerateDownloadUrlRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nversion_id\x18\x02 \x01(\x04\"3\n\x1bGenerateDownloadUrlResponse\x12\x14\n\x0c\x64ownload_url\x18\x01 \x01(\t*\x92\x01\n\x13\x43loudFunctionStatus\x12%\n!CLOUD_FUNCTION_STATUS_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\x12\x16\n\x12\x44\x45PLOY_IN_PROGRESS\x10\x03\x12\x16\n\x12\x44\x45LETE_IN_PROGRESS\x10\x04\x12\x0b\n\x07UNKNOWN\x10\x05\x32\x97\x11\n\x15\x43loudFunctionsService\x12\xa9\x01\n\rListFunctions\x12/.google.cloud.functions.v1.ListFunctionsRequest\x1a\x30.google.cloud.functions.v1.ListFunctionsResponse\"5\x82\xd3\xe4\x93\x02/\x12-/v1/{parent=projects/*/locations/*}/functions\x12\xa4\x01\n\x0bGetFunction\x12-.google.cloud.functions.v1.GetFunctionRequest\x1a(.google.cloud.functions.v1.CloudFunction\"<\x82\xd3\xe4\x93\x02/\x12-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\x12\xdf\x01\n\x0e\x43reateFunction\x12\x30.google.cloud.functions.v1.CreateFunctionRequest\x1a\x1d.google.longrunning.Operation\"|\x82\xd3\xe4\x93\x02;\"//v1/{location=projects/*/locations/*}/functions:\x08\x66unction\xda\x41\x11location,function\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xdd\x01\n\x0eUpdateFunction\x12\x30.google.cloud.functions.v1.UpdateFunctionRequest\x1a\x1d.google.longrunning.Operation\"z\x82\xd3\xe4\x93\x02\x42\x32\x36/v1/{function.name=projects/*/locations/*/functions/*}:\x08\x66unction\xda\x41\x08\x66unction\xca\x41$\n\rCloudFunction\x12\x13OperationMetadataV1\x12\xce\x01\n\x0e\x44\x65leteFunction\x12\x30.google.cloud.functions.v1.DeleteFunctionRequest\x1a\x1d.google.longrunning.Operation\"k\x82\xd3\xe4\x93\x02/*-/v1/{name=projects/*/locations/*/functions/*}\xda\x41\x04name\xca\x41,\n\x15google.protobuf.Empty\x12\x13OperationMetadataV1\x12\xba\x01\n\x0c\x43\x61llFunction\x12..google.cloud.functions.v1.CallFunctionRequest\x1a/.google.cloud.functions.v1.CallFunctionResponse\"I\x82\xd3\xe4\x93\x02\x37\"2/v1/{name=projects/*/locations/*/functions/*}:call:\x01*\xda\x41\tname,data\x12\xca\x01\n\x11GenerateUploadUrl\x12\x33.google.cloud.functions.v1.GenerateUploadUrlRequest\x1a\x34.google.cloud.functions.v1.GenerateUploadUrlResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v1/{parent=projects/*/locations/*}/functions:generateUploadUrl:\x01*\x12\xd2\x01\n\x13GenerateDownloadUrl\x12\x35.google.cloud.functions.v1.GenerateDownloadUrlRequest\x1a\x36.google.cloud.functions.v1.GenerateDownloadUrlResponse\"L\x82\xd3\xe4\x93\x02\x46\"A/v1/{name=projects/*/locations/*/functions/*}:generateDownloadUrl:\x01*\x12\x94\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"I\x82\xd3\xe4\x93\x02\x43\">/v1/{resource=projects/*/locations/*/functions/*}:setIamPolicy:\x01*\x12\x91\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"F\x82\xd3\xe4\x93\x02@\x12>/v1/{resource=projects/*/locations/*/functions/*}:getIamPolicy\x12\xba\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"O\x82\xd3\xe4\x93\x02I\"D/v1/{resource=projects/*/locations/*/functions/*}:testIamPermissions:\x01*\x1aQ\xca\x41\x1d\x63loudfunctions.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe1\x02\n\x1d\x63om.google.cloud.functions.v1B\x0e\x46unctionsProtoP\x01Z;cloud.google.com/go/functions/apiv1/functionspb;functionspb\xa2\x02\x03GCF\xea\x41o\n*artifactregistry.googleapis.com/Repository\x12\x41projects/{project}/locations/{location}/repositories/{repository}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
22
+
23
+ pool = Google::Protobuf::DescriptorPool.generated_pool
24
+
25
+ begin
26
+ pool.add_serialized_file(descriptor_data)
27
+ rescue TypeError => e
28
+ # Compatibility code: will be removed in the next major version.
29
+ require 'google/protobuf/descriptor_pb'
30
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
31
+ parsed.clear_dependency
32
+ serialized = parsed.class.encode(parsed)
33
+ file = pool.add_serialized_file(serialized)
34
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
35
+ imports = [
36
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
37
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
38
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
39
+ ]
40
+ imports.each do |type_name, expected_filename|
41
+ import_file = pool.lookup(type_name).file_descriptor
42
+ if import_file.name != expected_filename
43
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
170
44
  end
171
45
  end
46
+ warn "Each proto file must use a consistent fully-qualified name."
47
+ warn "This will become an error in the next major version."
172
48
  end
173
49
 
174
50
  module Google
@@ -38,13 +38,13 @@ module Google
38
38
  # Returns a function with the given name from the requested project.
39
39
  rpc :GetFunction, ::Google::Cloud::Functions::V1::GetFunctionRequest, ::Google::Cloud::Functions::V1::CloudFunction
40
40
  # Creates a new function. If a function with the given name already exists in
41
- # the specified project, the long running operation will return
41
+ # the specified project, the long running operation returns an
42
42
  # `ALREADY_EXISTS` error.
43
43
  rpc :CreateFunction, ::Google::Cloud::Functions::V1::CreateFunctionRequest, ::Google::Longrunning::Operation
44
44
  # Updates existing function.
45
45
  rpc :UpdateFunction, ::Google::Cloud::Functions::V1::UpdateFunctionRequest, ::Google::Longrunning::Operation
46
46
  # Deletes a function with the given name from the specified project. If the
47
- # given function is used by some trigger, the trigger will be updated to
47
+ # given function is used by some trigger, the trigger is updated to
48
48
  # remove this function.
49
49
  rpc :DeleteFunction, ::Google::Cloud::Functions::V1::DeleteFunctionRequest, ::Google::Longrunning::Operation
50
50
  # Synchronously invokes a deployed Cloud Function. To be used for testing
@@ -69,19 +69,19 @@ module Google
69
69
  # attached, the identity from the credentials would be used, but that
70
70
  # identity does not have permissions to upload files to the URL.
71
71
  #
72
- # When making a HTTP PUT request, these two headers need to be specified:
72
+ # When making an HTTP PUT request, these two headers must be specified:
73
73
  #
74
74
  # * `content-type: application/zip`
75
75
  # * `x-goog-content-length-range: 0,104857600`
76
76
  #
77
- # And this header SHOULD NOT be specified:
77
+ # And this header must NOT be specified:
78
78
  #
79
79
  # * `Authorization: Bearer YOUR_TOKEN`
80
80
  rpc :GenerateUploadUrl, ::Google::Cloud::Functions::V1::GenerateUploadUrlRequest, ::Google::Cloud::Functions::V1::GenerateUploadUrlResponse
81
81
  # Returns a signed URL for downloading deployed function source code.
82
- # The URL is only valid for a limited period and should be used within
82
+ # The URL is only valid for a limited period and must be used within
83
83
  # minutes after generation.
84
- # For more information about the signed URL usage see:
84
+ # For more information about the signed URL usage, see:
85
85
  # https://cloud.google.com/storage/docs/access-control/signed-urls
86
86
  rpc :GenerateDownloadUrl, ::Google::Cloud::Functions::V1::GenerateDownloadUrlRequest, ::Google::Cloud::Functions::V1::GenerateDownloadUrlResponse
87
87
  # Sets the IAM access control policy on the specified function.
@@ -93,7 +93,7 @@ module Google
93
93
  rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
94
94
  # Tests the specified permissions against the IAM access control policy
95
95
  # for a function.
96
- # If the function does not exist, this will return an empty set of
96
+ # If the function does not exist, this returns an empty set of
97
97
  # permissions, not a NOT_FOUND error.
98
98
  rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
99
99
  end
@@ -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/v1/operations.proto
3
4
 
@@ -6,25 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/any_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/functions/v1/operations.proto", :syntax => :proto3) do
11
- add_message "google.cloud.functions.v1.OperationMetadataV1" do
12
- optional :target, :string, 1
13
- optional :type, :enum, 2, "google.cloud.functions.v1.OperationType"
14
- optional :request, :message, 3, "google.protobuf.Any"
15
- optional :version_id, :int64, 4
16
- optional :update_time, :message, 5, "google.protobuf.Timestamp"
17
- optional :build_id, :string, 6
18
- optional :source_token, :string, 7
19
- optional :build_name, :string, 8
20
- end
21
- add_enum "google.cloud.functions.v1.OperationType" do
22
- value :OPERATION_UNSPECIFIED, 0
23
- value :CREATE_FUNCTION, 1
24
- value :UPDATE_FUNCTION, 2
25
- value :DELETE_FUNCTION, 3
10
+
11
+ descriptor_data = "\n*google/cloud/functions/v1/operations.proto\x12\x19google.cloud.functions.v1\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x85\x02\n\x13OperationMetadataV1\x12\x0e\n\x06target\x18\x01 \x01(\t\x12\x36\n\x04type\x18\x02 \x01(\x0e\x32(.google.cloud.functions.v1.OperationType\x12%\n\x07request\x18\x03 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x12\n\nversion_id\x18\x04 \x01(\x03\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x62uild_id\x18\x06 \x01(\t\x12\x14\n\x0csource_token\x18\x07 \x01(\t\x12\x12\n\nbuild_name\x18\x08 \x01(\t*i\n\rOperationType\x12\x19\n\x15OPERATION_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x43REATE_FUNCTION\x10\x01\x12\x13\n\x0fUPDATE_FUNCTION\x10\x02\x12\x13\n\x0f\x44\x45LETE_FUNCTION\x10\x03\x42x\n\x1d\x63om.google.cloud.functions.v1B\x18\x46unctionsOperationsProtoP\x01Z;cloud.google.com/go/functions/apiv1/functionspb;functionspbb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
27
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
26
33
  end
27
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
28
37
  end
29
38
 
30
39
  module Google
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/functions/v1/cloud_functions_service/rest"
20
+ require "google/cloud/functions/v1/bindings_override"
20
21
  require "google/cloud/functions/v1/version"
21
22
 
22
23
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.11.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
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.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
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
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
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
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?