Skip to content

Commit b47cf72

Browse files
Google APIscopybara-github
authored andcommitted
docs: Publish Certificate Manager logging proto for documentation
PiperOrigin-RevId: 471638603
1 parent fff3f73 commit b47cf72

2 files changed

Lines changed: 232 additions & 0 deletions

File tree

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
3+
# This is an API workspace, having public visibility by default makes perfect sense.
4+
package(default_visibility = ["//visibility:public"])
5+
6+
##############################################################################
7+
# Common
8+
##############################################################################
9+
load("@rules_proto//proto:defs.bzl", "proto_library")
10+
11+
proto_library(
12+
name = "logging_proto",
13+
srcs = [
14+
"logs.proto",
15+
],
16+
deps = [
17+
"@com_google_protobuf//:timestamp_proto",
18+
],
19+
)
20+
21+
##############################################################################
22+
# Java
23+
##############################################################################
24+
load(
25+
"@com_google_googleapis_imports//:imports.bzl",
26+
"java_grpc_library",
27+
"java_proto_library",
28+
)
29+
30+
java_proto_library(
31+
name = "logging_java_proto",
32+
deps = [":logging_proto"],
33+
)
34+
35+
java_grpc_library(
36+
name = "logging_java_grpc",
37+
srcs = [":logging_proto"],
38+
deps = [":logging_java_proto"],
39+
)
40+
41+
##############################################################################
42+
# Go
43+
##############################################################################
44+
load(
45+
"@com_google_googleapis_imports//:imports.bzl",
46+
"go_proto_library",
47+
)
48+
49+
go_proto_library(
50+
name = "logging_go_proto",
51+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
52+
importpath = "google.golang.org/genproto/googleapis/cloud/certificatemanager/logging/v1",
53+
protos = [":logging_proto"],
54+
deps = [
55+
],
56+
)
57+
58+
##############################################################################
59+
# Python
60+
##############################################################################
61+
load(
62+
"@com_google_googleapis_imports//:imports.bzl",
63+
"moved_proto_library",
64+
"py_grpc_library",
65+
"py_proto_library",
66+
)
67+
68+
moved_proto_library(
69+
name = "logging_moved_proto",
70+
srcs = [":logging_proto"],
71+
deps = [
72+
"@com_google_protobuf//:timestamp_proto",
73+
],
74+
)
75+
76+
py_proto_library(
77+
name = "logging_py_proto",
78+
deps = [":logging_moved_proto"],
79+
)
80+
81+
py_grpc_library(
82+
name = "logging_py_grpc",
83+
srcs = [":logging_moved_proto"],
84+
deps = [":logging_py_proto"],
85+
)
86+
87+
##############################################################################
88+
# PHP
89+
##############################################################################
90+
load(
91+
"@com_google_googleapis_imports//:imports.bzl",
92+
"php_grpc_library",
93+
"php_proto_library",
94+
)
95+
96+
php_proto_library(
97+
name = "logging_php_proto",
98+
deps = [":logging_proto"],
99+
)
100+
101+
php_grpc_library(
102+
name = "logging_php_grpc",
103+
srcs = [":logging_proto"],
104+
deps = [":logging_php_proto"],
105+
)
106+
107+
##############################################################################
108+
# Node.js
109+
##############################################################################
110+
load(
111+
"@com_google_googleapis_imports//:imports.bzl",
112+
"nodejs_gapic_assembly_pkg",
113+
"nodejs_gapic_library",
114+
)
115+
116+
##############################################################################
117+
# Ruby
118+
##############################################################################
119+
load(
120+
"@com_google_googleapis_imports//:imports.bzl",
121+
"ruby_grpc_library",
122+
"ruby_proto_library",
123+
)
124+
125+
ruby_proto_library(
126+
name = "logging_ruby_proto",
127+
deps = [":logging_proto"],
128+
)
129+
130+
ruby_grpc_library(
131+
name = "logging_ruby_grpc",
132+
srcs = [":logging_proto"],
133+
deps = [":logging_ruby_proto"],
134+
)
135+
136+
##############################################################################
137+
# C#
138+
##############################################################################
139+
load(
140+
"@com_google_googleapis_imports//:imports.bzl",
141+
"csharp_grpc_library",
142+
"csharp_proto_library",
143+
)
144+
145+
csharp_proto_library(
146+
name = "logging_csharp_proto",
147+
deps = [":logging_proto"],
148+
)
149+
150+
csharp_grpc_library(
151+
name = "logging_csharp_grpc",
152+
srcs = [":logging_proto"],
153+
deps = [":logging_csharp_proto"],
154+
)
155+
156+
##############################################################################
157+
# C++
158+
##############################################################################
159+
load(
160+
"@com_google_googleapis_imports//:imports.bzl",
161+
"cc_grpc_library",
162+
"cc_proto_library",
163+
)
164+
165+
cc_proto_library(
166+
name = "logging_cc_proto",
167+
deps = [":logging_proto"],
168+
)
169+
170+
cc_grpc_library(
171+
name = "logging_cc_grpc",
172+
srcs = [":logging_proto"],
173+
grpc_only = True,
174+
deps = [":logging_cc_proto"],
175+
)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
syntax = "proto3";
16+
17+
package google.cloud.certificatemanager.logging.v1;
18+
19+
import "google/protobuf/timestamp.proto";
20+
21+
option csharp_namespace = "Google.Cloud.CertificateManager.Logging.V1";
22+
option go_package = "google.golang.org/genproto/googleapis/cloud/certificatemanager/logging/v1;logging";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "LogsProto";
25+
option java_package = "com.google.cloud.certificatemanager.logging.v1";
26+
option php_namespace = "Google\\Cloud\\CertificateManager\\Logging\\V1";
27+
option ruby_package = "Google::Cloud::CertificateManager::Logging::V1";
28+
29+
// Log message which notifies about expired or close to
30+
// expiry certificates.
31+
message CertificatesExpiry {
32+
// Expiration state of the certificate.
33+
enum State {
34+
// Unspecified state, should never be reported.
35+
STATE_UNSPECIFIED = 0;
36+
37+
// Certificate will expire soon.
38+
CLOSE_TO_EXPIRY = 1;
39+
40+
// Certificate is expired.
41+
EXPIRED = 2;
42+
}
43+
44+
// Number of reported certificates.
45+
int64 count = 1;
46+
47+
// Names of reported certificates. If there are too many, the list is sampled.
48+
repeated string certificates = 2;
49+
50+
// State of reported certificates.
51+
State state = 3;
52+
53+
// Approximated expire time of reported certificates.
54+
// Multiple certificates with close expire time are batched together in a
55+
// single log, so the timestamp is not precise.
56+
google.protobuf.Timestamp expire_time = 4;
57+
}

0 commit comments

Comments
 (0)