1
- from google .protobuf import struct_pb2 as _struct_pb2
2
1
from google .protobuf import duration_pb2 as _duration_pb2
2
+ from google .protobuf import struct_pb2 as _struct_pb2
3
3
from google .protobuf .internal import containers as _containers
4
4
from google .protobuf .internal import enum_type_wrapper as _enum_type_wrapper
5
5
from google .protobuf import descriptor as _descriptor
6
6
from google .protobuf import message as _message
7
- from typing import ClassVar as _ClassVar , Iterable as _Iterable , Mapping as _Mapping , Optional as _Optional , Union as _Union
7
+ from collections .abc import Iterable as _Iterable , Mapping as _Mapping
8
+ from typing import ClassVar as _ClassVar , Optional as _Optional , Union as _Union
8
9
9
10
DESCRIPTOR : _descriptor .FileDescriptor
10
11
@@ -49,7 +50,7 @@ STATUS_CONDITION_TRUE: Status
49
50
STATUS_CONDITION_FALSE : Status
50
51
51
52
class RunFunctionRequest (_message .Message ):
52
- __slots__ = ("meta" , "observed" , "desired" , "input" , "context" , "extra_resources" , "credentials" )
53
+ __slots__ = ("meta" , "observed" , "desired" , "input" , "context" , "extra_resources" , "credentials" , "required_resources" )
53
54
class ExtraResourcesEntry (_message .Message ):
54
55
__slots__ = ("key" , "value" )
55
56
KEY_FIELD_NUMBER : _ClassVar [int ]
@@ -64,21 +65,30 @@ class RunFunctionRequest(_message.Message):
64
65
key : str
65
66
value : Credentials
66
67
def __init__ (self , key : _Optional [str ] = ..., value : _Optional [_Union [Credentials , _Mapping ]] = ...) -> None : ...
68
+ class RequiredResourcesEntry (_message .Message ):
69
+ __slots__ = ("key" , "value" )
70
+ KEY_FIELD_NUMBER : _ClassVar [int ]
71
+ VALUE_FIELD_NUMBER : _ClassVar [int ]
72
+ key : str
73
+ value : Resources
74
+ def __init__ (self , key : _Optional [str ] = ..., value : _Optional [_Union [Resources , _Mapping ]] = ...) -> None : ...
67
75
META_FIELD_NUMBER : _ClassVar [int ]
68
76
OBSERVED_FIELD_NUMBER : _ClassVar [int ]
69
77
DESIRED_FIELD_NUMBER : _ClassVar [int ]
70
78
INPUT_FIELD_NUMBER : _ClassVar [int ]
71
79
CONTEXT_FIELD_NUMBER : _ClassVar [int ]
72
80
EXTRA_RESOURCES_FIELD_NUMBER : _ClassVar [int ]
73
81
CREDENTIALS_FIELD_NUMBER : _ClassVar [int ]
82
+ REQUIRED_RESOURCES_FIELD_NUMBER : _ClassVar [int ]
74
83
meta : RequestMeta
75
84
observed : State
76
85
desired : State
77
86
input : _struct_pb2 .Struct
78
87
context : _struct_pb2 .Struct
79
88
extra_resources : _containers .MessageMap [str , Resources ]
80
89
credentials : _containers .MessageMap [str , Credentials ]
81
- def __init__ (self , meta : _Optional [_Union [RequestMeta , _Mapping ]] = ..., observed : _Optional [_Union [State , _Mapping ]] = ..., desired : _Optional [_Union [State , _Mapping ]] = ..., input : _Optional [_Union [_struct_pb2 .Struct , _Mapping ]] = ..., context : _Optional [_Union [_struct_pb2 .Struct , _Mapping ]] = ..., extra_resources : _Optional [_Mapping [str , Resources ]] = ..., credentials : _Optional [_Mapping [str , Credentials ]] = ...) -> None : ...
90
+ required_resources : _containers .MessageMap [str , Resources ]
91
+ def __init__ (self , meta : _Optional [_Union [RequestMeta , _Mapping ]] = ..., observed : _Optional [_Union [State , _Mapping ]] = ..., desired : _Optional [_Union [State , _Mapping ]] = ..., input : _Optional [_Union [_struct_pb2 .Struct , _Mapping ]] = ..., context : _Optional [_Union [_struct_pb2 .Struct , _Mapping ]] = ..., extra_resources : _Optional [_Mapping [str , Resources ]] = ..., credentials : _Optional [_Mapping [str , Credentials ]] = ..., required_resources : _Optional [_Mapping [str , Resources ]] = ...) -> None : ...
82
92
83
93
class Credentials (_message .Message ):
84
94
__slots__ = ("credential_data" ,)
@@ -106,20 +116,22 @@ class Resources(_message.Message):
106
116
def __init__ (self , items : _Optional [_Iterable [_Union [Resource , _Mapping ]]] = ...) -> None : ...
107
117
108
118
class RunFunctionResponse (_message .Message ):
109
- __slots__ = ("meta" , "desired" , "results" , "context" , "requirements" , "conditions" )
119
+ __slots__ = ("meta" , "desired" , "results" , "context" , "requirements" , "conditions" , "output" )
110
120
META_FIELD_NUMBER : _ClassVar [int ]
111
121
DESIRED_FIELD_NUMBER : _ClassVar [int ]
112
122
RESULTS_FIELD_NUMBER : _ClassVar [int ]
113
123
CONTEXT_FIELD_NUMBER : _ClassVar [int ]
114
124
REQUIREMENTS_FIELD_NUMBER : _ClassVar [int ]
115
125
CONDITIONS_FIELD_NUMBER : _ClassVar [int ]
126
+ OUTPUT_FIELD_NUMBER : _ClassVar [int ]
116
127
meta : ResponseMeta
117
128
desired : State
118
129
results : _containers .RepeatedCompositeFieldContainer [Result ]
119
130
context : _struct_pb2 .Struct
120
131
requirements : Requirements
121
132
conditions : _containers .RepeatedCompositeFieldContainer [Condition ]
122
- def __init__ (self , meta : _Optional [_Union [ResponseMeta , _Mapping ]] = ..., desired : _Optional [_Union [State , _Mapping ]] = ..., results : _Optional [_Iterable [_Union [Result , _Mapping ]]] = ..., context : _Optional [_Union [_struct_pb2 .Struct , _Mapping ]] = ..., requirements : _Optional [_Union [Requirements , _Mapping ]] = ..., conditions : _Optional [_Iterable [_Union [Condition , _Mapping ]]] = ...) -> None : ...
133
+ output : _struct_pb2 .Struct
134
+ def __init__ (self , meta : _Optional [_Union [ResponseMeta , _Mapping ]] = ..., desired : _Optional [_Union [State , _Mapping ]] = ..., results : _Optional [_Iterable [_Union [Result , _Mapping ]]] = ..., context : _Optional [_Union [_struct_pb2 .Struct , _Mapping ]] = ..., requirements : _Optional [_Union [Requirements , _Mapping ]] = ..., conditions : _Optional [_Iterable [_Union [Condition , _Mapping ]]] = ..., output : _Optional [_Union [_struct_pb2 .Struct , _Mapping ]] = ...) -> None : ...
123
135
124
136
class RequestMeta (_message .Message ):
125
137
__slots__ = ("tag" ,)
@@ -128,29 +140,40 @@ class RequestMeta(_message.Message):
128
140
def __init__ (self , tag : _Optional [str ] = ...) -> None : ...
129
141
130
142
class Requirements (_message .Message ):
131
- __slots__ = ("extra_resources" ,)
143
+ __slots__ = ("extra_resources" , "resources" )
132
144
class ExtraResourcesEntry (_message .Message ):
133
145
__slots__ = ("key" , "value" )
134
146
KEY_FIELD_NUMBER : _ClassVar [int ]
135
147
VALUE_FIELD_NUMBER : _ClassVar [int ]
136
148
key : str
137
149
value : ResourceSelector
138
150
def __init__ (self , key : _Optional [str ] = ..., value : _Optional [_Union [ResourceSelector , _Mapping ]] = ...) -> None : ...
151
+ class ResourcesEntry (_message .Message ):
152
+ __slots__ = ("key" , "value" )
153
+ KEY_FIELD_NUMBER : _ClassVar [int ]
154
+ VALUE_FIELD_NUMBER : _ClassVar [int ]
155
+ key : str
156
+ value : ResourceSelector
157
+ def __init__ (self , key : _Optional [str ] = ..., value : _Optional [_Union [ResourceSelector , _Mapping ]] = ...) -> None : ...
139
158
EXTRA_RESOURCES_FIELD_NUMBER : _ClassVar [int ]
159
+ RESOURCES_FIELD_NUMBER : _ClassVar [int ]
140
160
extra_resources : _containers .MessageMap [str , ResourceSelector ]
141
- def __init__ (self , extra_resources : _Optional [_Mapping [str , ResourceSelector ]] = ...) -> None : ...
161
+ resources : _containers .MessageMap [str , ResourceSelector ]
162
+ def __init__ (self , extra_resources : _Optional [_Mapping [str , ResourceSelector ]] = ..., resources : _Optional [_Mapping [str , ResourceSelector ]] = ...) -> None : ...
142
163
143
164
class ResourceSelector (_message .Message ):
144
- __slots__ = ("api_version" , "kind" , "match_name" , "match_labels" )
165
+ __slots__ = ("api_version" , "kind" , "match_name" , "match_labels" , "namespace" )
145
166
API_VERSION_FIELD_NUMBER : _ClassVar [int ]
146
167
KIND_FIELD_NUMBER : _ClassVar [int ]
147
168
MATCH_NAME_FIELD_NUMBER : _ClassVar [int ]
148
169
MATCH_LABELS_FIELD_NUMBER : _ClassVar [int ]
170
+ NAMESPACE_FIELD_NUMBER : _ClassVar [int ]
149
171
api_version : str
150
172
kind : str
151
173
match_name : str
152
174
match_labels : MatchLabels
153
- def __init__ (self , api_version : _Optional [str ] = ..., kind : _Optional [str ] = ..., match_name : _Optional [str ] = ..., match_labels : _Optional [_Union [MatchLabels , _Mapping ]] = ...) -> None : ...
175
+ namespace : str
176
+ def __init__ (self , api_version : _Optional [str ] = ..., kind : _Optional [str ] = ..., match_name : _Optional [str ] = ..., match_labels : _Optional [_Union [MatchLabels , _Mapping ]] = ..., namespace : _Optional [str ] = ...) -> None : ...
154
177
155
178
class MatchLabels (_message .Message ):
156
179
__slots__ = ("labels" ,)
@@ -171,7 +194,7 @@ class ResponseMeta(_message.Message):
171
194
TTL_FIELD_NUMBER : _ClassVar [int ]
172
195
tag : str
173
196
ttl : _duration_pb2 .Duration
174
- def __init__ (self , tag : _Optional [str ] = ..., ttl : _Optional [_Union [_duration_pb2 .Duration , _Mapping ]] = ...) -> None : ...
197
+ def __init__ (self , tag : _Optional [str ] = ..., ttl : _Optional [_Union [datetime . timedelta , _duration_pb2 .Duration , _Mapping ]] = ...) -> None : ...
175
198
176
199
class State (_message .Message ):
177
200
__slots__ = ("composite" , "resources" )
0 commit comments