Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.65.1 (#214)
Browse files Browse the repository at this point in the history
* chore: use gapic-generator-python 0.65.1

PiperOrigin-RevId: 441524537

Source-Link: googleapis/googleapis@2a27391

Source-Link: googleapis/googleapis-gen@ab6756a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 14, 2022
1 parent 4a2e2cc commit 8703f60
Show file tree
Hide file tree
Showing 15 changed files with 559 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -214,7 +214,6 @@ async def list_traces(
r"""Returns of a list of traces that match the specified
filter conditions.
.. code-block:: python
from google.cloud import trace_v1
Expand Down Expand Up @@ -445,7 +444,6 @@ async def patch_traces(
with the existing trace data. If the ID does not match,
a new trace is created.
.. code-block:: python
from google.cloud import trace_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -420,7 +420,6 @@ def list_traces(
r"""Returns of a list of traces that match the specified
filter conditions.
.. code-block:: python
from google.cloud import trace_v1
Expand Down Expand Up @@ -631,7 +630,6 @@ def patch_traces(
with the existing trace data. If the ID does not match,
a new trace is created.
.. code-block:: python
from google.cloud import trace_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -204,5 +205,9 @@ def patch_traces(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("TraceServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -317,5 +317,9 @@ def patch_traces(self) -> Callable[[trace.PatchTracesRequest], empty_pb2.Empty]:
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("TraceServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class TraceSpan(proto.Message):
UNIX epoch.
parent_span_id (int):
Optional. ID of the parent span, if any.
labels (Sequence[google.cloud.trace_v1.types.TraceSpan.LabelsEntry]):
labels (Mapping[str, str]):
Collection of labels associated with the span. Label keys
must be less than 128 bytes. Label values must be less than
16 kilobytes (10MB for ``/stacktrace`` values).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -220,7 +220,6 @@ async def batch_write_spans(
r"""Sends new spans to new or existing traces. You cannot
update existing spans.
.. code-block:: python
from google.cloud import trace_v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -446,7 +446,6 @@ def batch_write_spans(
r"""Sends new spans to new or existing traces. You cannot
update existing spans.
.. code-block:: python
from google.cloud import trace_v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -171,5 +172,9 @@ def create_span(
) -> Callable[[trace.Span], Union[trace.Span, Awaitable[trace.Span]]]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("TraceServiceTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,9 @@ def create_span(self) -> Callable[[trace.Span], trace.Span]:
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("TraceServiceGrpcTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
StackTrace,
TruncatableString,
)
from .tracing import BatchWriteSpansRequest
from .tracing import (
BatchWriteSpansRequest,
)

__all__ = (
"AttributeValue",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class Attributes(proto.Message):
r"""A set of attributes, each in the format ``[KEY]:[VALUE]``.
Attributes:
attribute_map (Sequence[google.cloud.trace_v2.types.Span.Attributes.AttributeMapEntry]):
attribute_map (Mapping[str, google.cloud.trace_v2.types.AttributeValue]):
The set of attributes. Each attribute's key can be up to 128
bytes long. The value can be a string up to 256 bytes, a
signed 64-bit integer, or the Boolean values ``true`` and
Expand Down
Loading

0 comments on commit 8703f60

Please sign in to comment.