codekingpro/portable-devtools
115k
1# Copyright 2025 Google LLC2#3# Licensed under the Apache License, Version 2.0 (the "License");4# you may not use this file except in compliance with the License.5# You may obtain a copy of the License at6#7# http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# distributed under the License is distributed on an "AS IS" BASIS,11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12# See the License for the specific language governing permissions and13# limitations under the License.14 15from typing import ClassVar as _ClassVar16from typing import Iterable as _Iterable17from typing import Mapping as _Mapping18from typing import Optional as _Optional19from typing import Union as _Union20 21from google.protobuf import descriptor as _descriptor22from google.protobuf import message as _message23from google.protobuf.internal import containers as _containers24 25DESCRIPTOR: _descriptor.FileDescriptor26 27class Http(_message.Message):28 __slots__ = ("rules", "fully_decode_reserved_expansion")29 RULES_FIELD_NUMBER: _ClassVar[int]30 FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: _ClassVar[int]31 rules: _containers.RepeatedCompositeFieldContainer[HttpRule]32 fully_decode_reserved_expansion: bool33 def __init__(34 self,35 rules: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...,36 fully_decode_reserved_expansion: bool = ...,37 ) -> None: ...38 39class HttpRule(_message.Message):40 __slots__ = (41 "selector",42 "get",43 "put",44 "post",45 "delete",46 "patch",47 "custom",48 "body",49 "response_body",50 "additional_bindings",51 )52 SELECTOR_FIELD_NUMBER: _ClassVar[int]53 GET_FIELD_NUMBER: _ClassVar[int]54 PUT_FIELD_NUMBER: _ClassVar[int]55 POST_FIELD_NUMBER: _ClassVar[int]56 DELETE_FIELD_NUMBER: _ClassVar[int]57 PATCH_FIELD_NUMBER: _ClassVar[int]58 CUSTOM_FIELD_NUMBER: _ClassVar[int]59 BODY_FIELD_NUMBER: _ClassVar[int]60 RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int]61 ADDITIONAL_BINDINGS_FIELD_NUMBER: _ClassVar[int]62 selector: str63 get: str64 put: str65 post: str66 delete: str67 patch: str68 custom: CustomHttpPattern69 body: str70 response_body: str71 additional_bindings: _containers.RepeatedCompositeFieldContainer[HttpRule]72 def __init__(73 self,74 selector: _Optional[str] = ...,75 get: _Optional[str] = ...,76 put: _Optional[str] = ...,77 post: _Optional[str] = ...,78 delete: _Optional[str] = ...,79 patch: _Optional[str] = ...,80 custom: _Optional[_Union[CustomHttpPattern, _Mapping]] = ...,81 body: _Optional[str] = ...,82 response_body: _Optional[str] = ...,83 additional_bindings: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...,84 ) -> None: ...85 86class CustomHttpPattern(_message.Message):87 __slots__ = ("kind", "path")88 KIND_FIELD_NUMBER: _ClassVar[int]89 PATH_FIELD_NUMBER: _ClassVar[int]90 kind: str91 path: str92 def __init__(93 self, kind: _Optional[str] = ..., path: _Optional[str] = ...94 ) -> None: ...95 