Esempio n. 1
0
 def to_flyte_idl(self):
     """
     :rtype: flyteidl.admin.project_pb2.Project
     """
     return _project_pb2.Project(
         id=self.id,
         name=self.name
     )
Esempio n. 2
0
def test_update_project(mock_channel, mock_admin):
    client = _RawSynchronousFlyteClient(url="a.b.com", insecure=True)
    project = _project_pb2.Project(id="foo",
                                   name="name",
                                   description="description",
                                   state=_project_pb2.Project.ACTIVE)
    client.update_project(project)
    mock_admin.AdminServiceStub().UpdateProject.assert_called_with(project)
Esempio n. 3
0
 def to_flyte_idl(self):
     """
     :rtype: flyteidl.admin.project_pb2.Project
     """
     return _project_pb2.Project(id=self.id, name=self.name, description=self.description, state=self._state)