// Code generated by ogen, DO NOT EDIT.
package api
import (
"github.com/go-faster/errors"
"github.com/go-faster/jx"
)
type BearerAuth struct {
Token string
Roles []string
}
// GetToken returns the value of Token.
func (s *BearerAuth) GetToken() string {
return s.Token
}
// GetRoles returns the value of Roles.
func (s *BearerAuth) GetRoles() []string {
return s.Roles
}
// SetToken sets the value of Token.
func (s *BearerAuth) SetToken(val string) {
s.Token = val
}
// SetRoles sets the value of Roles.
func (s *BearerAuth) SetRoles(val []string) {
s.Roles = val
}
// Ref: #/components/schemas/Content
type Content struct {
ScriptId OptString `json:"scriptId"`
Files []ScriptFile `json:"files"`
}
// GetScriptId returns the value of ScriptId.
func (s *Content) GetScriptId() OptString {
return s.ScriptId
}
// GetFiles returns the value of Files.
func (s *Content) GetFiles() []ScriptFile {
return s.Files
}
// SetScriptId sets the value of ScriptId.
func (s *Content) SetScriptId(val OptString) {
s.ScriptId = val
}
// SetFiles sets the value of Files.
func (s *Content) SetFiles(val []ScriptFile) {
s.Files = val
}
// Ref: #/components/schemas/CreateDeploymentRequest
type CreateDeploymentRequest struct {
VersionNumber int `json:"versionNumber"`
Description OptString `json:"description"`
ManifestFileName OptString `json:"manifestFileName"`
}
// GetVersionNumber returns the value of VersionNumber.
func (s *CreateDeploymentRequest) GetVersionNumber() int {
return s.VersionNumber
}
// GetDescription returns the value of Description.
func (s *CreateDeploymentRequest) GetDescription() OptString {
return s.Description
}
// GetManifestFileName returns the value of ManifestFileName.
func (s *CreateDeploymentRequest) GetManifestFileName() OptString {
return s.ManifestFileName
}
// SetVersionNumber sets the value of VersionNumber.
func (s *CreateDeploymentRequest) SetVersionNumber(val int) {
s.VersionNumber = val
}
// SetDescription sets the value of Description.
func (s *CreateDeploymentRequest) SetDescription(val OptString) {
s.Description = val
}
// SetManifestFileName sets the value of ManifestFileName.
func (s *CreateDeploymentRequest) SetManifestFileName(val OptString) {
s.ManifestFileName = val
}
// Ref: #/components/schemas/CreateProjectRequest
type CreateProjectRequest struct {
Title string `json:"title"`
ParentId OptString `json:"parentId"`
}
// GetTitle returns the value of Title.
func (s *CreateProjectRequest) GetTitle() string {
return s.Title
}
// GetParentId returns the value of ParentId.
func (s *CreateProjectRequest) GetParentId() OptString {
return s.ParentId
}
// SetTitle sets the value of Title.
func (s *CreateProjectRequest) SetTitle(val string) {
s.Title = val
}
// SetParentId sets the value of ParentId.
func (s *CreateProjectRequest) SetParentId(val OptString) {
s.ParentId = val
}
// Ref: #/components/schemas/CreateVersionRequest
type CreateVersionRequest struct {
Description OptString `json:"description"`
}
// GetDescription returns the value of Description.
func (s *CreateVersionRequest) GetDescription() OptString {
return s.Description
}
// SetDescription sets the value of Description.
func (s *CreateVersionRequest) SetDescription(val OptString) {
s.Description = val
}
// DeleteDeploymentNoContent is response for DeleteDeployment operation.
type DeleteDeploymentNoContent struct{}
// Ref: #/components/schemas/Deployment
type Deployment struct {
DeploymentId OptString `json:"deploymentId"`
DeploymentConfig OptDeploymentConfig `json:"deploymentConfig"`
UpdateTime OptString `json:"updateTime"`
EntryPoints []DeploymentEntryPointsItem `json:"entryPoints"`
}
// GetDeploymentId returns the value of DeploymentId.
func (s *Deployment) GetDeploymentId() OptString {
return s.DeploymentId
}
// GetDeploymentConfig returns the value of DeploymentConfig.
func (s *Deployment) GetDeploymentConfig() OptDeploymentConfig {
return s.DeploymentConfig
}
// GetUpdateTime returns the value of UpdateTime.
func (s *Deployment) GetUpdateTime() OptString {
return s.UpdateTime
}
// GetEntryPoints returns the value of EntryPoints.
func (s *Deployment) GetEntryPoints() []DeploymentEntryPointsItem {
return s.EntryPoints
}
// SetDeploymentId sets the value of DeploymentId.
func (s *Deployment) SetDeploymentId(val OptString) {
s.DeploymentId = val
}
// SetDeploymentConfig sets the value of DeploymentConfig.
func (s *Deployment) SetDeploymentConfig(val OptDeploymentConfig) {
s.DeploymentConfig = val
}
// SetUpdateTime sets the value of UpdateTime.
func (s *Deployment) SetUpdateTime(val OptString) {
s.UpdateTime = val
}
// SetEntryPoints sets the value of EntryPoints.
func (s *Deployment) SetEntryPoints(val []DeploymentEntryPointsItem) {
s.EntryPoints = val
}
// Ref: #/components/schemas/DeploymentConfig
type DeploymentConfig struct {
ScriptId OptString `json:"scriptId"`
VersionNumber OptInt `json:"versionNumber"`
ManifestFileName OptString `json:"manifestFileName"`
Description OptString `json:"description"`
}
// GetScriptId returns the value of ScriptId.
func (s *DeploymentConfig) GetScriptId() OptString {
return s.ScriptId
}
// GetVersionNumber returns the value of VersionNumber.
func (s *DeploymentConfig) GetVersionNumber() OptInt {
return s.VersionNumber
}
// GetManifestFileName returns the value of ManifestFileName.
func (s *DeploymentConfig) GetManifestFileName() OptString {
return s.ManifestFileName
}
// GetDescription returns the value of Description.
func (s *DeploymentConfig) GetDescription() OptString {
return s.Description
}
// SetScriptId sets the value of ScriptId.
func (s *DeploymentConfig) SetScriptId(val OptString) {
s.ScriptId = val
}
// SetVersionNumber sets the value of VersionNumber.
func (s *DeploymentConfig) SetVersionNumber(val OptInt) {
s.VersionNumber = val
}
// SetManifestFileName sets the value of ManifestFileName.
func (s *DeploymentConfig) SetManifestFileName(val OptString) {
s.ManifestFileName = val
}
// SetDescription sets the value of Description.
func (s *DeploymentConfig) SetDescription(val OptString) {
s.Description = val
}
type DeploymentEntryPointsItem map[string]jx.Raw
func (s *DeploymentEntryPointsItem) init() DeploymentEntryPointsItem {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/DeploymentList
type DeploymentList struct {
Deployments []Deployment `json:"deployments"`
NextPageToken OptString `json:"nextPageToken"`
}
// GetDeployments returns the value of Deployments.
func (s *DeploymentList) GetDeployments() []Deployment {
return s.Deployments
}
// GetNextPageToken returns the value of NextPageToken.
func (s *DeploymentList) GetNextPageToken() OptString {
return s.NextPageToken
}
// SetDeployments sets the value of Deployments.
func (s *DeploymentList) SetDeployments(val []Deployment) {
s.Deployments = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *DeploymentList) SetNextPageToken(val OptString) {
s.NextPageToken = val
}
// Ref: #/components/schemas/ExecutionRequest
type ExecutionRequest struct {
Function string `json:"function"`
Parameters []jx.Raw `json:"parameters"`
DevMode OptBool `json:"devMode"`
}
// GetFunction returns the value of Function.
func (s *ExecutionRequest) GetFunction() string {
return s.Function
}
// GetParameters returns the value of Parameters.
func (s *ExecutionRequest) GetParameters() []jx.Raw {
return s.Parameters
}
// GetDevMode returns the value of DevMode.
func (s *ExecutionRequest) GetDevMode() OptBool {
return s.DevMode
}
// SetFunction sets the value of Function.
func (s *ExecutionRequest) SetFunction(val string) {
s.Function = val
}
// SetParameters sets the value of Parameters.
func (s *ExecutionRequest) SetParameters(val []jx.Raw) {
s.Parameters = val
}
// SetDevMode sets the value of DevMode.
func (s *ExecutionRequest) SetDevMode(val OptBool) {
s.DevMode = val
}
// Ref: #/components/schemas/ExecutionResponse
type ExecutionResponse struct {
Done OptBool `json:"done"`
Response OptExecutionResponseResponse `json:"response"`
Error OptExecutionResponseError `json:"error"`
}
// GetDone returns the value of Done.
func (s *ExecutionResponse) GetDone() OptBool {
return s.Done
}
// GetResponse returns the value of Response.
func (s *ExecutionResponse) GetResponse() OptExecutionResponseResponse {
return s.Response
}
// GetError returns the value of Error.
func (s *ExecutionResponse) GetError() OptExecutionResponseError {
return s.Error
}
// SetDone sets the value of Done.
func (s *ExecutionResponse) SetDone(val OptBool) {
s.Done = val
}
// SetResponse sets the value of Response.
func (s *ExecutionResponse) SetResponse(val OptExecutionResponseResponse) {
s.Response = val
}
// SetError sets the value of Error.
func (s *ExecutionResponse) SetError(val OptExecutionResponseError) {
s.Error = val
}
type ExecutionResponseError map[string]jx.Raw
func (s *ExecutionResponseError) init() ExecutionResponseError {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type ExecutionResponseResponse map[string]jx.Raw
func (s *ExecutionResponseResponse) init() ExecutionResponseResponse {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
type GetMetricsMetricsGranularity string
const (
GetMetricsMetricsGranularityWEEKLY GetMetricsMetricsGranularity = "WEEKLY"
GetMetricsMetricsGranularityDAILY GetMetricsMetricsGranularity = "DAILY"
)
// AllValues returns all GetMetricsMetricsGranularity values.
func (GetMetricsMetricsGranularity) AllValues() []GetMetricsMetricsGranularity {
return []GetMetricsMetricsGranularity{
GetMetricsMetricsGranularityWEEKLY,
GetMetricsMetricsGranularityDAILY,
}
}
// MarshalText implements encoding.TextMarshaler.
func (s GetMetricsMetricsGranularity) MarshalText() ([]byte, error) {
switch s {
case GetMetricsMetricsGranularityWEEKLY:
return []byte(s), nil
case GetMetricsMetricsGranularityDAILY:
return []byte(s), nil
default:
return nil, errors.Errorf("invalid value: %q", s)
}
}
// UnmarshalText implements encoding.TextUnmarshaler.
func (s *GetMetricsMetricsGranularity) UnmarshalText(data []byte) error {
switch GetMetricsMetricsGranularity(data) {
case GetMetricsMetricsGranularityWEEKLY:
*s = GetMetricsMetricsGranularityWEEKLY
return nil
case GetMetricsMetricsGranularityDAILY:
*s = GetMetricsMetricsGranularityDAILY
return nil
default:
return errors.Errorf("invalid value: %q", data)
}
}
// Ref: #/components/schemas/GoogleUser
type GoogleUser struct {
Domain OptString `json:"domain"`
Email OptString `json:"email"`
Name OptString `json:"name"`
PhotoUrl OptString `json:"photoUrl"`
}
// GetDomain returns the value of Domain.
func (s *GoogleUser) GetDomain() OptString {
return s.Domain
}
// GetEmail returns the value of Email.
func (s *GoogleUser) GetEmail() OptString {
return s.Email
}
// GetName returns the value of Name.
func (s *GoogleUser) GetName() OptString {
return s.Name
}
// GetPhotoUrl returns the value of PhotoUrl.
func (s *GoogleUser) GetPhotoUrl() OptString {
return s.PhotoUrl
}
// SetDomain sets the value of Domain.
func (s *GoogleUser) SetDomain(val OptString) {
s.Domain = val
}
// SetEmail sets the value of Email.
func (s *GoogleUser) SetEmail(val OptString) {
s.Email = val
}
// SetName sets the value of Name.
func (s *GoogleUser) SetName(val OptString) {
s.Name = val
}
// SetPhotoUrl sets the value of PhotoUrl.
func (s *GoogleUser) SetPhotoUrl(val OptString) {
s.PhotoUrl = val
}
// Ref: #/components/schemas/Metrics
type Metrics struct {
ActiveUsers []MetricsValue `json:"activeUsers"`
TotalExecutions []MetricsValue `json:"totalExecutions"`
FailedExecutions []MetricsValue `json:"failedExecutions"`
}
// GetActiveUsers returns the value of ActiveUsers.
func (s *Metrics) GetActiveUsers() []MetricsValue {
return s.ActiveUsers
}
// GetTotalExecutions returns the value of TotalExecutions.
func (s *Metrics) GetTotalExecutions() []MetricsValue {
return s.TotalExecutions
}
// GetFailedExecutions returns the value of FailedExecutions.
func (s *Metrics) GetFailedExecutions() []MetricsValue {
return s.FailedExecutions
}
// SetActiveUsers sets the value of ActiveUsers.
func (s *Metrics) SetActiveUsers(val []MetricsValue) {
s.ActiveUsers = val
}
// SetTotalExecutions sets the value of TotalExecutions.
func (s *Metrics) SetTotalExecutions(val []MetricsValue) {
s.TotalExecutions = val
}
// SetFailedExecutions sets the value of FailedExecutions.
func (s *Metrics) SetFailedExecutions(val []MetricsValue) {
s.FailedExecutions = val
}
// Ref: #/components/schemas/MetricsValue
type MetricsValue struct {
StartTime OptString `json:"startTime"`
EndTime OptString `json:"endTime"`
Value OptString `json:"value"`
}
// GetStartTime returns the value of StartTime.
func (s *MetricsValue) GetStartTime() OptString {
return s.StartTime
}
// GetEndTime returns the value of EndTime.
func (s *MetricsValue) GetEndTime() OptString {
return s.EndTime
}
// GetValue returns the value of Value.
func (s *MetricsValue) GetValue() OptString {
return s.Value
}
// SetStartTime sets the value of StartTime.
func (s *MetricsValue) SetStartTime(val OptString) {
s.StartTime = val
}
// SetEndTime sets the value of EndTime.
func (s *MetricsValue) SetEndTime(val OptString) {
s.EndTime = val
}
// SetValue sets the value of Value.
func (s *MetricsValue) SetValue(val OptString) {
s.Value = val
}
// NewOptBool returns new OptBool with value set to v.
func NewOptBool(v bool) OptBool {
return OptBool{
Value: v,
Set: true,
}
}
// OptBool is optional bool.
type OptBool struct {
Value bool
Set bool
}
// IsSet returns true if OptBool was set.
func (o OptBool) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptBool) Reset() {
var v bool
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptBool) SetTo(v bool) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptBool) Get() (v bool, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptBool) Or(d bool) bool {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptDeploymentConfig returns new OptDeploymentConfig with value set to v.
func NewOptDeploymentConfig(v DeploymentConfig) OptDeploymentConfig {
return OptDeploymentConfig{
Value: v,
Set: true,
}
}
// OptDeploymentConfig is optional DeploymentConfig.
type OptDeploymentConfig struct {
Value DeploymentConfig
Set bool
}
// IsSet returns true if OptDeploymentConfig was set.
func (o OptDeploymentConfig) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptDeploymentConfig) Reset() {
var v DeploymentConfig
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptDeploymentConfig) SetTo(v DeploymentConfig) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptDeploymentConfig) Get() (v DeploymentConfig, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptDeploymentConfig) Or(d DeploymentConfig) DeploymentConfig {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptExecutionResponseError returns new OptExecutionResponseError with value set to v.
func NewOptExecutionResponseError(v ExecutionResponseError) OptExecutionResponseError {
return OptExecutionResponseError{
Value: v,
Set: true,
}
}
// OptExecutionResponseError is optional ExecutionResponseError.
type OptExecutionResponseError struct {
Value ExecutionResponseError
Set bool
}
// IsSet returns true if OptExecutionResponseError was set.
func (o OptExecutionResponseError) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptExecutionResponseError) Reset() {
var v ExecutionResponseError
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptExecutionResponseError) SetTo(v ExecutionResponseError) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptExecutionResponseError) Get() (v ExecutionResponseError, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptExecutionResponseError) Or(d ExecutionResponseError) ExecutionResponseError {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptExecutionResponseResponse returns new OptExecutionResponseResponse with value set to v.
func NewOptExecutionResponseResponse(v ExecutionResponseResponse) OptExecutionResponseResponse {
return OptExecutionResponseResponse{
Value: v,
Set: true,
}
}
// OptExecutionResponseResponse is optional ExecutionResponseResponse.
type OptExecutionResponseResponse struct {
Value ExecutionResponseResponse
Set bool
}
// IsSet returns true if OptExecutionResponseResponse was set.
func (o OptExecutionResponseResponse) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptExecutionResponseResponse) Reset() {
var v ExecutionResponseResponse
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptExecutionResponseResponse) SetTo(v ExecutionResponseResponse) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptExecutionResponseResponse) Get() (v ExecutionResponseResponse, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptExecutionResponseResponse) Or(d ExecutionResponseResponse) ExecutionResponseResponse {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptGoogleUser returns new OptGoogleUser with value set to v.
func NewOptGoogleUser(v GoogleUser) OptGoogleUser {
return OptGoogleUser{
Value: v,
Set: true,
}
}
// OptGoogleUser is optional GoogleUser.
type OptGoogleUser struct {
Value GoogleUser
Set bool
}
// IsSet returns true if OptGoogleUser was set.
func (o OptGoogleUser) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptGoogleUser) Reset() {
var v GoogleUser
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptGoogleUser) SetTo(v GoogleUser) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptGoogleUser) Get() (v GoogleUser, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptGoogleUser) Or(d GoogleUser) GoogleUser {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptInt returns new OptInt with value set to v.
func NewOptInt(v int) OptInt {
return OptInt{
Value: v,
Set: true,
}
}
// OptInt is optional int.
type OptInt struct {
Value int
Set bool
}
// IsSet returns true if OptInt was set.
func (o OptInt) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptInt) Reset() {
var v int
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptInt) SetTo(v int) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptInt) Get() (v int, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptInt) Or(d int) int {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptScriptFileFunctionSet returns new OptScriptFileFunctionSet with value set to v.
func NewOptScriptFileFunctionSet(v ScriptFileFunctionSet) OptScriptFileFunctionSet {
return OptScriptFileFunctionSet{
Value: v,
Set: true,
}
}
// OptScriptFileFunctionSet is optional ScriptFileFunctionSet.
type OptScriptFileFunctionSet struct {
Value ScriptFileFunctionSet
Set bool
}
// IsSet returns true if OptScriptFileFunctionSet was set.
func (o OptScriptFileFunctionSet) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptScriptFileFunctionSet) Reset() {
var v ScriptFileFunctionSet
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptScriptFileFunctionSet) SetTo(v ScriptFileFunctionSet) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptScriptFileFunctionSet) Get() (v ScriptFileFunctionSet, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptScriptFileFunctionSet) Or(d ScriptFileFunctionSet) ScriptFileFunctionSet {
if v, ok := o.Get(); ok {
return v
}
return d
}
// NewOptString returns new OptString with value set to v.
func NewOptString(v string) OptString {
return OptString{
Value: v,
Set: true,
}
}
// OptString is optional string.
type OptString struct {
Value string
Set bool
}
// IsSet returns true if OptString was set.
func (o OptString) IsSet() bool { return o.Set }
// Reset unsets value.
func (o *OptString) Reset() {
var v string
o.Value = v
o.Set = false
}
// SetTo sets value to v.
func (o *OptString) SetTo(v string) {
o.Set = true
o.Value = v
}
// Get returns value and boolean that denotes whether value was set.
func (o OptString) Get() (v string, ok bool) {
if !o.Set {
return v, false
}
return o.Value, true
}
// Or returns value if set, or given parameter if does not.
func (o OptString) Or(d string) string {
if v, ok := o.Get(); ok {
return v
}
return d
}
// Ref: #/components/schemas/Process
type Process struct {
ProcessId OptString `json:"processId"`
FunctionName OptString `json:"functionName"`
ProcessType OptString `json:"processType"`
ProcessStatus OptString `json:"processStatus"`
StartTime OptString `json:"startTime"`
Duration OptString `json:"duration"`
UserAccessLevel OptString `json:"userAccessLevel"`
ProjectName OptString `json:"projectName"`
ExecutingUser OptString `json:"executingUser"`
}
// GetProcessId returns the value of ProcessId.
func (s *Process) GetProcessId() OptString {
return s.ProcessId
}
// GetFunctionName returns the value of FunctionName.
func (s *Process) GetFunctionName() OptString {
return s.FunctionName
}
// GetProcessType returns the value of ProcessType.
func (s *Process) GetProcessType() OptString {
return s.ProcessType
}
// GetProcessStatus returns the value of ProcessStatus.
func (s *Process) GetProcessStatus() OptString {
return s.ProcessStatus
}
// GetStartTime returns the value of StartTime.
func (s *Process) GetStartTime() OptString {
return s.StartTime
}
// GetDuration returns the value of Duration.
func (s *Process) GetDuration() OptString {
return s.Duration
}
// GetUserAccessLevel returns the value of UserAccessLevel.
func (s *Process) GetUserAccessLevel() OptString {
return s.UserAccessLevel
}
// GetProjectName returns the value of ProjectName.
func (s *Process) GetProjectName() OptString {
return s.ProjectName
}
// GetExecutingUser returns the value of ExecutingUser.
func (s *Process) GetExecutingUser() OptString {
return s.ExecutingUser
}
// SetProcessId sets the value of ProcessId.
func (s *Process) SetProcessId(val OptString) {
s.ProcessId = val
}
// SetFunctionName sets the value of FunctionName.
func (s *Process) SetFunctionName(val OptString) {
s.FunctionName = val
}
// SetProcessType sets the value of ProcessType.
func (s *Process) SetProcessType(val OptString) {
s.ProcessType = val
}
// SetProcessStatus sets the value of ProcessStatus.
func (s *Process) SetProcessStatus(val OptString) {
s.ProcessStatus = val
}
// SetStartTime sets the value of StartTime.
func (s *Process) SetStartTime(val OptString) {
s.StartTime = val
}
// SetDuration sets the value of Duration.
func (s *Process) SetDuration(val OptString) {
s.Duration = val
}
// SetUserAccessLevel sets the value of UserAccessLevel.
func (s *Process) SetUserAccessLevel(val OptString) {
s.UserAccessLevel = val
}
// SetProjectName sets the value of ProjectName.
func (s *Process) SetProjectName(val OptString) {
s.ProjectName = val
}
// SetExecutingUser sets the value of ExecutingUser.
func (s *Process) SetExecutingUser(val OptString) {
s.ExecutingUser = val
}
// Ref: #/components/schemas/ProcessList
type ProcessList struct {
Processes []Process `json:"processes"`
NextPageToken OptString `json:"nextPageToken"`
}
// GetProcesses returns the value of Processes.
func (s *ProcessList) GetProcesses() []Process {
return s.Processes
}
// GetNextPageToken returns the value of NextPageToken.
func (s *ProcessList) GetNextPageToken() OptString {
return s.NextPageToken
}
// SetProcesses sets the value of Processes.
func (s *ProcessList) SetProcesses(val []Process) {
s.Processes = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *ProcessList) SetNextPageToken(val OptString) {
s.NextPageToken = val
}
// Ref: #/components/schemas/Project
type Project struct {
ScriptId OptString `json:"scriptId"`
Title OptString `json:"title"`
ParentId OptString `json:"parentId"`
CreateTime OptString `json:"createTime"`
UpdateTime OptString `json:"updateTime"`
Creator OptGoogleUser `json:"creator"`
LastModifyUser OptGoogleUser `json:"lastModifyUser"`
}
// GetScriptId returns the value of ScriptId.
func (s *Project) GetScriptId() OptString {
return s.ScriptId
}
// GetTitle returns the value of Title.
func (s *Project) GetTitle() OptString {
return s.Title
}
// GetParentId returns the value of ParentId.
func (s *Project) GetParentId() OptString {
return s.ParentId
}
// GetCreateTime returns the value of CreateTime.
func (s *Project) GetCreateTime() OptString {
return s.CreateTime
}
// GetUpdateTime returns the value of UpdateTime.
func (s *Project) GetUpdateTime() OptString {
return s.UpdateTime
}
// GetCreator returns the value of Creator.
func (s *Project) GetCreator() OptGoogleUser {
return s.Creator
}
// GetLastModifyUser returns the value of LastModifyUser.
func (s *Project) GetLastModifyUser() OptGoogleUser {
return s.LastModifyUser
}
// SetScriptId sets the value of ScriptId.
func (s *Project) SetScriptId(val OptString) {
s.ScriptId = val
}
// SetTitle sets the value of Title.
func (s *Project) SetTitle(val OptString) {
s.Title = val
}
// SetParentId sets the value of ParentId.
func (s *Project) SetParentId(val OptString) {
s.ParentId = val
}
// SetCreateTime sets the value of CreateTime.
func (s *Project) SetCreateTime(val OptString) {
s.CreateTime = val
}
// SetUpdateTime sets the value of UpdateTime.
func (s *Project) SetUpdateTime(val OptString) {
s.UpdateTime = val
}
// SetCreator sets the value of Creator.
func (s *Project) SetCreator(val OptGoogleUser) {
s.Creator = val
}
// SetLastModifyUser sets the value of LastModifyUser.
func (s *Project) SetLastModifyUser(val OptGoogleUser) {
s.LastModifyUser = val
}
// Ref: #/components/schemas/ScriptFile
type ScriptFile struct {
Name OptString `json:"name"`
// SERVER_JS, HTML, or JSON.
Type OptString `json:"type"`
Source OptString `json:"source"`
CreateTime OptString `json:"createTime"`
UpdateTime OptString `json:"updateTime"`
LastModifyUser OptGoogleUser `json:"lastModifyUser"`
FunctionSet OptScriptFileFunctionSet `json:"functionSet"`
}
// GetName returns the value of Name.
func (s *ScriptFile) GetName() OptString {
return s.Name
}
// GetType returns the value of Type.
func (s *ScriptFile) GetType() OptString {
return s.Type
}
// GetSource returns the value of Source.
func (s *ScriptFile) GetSource() OptString {
return s.Source
}
// GetCreateTime returns the value of CreateTime.
func (s *ScriptFile) GetCreateTime() OptString {
return s.CreateTime
}
// GetUpdateTime returns the value of UpdateTime.
func (s *ScriptFile) GetUpdateTime() OptString {
return s.UpdateTime
}
// GetLastModifyUser returns the value of LastModifyUser.
func (s *ScriptFile) GetLastModifyUser() OptGoogleUser {
return s.LastModifyUser
}
// GetFunctionSet returns the value of FunctionSet.
func (s *ScriptFile) GetFunctionSet() OptScriptFileFunctionSet {
return s.FunctionSet
}
// SetName sets the value of Name.
func (s *ScriptFile) SetName(val OptString) {
s.Name = val
}
// SetType sets the value of Type.
func (s *ScriptFile) SetType(val OptString) {
s.Type = val
}
// SetSource sets the value of Source.
func (s *ScriptFile) SetSource(val OptString) {
s.Source = val
}
// SetCreateTime sets the value of CreateTime.
func (s *ScriptFile) SetCreateTime(val OptString) {
s.CreateTime = val
}
// SetUpdateTime sets the value of UpdateTime.
func (s *ScriptFile) SetUpdateTime(val OptString) {
s.UpdateTime = val
}
// SetLastModifyUser sets the value of LastModifyUser.
func (s *ScriptFile) SetLastModifyUser(val OptGoogleUser) {
s.LastModifyUser = val
}
// SetFunctionSet sets the value of FunctionSet.
func (s *ScriptFile) SetFunctionSet(val OptScriptFileFunctionSet) {
s.FunctionSet = val
}
type ScriptFileFunctionSet map[string]jx.Raw
func (s *ScriptFileFunctionSet) init() ScriptFileFunctionSet {
m := *s
if m == nil {
m = map[string]jx.Raw{}
*s = m
}
return m
}
// Ref: #/components/schemas/ScriptFileInput
type ScriptFileInput struct {
Name OptString `json:"name"`
Type OptString `json:"type"`
Source OptString `json:"source"`
}
// GetName returns the value of Name.
func (s *ScriptFileInput) GetName() OptString {
return s.Name
}
// GetType returns the value of Type.
func (s *ScriptFileInput) GetType() OptString {
return s.Type
}
// GetSource returns the value of Source.
func (s *ScriptFileInput) GetSource() OptString {
return s.Source
}
// SetName sets the value of Name.
func (s *ScriptFileInput) SetName(val OptString) {
s.Name = val
}
// SetType sets the value of Type.
func (s *ScriptFileInput) SetType(val OptString) {
s.Type = val
}
// SetSource sets the value of Source.
func (s *ScriptFileInput) SetSource(val OptString) {
s.Source = val
}
// Ref: #/components/schemas/UpdateContentRequest
type UpdateContentRequest struct {
Files []ScriptFileInput `json:"files"`
}
// GetFiles returns the value of Files.
func (s *UpdateContentRequest) GetFiles() []ScriptFileInput {
return s.Files
}
// SetFiles sets the value of Files.
func (s *UpdateContentRequest) SetFiles(val []ScriptFileInput) {
s.Files = val
}
// Ref: #/components/schemas/UpdateDeploymentRequest
type UpdateDeploymentRequest struct {
DeploymentConfig OptDeploymentConfig `json:"deploymentConfig"`
}
// GetDeploymentConfig returns the value of DeploymentConfig.
func (s *UpdateDeploymentRequest) GetDeploymentConfig() OptDeploymentConfig {
return s.DeploymentConfig
}
// SetDeploymentConfig sets the value of DeploymentConfig.
func (s *UpdateDeploymentRequest) SetDeploymentConfig(val OptDeploymentConfig) {
s.DeploymentConfig = val
}
// Ref: #/components/schemas/Version
type Version struct {
VersionNumber OptInt `json:"versionNumber"`
Description OptString `json:"description"`
CreateTime OptString `json:"createTime"`
ScriptId OptString `json:"scriptId"`
}
// GetVersionNumber returns the value of VersionNumber.
func (s *Version) GetVersionNumber() OptInt {
return s.VersionNumber
}
// GetDescription returns the value of Description.
func (s *Version) GetDescription() OptString {
return s.Description
}
// GetCreateTime returns the value of CreateTime.
func (s *Version) GetCreateTime() OptString {
return s.CreateTime
}
// GetScriptId returns the value of ScriptId.
func (s *Version) GetScriptId() OptString {
return s.ScriptId
}
// SetVersionNumber sets the value of VersionNumber.
func (s *Version) SetVersionNumber(val OptInt) {
s.VersionNumber = val
}
// SetDescription sets the value of Description.
func (s *Version) SetDescription(val OptString) {
s.Description = val
}
// SetCreateTime sets the value of CreateTime.
func (s *Version) SetCreateTime(val OptString) {
s.CreateTime = val
}
// SetScriptId sets the value of ScriptId.
func (s *Version) SetScriptId(val OptString) {
s.ScriptId = val
}
// Ref: #/components/schemas/VersionList
type VersionList struct {
Versions []Version `json:"versions"`
NextPageToken OptString `json:"nextPageToken"`
}
// GetVersions returns the value of Versions.
func (s *VersionList) GetVersions() []Version {
return s.Versions
}
// GetNextPageToken returns the value of NextPageToken.
func (s *VersionList) GetNextPageToken() OptString {
return s.NextPageToken
}
// SetVersions sets the value of Versions.
func (s *VersionList) SetVersions(val []Version) {
s.Versions = val
}
// SetNextPageToken sets the value of NextPageToken.
func (s *VersionList) SetNextPageToken(val OptString) {
s.NextPageToken = val
}