GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.75k stars 2.82k forks source link

feat(batch): add Batch labels job sample #9414

Closed TetyanaYahodska closed 1 month ago

TetyanaYahodska commented 1 month ago

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

snippet-bot[bot] commented 1 month ago

Here is the summary of changes.

You are about to add 1 region tag. - [batch/snippets/src/main/java/com/example/batch/CreateBatchLabelJob.java:17](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/da098d4b1c72531005b83fe9fdba90682f7f6b48/batch/snippets/src/main/java/com/example/batch/CreateBatchLabelJob.java#L17), tag `batch_labels_job`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

Sita04 commented 1 month ago

@TetyanaYahodska What's the difference between this sample and the one in https://github.com/GoogleCloudPlatform/java-docs-samples/pull/9415?

TetyanaYahodska commented 1 month ago

@Sita04 This example demonstrates how to apply labels to a Job and #9415 do the same for a Runnable. We have three cases in the documentation https://cloud.google.com/batch/docs/organize-resources-using-labels#gcloud_1 and so three samples are created.

Sita04 commented 1 month ago

Please follow https://www.conventionalcommits.org/en/v1.0.0/ for PR naming.