|
| 1 | +""" |
| 2 | +@generated by mypy-protobuf. Do not edit manually! |
| 3 | +isort:skip_file |
| 4 | +""" |
| 5 | + |
| 6 | +importbuiltins |
| 7 | +importsys |
| 8 | + |
| 9 | +importgoogle.protobuf.descriptor |
| 10 | +importgoogle.protobuf.message |
| 11 | + |
| 12 | +importtemporalio.api.cloud.resource.v1.message_pb2 |
| 13 | + |
| 14 | +ifsys.version_info>= (3,8): |
| 15 | +importtypingastyping_extensions |
| 16 | +else: |
| 17 | +importtyping_extensions |
| 18 | + |
| 19 | +DESCRIPTOR:google.protobuf.descriptor.FileDescriptor |
| 20 | + |
| 21 | +classMetricsSpec(google.protobuf.message.Message): |
| 22 | +DESCRIPTOR:google.protobuf.descriptor.Descriptor |
| 23 | + |
| 24 | +ACCEPTED_CLIENT_CA_FIELD_NUMBER:builtins.int |
| 25 | +accepted_client_ca:builtins.bytes |
| 26 | +"""The ca cert(s) in PEM format that clients connecting to the metrics endpoint can use for authentication. |
| 27 | + This must only be one value, but the CA can have a chain. |
| 28 | + """ |
| 29 | +def__init__( |
| 30 | +self, |
| 31 | +*, |
| 32 | +accepted_client_ca:builtins.bytes= ..., |
| 33 | + )->None: ... |
| 34 | +defClearField( |
| 35 | +self, |
| 36 | +field_name:typing_extensions.Literal[ |
| 37 | +"accepted_client_ca",b"accepted_client_ca" |
| 38 | + ], |
| 39 | + )->None: ... |
| 40 | + |
| 41 | +global___MetricsSpec=MetricsSpec |
| 42 | + |
| 43 | +classAccountSpec(google.protobuf.message.Message): |
| 44 | +DESCRIPTOR:google.protobuf.descriptor.Descriptor |
| 45 | + |
| 46 | +METRICS_FIELD_NUMBER:builtins.int |
| 47 | +@property |
| 48 | +defmetrics(self)->global___MetricsSpec: |
| 49 | +"""The metrics specification for this account. |
| 50 | + If not specified, metrics will not be enabled. |
| 51 | + """ |
| 52 | +def__init__( |
| 53 | +self, |
| 54 | +*, |
| 55 | +metrics:global___MetricsSpec|None= ..., |
| 56 | + )->None: ... |
| 57 | +defHasField( |
| 58 | +self,field_name:typing_extensions.Literal["metrics",b"metrics"] |
| 59 | + )->builtins.bool: ... |
| 60 | +defClearField( |
| 61 | +self,field_name:typing_extensions.Literal["metrics",b"metrics"] |
| 62 | + )->None: ... |
| 63 | + |
| 64 | +global___AccountSpec=AccountSpec |
| 65 | + |
| 66 | +classMetrics(google.protobuf.message.Message): |
| 67 | +DESCRIPTOR:google.protobuf.descriptor.Descriptor |
| 68 | + |
| 69 | +URI_FIELD_NUMBER:builtins.int |
| 70 | +uri:builtins.str |
| 71 | +"""The prometheus metrics endpoint uri. |
| 72 | + This is only populated when the metrics is enabled in the metrics specification. |
| 73 | + """ |
| 74 | +def__init__( |
| 75 | +self, |
| 76 | +*, |
| 77 | +uri:builtins.str= ..., |
| 78 | + )->None: ... |
| 79 | +defClearField( |
| 80 | +self,field_name:typing_extensions.Literal["uri",b"uri"] |
| 81 | + )->None: ... |
| 82 | + |
| 83 | +global___Metrics=Metrics |
| 84 | + |
| 85 | +classAccount(google.protobuf.message.Message): |
| 86 | +DESCRIPTOR:google.protobuf.descriptor.Descriptor |
| 87 | + |
| 88 | +ID_FIELD_NUMBER:builtins.int |
| 89 | +SPEC_FIELD_NUMBER:builtins.int |
| 90 | +RESOURCE_VERSION_FIELD_NUMBER:builtins.int |
| 91 | +STATE_FIELD_NUMBER:builtins.int |
| 92 | +ASYNC_OPERATION_ID_FIELD_NUMBER:builtins.int |
| 93 | +METRICS_FIELD_NUMBER:builtins.int |
| 94 | +id:builtins.str |
| 95 | +"""The id of the account.""" |
| 96 | +@property |
| 97 | +defspec(self)->global___AccountSpec: |
| 98 | +"""The account specification.""" |
| 99 | +resource_version:builtins.str |
| 100 | +"""The current version of the account specification. |
| 101 | + The next update operation will have to include this version. |
| 102 | + """ |
| 103 | +state:temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType |
| 104 | +"""The current state of the account.""" |
| 105 | +async_operation_id:builtins.str |
| 106 | +"""The id of the async operation that is updating the account, if any.""" |
| 107 | +@property |
| 108 | +defmetrics(self)->global___Metrics: |
| 109 | +"""Information related to metrics.""" |
| 110 | +def__init__( |
| 111 | +self, |
| 112 | +*, |
| 113 | +id:builtins.str= ..., |
| 114 | +spec:global___AccountSpec|None= ..., |
| 115 | +resource_version:builtins.str= ..., |
| 116 | +state:temporalio.api.cloud.resource.v1.message_pb2.ResourceState.ValueType= ..., |
| 117 | +async_operation_id:builtins.str= ..., |
| 118 | +metrics:global___Metrics|None= ..., |
| 119 | + )->None: ... |
| 120 | +defHasField( |
| 121 | +self, |
| 122 | +field_name:typing_extensions.Literal["metrics",b"metrics","spec",b"spec"], |
| 123 | + )->builtins.bool: ... |
| 124 | +defClearField( |
| 125 | +self, |
| 126 | +field_name:typing_extensions.Literal[ |
| 127 | +"async_operation_id", |
| 128 | +b"async_operation_id", |
| 129 | +"id", |
| 130 | +b"id", |
| 131 | +"metrics", |
| 132 | +b"metrics", |
| 133 | +"resource_version", |
| 134 | +b"resource_version", |
| 135 | +"spec", |
| 136 | +b"spec", |
| 137 | +"state", |
| 138 | +b"state", |
| 139 | + ], |
| 140 | + )->None: ... |
| 141 | + |
| 142 | +global___Account=Account |