Files
sdk/docs/AgentPatchSessionIn.md

7.9 KiB

AgentPatchSessionIn

Properties

Name Type Description Notes
Cwd Pointer to string Cwd is where the session is working NOW. It was write-once — captured at register and never again — which is right for a run that starts in a directory and stays there, and wrong for a linked shell, which is a place a person moves around in. The console showed the directory `hanzo link` happened to be run from and kept showing it after the shell had walked away, so the field answered "which work is this" with an answer that was true once. A pointer, so an unchanged path is an omitted field rather than a repeated write. [optional]
Id Pointer to string ID is the session to update, from the path. [optional]
Project Pointer to string Project tags the product this session built; Published is the author's decision to let anyone read the story (provenance.go). Both are pointers so "absent" and "cleared" are different requests. [optional]
Published Pointer to bool Published opens the session's story to the public build route; false withdraws it, and withdrawing is always allowed. PUBLISHING is refused unless the session names a Project — the one set in this same request, or the one already stored — because that route is keyed on (org, project). It widens READ access to what is already there and grants nothing else. [optional]
Status Pointer to string Status moves the session to running, paused, done or error. A session that has already finished refuses any change with 409 — done and error are monotonic — and moving INTO one stamps the end time. This is the surface REPORTING what happened; a control command never writes it. [optional]
Target Pointer to string Target re-dispatches a session to a run-target (the #48 association). "" detaches. [optional]
Terminal Pointer to string Terminal publishes (or, with "", withdraws) the URL this session's live terminal can be watched at. A pointer so "absent" and "withdrawn" are different requests: a session that stops sharing must be able to say so. [optional]
Title Pointer to string Title rewrites the human line, up to 512 characters — usually because the work turned out to be something other than what it was opened as. [optional]

Methods

NewAgentPatchSessionIn

func NewAgentPatchSessionIn() *AgentPatchSessionIn

NewAgentPatchSessionIn instantiates a new AgentPatchSessionIn object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewAgentPatchSessionInWithDefaults

func NewAgentPatchSessionInWithDefaults() *AgentPatchSessionIn

NewAgentPatchSessionInWithDefaults instantiates a new AgentPatchSessionIn object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetCwd

func (o *AgentPatchSessionIn) GetCwd() string

GetCwd returns the Cwd field if non-nil, zero value otherwise.

GetCwdOk

func (o *AgentPatchSessionIn) GetCwdOk() (*string, bool)

GetCwdOk returns a tuple with the Cwd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCwd

func (o *AgentPatchSessionIn) SetCwd(v string)

SetCwd sets Cwd field to given value.

HasCwd

func (o *AgentPatchSessionIn) HasCwd() bool

HasCwd returns a boolean if a field has been set.

GetId

func (o *AgentPatchSessionIn) GetId() string

GetId returns the Id field if non-nil, zero value otherwise.

GetIdOk

func (o *AgentPatchSessionIn) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetId

func (o *AgentPatchSessionIn) SetId(v string)

SetId sets Id field to given value.

HasId

func (o *AgentPatchSessionIn) HasId() bool

HasId returns a boolean if a field has been set.

GetProject

func (o *AgentPatchSessionIn) GetProject() string

GetProject returns the Project field if non-nil, zero value otherwise.

GetProjectOk

func (o *AgentPatchSessionIn) GetProjectOk() (*string, bool)

GetProjectOk returns a tuple with the Project field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetProject

func (o *AgentPatchSessionIn) SetProject(v string)

SetProject sets Project field to given value.

HasProject

func (o *AgentPatchSessionIn) HasProject() bool

HasProject returns a boolean if a field has been set.

GetPublished

func (o *AgentPatchSessionIn) GetPublished() bool

GetPublished returns the Published field if non-nil, zero value otherwise.

GetPublishedOk

func (o *AgentPatchSessionIn) GetPublishedOk() (*bool, bool)

GetPublishedOk returns a tuple with the Published field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPublished

func (o *AgentPatchSessionIn) SetPublished(v bool)

SetPublished sets Published field to given value.

HasPublished

func (o *AgentPatchSessionIn) HasPublished() bool

HasPublished returns a boolean if a field has been set.

GetStatus

func (o *AgentPatchSessionIn) GetStatus() string

GetStatus returns the Status field if non-nil, zero value otherwise.

GetStatusOk

func (o *AgentPatchSessionIn) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStatus

func (o *AgentPatchSessionIn) SetStatus(v string)

SetStatus sets Status field to given value.

HasStatus

func (o *AgentPatchSessionIn) HasStatus() bool

HasStatus returns a boolean if a field has been set.

GetTarget

func (o *AgentPatchSessionIn) GetTarget() string

GetTarget returns the Target field if non-nil, zero value otherwise.

GetTargetOk

func (o *AgentPatchSessionIn) GetTargetOk() (*string, bool)

GetTargetOk returns a tuple with the Target field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTarget

func (o *AgentPatchSessionIn) SetTarget(v string)

SetTarget sets Target field to given value.

HasTarget

func (o *AgentPatchSessionIn) HasTarget() bool

HasTarget returns a boolean if a field has been set.

GetTerminal

func (o *AgentPatchSessionIn) GetTerminal() string

GetTerminal returns the Terminal field if non-nil, zero value otherwise.

GetTerminalOk

func (o *AgentPatchSessionIn) GetTerminalOk() (*string, bool)

GetTerminalOk returns a tuple with the Terminal field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTerminal

func (o *AgentPatchSessionIn) SetTerminal(v string)

SetTerminal sets Terminal field to given value.

HasTerminal

func (o *AgentPatchSessionIn) HasTerminal() bool

HasTerminal returns a boolean if a field has been set.

GetTitle

func (o *AgentPatchSessionIn) GetTitle() string

GetTitle returns the Title field if non-nil, zero value otherwise.

GetTitleOk

func (o *AgentPatchSessionIn) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTitle

func (o *AgentPatchSessionIn) SetTitle(v string)

SetTitle sets Title field to given value.

HasTitle

func (o *AgentPatchSessionIn) HasTitle() bool

HasTitle returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]