Skip to content

Commit dd04e8f

Browse files
docs: [google-cloud-scheduler] correct timezone/offset information for Cloud Scheduler headers (#12007)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 580635787 Source-Link: googleapis/googleapis@72f1796 Source-Link: googleapis/googleapis-gen@0aa0f8d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNjaGVkdWxlci8uT3dsQm90LnlhbWwiLCJoIjoiMGFhMGY4ZDA1NjQ1NDhhNzIzMzVkNzE4MzYxZjM1N2ZjYjczZGJlOCJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Victor Chudnovsky <vchudnov@google.com>
1 parent e8a00c4 commit dd04e8f

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

packages/google-cloud-scheduler/google/cloud/scheduler_v1/types/target.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class HttpTarget(proto.Message):
117117
the job name.
118118
- ``X-CloudScheduler-ScheduleTime``: For Cloud Scheduler
119119
jobs specified in the unix-cron format, this header will
120-
contain the job schedule time in RFC3339 UTC "Zulu"
121-
format.
120+
contain the job schedule as an offset of UTC parsed
121+
according to RFC3339.
122122
123123
The total size of headers must be less than 80KB.
124124
body (bytes):
@@ -226,8 +226,8 @@ class AppEngineHttpTarget(proto.Message):
226226
the job name.
227227
- ``X-CloudScheduler-ScheduleTime``: For Cloud Scheduler
228228
jobs specified in the unix-cron format, this header will
229-
contain the job schedule time in RFC3339 UTC "Zulu"
230-
format.
229+
contain the job schedule as an offset of UTC parsed
230+
according to RFC3339.
231231
232232
If the job has an
233233
[body][google.cloud.scheduler.v1.AppEngineHttpTarget.body],

packages/google-cloud-scheduler/google/cloud/scheduler_v1beta1/types/target.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ class HttpTarget(proto.Message):
118118
the job name.
119119
- ``X-CloudScheduler-ScheduleTime``: For Cloud Scheduler
120120
jobs specified in the unix-cron format, this header will
121-
contain the job schedule time in RFC3339 UTC "Zulu"
122-
format.
121+
contain the job schedule as an offset of UTC parsed
122+
according to RFC3339.
123123
124124
The total size of headers must be less than 80KB.
125125
body (bytes):
@@ -227,8 +227,8 @@ class AppEngineHttpTarget(proto.Message):
227227
the job name.
228228
- ``X-CloudScheduler-ScheduleTime``: For Cloud Scheduler
229229
jobs specified in the unix-cron format, this header will
230-
contain the job schedule time in RFC3339 UTC "Zulu"
231-
format.
230+
contain the job schedule as an offset of UTC parsed
231+
according to RFC3339.
232232
233233
If the job has an
234234
[body][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body],

packages/google-cloud-scheduler/noxfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929

3030
BLACK_VERSION = "black[jupyter]==23.7.0"
3131
ISORT_VERSION = "isort==5.11.0"
32+
3233
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
3334

35+
3436
DEFAULT_PYTHON_VERSION = "3.10"
3537

3638
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"]
@@ -89,6 +91,7 @@ def lint(session):
8991
"--check",
9092
*LINT_PATHS,
9193
)
94+
9295
session.run("flake8", "google", "tests")
9396

9497

0 commit comments

Comments
 (0)