Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preserve links with hyphens
Browse files Browse the repository at this point in the history
parthea committed Jan 20, 2022
1 parent feb7b4f commit fff337f
Showing 9 changed files with 21 additions and 20 deletions.
2 changes: 2 additions & 0 deletions gapic/utils/lines.py
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@ def wrap(text: str, width: int, *, offset: int = None, indent: int = 0) -> str:
initial = textwrap.wrap(first,
break_long_words=False,
width=width - offset,
break_on_hyphens=False,
)
# Strip the first \n from the text so it is not misidentified as an
# intentionally short line below.
@@ -113,5 +114,6 @@ def wrap(text: str, width: int, *, offset: int = None, indent: int = 0) -> str:
subsequent_indent=' ' * indent,
text=token,
width=width,
break_on_hyphens=False,
) for token in tokens]),
).rstrip('\n')
Original file line number Diff line number Diff line change
@@ -48,8 +48,8 @@ class IAMCredentialsAsyncClient:
Service account credentials are used to temporarily assume the
identity of the service account. Supported credential types
include OAuth 2.0 access tokens, OpenID Connect ID tokens, self-
signed JSON Web Tokens (JWTs), and more.
include OAuth 2.0 access tokens, OpenID Connect ID tokens,
self-signed JSON Web Tokens (JWTs), and more.
"""

_client: IAMCredentialsClient
Original file line number Diff line number Diff line change
@@ -83,8 +83,8 @@ class IAMCredentialsClient(metaclass=IAMCredentialsClientMeta):
Service account credentials are used to temporarily assume the
identity of the service account. Supported credential types
include OAuth 2.0 access tokens, OpenID Connect ID tokens, self-
signed JSON Web Tokens (JWTs), and more.
include OAuth 2.0 access tokens, OpenID Connect ID tokens,
self-signed JSON Web Tokens (JWTs), and more.
"""

@staticmethod
Original file line number Diff line number Diff line change
@@ -39,8 +39,8 @@ class IAMCredentialsGrpcTransport(IAMCredentialsTransport):
Service account credentials are used to temporarily assume the
identity of the service account. Supported credential types
include OAuth 2.0 access tokens, OpenID Connect ID tokens, self-
signed JSON Web Tokens (JWTs), and more.
include OAuth 2.0 access tokens, OpenID Connect ID tokens,
self-signed JSON Web Tokens (JWTs), and more.
This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Original file line number Diff line number Diff line change
@@ -40,8 +40,8 @@ class IAMCredentialsGrpcAsyncIOTransport(IAMCredentialsTransport):
Service account credentials are used to temporarily assume the
identity of the service account. Supported credential types
include OAuth 2.0 access tokens, OpenID Connect ID tokens, self-
signed JSON Web Tokens (JWTs), and more.
include OAuth 2.0 access tokens, OpenID Connect ID tokens,
self-signed JSON Web Tokens (JWTs), and more.
This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Original file line number Diff line number Diff line change
@@ -2418,8 +2418,8 @@ def sample_get_cmek_settings():
The request object. The parameters to
[GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
See [Enabling CMEK for Logs
Router](https://cloud.google.com/logging/docs/routing/managed-
encryption) for more information.
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
for more information.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
@@ -2520,8 +2520,8 @@ def sample_update_cmek_settings():
The request object. The parameters to
[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
See [Enabling CMEK for Logs
Router](https://cloud.google.com/logging/docs/routing/managed-
encryption) for more information.
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
for more information.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Original file line number Diff line number Diff line change
@@ -2616,8 +2616,8 @@ def sample_get_cmek_settings():
The request object. The parameters to
[GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
See [Enabling CMEK for Logs
Router](https://cloud.google.com/logging/docs/routing/managed-
encryption) for more information.
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
for more information.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
@@ -2720,8 +2720,8 @@ def sample_update_cmek_settings():
The request object. The parameters to
[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
See [Enabling CMEK for Logs
Router](https://cloud.google.com/logging/docs/routing/managed-
encryption) for more information.
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
for more information.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
Original file line number Diff line number Diff line change
@@ -144,8 +144,7 @@ class LogView(proto.Message):
name (str):
The resource name of the view.
For example
"projects/my-project-id/locations/my-
location/buckets/my-bucket-id/views/my-view
"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
description (str):
Describes this view.
create_time (google.protobuf.timestamp_pb2.Timestamp):
Original file line number Diff line number Diff line change
@@ -95,8 +95,8 @@ class Instance(proto.Message):
addresses that are reserved for this instance.
If not provided, the service will choose an
unused /29 block, for example, 10.0.0.0/29 or
192.168.0.0/29. Ranges must be unique and non-
overlapping with existing subnets in an
192.168.0.0/29. Ranges must be unique and
non-overlapping with existing subnets in an
authorized network.
host (str):
Output only. Hostname or IP address of the

0 comments on commit fff337f

Please sign in to comment.