diff --git a/google/cloud/tasks_v2/types/target.py b/google/cloud/tasks_v2/types/target.py index c1e1858c..97da420b 100644 --- a/google/cloud/tasks_v2/types/target.py +++ b/google/cloud/tasks_v2/types/target.py @@ -120,8 +120,8 @@ class HttpRequest(proto.Message): [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url]. - Content-Length: This will be computed by Cloud Tasks. - User-Agent: This will be set to ``"Google-Cloud-Tasks"``. - - X-Google-\*: Google use only. - - X-AppEngine-\*: Google use only. + - ``X-Google-*``: Google use only. + - ``X-AppEngine-*``: Google use only. ``Content-Type`` won't be set by Cloud Tasks. You can explicitly set ``Content-Type`` to a media type when the @@ -303,8 +303,8 @@ class AppEngineHttpRequest(proto.Message): The headers below cannot be set or overridden: - ``Host`` - - ``X-Google-\*`` - - ``X-AppEngine-\*`` + - ``X-Google-*`` + - ``X-AppEngine-*`` In addition, Cloud Tasks sets some headers when the task is dispatched, such as headers containing information about the diff --git a/google/cloud/tasks_v2beta2/types/target.py b/google/cloud/tasks_v2beta2/types/target.py index 5d61df4d..37be027f 100644 --- a/google/cloud/tasks_v2beta2/types/target.py +++ b/google/cloud/tasks_v2beta2/types/target.py @@ -251,8 +251,8 @@ class AppEngineHttpRequest(proto.Message): The headers below cannot be set or overridden: - ``Host`` - - ``X-Google-\*`` - - ``X-AppEngine-\*`` + - ``X-Google-*`` + - ``X-AppEngine-*`` In addition, Cloud Tasks sets some headers when the task is dispatched, such as headers containing information about the diff --git a/google/cloud/tasks_v2beta3/types/target.py b/google/cloud/tasks_v2beta3/types/target.py index 9f0e5e44..36dbb3c1 100644 --- a/google/cloud/tasks_v2beta3/types/target.py +++ b/google/cloud/tasks_v2beta3/types/target.py @@ -154,8 +154,8 @@ class HttpRequest(proto.Message): [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url]. - Content-Length: This will be computed by Cloud Tasks. - User-Agent: This will be set to ``"Google-Cloud-Tasks"``. - - X-Google-\*: Google use only. - - X-AppEngine-\*: Google use only. + - ``X-Google-*``: Google use only. + - ``X-AppEngine-*``: Google use only. ``Content-Type`` won't be set by Cloud Tasks. You can explicitly set ``Content-Type`` to a media type when the @@ -373,8 +373,8 @@ class AppEngineHttpRequest(proto.Message): The headers below cannot be set or overridden: - ``Host`` - - ``X-Google-\*`` - - ``X-AppEngine-\*`` + - ``X-Google-*`` + - ``X-AppEngine-*`` In addition, Cloud Tasks sets some headers when the task is dispatched, such as headers containing information about the diff --git a/owlbot.py b/owlbot.py index b85eed05..669f3985 100644 --- a/owlbot.py +++ b/owlbot.py @@ -26,23 +26,6 @@ default_version = "v2" for library in s.get_staging_dirs(default_version): - # Fix docstring. - s.replace(library / "google/cloud/*/types/target.py", "X-Google-\*", "X-Google-\\*") - s.replace(library / "google/cloud/*/types/target.py", "X-AppEngine-\*", "X-AppEngine-\\*") - - # Comment out broken assertion in unit test - # https://github.com/googleapis/gapic-generator-python/issues/897 - s.replace( - library / "tests/**/test_cloud_tasks.py", - "assert args\[0\]\.lease_duration == duration_pb2\.Duration\(seconds=751\)", - "# assert args[0].lease_duration == duration_pb2.Duration(seconds=751)" - ) - s.replace( - library / "tests/**/test_cloud_tasks.py", - "assert args\[0\].schedule_time == timestamp_pb2\.Timestamp\(seconds=751\)", - "# assert args[0].schedule_time == timestamp_pb2.Timestamp(seconds=751)" - ) - excludes = ["README.rst", "setup.py", "nox*.py", "docs/index.rst", "*.tar.gz"] s.copy(library, excludes=excludes)