1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by aliasgen. DO NOT EDIT. 16 17 // Package functions aliases all exported identifiers in package 18 // "cloud.google.com/go/functions/apiv1/functionspb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package functions 24 25 import ( 26 src "cloud.google.com/go/functions/apiv1/functionspb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/functions/apiv1/functionspb 31 const ( 32 CloudFunctionStatus_ACTIVE = src.CloudFunctionStatus_ACTIVE 33 CloudFunctionStatus_CLOUD_FUNCTION_STATUS_UNSPECIFIED = src.CloudFunctionStatus_CLOUD_FUNCTION_STATUS_UNSPECIFIED 34 CloudFunctionStatus_DELETE_IN_PROGRESS = src.CloudFunctionStatus_DELETE_IN_PROGRESS 35 CloudFunctionStatus_DEPLOY_IN_PROGRESS = src.CloudFunctionStatus_DEPLOY_IN_PROGRESS 36 CloudFunctionStatus_OFFLINE = src.CloudFunctionStatus_OFFLINE 37 CloudFunctionStatus_UNKNOWN = src.CloudFunctionStatus_UNKNOWN 38 CloudFunction_ALLOW_ALL = src.CloudFunction_ALLOW_ALL 39 CloudFunction_ALLOW_INTERNAL_AND_GCLB = src.CloudFunction_ALLOW_INTERNAL_AND_GCLB 40 CloudFunction_ALLOW_INTERNAL_ONLY = src.CloudFunction_ALLOW_INTERNAL_ONLY 41 CloudFunction_ALL_TRAFFIC = src.CloudFunction_ALL_TRAFFIC 42 CloudFunction_ARTIFACT_REGISTRY = src.CloudFunction_ARTIFACT_REGISTRY 43 CloudFunction_CONTAINER_REGISTRY = src.CloudFunction_CONTAINER_REGISTRY 44 CloudFunction_DOCKER_REGISTRY_UNSPECIFIED = src.CloudFunction_DOCKER_REGISTRY_UNSPECIFIED 45 CloudFunction_INGRESS_SETTINGS_UNSPECIFIED = src.CloudFunction_INGRESS_SETTINGS_UNSPECIFIED 46 CloudFunction_PRIVATE_RANGES_ONLY = src.CloudFunction_PRIVATE_RANGES_ONLY 47 CloudFunction_VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = src.CloudFunction_VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED 48 HttpsTrigger_SECURE_ALWAYS = src.HttpsTrigger_SECURE_ALWAYS 49 HttpsTrigger_SECURE_OPTIONAL = src.HttpsTrigger_SECURE_OPTIONAL 50 HttpsTrigger_SECURITY_LEVEL_UNSPECIFIED = src.HttpsTrigger_SECURITY_LEVEL_UNSPECIFIED 51 OperationType_CREATE_FUNCTION = src.OperationType_CREATE_FUNCTION 52 OperationType_DELETE_FUNCTION = src.OperationType_DELETE_FUNCTION 53 OperationType_OPERATION_UNSPECIFIED = src.OperationType_OPERATION_UNSPECIFIED 54 OperationType_UPDATE_FUNCTION = src.OperationType_UPDATE_FUNCTION 55 ) 56 57 // Deprecated: Please use vars in: cloud.google.com/go/functions/apiv1/functionspb 58 var ( 59 CloudFunctionStatus_name = src.CloudFunctionStatus_name 60 CloudFunctionStatus_value = src.CloudFunctionStatus_value 61 CloudFunction_DockerRegistry_name = src.CloudFunction_DockerRegistry_name 62 CloudFunction_DockerRegistry_value = src.CloudFunction_DockerRegistry_value 63 CloudFunction_IngressSettings_name = src.CloudFunction_IngressSettings_name 64 CloudFunction_IngressSettings_value = src.CloudFunction_IngressSettings_value 65 CloudFunction_VpcConnectorEgressSettings_name = src.CloudFunction_VpcConnectorEgressSettings_name 66 CloudFunction_VpcConnectorEgressSettings_value = src.CloudFunction_VpcConnectorEgressSettings_value 67 File_google_cloud_functions_v1_functions_proto = src.File_google_cloud_functions_v1_functions_proto 68 File_google_cloud_functions_v1_operations_proto = src.File_google_cloud_functions_v1_operations_proto 69 HttpsTrigger_SecurityLevel_name = src.HttpsTrigger_SecurityLevel_name 70 HttpsTrigger_SecurityLevel_value = src.HttpsTrigger_SecurityLevel_value 71 OperationType_name = src.OperationType_name 72 OperationType_value = src.OperationType_value 73 ) 74 75 // Request for the `CallFunction` method. 76 // 77 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 78 type CallFunctionRequest = src.CallFunctionRequest 79 80 // Response of `CallFunction` method. 81 // 82 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 83 type CallFunctionResponse = src.CallFunctionResponse 84 85 // Describes a Cloud Function that contains user computation executed in 86 // response to an event. It encapsulate function and triggers configurations. 87 // 88 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 89 type CloudFunction = src.CloudFunction 90 91 // Describes the current stage of a deployment. 92 // 93 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 94 type CloudFunctionStatus = src.CloudFunctionStatus 95 96 // Docker Registry to use for storing function Docker images. 97 // 98 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 99 type CloudFunction_DockerRegistry = src.CloudFunction_DockerRegistry 100 type CloudFunction_EventTrigger = src.CloudFunction_EventTrigger 101 type CloudFunction_HttpsTrigger = src.CloudFunction_HttpsTrigger 102 103 // Available ingress settings. This controls what traffic can reach the 104 // function. If unspecified, ALLOW_ALL will be used. 105 // 106 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 107 type CloudFunction_IngressSettings = src.CloudFunction_IngressSettings 108 type CloudFunction_SourceArchiveUrl = src.CloudFunction_SourceArchiveUrl 109 type CloudFunction_SourceRepository = src.CloudFunction_SourceRepository 110 type CloudFunction_SourceUploadUrl = src.CloudFunction_SourceUploadUrl 111 112 // Available egress settings. This controls what traffic is diverted through 113 // the VPC Access Connector resource. By default PRIVATE_RANGES_ONLY will be 114 // used. 115 // 116 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 117 type CloudFunction_VpcConnectorEgressSettings = src.CloudFunction_VpcConnectorEgressSettings 118 119 // CloudFunctionsServiceClient is the client API for CloudFunctionsService 120 // service. For semantics around ctx use and closing/ending streaming RPCs, 121 // please refer to 122 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 123 // 124 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 125 type CloudFunctionsServiceClient = src.CloudFunctionsServiceClient 126 127 // CloudFunctionsServiceServer is the server API for CloudFunctionsService 128 // service. 129 // 130 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 131 type CloudFunctionsServiceServer = src.CloudFunctionsServiceServer 132 133 // Request for the `CreateFunction` method. 134 // 135 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 136 type CreateFunctionRequest = src.CreateFunctionRequest 137 138 // Request for the `DeleteFunction` method. 139 // 140 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 141 type DeleteFunctionRequest = src.DeleteFunctionRequest 142 143 // Describes EventTrigger, used to request events be sent from another 144 // service. 145 // 146 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 147 type EventTrigger = src.EventTrigger 148 149 // Describes the policy in case of function's execution failure. If empty, 150 // then defaults to ignoring failures (i.e. not retrying them). 151 // 152 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 153 type FailurePolicy = src.FailurePolicy 154 155 // Describes the retry policy in case of function's execution failure. A 156 // function execution will be retried on any failure. A failed execution will 157 // be retried up to 7 days with an exponential backoff (capped at 10 seconds). 158 // Retried execution is charged as any other execution. 159 // 160 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 161 type FailurePolicy_Retry = src.FailurePolicy_Retry 162 type FailurePolicy_Retry_ = src.FailurePolicy_Retry_ 163 164 // Request of `GenerateDownloadUrl` method. 165 // 166 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 167 type GenerateDownloadUrlRequest = src.GenerateDownloadUrlRequest 168 169 // Response of `GenerateDownloadUrl` method. 170 // 171 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 172 type GenerateDownloadUrlResponse = src.GenerateDownloadUrlResponse 173 174 // Request of `GenerateSourceUploadUrl` method. 175 // 176 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 177 type GenerateUploadUrlRequest = src.GenerateUploadUrlRequest 178 179 // Response of `GenerateSourceUploadUrl` method. 180 // 181 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 182 type GenerateUploadUrlResponse = src.GenerateUploadUrlResponse 183 184 // Request for the `GetFunction` method. 185 // 186 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 187 type GetFunctionRequest = src.GetFunctionRequest 188 189 // Describes HttpsTrigger, could be used to connect web hooks to function. 190 // 191 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 192 type HttpsTrigger = src.HttpsTrigger 193 194 // Available security level settings. This controls the methods to enforce 195 // security (HTTPS) on a URL. If unspecified, SECURE_OPTIONAL will be used. 196 // 197 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 198 type HttpsTrigger_SecurityLevel = src.HttpsTrigger_SecurityLevel 199 200 // Request for the `ListFunctions` method. 201 // 202 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 203 type ListFunctionsRequest = src.ListFunctionsRequest 204 205 // Response for the `ListFunctions` method. 206 // 207 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 208 type ListFunctionsResponse = src.ListFunctionsResponse 209 210 // Metadata describing an [Operation][google.longrunning.Operation] 211 // 212 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 213 type OperationMetadataV1 = src.OperationMetadataV1 214 215 // A type of an operation. 216 // 217 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 218 type OperationType = src.OperationType 219 220 // Configuration for a secret environment variable. It has the information 221 // necessary to fetch the secret value from secret manager and expose it as an 222 // environment variable. 223 // 224 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 225 type SecretEnvVar = src.SecretEnvVar 226 227 // Configuration for a secret volume. It has the information necessary to 228 // fetch the secret value from secret manager and make it available as files 229 // mounted at the requested paths within the application container. Secret 230 // value is not a part of the configuration. Every filesystem read operation 231 // performs a lookup in secret manager to retrieve the secret value. 232 // 233 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 234 type SecretVolume = src.SecretVolume 235 236 // Configuration for a single version. 237 // 238 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 239 type SecretVolume_SecretVersion = src.SecretVolume_SecretVersion 240 241 // Describes SourceRepository, used to represent parameters related to source 242 // repository where a function is hosted. 243 // 244 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 245 type SourceRepository = src.SourceRepository 246 247 // UnimplementedCloudFunctionsServiceServer can be embedded to have forward 248 // compatible implementations. 249 // 250 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 251 type UnimplementedCloudFunctionsServiceServer = src.UnimplementedCloudFunctionsServiceServer 252 253 // Request for the `UpdateFunction` method. 254 // 255 // Deprecated: Please use types in: cloud.google.com/go/functions/apiv1/functionspb 256 type UpdateFunctionRequest = src.UpdateFunctionRequest 257 258 // Deprecated: Please use funcs in: cloud.google.com/go/functions/apiv1/functionspb 259 func NewCloudFunctionsServiceClient(cc grpc.ClientConnInterface) CloudFunctionsServiceClient { 260 return src.NewCloudFunctionsServiceClient(cc) 261 } 262 263 // Deprecated: Please use funcs in: cloud.google.com/go/functions/apiv1/functionspb 264 func RegisterCloudFunctionsServiceServer(s *grpc.Server, srv CloudFunctionsServiceServer) { 265 src.RegisterCloudFunctionsServiceServer(s, srv) 266 } 267