Skip to content

Commit

Permalink
chore!: promote Workflows to stable and drop V1beta1 (#7543)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Jul 24, 2024
1 parent ca34177 commit f02dc1c
Show file tree
Hide file tree
Showing 48 changed files with 36 additions and 6,004 deletions.
4 changes: 2 additions & 2 deletions Workflows/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
deep-copy-regex:
- source: /google/cloud/workflows/(v1|v1beta)/.*-php/(.*)
- source: /google/cloud/workflows/(v1)/.*-php/(.*)
dest: /owl-bot-staging/Workflows/$1/$2
- source: /google/cloud/workflows/executions/(v1|v1beta)/.*-php/(.*)
- source: /google/cloud/workflows/executions/(v1)/.*-php/(.*)
dest: /owl-bot-staging/Workflows/Executions/$1/$2
api-name: Workflows
Binary file removed Workflows/metadata/Executions/V1Beta/Executions.php
Binary file not shown.
Binary file removed Workflows/metadata/V1Beta/Workflows.php
Binary file not shown.
55 changes: 27 additions & 28 deletions Workflows/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,33 @@
]
)

for version in ['v1', 'v1beta']:
executions_library = Path(f"../{php.STAGING_DIR}/Workflows/Executions/{version}").resolve()

# copy all src including partial veneer classes
s.move(
executions_library / 'src',
'src/Executions',
merge=preserve_copyright_year,
)
# copy proto files to src also
s.move(
executions_library / 'proto/src/Google/Cloud/Workflows',
'src/',
merge=preserve_copyright_year,
excludes=[
executions_library / "**/*_*.php"
]
)
s.move(
executions_library / 'tests/Unit',
'tests/Unit/Executions',
merge=preserve_copyright_year,
)
# copy GPBMetadata file to metadata
s.move(executions_library / 'proto/src/GPBMetadata/Google/Cloud/Workflows',
'metadata/',
merge=preserve_copyright_year,
)
executions_library = Path(f"../{php.STAGING_DIR}/Workflows/Executions/v1").resolve()

# copy all src including partial veneer classes
s.move(
executions_library / 'src',
'src/Executions',
merge=preserve_copyright_year,
)
# copy proto files to src also
s.move(
executions_library / 'proto/src/Google/Cloud/Workflows',
'src/',
merge=preserve_copyright_year,
excludes=[
executions_library / "**/*_*.php"
]
)
s.move(
executions_library / 'tests/Unit',
'tests/Unit/Executions',
merge=preserve_copyright_year,
)
# copy GPBMetadata file to metadata
s.move(executions_library / 'proto/src/GPBMetadata/Google/Cloud/Workflows',
'metadata/',
merge=preserve_copyright_year,
)

# remove class_alias code
s.replace(
Expand Down
2 changes: 1 addition & 1 deletion Workflows/samples/V1/WorkflowsClient/create_workflow.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 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
2 changes: 1 addition & 1 deletion Workflows/samples/V1/WorkflowsClient/delete_workflow.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 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
2 changes: 1 addition & 1 deletion Workflows/samples/V1/WorkflowsClient/get_location.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 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
2 changes: 1 addition & 1 deletion Workflows/samples/V1/WorkflowsClient/get_workflow.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 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
2 changes: 1 addition & 1 deletion Workflows/samples/V1/WorkflowsClient/list_locations.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 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
2 changes: 1 addition & 1 deletion Workflows/samples/V1/WorkflowsClient/list_workflows.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 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
2 changes: 1 addition & 1 deletion Workflows/samples/V1/WorkflowsClient/update_workflow.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright 2023 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
93 changes: 0 additions & 93 deletions Workflows/samples/V1beta/WorkflowsClient/create_workflow.php

This file was deleted.

78 changes: 0 additions & 78 deletions Workflows/samples/V1beta/WorkflowsClient/delete_workflow.php

This file was deleted.

67 changes: 0 additions & 67 deletions Workflows/samples/V1beta/WorkflowsClient/get_workflow.php

This file was deleted.

Loading

0 comments on commit f02dc1c

Please sign in to comment.