From 1cc5f2927a7acf4d425342bd9476640042c7240c Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 11 Dec 2024 15:01:34 +0000 Subject: [PATCH] Generate runcommand --- services/runcommand/model_command_details.go | 18 +++++++++--------- services/runcommand/model_command_template.go | 6 +++--- .../model_command_template_response.go | 2 +- .../model_command_template_schema.go | 10 +++++----- services/runcommand/model_commands.go | 12 ++++++------ .../runcommand/model_create_command_payload.go | 4 ++-- services/runcommand/model_error_response.go | 4 ++-- services/runcommand/model_field.go | 14 +++++++------- .../runcommand/model_get_commands_response.go | 2 +- .../runcommand/model_new_command_response.go | 2 +- services/runcommand/model_parameters_schema.go | 2 +- services/runcommand/model_properties.go | 12 ++++++------ 12 files changed, 44 insertions(+), 44 deletions(-) diff --git a/services/runcommand/model_command_details.go b/services/runcommand/model_command_details.go index 7fb7867e5..a7b31400f 100644 --- a/services/runcommand/model_command_details.go +++ b/services/runcommand/model_command_details.go @@ -69,7 +69,7 @@ func (o *CommandDetails) GetCommandTemplateNameOk() (*string, bool) { // HasCommandTemplateName returns a boolean if a field has been set. func (o *CommandDetails) HasCommandTemplateName() bool { - if o != nil && !IsNil(o.CommandTemplateName) { + if o != nil && !IsNil(o.CommandTemplateName) && !IsNil(o.CommandTemplateName) { return true } @@ -101,7 +101,7 @@ func (o *CommandDetails) GetCommandTemplateTitleOk() (*string, bool) { // HasCommandTemplateTitle returns a boolean if a field has been set. func (o *CommandDetails) HasCommandTemplateTitle() bool { - if o != nil && !IsNil(o.CommandTemplateTitle) { + if o != nil && !IsNil(o.CommandTemplateTitle) && !IsNil(o.CommandTemplateTitle) { return true } @@ -133,7 +133,7 @@ func (o *CommandDetails) GetExitCodeOk() (*int64, bool) { // HasExitCode returns a boolean if a field has been set. func (o *CommandDetails) HasExitCode() bool { - if o != nil && !IsNil(o.ExitCode) { + if o != nil && !IsNil(o.ExitCode) && !IsNil(o.ExitCode) { return true } @@ -165,7 +165,7 @@ func (o *CommandDetails) GetFinishedAtOk() (*string, bool) { // HasFinishedAt returns a boolean if a field has been set. func (o *CommandDetails) HasFinishedAt() bool { - if o != nil && !IsNil(o.FinishedAt) { + if o != nil && !IsNil(o.FinishedAt) && !IsNil(o.FinishedAt) { return true } @@ -197,7 +197,7 @@ func (o *CommandDetails) GetIdOk() (*int64, bool) { // HasId returns a boolean if a field has been set. func (o *CommandDetails) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -229,7 +229,7 @@ func (o *CommandDetails) GetOutputOk() (*string, bool) { // HasOutput returns a boolean if a field has been set. func (o *CommandDetails) HasOutput() bool { - if o != nil && !IsNil(o.Output) { + if o != nil && !IsNil(o.Output) && !IsNil(o.Output) { return true } @@ -261,7 +261,7 @@ func (o *CommandDetails) GetScriptOk() (*string, bool) { // HasScript returns a boolean if a field has been set. func (o *CommandDetails) HasScript() bool { - if o != nil && !IsNil(o.Script) { + if o != nil && !IsNil(o.Script) && !IsNil(o.Script) { return true } @@ -293,7 +293,7 @@ func (o *CommandDetails) GetStartedAtOk() (*string, bool) { // HasStartedAt returns a boolean if a field has been set. func (o *CommandDetails) HasStartedAt() bool { - if o != nil && !IsNil(o.StartedAt) { + if o != nil && !IsNil(o.StartedAt) && !IsNil(o.StartedAt) { return true } @@ -325,7 +325,7 @@ func (o *CommandDetails) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *CommandDetails) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } diff --git a/services/runcommand/model_command_template.go b/services/runcommand/model_command_template.go index 8ec716ec0..06e3e36c7 100644 --- a/services/runcommand/model_command_template.go +++ b/services/runcommand/model_command_template.go @@ -61,7 +61,7 @@ func (o *CommandTemplate) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CommandTemplate) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -93,7 +93,7 @@ func (o *CommandTemplate) GetOsTypeOk() (*[]string, bool) { // HasOsType returns a boolean if a field has been set. func (o *CommandTemplate) HasOsType() bool { - if o != nil && !IsNil(o.OsType) { + if o != nil && !IsNil(o.OsType) && !IsNil(o.OsType) { return true } @@ -125,7 +125,7 @@ func (o *CommandTemplate) GetTitleOk() (*string, bool) { // HasTitle returns a boolean if a field has been set. func (o *CommandTemplate) HasTitle() bool { - if o != nil && !IsNil(o.Title) { + if o != nil && !IsNil(o.Title) && !IsNil(o.Title) { return true } diff --git a/services/runcommand/model_command_template_response.go b/services/runcommand/model_command_template_response.go index 6ad0932b0..425527b66 100644 --- a/services/runcommand/model_command_template_response.go +++ b/services/runcommand/model_command_template_response.go @@ -59,7 +59,7 @@ func (o *CommandTemplateResponse) GetItemsOk() (*[]CommandTemplate, bool) { // HasItems returns a boolean if a field has been set. func (o *CommandTemplateResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/runcommand/model_command_template_schema.go b/services/runcommand/model_command_template_schema.go index a4c7a8577..27af4b423 100644 --- a/services/runcommand/model_command_template_schema.go +++ b/services/runcommand/model_command_template_schema.go @@ -63,7 +63,7 @@ func (o *CommandTemplateSchema) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *CommandTemplateSchema) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -95,7 +95,7 @@ func (o *CommandTemplateSchema) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *CommandTemplateSchema) HasName() bool { - if o != nil && !IsNil(o.Name) { + if o != nil && !IsNil(o.Name) && !IsNil(o.Name) { return true } @@ -127,7 +127,7 @@ func (o *CommandTemplateSchema) GetOsTypeOk() (*[]string, bool) { // HasOsType returns a boolean if a field has been set. func (o *CommandTemplateSchema) HasOsType() bool { - if o != nil && !IsNil(o.OsType) { + if o != nil && !IsNil(o.OsType) && !IsNil(o.OsType) { return true } @@ -159,7 +159,7 @@ func (o *CommandTemplateSchema) GetParameterSchemaOk() (*ParametersSchema, bool) // HasParameterSchema returns a boolean if a field has been set. func (o *CommandTemplateSchema) HasParameterSchema() bool { - if o != nil && !IsNil(o.ParameterSchema) { + if o != nil && !IsNil(o.ParameterSchema) && !IsNil(o.ParameterSchema) { return true } @@ -191,7 +191,7 @@ func (o *CommandTemplateSchema) GetTitleOk() (*string, bool) { // HasTitle returns a boolean if a field has been set. func (o *CommandTemplateSchema) HasTitle() bool { - if o != nil && !IsNil(o.Title) { + if o != nil && !IsNil(o.Title) && !IsNil(o.Title) { return true } diff --git a/services/runcommand/model_commands.go b/services/runcommand/model_commands.go index ff0c5b283..5066e623c 100644 --- a/services/runcommand/model_commands.go +++ b/services/runcommand/model_commands.go @@ -65,7 +65,7 @@ func (o *Commands) GetCommandTemplateNameOk() (*string, bool) { // HasCommandTemplateName returns a boolean if a field has been set. func (o *Commands) HasCommandTemplateName() bool { - if o != nil && !IsNil(o.CommandTemplateName) { + if o != nil && !IsNil(o.CommandTemplateName) && !IsNil(o.CommandTemplateName) { return true } @@ -97,7 +97,7 @@ func (o *Commands) GetCommandTemplateTitleOk() (*string, bool) { // HasCommandTemplateTitle returns a boolean if a field has been set. func (o *Commands) HasCommandTemplateTitle() bool { - if o != nil && !IsNil(o.CommandTemplateTitle) { + if o != nil && !IsNil(o.CommandTemplateTitle) && !IsNil(o.CommandTemplateTitle) { return true } @@ -129,7 +129,7 @@ func (o *Commands) GetFinishedAtOk() (*string, bool) { // HasFinishedAt returns a boolean if a field has been set. func (o *Commands) HasFinishedAt() bool { - if o != nil && !IsNil(o.FinishedAt) { + if o != nil && !IsNil(o.FinishedAt) && !IsNil(o.FinishedAt) { return true } @@ -161,7 +161,7 @@ func (o *Commands) GetIdOk() (*int64, bool) { // HasId returns a boolean if a field has been set. func (o *Commands) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } @@ -193,7 +193,7 @@ func (o *Commands) GetStartedAtOk() (*string, bool) { // HasStartedAt returns a boolean if a field has been set. func (o *Commands) HasStartedAt() bool { - if o != nil && !IsNil(o.StartedAt) { + if o != nil && !IsNil(o.StartedAt) && !IsNil(o.StartedAt) { return true } @@ -225,7 +225,7 @@ func (o *Commands) GetStatusOk() (*string, bool) { // HasStatus returns a boolean if a field has been set. func (o *Commands) HasStatus() bool { - if o != nil && !IsNil(o.Status) { + if o != nil && !IsNil(o.Status) && !IsNil(o.Status) { return true } diff --git a/services/runcommand/model_create_command_payload.go b/services/runcommand/model_create_command_payload.go index d7effe79b..eeef7fd66 100644 --- a/services/runcommand/model_create_command_payload.go +++ b/services/runcommand/model_create_command_payload.go @@ -46,7 +46,7 @@ func NewCreateCommandPayloadWithDefaults() *CreateCommandPayload { // GetCommandTemplateName returns the CommandTemplateName field value func (o *CreateCommandPayload) GetCommandTemplateName() *string { - if o == nil { + if o == nil || IsNil(o.CommandTemplateName) { var ret *string return ret } @@ -88,7 +88,7 @@ func (o *CreateCommandPayload) GetParametersOk() (*map[string]string, bool) { // HasParameters returns a boolean if a field has been set. func (o *CreateCommandPayload) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { + if o != nil && !IsNil(o.Parameters) && !IsNil(o.Parameters) { return true } diff --git a/services/runcommand/model_error_response.go b/services/runcommand/model_error_response.go index 5c85b11fb..92ae87e8e 100644 --- a/services/runcommand/model_error_response.go +++ b/services/runcommand/model_error_response.go @@ -50,7 +50,7 @@ func NewErrorResponseWithDefaults() *ErrorResponse { // GetMessage returns the Message field value func (o *ErrorResponse) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -74,7 +74,7 @@ func (o *ErrorResponse) SetMessage(v *string) { // GetStatus returns the Status field value func (o *ErrorResponse) GetStatus() *string { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *string return ret } diff --git a/services/runcommand/model_field.go b/services/runcommand/model_field.go index 91675b9ed..0fe960b7a 100644 --- a/services/runcommand/model_field.go +++ b/services/runcommand/model_field.go @@ -67,7 +67,7 @@ func (o *Field) GetDefaultOk() (*string, bool) { // HasDefault returns a boolean if a field has been set. func (o *Field) HasDefault() bool { - if o != nil && !IsNil(o.Default) { + if o != nil && !IsNil(o.Default) && !IsNil(o.Default) { return true } @@ -99,7 +99,7 @@ func (o *Field) GetDescriptionOk() (*string, bool) { // HasDescription returns a boolean if a field has been set. func (o *Field) HasDescription() bool { - if o != nil && !IsNil(o.Description) { + if o != nil && !IsNil(o.Description) && !IsNil(o.Description) { return true } @@ -131,7 +131,7 @@ func (o *Field) GetMaxLenOk() (*int64, bool) { // HasMaxLen returns a boolean if a field has been set. func (o *Field) HasMaxLen() bool { - if o != nil && !IsNil(o.MaxLen) { + if o != nil && !IsNil(o.MaxLen) && !IsNil(o.MaxLen) { return true } @@ -163,7 +163,7 @@ func (o *Field) GetMinLenOk() (*int64, bool) { // HasMinLen returns a boolean if a field has been set. func (o *Field) HasMinLen() bool { - if o != nil && !IsNil(o.MinLen) { + if o != nil && !IsNil(o.MinLen) && !IsNil(o.MinLen) { return true } @@ -195,7 +195,7 @@ func (o *Field) GetReadOnlyOk() (*bool, bool) { // HasReadOnly returns a boolean if a field has been set. func (o *Field) HasReadOnly() bool { - if o != nil && !IsNil(o.ReadOnly) { + if o != nil && !IsNil(o.ReadOnly) && !IsNil(o.ReadOnly) { return true } @@ -227,7 +227,7 @@ func (o *Field) GetTitleOk() (*string, bool) { // HasTitle returns a boolean if a field has been set. func (o *Field) HasTitle() bool { - if o != nil && !IsNil(o.Title) { + if o != nil && !IsNil(o.Title) && !IsNil(o.Title) { return true } @@ -259,7 +259,7 @@ func (o *Field) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Field) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && !IsNil(o.Type) && !IsNil(o.Type) { return true } diff --git a/services/runcommand/model_get_commands_response.go b/services/runcommand/model_get_commands_response.go index 3e1a85495..09b171019 100644 --- a/services/runcommand/model_get_commands_response.go +++ b/services/runcommand/model_get_commands_response.go @@ -59,7 +59,7 @@ func (o *GetCommandsResponse) GetItemsOk() (*[]Commands, bool) { // HasItems returns a boolean if a field has been set. func (o *GetCommandsResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/runcommand/model_new_command_response.go b/services/runcommand/model_new_command_response.go index 0474a642a..33e976851 100644 --- a/services/runcommand/model_new_command_response.go +++ b/services/runcommand/model_new_command_response.go @@ -60,7 +60,7 @@ func (o *NewCommandResponse) GetIdOk() (*int64, bool) { // HasId returns a boolean if a field has been set. func (o *NewCommandResponse) HasId() bool { - if o != nil && !IsNil(o.Id) { + if o != nil && !IsNil(o.Id) && !IsNil(o.Id) { return true } diff --git a/services/runcommand/model_parameters_schema.go b/services/runcommand/model_parameters_schema.go index 18d94bf28..cb346ff78 100644 --- a/services/runcommand/model_parameters_schema.go +++ b/services/runcommand/model_parameters_schema.go @@ -59,7 +59,7 @@ func (o *ParametersSchema) GetPropertiesOk() (*Properties, bool) { // HasProperties returns a boolean if a field has been set. func (o *ParametersSchema) HasProperties() bool { - if o != nil && !IsNil(o.Properties) { + if o != nil && !IsNil(o.Properties) && !IsNil(o.Properties) { return true } diff --git a/services/runcommand/model_properties.go b/services/runcommand/model_properties.go index 4df15d7de..58a5ff127 100644 --- a/services/runcommand/model_properties.go +++ b/services/runcommand/model_properties.go @@ -64,7 +64,7 @@ func (o *Properties) GetConfirmPasswordOk() (*Field, bool) { // HasConfirmPassword returns a boolean if a field has been set. func (o *Properties) HasConfirmPassword() bool { - if o != nil && !IsNil(o.ConfirmPassword) { + if o != nil && !IsNil(o.ConfirmPassword) && !IsNil(o.ConfirmPassword) { return true } @@ -96,7 +96,7 @@ func (o *Properties) GetPasswordOk() (*Field, bool) { // HasPassword returns a boolean if a field has been set. func (o *Properties) HasPassword() bool { - if o != nil && !IsNil(o.Password) { + if o != nil && !IsNil(o.Password) && !IsNil(o.Password) { return true } @@ -128,7 +128,7 @@ func (o *Properties) GetScriptOk() (*Field, bool) { // HasScript returns a boolean if a field has been set. func (o *Properties) HasScript() bool { - if o != nil && !IsNil(o.Script) { + if o != nil && !IsNil(o.Script) && !IsNil(o.Script) { return true } @@ -160,7 +160,7 @@ func (o *Properties) GetUsernameOk() (*Field, bool) { // HasUsername returns a boolean if a field has been set. func (o *Properties) HasUsername() bool { - if o != nil && !IsNil(o.Username) { + if o != nil && !IsNil(o.Username) && !IsNil(o.Username) { return true } @@ -192,7 +192,7 @@ func (o *Properties) GetRequiredOk() (*[]string, bool) { // HasRequired returns a boolean if a field has been set. func (o *Properties) HasRequired() bool { - if o != nil && !IsNil(o.Required) { + if o != nil && !IsNil(o.Required) && !IsNil(o.Required) { return true } @@ -224,7 +224,7 @@ func (o *Properties) GetTypeOk() (*string, bool) { // HasType returns a boolean if a field has been set. func (o *Properties) HasType() bool { - if o != nil && !IsNil(o.Type) { + if o != nil && !IsNil(o.Type) && !IsNil(o.Type) { return true }