| 1 |
# Copyright 2025 Google LLC |
| 2 |
# |
| 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 at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# 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 and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
from typing import ClassVar as _ClassVar |
| 16 |
from typing import Iterable as _Iterable |
| 17 |
from typing import Mapping as _Mapping |
| 18 |
from typing import Optional as _Optional |
| 19 |
from typing import Union as _Union |
| 20 |
|
| 21 |
from google.protobuf import descriptor as _descriptor |
| 22 |
from google.protobuf import message as _message |
| 23 |
from google.protobuf import struct_pb2 as _struct_pb2 |
| 24 |
from google.protobuf.internal import containers as _containers |
| 25 |
|
| 26 |
from google.api import label_pb2 as _label_pb2 |
| 27 |
from google.api import launch_stage_pb2 as _launch_stage_pb2 |
| 28 |
|
| 29 |
DESCRIPTOR: _descriptor.FileDescriptor |
| 30 |
|
| 31 |
class 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: str |
| 47 |
type: str |
| 48 |
display_name: str |
| 49 |
description: str |
| 50 |
labels: _containers.RepeatedCompositeFieldContainer[_label_pb2.LabelDescriptor] |
| 51 |
launch_stage: _launch_stage_pb2.LaunchStage |
| 52 |
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 |
|
| 64 |
class 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: str |
| 71 |
value: str |
| 72 |
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: str |
| 79 |
labels: _containers.ScalarMap[str, str] |
| 80 |
def __init__( |
| 81 |
self, type: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ... |
| 82 |
) -> None: ... |
| 83 |
|
| 84 |
class 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: str |
| 91 |
value: str |
| 92 |
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.Struct |
| 99 |
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: ... |