Skip to content

Commit

Permalink
chore!: create V2 release candidates for some components (#7655)
Browse files Browse the repository at this point in the history
* chore!: promote AutoMl to v2

* chore!: promote BigQueryDataTransfer to v2

* chore!: promote Dataproc to v2

* chore!: promote Dlp to v2

* chore!: promote DocumentAi to v2

* chore!: promote Functions to v2

* chore!: promote Iot to v2

* chore!: promote Kms to v2

* chore!: promote OsConfig to v2

* chore!: promote Retail to v2

* chore!: promote Scheduler to v2

* chore!: promote StorageTransfer to v2

* chore!: promote Talent to v2

* chore!: promote VideoIntelligence to v2

* chore!: promote WebRisk to v2

* fix tests
  • Loading branch information
bshaffer authored Sep 7, 2024
1 parent db29d73 commit 8ba73f6
Show file tree
Hide file tree
Showing 245 changed files with 1,550 additions and 16,966 deletions.
4 changes: 2 additions & 2 deletions .OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
deep-copy-regex:
- source: /google/cloud/dataproc/v1/.*-php/(.*)
dest: /owl-bot-staging/Dataproc/v1/$1
- source: /google/cloud/dataproc/(v1)/.*-php/(.*)
dest: /owl-bot-staging/Dataproc/$1/$2
api-name: Dataproc
51 changes: 22 additions & 29 deletions owlbot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018 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 @@ -32,32 +32,25 @@

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.
# remove class_alias code
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)"
)

# Address breaking changes
subprocess.run('git show bcc6324bb12b976fd6516bee9657cb5d87744233 | git apply', shell=True)
"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([
'npm',
'exec',
'--yes',
'--package=@prettier/plugin-php@^0.16',
'--',
'prettier',
'**/Client/*',
'--write',
'--parser=php',
'--single-quote',
'--print-width=120'])
4 changes: 2 additions & 2 deletions src/V1/AcceleratorConfig.php

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

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

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

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

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

34 changes: 0 additions & 34 deletions src/V1/AutoscalingPolicyServiceClient.php

This file was deleted.

115 changes: 0 additions & 115 deletions src/V1/AutoscalingPolicyServiceGrpcClient.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/V1/AutotuningConfig/Scenario.php

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

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

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

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

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

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

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

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

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

Loading

0 comments on commit 8ba73f6

Please sign in to comment.