Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified OsLogin/metadata/Common/Common.php
Binary file not shown.
51 changes: 1 addition & 50 deletions OsLogin/metadata/V1/Oslogin.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions OsLogin/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"""This script is used to synthesize generated parts of this library."""

import logging
import shutil
from pathlib import Path
import subprocess

Expand All @@ -30,6 +31,23 @@
# Added so that we can pass copy_excludes in the owlbot_main() call
_tracked_paths.add(src)

# 1. Handle common protos if staged separately (Librarian pipeline)
if (src / "common-protos").exists():
php.owlbot_copy_version(
src=src / "common-protos",
dest=dest,
version_string="common",
)
# 2. Handle common protos bundled inside v1 staging (Legacy OwlBot pipeline)
proto_common = src / "v1/proto/src/Google/Cloud/OsLogin/Common"
metadata_common = src / "v1/proto/src/GPBMetadata/Google/Cloud/Oslogin/Common"
if proto_common.exists():
s.move([proto_common], dest / "src/Common", merge=php._merge)
shutil.rmtree(proto_common)
if metadata_common.exists():
s.move([metadata_common], dest / "metadata/Common", merge=php._merge)
shutil.rmtree(metadata_common)
# 3. Copy V1 protos and GAPIC files
php.owlbot_main(src=src, dest=dest)

# format generated clients
Expand Down
2 changes: 1 addition & 1 deletion OsLogin/src/Common/PosixAccount.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions OsLogin/src/Common/SshPublicKey.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OsLogin/src/V1/CreateSshPublicKeyRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OsLogin/src/V1/DeletePosixAccountRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OsLogin/src/V1/DeleteSshPublicKeyRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OsLogin/src/V1/GetLoginProfileRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OsLogin/src/V1/GetSshPublicKeyRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions OsLogin/src/V1/ImportSshPublicKeyRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OsLogin/src/V1/ImportSshPublicKeyResponse.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions OsLogin/src/V1/LoginProfile.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion OsLogin/src/V1/UpdateSshPublicKeyRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading