Skip to content

Commit

Permalink
chore!: promote AiPlatform to v1
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Jun 10, 2024
1 parent e583f71 commit 6f7c2be
Show file tree
Hide file tree
Showing 895 changed files with 8,944 additions and 91,668 deletions.
2 changes: 1 addition & 1 deletion .repo-metadata-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"AiPlatform": {
"language": "php",
"distribution_name": "google/cloud-ai-platform",
"release_level": "preview",
"release_level": "stable",
"client_documentation": "https://cloud.google.com/php/docs/reference/cloud-ai-platform/latest",
"library_type": "GAPIC_AUTO",
"api_shortname": "aiplatform"
Expand Down
4 changes: 2 additions & 2 deletions AiPlatform/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
deep-copy-regex:
- source: /google/cloud/aiplatform/v1/.*-php/(.*)
dest: /owl-bot-staging/AiPlatform/v1/$1
- source: /google/cloud/aiplatform/(v1)/.*-php/(.*)
dest: /owl-bot-staging/AiPlatform/$1/$2
api-name: AiPlatform
5 changes: 2 additions & 3 deletions AiPlatform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ on authenticating your client. Once authenticated, you'll be ready to start maki

### Version

This component is considered beta. As such, it should be expected to be mostly
stable and we're working towards a release candidate. We will address issues
and requests with a higher priority.
This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in
any minor or patch releases. We will address issues and requests with the highest priority.

### Next Steps

Expand Down
34 changes: 4 additions & 30 deletions AiPlatform/owlbot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,7 +34,7 @@
src=src,
dest=dest,
copy_excludes=[
src / "**/[A-Z]*_*.php"
src / "**/[A-Z]*_*.php",
]
)

Expand All @@ -47,32 +47,6 @@
+ "\n",
'')

### [START] protoc backwards compatibility fixes

# roll back to private properties.
s.replace(
"src/**/V*/**/*.php",
r"Generated from protobuf field ([^\n]{0,})\n\s{5}\*/\n\s{4}protected \$",
r"""Generated from protobuf field \1
*/
private $""")

# Replace "Unwrapped" with "Value" for method names.
s.replace(
"src/**/V*/**/*.php",
r"public function ([s|g]\w{3,})Unwrapped",
r"public function \1Value"
)

### [END] protoc backwards compatibility fixes

# fix relative cloud.google.com links
s.replace(
"src/**/V*/**/*.php",
r"(.{0,})\]\((/.{0,})\)",
r"\1](https://cloud.google.com\2)"
)

# format generated clients
subprocess.run([
'npm',
Expand All @@ -81,8 +55,8 @@
'--package=@prettier/plugin-php@^0.16',
'--',
'prettier',
'**/Gapic/*',
'**/Client/*',
'--write',
'--parser=php',
'--single-quote',
'--print-width=80'])
'--print-width=120'])
4 changes: 2 additions & 2 deletions AiPlatform/src/V1/ActiveLearningConfig.php

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

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

2 changes: 1 addition & 1 deletion AiPlatform/src/V1/AddContextChildrenRequest.php

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

2 changes: 1 addition & 1 deletion AiPlatform/src/V1/AddExecutionEventsRequest.php

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

4 changes: 2 additions & 2 deletions AiPlatform/src/V1/AddTrialMeasurementRequest.php

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

14 changes: 7 additions & 7 deletions AiPlatform/src/V1/Annotation.php

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

10 changes: 5 additions & 5 deletions AiPlatform/src/V1/AnnotationSpec.php

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

22 changes: 11 additions & 11 deletions AiPlatform/src/V1/Artifact.php

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

4 changes: 2 additions & 2 deletions AiPlatform/src/V1/AssignNotebookRuntimeOperationMetadata.php

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

8 changes: 4 additions & 4 deletions AiPlatform/src/V1/AssignNotebookRuntimeRequest.php

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

Loading

0 comments on commit 6f7c2be

Please sign in to comment.