Skip to content

Commit

Permalink
feat: [google-cloud-build] Add option to enable structured logging (#…
Browse files Browse the repository at this point in the history
…13430)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 714092337

Source-Link:
googleapis/googleapis@fd5b486

Source-Link:
googleapis/googleapis-gen@52d230d
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJ1aWxkLy5Pd2xCb3QueWFtbCIsImgiOiI1MmQyMzBkYmU2YzRhNmM2MTEyZjhmMzQ2ZWIyMjNhMGJmYTRmYTg4In0=

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 10, 2025
1 parent 5777b06 commit dc7d7f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3278,6 +3278,11 @@ class BuildOptions(proto.Message):
default_logs_bucket_behavior (google.cloud.devtools.cloudbuild_v1.types.BuildOptions.DefaultLogsBucketBehavior):
Optional. Option to specify how default logs
buckets are setup.
enable_structured_logging (bool):
Optional. Option to specify whether
structured logging is enabled.
If true, JSON-formatted logs are parsed as
structured logs.
"""

class VerifyOption(proto.Enum):
Expand Down Expand Up @@ -3506,6 +3511,10 @@ class PoolOption(proto.Message):
number=21,
enum=DefaultLogsBucketBehavior,
)
enable_structured_logging: bool = proto.Field(
proto.BOOL,
number=23,
)


class ReceiveTriggerWebhookRequest(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12847,6 +12847,7 @@ def test_create_build_rest_call_success(request_type):
"secret_env": ["secret_env_value1", "secret_env_value2"],
"volumes": {},
"default_logs_bucket_behavior": 1,
"enable_structured_logging": True,
},
"log_url": "log_url_value",
"substitutions": {},
Expand Down Expand Up @@ -13873,6 +13874,7 @@ def test_create_build_trigger_rest_call_success(request_type):
"secret_env": ["secret_env_value1", "secret_env_value2"],
"volumes": {},
"default_logs_bucket_behavior": 1,
"enable_structured_logging": True,
},
"log_url": "log_url_value",
"substitutions": {},
Expand Down Expand Up @@ -14704,6 +14706,7 @@ def test_update_build_trigger_rest_call_success(request_type):
"secret_env": ["secret_env_value1", "secret_env_value2"],
"volumes": {},
"default_logs_bucket_behavior": 1,
"enable_structured_logging": True,
},
"log_url": "log_url_value",
"substitutions": {},
Expand Down

0 comments on commit dc7d7f2

Please # to comment.