docs: fix formatting of some regexes and string literals.

PiperOrigin-RevId: 304701150
This commit is contained in:
Google APIs 2020-04-03 15:06:23 -07:00 committed by Copybara-Service
parent 9119eefcd2
commit 65c749bc6a
2 changed files with 17 additions and 14 deletions

View File

@ -921,15 +921,16 @@ message Finding {
// The labels associated with this `InspectFinding`.
//
// Label keys must be between 1 and 63 characters long and must conform
// to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
// to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
//
// Label values must be between 0 and 63 characters long and must conform
// to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
// to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
//
// No more than 10 labels can be associated with a given finding.
//
// Example: <code>"environment" : "production"</code>
// Example: <code>"pipeline" : "etl"</code>
// Examples:
// * `"environment" : "production"`
// * `"pipeline" : "etl"`
map<string, string> labels = 10;
// Time the job started that produced this finding.
@ -3958,15 +3959,16 @@ message HybridFindingDetails {
// inspection.
//
// Label keys must be between 1 and 63 characters long and must conform
// to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
// to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
//
// Label values must be between 0 and 63 characters long and must conform
// to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
// to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
//
// No more than 10 labels can be associated with a given finding.
//
// Example: <code>"environment" : "production"</code>
// Example: <code>"pipeline" : "etl"</code>
// Examples:
// * `"environment" : "production"`
// * `"pipeline" : "etl"`
map<string, string> labels = 5;
}

View File

@ -33,7 +33,7 @@ message InfoType {
// creating a CustomInfoType, or one of the names listed
// at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
// a built-in type. InfoType names should conform to the pattern
// [a-zA-Z0-9_]{1,64}.
// `[a-zA-Z0-9_]{1,64}`.
string name = 1;
}
@ -553,7 +553,7 @@ message HybridOptions {
// these will be rejected.
//
// Label keys must be between 1 and 63 characters long and must conform
// to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
// to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
//
// No more than 10 keys can be required.
repeated string required_finding_label_keys = 2;
@ -561,15 +561,16 @@ message HybridOptions {
// To organize findings, these labels will be added to each finding.
//
// Label keys must be between 1 and 63 characters long and must conform
// to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?.
// to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`.
//
// Label values must be between 0 and 63 characters long and must conform
// to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
// to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
//
// No more than 10 labels can be associated with a given finding.
//
// Example: <code>"environment" : "production"</code>
// Example: <code>"pipeline" : "etl"</code>
// Examples:
// * `"environment" : "production"`
// * `"pipeline" : "etl"`
map<string, string> labels = 3;
// If the container is a table, additional information to make findings