codekingpro/portable-devtools
114k
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 import struct_pb2 as _struct_pb224from google.protobuf.internal import containers as _containers25 26from google.api import label_pb2 as _label_pb227from google.api import launch_stage_pb2 as _launch_stage_pb228 29DESCRIPTOR: _descriptor.FileDescriptor30 31class MonitoredResourceDescriptor(_message.Message):32 __slots__ = (33 "name",34 "type",35 "display_name",36 "description",37 "labels",38 "launch_stage",39 )40 NAME_FIELD_NUMBER: _ClassVar[int]41 TYPE_FIELD_NUMBER: _ClassVar[int]42 DISPLAY_NAME_FIELD_NUMBER: _ClassVar[int]43 DESCRIPTION_FIELD_NUMBER: _ClassVar[int]44 LABELS_FIELD_NUMBER: _ClassVar[int]45 LAUNCH_STAGE_FIELD_NUMBER: _ClassVar[int]46 name: str47 type: str48 display_name: str49 description: str50 labels: _containers.RepeatedCompositeFieldContainer[_label_pb2.LabelDescriptor]51 launch_stage: _launch_stage_pb2.LaunchStage52 def __init__(53 self,54 name: _Optional[str] = ...,55 type: _Optional[str] = ...,56 display_name: _Optional[str] = ...,57 description: _Optional[str] = ...,58 labels: _Optional[59 _Iterable[_Union[_label_pb2.LabelDescriptor, _Mapping]]60 ] = ...,61 launch_stage: _Optional[_Union[_launch_stage_pb2.LaunchStage, str]] = ...,62 ) -> None: ...63 64class MonitoredResource(_message.Message):65 __slots__ = ("type", "labels")66 class LabelsEntry(_message.Message):67 __slots__ = ("key", "value")68 KEY_FIELD_NUMBER: _ClassVar[int]69 VALUE_FIELD_NUMBER: _ClassVar[int]70 key: str71 value: str72 def __init__(73 self, key: _Optional[str] = ..., value: _Optional[str] = ...74 ) -> None: ...75 76 TYPE_FIELD_NUMBER: _ClassVar[int]77 LABELS_FIELD_NUMBER: _ClassVar[int]78 type: str79 labels: _containers.ScalarMap[str, str]80 def __init__(81 self, type: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ...82 ) -> None: ...83 84class MonitoredResourceMetadata(_message.Message):85 __slots__ = ("system_labels", "user_labels")86 class UserLabelsEntry(_message.Message):87 __slots__ = ("key", "value")88 KEY_FIELD_NUMBER: _ClassVar[int]89 VALUE_FIELD_NUMBER: _ClassVar[int]90 key: str91 value: str92 def __init__(93 self, key: _Optional[str] = ..., value: _Optional[str] = ...94 ) -> None: ...95 96 SYSTEM_LABELS_FIELD_NUMBER: _ClassVar[int]97 USER_LABELS_FIELD_NUMBER: _ClassVar[int]98 system_labels: _struct_pb2.Struct99 user_labels: _containers.ScalarMap[str, str]100 def __init__(101 self,102 system_labels: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...,103 user_labels: _Optional[_Mapping[str, str]] = ...,104 ) -> None: ...105 