Skip to content

Commit

Permalink
chore!: promote BigQueryDataExchange to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 17, 2024
1 parent 70dd30d commit 6f0b19d
Show file tree
Hide file tree
Showing 36 changed files with 343 additions and 3,530 deletions.
4 changes: 2 additions & 2 deletions .repo-metadata-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
"BigQueryDataExchange": {
"language": "php",
"distribution_name": "google/cloud-bigquery-data-exchange",
"release_level": "preview",
"release_level": "stable",
"client_documentation": "https://cloud.google.com/php/docs/reference/cloud-bigquery-data-exchange/latest",
"library_type": "GAPIC_AUTO",
"api_shortname": "analyticshub"
Expand Down Expand Up @@ -1599,4 +1599,4 @@
"library_type": "GAPIC_AUTO",
"api_shortname": "workflows"
}
}
}
4 changes: 2 additions & 2 deletions BigQueryDataExchange/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
deep-copy-regex:
- source: /google/cloud/bigquery/dataexchange/v1beta1/.*-php/(.*)
dest: /owl-bot-staging/BigQueryDataExchange/v1beta1/$1
- source: /google/cloud/bigquery/dataexchange/(v1beta1)/.*-php/(.*)
dest: /owl-bot-staging/BigQueryDataExchange/$1/$2
api-name: BigQueryDataExchange
5 changes: 2 additions & 3 deletions BigQueryDataExchange/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ for more information about the debugging tools.

### 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
24 changes: 0 additions & 24 deletions BigQueryDataExchange/metadata/Common/Common.php

This file was deleted.

46 changes: 11 additions & 35 deletions BigQueryDataExchange/owlbot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2024 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 @@ -30,40 +30,16 @@
# Added so that we can pass copy_excludes in the owlbot_main() call
_tracked_paths.add(src)

php.owlbot_main(
src=src,
dest=dest,
copy_excludes=[
src / "**/[A-Z]*_*.php"
]
)
php.owlbot_main(src=src, dest=dest)


### [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
# remove class_alias code
s.replace(
"src/**/V*/**/*.php",
r"(.{0,})\]\((/.{0,})\)",
r"\1](https://cloud.google.com\2)"
)
"src/V*/**/*.php",
r"^// Adding a class alias for backwards compatibility with the previous class name.$"
+ "\n"
+ r"^class_alias\(.*\);$"
+ "\n",
'')

# format generated clients
subprocess.run([
Expand All @@ -73,8 +49,8 @@
'--package=@prettier/plugin-php@^0.16',
'--',
'prettier',
'**/Gapic/*',
'**/Client/*',
'--write',
'--parser=php',
'--single-quote',
'--print-width=80'])
'--print-width=120'])
140 changes: 0 additions & 140 deletions BigQueryDataExchange/src/Common/Category.php

This file was deleted.

36 changes: 0 additions & 36 deletions BigQueryDataExchange/src/V1beta1/AnalyticsHubServiceClient.php

This file was deleted.

Loading

0 comments on commit 6f0b19d

Please sign in to comment.