src/noos_tf/client.py
def run_plan(self, workspace_id: str, message: str) -> str:
        """Run a plan onto a given workspace for a organization."""
        data = {
            "data": {
                "type": "runs",
                "attributes": {"is-destroy": False, "message": message},
                "relationships": {
                    "workspace": {"data": {"type": "workspaces", "id": workspace_id}}
                },
            }
        }
        response = self.post(
            path="v2/runs",
            data=data,
            statuses=(http_client.CREATED,),
        )
        return response["data"]["id"]
Run a plan onto a given workspace for a organization.
Run a plan onto a given workspace for a organization.
Run a plan onto a given workspace for a organization .
def run_plan(self, workspace_id: str, message: str) -> str:
        data = {
            "data": {
                "type": "runs",
                "attributes": {"is-destroy": False, "message": message},
                "relationships": {
                    "workspace": {"data": {"type": "workspaces", "id": workspace_id}}
                },
            }
        }
        response = self.post(
            path="v2/runs",
            data=data,
            statuses=(http_client.CREATED,),
        )
        return response["data"]["id"]
def run_plan ( self , workspace_id : str , message : str ) -> str : data = { "data" : { "type" : "runs" , "attributes" : { "is-destroy" : False , "message" : message } , "relationships" : { "workspace" : { "data" : { "type" : "workspaces" , "id" : workspace_id } } } , } } response = self . post ( path = "v2/runs" , data = data , statuses = ( http_client . CREATED , ) , ) return response [ "data" ] [ "id" ]
Run a plan onto a given workspace for a organization.
Run a plan onto a given workspace for a organization .
"""Run a plan onto a given workspace for a organization."""
self
workspace_id
str
message
str