Skip to content

Commit

Permalink
Add v1.62.0 support
Browse files Browse the repository at this point in the history
* Add v1.62.0 support
  • Loading branch information
henribru authored Jan 28, 2024
1 parent 80cd6f9 commit 1051288
Show file tree
Hide file tree
Showing 64 changed files with 2,731 additions and 378 deletions.
1 change: 1 addition & 0 deletions google-stubs/api/annotations_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import builtins
import google.api.http_pb2
import google.protobuf.descriptor
Expand Down
29 changes: 21 additions & 8 deletions google-stubs/api/auth_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
Copyright 2015 Google LLC
Copyright 2023 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import builtins
import collections.abc
import google.protobuf.descriptor
Expand Down Expand Up @@ -65,13 +66,15 @@ class Authentication(google.protobuf.message.Message):
**NOTE:** All service configuration rules follow "last one wins" order.
"""

@property
def providers(
self,
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
global___AuthProvider
]:
"""Defines a set of authentication providers that a service supports."""

def __init__(
self,
*,
Expand Down Expand Up @@ -109,7 +112,8 @@ class AuthenticationRule(google.protobuf.message.Message):
selector: builtins.str
"""Selects the methods to which this rule applies.
Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
Refer to [selector][google.api.DocumentationRule.selector] for syntax
details.
"""
@property
def oauth(self) -> global___OAuthRequirements:
Expand All @@ -125,6 +129,7 @@ class AuthenticationRule(google.protobuf.message.Message):
global___AuthRequirement
]:
"""Requirements for additional authentication providers."""

def __init__(
self,
*,
Expand Down Expand Up @@ -160,11 +165,14 @@ class JwtLocation(google.protobuf.message.Message):

HEADER_FIELD_NUMBER: builtins.int
QUERY_FIELD_NUMBER: builtins.int
COOKIE_FIELD_NUMBER: builtins.int
VALUE_PREFIX_FIELD_NUMBER: builtins.int
header: builtins.str
"""Specifies HTTP header name to extract JWT token."""
query: builtins.str
"""Specifies URL query parameter name to extract JWT token."""
cookie: builtins.str
"""Specifies cookie name to extract JWT token."""
value_prefix: builtins.str
"""The value prefix. The value format is "value_prefix{token}"
Only applies to "in" header type. Must be empty for "in" query type.
Expand All @@ -180,17 +188,20 @@ class JwtLocation(google.protobuf.message.Message):
*,
header: builtins.str = ...,
query: builtins.str = ...,
cookie: builtins.str = ...,
value_prefix: builtins.str = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal[
"header", b"header", "in", b"in", "query", b"query"
"cookie", b"cookie", "header", b"header", "in", b"in", "query", b"query"
],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"cookie",
b"cookie",
"header",
b"header",
"in",
Expand All @@ -203,7 +214,7 @@ class JwtLocation(google.protobuf.message.Message):
) -> None: ...
def WhichOneof(
self, oneof_group: typing_extensions.Literal["in", b"in"]
) -> typing_extensions.Literal["header", "query"] | None: ...
) -> typing_extensions.Literal["header", "query", "cookie"] | None: ...

global___JwtLocation = JwtLocation

Expand Down Expand Up @@ -279,11 +290,12 @@ class AuthProvider(google.protobuf.message.Message):
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
global___JwtLocation
]:
"""Defines the locations to extract the JWT.
"""Defines the locations to extract the JWT. For now it is only used by the
Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
(https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
JWT locations can be either from HTTP headers or URL query parameters.
The rule is that the first match wins. The checking order is: checking
all headers first, then URL query parameters.
JWT locations can be one of HTTP headers, URL query parameters or
cookies. The rule is that the first match wins.
If not specified, default to use following 3 locations:
1) Authorization: Bearer
Expand All @@ -297,6 +309,7 @@ class AuthProvider(google.protobuf.message.Message):
- header: x-goog-iap-jwt-assertion
- query: access_token
"""

def __init__(
self,
*,
Expand Down
50 changes: 44 additions & 6 deletions google-stubs/api/backend_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
Copyright 2015 Google LLC
Copyright 2023 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import builtins
import collections.abc
import google.protobuf.descriptor
Expand Down Expand Up @@ -48,6 +49,7 @@ class Backend(google.protobuf.message.Message):
**NOTE:** All service configuration rules follow "last one wins" order.
"""

def __init__(
self,
*,
Expand All @@ -74,7 +76,7 @@ class BackendRule(google.protobuf.message.Message):
BackendRule._PathTranslation.ValueType
],
builtins.type,
): # noqa: F821
):
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
PATH_TRANSLATION_UNSPECIFIED: BackendRule._PathTranslation.ValueType # 0
CONSTANT_ADDRESS: BackendRule._PathTranslation.ValueType # 1
Expand Down Expand Up @@ -182,6 +184,29 @@ class BackendRule(google.protobuf.message.Message):
https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
"""

@typing_extensions.final
class OverridesByRequestProtocolEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

KEY_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
key: builtins.str
@property
def value(self) -> global___BackendRule: ...
def __init__(
self,
*,
key: builtins.str = ...,
value: global___BackendRule | None = ...,
) -> None: ...
def HasField(
self, field_name: typing_extensions.Literal["value", b"value"]
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal["key", b"key", "value", b"value"],
) -> None: ...

SELECTOR_FIELD_NUMBER: builtins.int
ADDRESS_FIELD_NUMBER: builtins.int
DEADLINE_FIELD_NUMBER: builtins.int
Expand All @@ -191,10 +216,12 @@ class BackendRule(google.protobuf.message.Message):
JWT_AUDIENCE_FIELD_NUMBER: builtins.int
DISABLE_AUTH_FIELD_NUMBER: builtins.int
PROTOCOL_FIELD_NUMBER: builtins.int
OVERRIDES_BY_REQUEST_PROTOCOL_FIELD_NUMBER: builtins.int
selector: builtins.str
"""Selects the methods to which this rule applies.
Refer to [selector][google.api.DocumentationRule.selector] for syntax details.
Refer to [selector][google.api.DocumentationRule.selector] for syntax
details.
"""
address: builtins.str
"""The address of the API backend.
Expand Down Expand Up @@ -223,9 +250,7 @@ class BackendRule(google.protobuf.message.Message):
varies based on the request protocol and deployment environment.
"""
min_deadline: builtins.float
"""Minimum deadline in seconds needed for this method. Calls having deadline
value lower than this will be rejected.
"""
"""Deprecated, do not use."""
operation_deadline: builtins.float
"""The number of seconds to wait for the completion of a long running
operation. The default is no deadline.
Expand Down Expand Up @@ -265,6 +290,14 @@ class BackendRule(google.protobuf.message.Message):
https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
for more details on the supported values.
"""
@property
def overrides_by_request_protocol(
self,
) -> google.protobuf.internal.containers.MessageMap[
builtins.str, global___BackendRule
]:
"""The map between request protocol and the backend address."""

def __init__(
self,
*,
Expand All @@ -277,6 +310,9 @@ class BackendRule(google.protobuf.message.Message):
jwt_audience: builtins.str = ...,
disable_auth: builtins.bool = ...,
protocol: builtins.str = ...,
overrides_by_request_protocol: (
collections.abc.Mapping[builtins.str, global___BackendRule] | None
) = ...,
) -> None: ...
def HasField(
self,
Expand Down Expand Up @@ -306,6 +342,8 @@ class BackendRule(google.protobuf.message.Message):
b"min_deadline",
"operation_deadline",
b"operation_deadline",
"overrides_by_request_protocol",
b"overrides_by_request_protocol",
"path_translation",
b"path_translation",
"protocol",
Expand Down
20 changes: 13 additions & 7 deletions google-stubs/api/billing_pb2.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
Copyright 2015 Google LLC
Copyright 2023 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import builtins
import collections.abc
import google.protobuf.descriptor
Expand Down Expand Up @@ -66,6 +67,7 @@ class Billing(google.protobuf.message.Message):
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

@typing_extensions.final
class BillingDestination(google.protobuf.message.Message):
"""Configuration of a specific billing destination (Currently only support
Expand All @@ -78,7 +80,8 @@ class Billing(google.protobuf.message.Message):
METRICS_FIELD_NUMBER: builtins.int
monitored_resource: builtins.str
"""The monitored resource type. The type must be defined in
[Service.monitored_resources][google.api.Service.monitored_resources] section.
[Service.monitored_resources][google.api.Service.monitored_resources]
section.
"""
@property
def metrics(
Expand All @@ -87,8 +90,10 @@ class Billing(google.protobuf.message.Message):
builtins.str
]:
"""Names of the metrics to report to this billing destination.
Each name must be defined in [Service.metrics][google.api.Service.metrics] section.
Each name must be defined in
[Service.metrics][google.api.Service.metrics] section.
"""

def __init__(
self,
*,
Expand All @@ -101,6 +106,7 @@ class Billing(google.protobuf.message.Message):
"metrics", b"metrics", "monitored_resource", b"monitored_resource"
],
) -> None: ...

CONSUMER_DESTINATIONS_FIELD_NUMBER: builtins.int
@property
def consumer_destinations(
Expand All @@ -113,13 +119,13 @@ class Billing(google.protobuf.message.Message):
a different monitored resource type. A metric can be used in at most
one consumer destination.
"""

def __init__(
self,
*,
consumer_destinations: collections.abc.Iterable[
global___Billing.BillingDestination
]
| None = ...,
consumer_destinations: (
collections.abc.Iterable[global___Billing.BillingDestination] | None
) = ...,
) -> None: ...
def ClearField(
self,
Expand Down
Loading

0 comments on commit 1051288

Please sign in to comment.