Built motion from commit 44377920.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / cloud / functions / v1beta2 / operations.proto
1 // Copyright 2017 Google Inc.
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 syntax = "proto3";
16
17 package google.cloud.functions.v1beta2;
18
19 import "google/api/annotations.proto";
20 import "google/protobuf/any.proto";
21
22 option go_package = "google.golang.org/genproto/googleapis/cloud/functions/v1beta2;functions";
23 option java_multiple_files = true;
24 option java_outer_classname = "FunctionsOperationsProto";
25 option java_package = "com.google.cloud.functions.v1beta2";
26
27 // Metadata describing an [Operation][google.longrunning.Operation]
28 message OperationMetadataV1Beta2 {
29   // Target of the operation - for example
30   // projects/project-1/locations/region-1/functions/function-1
31   string target = 1;
32
33   // Type of operation.
34   OperationType type = 2;
35
36   // The original request that started the operation.
37   google.protobuf.Any request = 3;
38 }
39
40 // A type of an operation.
41 enum OperationType {
42   // Unknown operation type.
43   OPERATION_UNSPECIFIED = 0;
44
45   // Triggered by CreateFunction call
46   CREATE_FUNCTION = 1;
47
48   // Triggered by UpdateFunction call
49   UPDATE_FUNCTION = 2;
50
51   // Triggered by DeleteFunction call.
52   DELETE_FUNCTION = 3;
53 }