@@ -1080,7 +1080,6 @@ class CAASApplicationProvisionerFacade(Type):
10801080 'container': {'type': 'string'},
10811081 'cores': {'type': 'integer'},
10821082 'cpu-power': {'type': 'integer'},
1083- 'image-id': {'type': 'string'},
10841083 'instance-role': {'type': 'string'},
10851084 'instance-type': {'type': 'string'},
10861085 'mem': {'type': 'integer'},
@@ -10777,101 +10776,6 @@ async def WatchSecretsRotationChanges(self, entities=None):
1077710776
1077810777
1077910778
10780- class SecretsRevisionWatcherFacade(Type):
10781- name = 'SecretsRevisionWatcher'
10782- version = 1
10783- schema = {'definitions': {'Error': {'additionalProperties': False,
10784- 'properties': {'code': {'type': 'string'},
10785- 'info': {'patternProperties': {'.*': {'additionalProperties': True,
10786- 'type': 'object'}},
10787- 'type': 'object'},
10788- 'message': {'type': 'string'}},
10789- 'required': ['message', 'code'],
10790- 'type': 'object'},
10791- 'SecretRevisionChange': {'additionalProperties': False,
10792- 'properties': {'revision': {'type': 'integer'},
10793- 'uri': {'type': 'string'}},
10794- 'required': ['uri', 'revision'],
10795- 'type': 'object'},
10796- 'SecretRevisionWatchResult': {'additionalProperties': False,
10797- 'properties': {'changes': {'items': {'$ref': '#/definitions/SecretRevisionChange'},
10798- 'type': 'array'},
10799- 'error': {'$ref': '#/definitions/Error'},
10800- 'watcher-id': {'type': 'string'}},
10801- 'required': ['watcher-id',
10802- 'changes'],
10803- 'type': 'object'}},
10804- 'properties': {'Next': {'description': 'Next returns when a change has '
10805- 'occurred to an entity of the\n'
10806- 'collection being watched since the '
10807- 'most recent call to Next\n'
10808- 'or the Watch call that created the '
10809- 'srvSecretRotationWatcher.',
10810- 'properties': {'Result': {'$ref': '#/definitions/SecretRevisionWatchResult'}},
10811- 'type': 'object'},
10812- 'Stop': {'description': 'Stop stops the watcher.',
10813- 'type': 'object'}},
10814- 'type': 'object'}
10815-
10816-
10817- @ReturnMapping(SecretRevisionWatchResult)
10818- async def Next(self):
10819- '''
10820- Next returns when a change has occurred to an entity of the
10821- collection being watched since the most recent call to Next
10822- or the Watch call that created the srvSecretRotationWatcher.
10823-
10824-
10825- Returns -> SecretRevisionWatchResult
10826- '''
10827-
10828- # map input types to rpc msg
10829- _params = dict()
10830- msg = dict(type='SecretsRevisionWatcher',
10831- request='Next',
10832- version=1,
10833- params=_params)
10834-
10835- reply = await self.rpc(msg)
10836- return reply
10837-
10838-
10839-
10840- @ReturnMapping(None)
10841- async def Stop(self):
10842- '''
10843- Stop stops the watcher.
10844-
10845-
10846- Returns -> None
10847- '''
10848-
10849- # map input types to rpc msg
10850- _params = dict()
10851- msg = dict(type='SecretsRevisionWatcher',
10852- request='Stop',
10853- version=1,
10854- params=_params)
10855-
10856- reply = await self.rpc(msg)
10857- return reply
10858-
10859-
10860-
10861- async def rpc(self, msg):
10862- '''
10863- Patch rpc method to add Id.
10864- '''
10865- if not hasattr(self, 'Id'):
10866- raise RuntimeError('Missing "Id" field')
10867- msg['Id'] = id
10868-
10869- from .facade import TypeEncoder
10870- reply = await self.connection.rpc(msg, encoder=TypeEncoder)
10871- return reply
10872-
10873-
10874-
1087510779class SecretsTriggerWatcherFacade(Type):
1087610780 name = 'SecretsTriggerWatcher'
1087710781 version = 1
0 commit comments