Skip to content

Commit

Permalink
Release v0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Feb 27, 2024
1 parent 70f397d commit c088307
Show file tree
Hide file tree
Showing 60 changed files with 6,843 additions and 2,566 deletions.
2 changes: 1 addition & 1 deletion _environments.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package api

// Environments defines all of the API environments.
// These values can be used with the WithBaseURL
// ClientOption to override the client's default environment,
// RequestOption to override the client's default environment,
// if any.
var Environments = struct {
Production string
Expand Down
44 changes: 22 additions & 22 deletions agents.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
)

type CreateAgentsRequest struct {
EnvironmentId EnvironmentId `json:"-"`
Body *AgentConfig `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
Body *AgentConfig `json:"-" url:"-"`
}

func (c *CreateAgentsRequest) UnmarshalJSON(data []byte) error {
Expand All @@ -27,43 +27,43 @@ func (c *CreateAgentsRequest) MarshalJSON() ([]byte, error) {
}

type DeleteAgentRequest struct {
EnvironmentId EnvironmentId `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
}

type GetAgentRequest struct {
EnvironmentId EnvironmentId `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
}

type GetAgentLogRequest struct {
EnvironmentId EnvironmentId `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
}

type GetAgentLogsRequest struct {
EnvironmentId EnvironmentId `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
}

type GetEnvironmentAgentExecutionsRequest struct {
EnvironmentId EnvironmentId `json:"-"`
SpaceId *SpaceId `json:"-"`
Success *SuccessQueryParameter `json:"-"`
PageSize *PageSize `json:"-"`
PageNumber *PageNumber `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
SpaceId *SpaceId `json:"-" url:"spaceId,omitempty"`
Success *SuccessQueryParameter `json:"-" url:"success,omitempty"`
PageSize *PageSize `json:"-" url:"pageSize,omitempty"`
PageNumber *PageNumber `json:"-" url:"pageNumber,omitempty"`
}

type GetEnvironmentAgentLogsRequest struct {
EnvironmentId EnvironmentId `json:"-"`
SpaceId *SpaceId `json:"-"`
Success *SuccessQueryParameter `json:"-"`
PageSize *PageSize `json:"-"`
PageNumber *PageNumber `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
SpaceId *SpaceId `json:"-" url:"spaceId,omitempty"`
Success *SuccessQueryParameter `json:"-" url:"success,omitempty"`
PageSize *PageSize `json:"-" url:"pageSize,omitempty"`
PageNumber *PageNumber `json:"-" url:"pageNumber,omitempty"`
}

type ListAgentsRequest struct {
EnvironmentId EnvironmentId `json:"-"`
EnvironmentId EnvironmentId `json:"-" url:"environmentId"`
}

type GetDetailedAgentLogResponse struct {
Data *DetailedAgentLog `json:"data,omitempty"`
Data *DetailedAgentLog `json:"data,omitempty" url:"data,omitempty"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -92,8 +92,8 @@ func (g *GetDetailedAgentLogResponse) String() string {
}

type GetDetailedAgentLogsResponse struct {
Pagination *Pagination `json:"pagination,omitempty"`
Data []*DetailedAgentLog `json:"data,omitempty"`
Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
Data []*DetailedAgentLog `json:"data,omitempty" url:"data,omitempty"`

_rawJSON json.RawMessage
}
Expand Down Expand Up @@ -122,8 +122,8 @@ func (g *GetDetailedAgentLogsResponse) String() string {
}

type GetExecutionsResponse struct {
Pagination *Pagination `json:"pagination,omitempty"`
Data []*Execution `json:"data,omitempty"`
Pagination *Pagination `json:"pagination,omitempty" url:"pagination,omitempty"`
Data []*Execution `json:"data,omitempty" url:"data,omitempty"`

_rawJSON json.RawMessage
}
Expand Down
Loading

0 comments on commit c088307

Please sign in to comment.