Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish SLM logging proto for documentation
PiperOrigin-RevId: 333125205
- Loading branch information
Google APIs
authored and
Copybara-Service
committed
Sep 22, 2020
1 parent
8d73f94
commit 4ede775
Showing
2 changed files
with
203 additions
and
0 deletions.
There are no files selected for viewing
162 changes: 162 additions & 0 deletions
162
google/cloud/saasaccelerator/management/logs/v1/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
# This file was automatically generated by BuildFileGenerator | ||
|
||
# This is an API workspace, having public visibility by default makes perfect sense. | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
############################################################################## | ||
# Common | ||
############################################################################## | ||
load("@rules_proto//proto:defs.bzl", "proto_library") | ||
|
||
proto_library( | ||
name = "logs_proto", | ||
srcs = [ | ||
"saas_instance_payload.proto", | ||
], | ||
deps = [ | ||
|
||
], | ||
) | ||
|
||
############################################################################## | ||
# Java | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"java_grpc_library", | ||
"java_proto_library", | ||
) | ||
|
||
java_proto_library( | ||
name = "logs_java_proto", | ||
deps = [":logs_proto"], | ||
) | ||
|
||
java_grpc_library( | ||
name = "logs_java_grpc", | ||
srcs = [":logs_proto"], | ||
deps = [":logs_java_proto"], | ||
) | ||
|
||
############################################################################## | ||
# Go | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"go_proto_library", | ||
) | ||
|
||
go_proto_library( | ||
name = "logs_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "google.golang.org/genproto/googleapis/cloud/saasaccelerator/management/logs/v1", | ||
protos = [":logs_proto"], | ||
deps = [ | ||
|
||
], | ||
) | ||
|
||
############################################################################## | ||
# Python | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"moved_proto_library", | ||
"py_grpc_library", | ||
"py_proto_library", | ||
) | ||
|
||
moved_proto_library( | ||
name = "logs_moved_proto", | ||
srcs = [":logs_proto"], | ||
deps = [ | ||
|
||
], | ||
) | ||
|
||
py_proto_library( | ||
name = "logs_py_proto", | ||
plugin = "@protoc_docs_plugin//:docs_plugin", | ||
deps = [":logs_moved_proto"], | ||
) | ||
|
||
py_grpc_library( | ||
name = "logs_py_grpc", | ||
srcs = [":logs_moved_proto"], | ||
deps = [":logs_py_proto"], | ||
) | ||
|
||
############################################################################## | ||
# PHP | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"php_grpc_library", | ||
"php_proto_library", | ||
) | ||
|
||
php_proto_library( | ||
name = "logs_php_proto", | ||
deps = [":logs_proto"], | ||
) | ||
|
||
php_grpc_library( | ||
name = "logs_php_grpc", | ||
srcs = [":logs_proto"], | ||
deps = [":logs_php_proto"], | ||
) | ||
|
||
############################################################################## | ||
# Node.js | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"nodejs_gapic_assembly_pkg", | ||
"nodejs_gapic_library", | ||
) | ||
|
||
|
||
############################################################################## | ||
# Ruby | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"ruby_grpc_library", | ||
"ruby_proto_library", | ||
) | ||
|
||
ruby_proto_library( | ||
name = "logs_ruby_proto", | ||
deps = [":logs_proto"], | ||
) | ||
|
||
ruby_grpc_library( | ||
name = "logs_ruby_grpc", | ||
srcs = [":logs_proto"], | ||
deps = [":logs_ruby_proto"], | ||
) | ||
|
||
############################################################################## | ||
# C# | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"csharp_grpc_library", | ||
"csharp_proto_library", | ||
) | ||
|
||
csharp_proto_library( | ||
name = "logs_csharp_proto", | ||
deps = [":logs_proto"], | ||
) | ||
|
||
csharp_grpc_library( | ||
name = "logs_csharp_grpc", | ||
srcs = [":logs_proto"], | ||
deps = [":logs_csharp_proto"], | ||
) | ||
|
||
############################################################################## | ||
# C++ | ||
############################################################################## | ||
# Put your C++ code here |
41 changes: 41 additions & 0 deletions
41
google/cloud/saasaccelerator/management/logs/v1/saas_instance_payload.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright 2020 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.saasaccelerator.management.logs.v1; | ||
|
||
option go_package = "google.golang.org/genproto/googleapis/cloud/saasaccelerator/management/logs/v1;logs"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "SaasInstancePayloadProto"; | ||
option java_package = "com.google.cloud.saasaccelerator.management.logs.v1"; | ||
|
||
message InstanceEvent { | ||
// The type of the event, e.g. Create, Update, etc. | ||
string verb = 1; | ||
|
||
// The state of the instance, e.g. "RETRYING_CREATE_INSTANCE". | ||
string stage = 2; | ||
|
||
// A human-readable log message, e.g. "error in stage: CREATING, err: location | ||
// not available". | ||
string msg = 3; | ||
|
||
// The ID to uniquely locate all logs associated with a given request. | ||
string trace_id = 4; | ||
|
||
// The instance node which is the subject of the operation, if known. | ||
// Currently unused as tf actuation does not manage nodes. | ||
string node_id = 5; | ||
} |