@@ -56,7 +56,7 @@ def new_instance(
5656
5757 :param str version: (optional) The API version, in format `YYYY-MM-DD`. For
5858 the API behavior documented here, specify any date between `2021-03-31` and
59- `2024-09-24 `.
59+ `2024-09-27 `.
6060 """
6161 authenticator = get_authenticator_from_environment(service_name)
6262 service = cls(
@@ -80,7 +80,7 @@ def __init__(
8080
8181 :param str version: (optional) The API version, in format `YYYY-MM-DD`. For
8282 the API behavior documented here, specify any date between `2021-03-31` and
83- `2024-09-24 `.
83+ `2024-09-27 `.
8484 """
8585 BaseService.__init__(self, service_url=self.DEFAULT_SERVICE_URL, authenticator=authenticator)
8686 self.version = version
@@ -7391,27 +7391,40 @@ class BuildRunStatus:
73917391 Current status condition of a build run.
73927392
73937393 :param str completion_time: (optional) Time the build run completed.
7394+ :param str git_branch_name: (optional) The default branch name of the git
7395+ source.
7396+ :param str git_commit_author: (optional) The commit author of a git source.
7397+ :param str git_commit_sha: (optional) The commit sha of the git source.
73947398 :param str output_digest: (optional) Describes the time the build run completed.
73957399 :param str reason: (optional) Optional information to provide more context in
73967400 case of a 'failed' or 'warning' status.
7401+ :param str source_timestamp: (optional) The timestamp of the source.
73977402 :param str start_time: (optional) Time the build run started.
73987403 """
73997404
74007405 def __init__(
74017406 self,
74027407 *,
74037408 completion_time: Optional[str] = None,
7409+ git_branch_name: Optional[str] = None,
7410+ git_commit_author: Optional[str] = None,
7411+ git_commit_sha: Optional[str] = None,
74047412 output_digest: Optional[str] = None,
74057413 reason: Optional[str] = None,
7414+ source_timestamp: Optional[str] = None,
74067415 start_time: Optional[str] = None,
74077416 ) -> None:
74087417 """
74097418 Initialize a BuildRunStatus object.
74107419
74117420 """
74127421 self.completion_time = completion_time
7422+ self.git_branch_name = git_branch_name
7423+ self.git_commit_author = git_commit_author
7424+ self.git_commit_sha = git_commit_sha
74137425 self.output_digest = output_digest
74147426 self.reason = reason
7427+ self.source_timestamp = source_timestamp
74157428 self.start_time = start_time
74167429
74177430 @classmethod
@@ -7420,10 +7433,18 @@ def from_dict(cls, _dict: Dict) -> 'BuildRunStatus':
74207433 args = {}
74217434 if (completion_time := _dict.get('completion_time')) is not None:
74227435 args['completion_time'] = completion_time
7436+ if (git_branch_name := _dict.get('git_branch_name')) is not None:
7437+ args['git_branch_name'] = git_branch_name
7438+ if (git_commit_author := _dict.get('git_commit_author')) is not None:
7439+ args['git_commit_author'] = git_commit_author
7440+ if (git_commit_sha := _dict.get('git_commit_sha')) is not None:
7441+ args['git_commit_sha'] = git_commit_sha
74237442 if (output_digest := _dict.get('output_digest')) is not None:
74247443 args['output_digest'] = output_digest
74257444 if (reason := _dict.get('reason')) is not None:
74267445 args['reason'] = reason
7446+ if (source_timestamp := _dict.get('source_timestamp')) is not None:
7447+ args['source_timestamp'] = source_timestamp
74277448 if (start_time := _dict.get('start_time')) is not None:
74287449 args['start_time'] = start_time
74297450 return cls(**args)
@@ -7438,10 +7459,18 @@ def to_dict(self) -> Dict:
74387459 _dict = {}
74397460 if hasattr(self, 'completion_time') and getattr(self, 'completion_time') is not None:
74407461 _dict['completion_time'] = getattr(self, 'completion_time')
7462+ if hasattr(self, 'git_branch_name') and getattr(self, 'git_branch_name') is not None:
7463+ _dict['git_branch_name'] = getattr(self, 'git_branch_name')
7464+ if hasattr(self, 'git_commit_author') and getattr(self, 'git_commit_author') is not None:
7465+ _dict['git_commit_author'] = getattr(self, 'git_commit_author')
7466+ if hasattr(self, 'git_commit_sha') and getattr(self, 'git_commit_sha') is not None:
7467+ _dict['git_commit_sha'] = getattr(self, 'git_commit_sha')
74417468 if hasattr(self, 'output_digest') and getattr(self, 'output_digest') is not None:
74427469 _dict['output_digest'] = getattr(self, 'output_digest')
74437470 if hasattr(self, 'reason') and getattr(self, 'reason') is not None:
74447471 _dict['reason'] = getattr(self, 'reason')
7472+ if hasattr(self, 'source_timestamp') and getattr(self, 'source_timestamp') is not None:
7473+ _dict['source_timestamp'] = getattr(self, 'source_timestamp')
74457474 if hasattr(self, 'start_time') and getattr(self, 'start_time') is not None:
74467475 _dict['start_time'] = getattr(self, 'start_time')
74477476 return _dict
0 commit comments