From 3b11f3e58c4cb1fc6c1d9515223e026efb6a3570 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Wed, 11 Dec 2024 15:02:05 +0000 Subject: [PATCH] Generate serviceaccount --- services/serviceaccount/model_access_token.go | 10 ++++----- .../model_access_token_metadata.go | 8 +++---- services/serviceaccount/model_auth_error.go | 2 +- .../serviceaccount/model_auth_error_error.go | 6 ++--- .../model_create_access_token_payload.go | 2 +- ...odel_create_service_account_key_payload.go | 4 ++-- ...del_create_service_account_key_response.go | 18 +++++++-------- ...ervice_account_key_response_credentials.go | 10 ++++----- .../model_create_service_account_payload.go | 2 +- ...reate_short_lived_access_token_response.go | 10 ++++----- services/serviceaccount/model_error.go | 10 ++++----- .../model_get_service_account_key_response.go | 18 +++++++-------- ...ervice_account_key_response_credentials.go | 8 +++---- services/serviceaccount/model_jwk.go | 22 +++++++++---------- services/serviceaccount/model_jwks.go | 2 +- .../model_list_access_tokens_response.go | 2 +- ...odel_list_service_account_keys_response.go | 2 +- .../model_list_service_accounts_response.go | 2 +- ...tial_update_service_account_key_payload.go | 4 ++-- ...ial_update_service_account_key_response.go | 14 ++++++------ .../serviceaccount/model_service_account.go | 8 +++---- ...model_service_account_key_list_response.go | 14 ++++++------ 22 files changed, 89 insertions(+), 89 deletions(-) diff --git a/services/serviceaccount/model_access_token.go b/services/serviceaccount/model_access_token.go index 2c2a84aff..9907b2131 100644 --- a/services/serviceaccount/model_access_token.go +++ b/services/serviceaccount/model_access_token.go @@ -63,7 +63,7 @@ func NewAccessTokenWithDefaults() *AccessToken { // GetActive returns the Active field value func (o *AccessToken) GetActive() *bool { - if o == nil { + if o == nil || IsNil(o.Active) { var ret *bool return ret } @@ -87,7 +87,7 @@ func (o *AccessToken) SetActive(v *bool) { // GetCreatedAt returns the CreatedAt field value func (o *AccessToken) GetCreatedAt() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreatedAt) { var ret *time.Time return ret } @@ -111,7 +111,7 @@ func (o *AccessToken) SetCreatedAt(v *time.Time) { // GetId returns the Id field value func (o *AccessToken) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -135,7 +135,7 @@ func (o *AccessToken) SetId(v *string) { // GetToken returns the Token field value func (o *AccessToken) GetToken() *string { - if o == nil { + if o == nil || IsNil(o.Token) { var ret *string return ret } @@ -159,7 +159,7 @@ func (o *AccessToken) SetToken(v *string) { // GetValidUntil returns the ValidUntil field value func (o *AccessToken) GetValidUntil() *time.Time { - if o == nil { + if o == nil || IsNil(o.ValidUntil) { var ret *time.Time return ret } diff --git a/services/serviceaccount/model_access_token_metadata.go b/services/serviceaccount/model_access_token_metadata.go index 2cadb1eb6..9cd0c6926 100644 --- a/services/serviceaccount/model_access_token_metadata.go +++ b/services/serviceaccount/model_access_token_metadata.go @@ -59,7 +59,7 @@ func NewAccessTokenMetadataWithDefaults() *AccessTokenMetadata { // GetActive returns the Active field value func (o *AccessTokenMetadata) GetActive() *bool { - if o == nil { + if o == nil || IsNil(o.Active) { var ret *bool return ret } @@ -83,7 +83,7 @@ func (o *AccessTokenMetadata) SetActive(v *bool) { // GetCreatedAt returns the CreatedAt field value func (o *AccessTokenMetadata) GetCreatedAt() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreatedAt) { var ret *time.Time return ret } @@ -107,7 +107,7 @@ func (o *AccessTokenMetadata) SetCreatedAt(v *time.Time) { // GetId returns the Id field value func (o *AccessTokenMetadata) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -131,7 +131,7 @@ func (o *AccessTokenMetadata) SetId(v *string) { // GetValidUntil returns the ValidUntil field value func (o *AccessTokenMetadata) GetValidUntil() *time.Time { - if o == nil { + if o == nil || IsNil(o.ValidUntil) { var ret *time.Time return ret } diff --git a/services/serviceaccount/model_auth_error.go b/services/serviceaccount/model_auth_error.go index db64f831d..0e54106b9 100644 --- a/services/serviceaccount/model_auth_error.go +++ b/services/serviceaccount/model_auth_error.go @@ -45,7 +45,7 @@ func NewAuthErrorWithDefaults() *AuthError { // GetError returns the Error field value func (o *AuthError) GetError() *AuthErrorError { - if o == nil { + if o == nil || IsNil(o.Error) { var ret *AuthErrorError return ret } diff --git a/services/serviceaccount/model_auth_error_error.go b/services/serviceaccount/model_auth_error_error.go index c6b91e749..d1a8768d6 100644 --- a/services/serviceaccount/model_auth_error_error.go +++ b/services/serviceaccount/model_auth_error_error.go @@ -51,7 +51,7 @@ func NewAuthErrorErrorWithDefaults() *AuthErrorError { // GetCode returns the Code field value func (o *AuthErrorError) GetCode() *int64 { - if o == nil { + if o == nil || IsNil(o.Code) { var ret *int64 return ret } @@ -75,7 +75,7 @@ func (o *AuthErrorError) SetCode(v *int64) { // GetMessage returns the Message field value func (o *AuthErrorError) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -99,7 +99,7 @@ func (o *AuthErrorError) SetMessage(v *string) { // GetStatus returns the Status field value func (o *AuthErrorError) GetStatus() *string { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *string return ret } diff --git a/services/serviceaccount/model_create_access_token_payload.go b/services/serviceaccount/model_create_access_token_payload.go index fcfb40a98..4a5d0b3c3 100644 --- a/services/serviceaccount/model_create_access_token_payload.go +++ b/services/serviceaccount/model_create_access_token_payload.go @@ -46,7 +46,7 @@ func NewCreateAccessTokenPayloadWithDefaults() *CreateAccessTokenPayload { // GetTtlDays returns the TtlDays field value func (o *CreateAccessTokenPayload) GetTtlDays() *int64 { - if o == nil { + if o == nil || IsNil(o.TtlDays) { var ret *int64 return ret } diff --git a/services/serviceaccount/model_create_service_account_key_payload.go b/services/serviceaccount/model_create_service_account_key_payload.go index 8bdc5c10b..d3b305d10 100644 --- a/services/serviceaccount/model_create_service_account_key_payload.go +++ b/services/serviceaccount/model_create_service_account_key_payload.go @@ -63,7 +63,7 @@ func (o *CreateServiceAccountKeyPayload) GetPublicKeyOk() (*string, bool) { // HasPublicKey returns a boolean if a field has been set. func (o *CreateServiceAccountKeyPayload) HasPublicKey() bool { - if o != nil && !IsNil(o.PublicKey) { + if o != nil && !IsNil(o.PublicKey) && !IsNil(o.PublicKey) { return true } @@ -95,7 +95,7 @@ func (o *CreateServiceAccountKeyPayload) GetValidUntilOk() (*time.Time, bool) { // HasValidUntil returns a boolean if a field has been set. func (o *CreateServiceAccountKeyPayload) HasValidUntil() bool { - if o != nil && !IsNil(o.ValidUntil) { + if o != nil && !IsNil(o.ValidUntil) && !IsNil(o.ValidUntil) { return true } diff --git a/services/serviceaccount/model_create_service_account_key_response.go b/services/serviceaccount/model_create_service_account_key_response.go index 130def2bc..4474c2caf 100644 --- a/services/serviceaccount/model_create_service_account_key_response.go +++ b/services/serviceaccount/model_create_service_account_key_response.go @@ -72,7 +72,7 @@ func NewCreateServiceAccountKeyResponseWithDefaults() *CreateServiceAccountKeyRe // GetActive returns the Active field value func (o *CreateServiceAccountKeyResponse) GetActive() *bool { - if o == nil { + if o == nil || IsNil(o.Active) { var ret *bool return ret } @@ -96,7 +96,7 @@ func (o *CreateServiceAccountKeyResponse) SetActive(v *bool) { // GetCreatedAt returns the CreatedAt field value func (o *CreateServiceAccountKeyResponse) GetCreatedAt() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreatedAt) { var ret *time.Time return ret } @@ -120,7 +120,7 @@ func (o *CreateServiceAccountKeyResponse) SetCreatedAt(v *time.Time) { // GetCredentials returns the Credentials field value func (o *CreateServiceAccountKeyResponse) GetCredentials() *CreateServiceAccountKeyResponseCredentials { - if o == nil { + if o == nil || IsNil(o.Credentials) { var ret *CreateServiceAccountKeyResponseCredentials return ret } @@ -144,7 +144,7 @@ func (o *CreateServiceAccountKeyResponse) SetCredentials(v *CreateServiceAccount // GetId returns the Id field value func (o *CreateServiceAccountKeyResponse) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -168,7 +168,7 @@ func (o *CreateServiceAccountKeyResponse) SetId(v *string) { // GetKeyAlgorithm returns the KeyAlgorithm field value func (o *CreateServiceAccountKeyResponse) GetKeyAlgorithm() *string { - if o == nil { + if o == nil || IsNil(o.KeyAlgorithm) { var ret *string return ret } @@ -192,7 +192,7 @@ func (o *CreateServiceAccountKeyResponse) SetKeyAlgorithm(v *string) { // GetKeyOrigin returns the KeyOrigin field value func (o *CreateServiceAccountKeyResponse) GetKeyOrigin() *string { - if o == nil { + if o == nil || IsNil(o.KeyOrigin) { var ret *string return ret } @@ -216,7 +216,7 @@ func (o *CreateServiceAccountKeyResponse) SetKeyOrigin(v *string) { // GetKeyType returns the KeyType field value func (o *CreateServiceAccountKeyResponse) GetKeyType() *string { - if o == nil { + if o == nil || IsNil(o.KeyType) { var ret *string return ret } @@ -240,7 +240,7 @@ func (o *CreateServiceAccountKeyResponse) SetKeyType(v *string) { // GetPublicKey returns the PublicKey field value func (o *CreateServiceAccountKeyResponse) GetPublicKey() *string { - if o == nil { + if o == nil || IsNil(o.PublicKey) { var ret *string return ret } @@ -282,7 +282,7 @@ func (o *CreateServiceAccountKeyResponse) GetValidUntilOk() (*time.Time, bool) { // HasValidUntil returns a boolean if a field has been set. func (o *CreateServiceAccountKeyResponse) HasValidUntil() bool { - if o != nil && !IsNil(o.ValidUntil) { + if o != nil && !IsNil(o.ValidUntil) && !IsNil(o.ValidUntil) { return true } diff --git a/services/serviceaccount/model_create_service_account_key_response_credentials.go b/services/serviceaccount/model_create_service_account_key_response_credentials.go index 752dd6416..65e572b46 100644 --- a/services/serviceaccount/model_create_service_account_key_response_credentials.go +++ b/services/serviceaccount/model_create_service_account_key_response_credentials.go @@ -60,7 +60,7 @@ func NewCreateServiceAccountKeyResponseCredentialsWithDefaults() *CreateServiceA // GetAud returns the Aud field value func (o *CreateServiceAccountKeyResponseCredentials) GetAud() *string { - if o == nil { + if o == nil || IsNil(o.Aud) { var ret *string return ret } @@ -84,7 +84,7 @@ func (o *CreateServiceAccountKeyResponseCredentials) SetAud(v *string) { // GetIss returns the Iss field value func (o *CreateServiceAccountKeyResponseCredentials) GetIss() *string { - if o == nil { + if o == nil || IsNil(o.Iss) { var ret *string return ret } @@ -108,7 +108,7 @@ func (o *CreateServiceAccountKeyResponseCredentials) SetIss(v *string) { // GetKid returns the Kid field value func (o *CreateServiceAccountKeyResponseCredentials) GetKid() *string { - if o == nil { + if o == nil || IsNil(o.Kid) { var ret *string return ret } @@ -150,7 +150,7 @@ func (o *CreateServiceAccountKeyResponseCredentials) GetPrivateKeyOk() (*string, // HasPrivateKey returns a boolean if a field has been set. func (o *CreateServiceAccountKeyResponseCredentials) HasPrivateKey() bool { - if o != nil && !IsNil(o.PrivateKey) { + if o != nil && !IsNil(o.PrivateKey) && !IsNil(o.PrivateKey) { return true } @@ -164,7 +164,7 @@ func (o *CreateServiceAccountKeyResponseCredentials) SetPrivateKey(v *string) { // GetSub returns the Sub field value func (o *CreateServiceAccountKeyResponseCredentials) GetSub() *string { - if o == nil { + if o == nil || IsNil(o.Sub) { var ret *string return ret } diff --git a/services/serviceaccount/model_create_service_account_payload.go b/services/serviceaccount/model_create_service_account_payload.go index 2f4977372..8169451a1 100644 --- a/services/serviceaccount/model_create_service_account_payload.go +++ b/services/serviceaccount/model_create_service_account_payload.go @@ -46,7 +46,7 @@ func NewCreateServiceAccountPayloadWithDefaults() *CreateServiceAccountPayload { // GetName returns the Name field value func (o *CreateServiceAccountPayload) GetName() *string { - if o == nil { + if o == nil || IsNil(o.Name) { var ret *string return ret } diff --git a/services/serviceaccount/model_create_short_lived_access_token_response.go b/services/serviceaccount/model_create_short_lived_access_token_response.go index 3b39e93ad..8e7457fd7 100644 --- a/services/serviceaccount/model_create_short_lived_access_token_response.go +++ b/services/serviceaccount/model_create_short_lived_access_token_response.go @@ -60,7 +60,7 @@ func NewCreateShortLivedAccessTokenResponseWithDefaults() *CreateShortLivedAcces // GetAccessToken returns the AccessToken field value func (o *CreateShortLivedAccessTokenResponse) GetAccessToken() *string { - if o == nil { + if o == nil || IsNil(o.AccessToken) { var ret *string return ret } @@ -84,7 +84,7 @@ func (o *CreateShortLivedAccessTokenResponse) SetAccessToken(v *string) { // GetExpiresIn returns the ExpiresIn field value func (o *CreateShortLivedAccessTokenResponse) GetExpiresIn() *int64 { - if o == nil { + if o == nil || IsNil(o.ExpiresIn) { var ret *int64 return ret } @@ -108,7 +108,7 @@ func (o *CreateShortLivedAccessTokenResponse) SetExpiresIn(v *int64) { // GetRefreshToken returns the RefreshToken field value func (o *CreateShortLivedAccessTokenResponse) GetRefreshToken() *string { - if o == nil { + if o == nil || IsNil(o.RefreshToken) { var ret *string return ret } @@ -132,7 +132,7 @@ func (o *CreateShortLivedAccessTokenResponse) SetRefreshToken(v *string) { // GetScope returns the Scope field value func (o *CreateShortLivedAccessTokenResponse) GetScope() *string { - if o == nil { + if o == nil || IsNil(o.Scope) { var ret *string return ret } @@ -156,7 +156,7 @@ func (o *CreateShortLivedAccessTokenResponse) SetScope(v *string) { // GetTokenType returns the TokenType field value func (o *CreateShortLivedAccessTokenResponse) GetTokenType() *string { - if o == nil { + if o == nil || IsNil(o.TokenType) { var ret *string return ret } diff --git a/services/serviceaccount/model_error.go b/services/serviceaccount/model_error.go index dce3b1302..1427ea170 100644 --- a/services/serviceaccount/model_error.go +++ b/services/serviceaccount/model_error.go @@ -58,7 +58,7 @@ func NewErrorWithDefaults() *Error { // GetError returns the Error field value func (o *Error) GetError() *string { - if o == nil { + if o == nil || IsNil(o.Error) { var ret *string return ret } @@ -82,7 +82,7 @@ func (o *Error) SetError(v *string) { // GetMessage returns the Message field value func (o *Error) GetMessage() *string { - if o == nil { + if o == nil || IsNil(o.Message) { var ret *string return ret } @@ -106,7 +106,7 @@ func (o *Error) SetMessage(v *string) { // GetPath returns the Path field value func (o *Error) GetPath() *string { - if o == nil { + if o == nil || IsNil(o.Path) { var ret *string return ret } @@ -130,7 +130,7 @@ func (o *Error) SetPath(v *string) { // GetStatus returns the Status field value func (o *Error) GetStatus() *int64 { - if o == nil { + if o == nil || IsNil(o.Status) { var ret *int64 return ret } @@ -154,7 +154,7 @@ func (o *Error) SetStatus(v *int64) { // GetTimeStamp returns the TimeStamp field value func (o *Error) GetTimeStamp() *time.Time { - if o == nil { + if o == nil || IsNil(o.TimeStamp) { var ret *time.Time return ret } diff --git a/services/serviceaccount/model_get_service_account_key_response.go b/services/serviceaccount/model_get_service_account_key_response.go index 1cf85d273..64d708017 100644 --- a/services/serviceaccount/model_get_service_account_key_response.go +++ b/services/serviceaccount/model_get_service_account_key_response.go @@ -70,7 +70,7 @@ func NewGetServiceAccountKeyResponseWithDefaults() *GetServiceAccountKeyResponse // GetActive returns the Active field value func (o *GetServiceAccountKeyResponse) GetActive() *bool { - if o == nil { + if o == nil || IsNil(o.Active) { var ret *bool return ret } @@ -94,7 +94,7 @@ func (o *GetServiceAccountKeyResponse) SetActive(v *bool) { // GetCreatedAt returns the CreatedAt field value func (o *GetServiceAccountKeyResponse) GetCreatedAt() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreatedAt) { var ret *time.Time return ret } @@ -118,7 +118,7 @@ func (o *GetServiceAccountKeyResponse) SetCreatedAt(v *time.Time) { // GetCredentials returns the Credentials field value func (o *GetServiceAccountKeyResponse) GetCredentials() *GetServiceAccountKeyResponseCredentials { - if o == nil { + if o == nil || IsNil(o.Credentials) { var ret *GetServiceAccountKeyResponseCredentials return ret } @@ -142,7 +142,7 @@ func (o *GetServiceAccountKeyResponse) SetCredentials(v *GetServiceAccountKeyRes // GetId returns the Id field value func (o *GetServiceAccountKeyResponse) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -166,7 +166,7 @@ func (o *GetServiceAccountKeyResponse) SetId(v *string) { // GetKeyAlgorithm returns the KeyAlgorithm field value func (o *GetServiceAccountKeyResponse) GetKeyAlgorithm() *string { - if o == nil { + if o == nil || IsNil(o.KeyAlgorithm) { var ret *string return ret } @@ -190,7 +190,7 @@ func (o *GetServiceAccountKeyResponse) SetKeyAlgorithm(v *string) { // GetKeyOrigin returns the KeyOrigin field value func (o *GetServiceAccountKeyResponse) GetKeyOrigin() *string { - if o == nil { + if o == nil || IsNil(o.KeyOrigin) { var ret *string return ret } @@ -214,7 +214,7 @@ func (o *GetServiceAccountKeyResponse) SetKeyOrigin(v *string) { // GetKeyType returns the KeyType field value func (o *GetServiceAccountKeyResponse) GetKeyType() *string { - if o == nil { + if o == nil || IsNil(o.KeyType) { var ret *string return ret } @@ -256,7 +256,7 @@ func (o *GetServiceAccountKeyResponse) GetPublicKeyOk() (*string, bool) { // HasPublicKey returns a boolean if a field has been set. func (o *GetServiceAccountKeyResponse) HasPublicKey() bool { - if o != nil && !IsNil(o.PublicKey) { + if o != nil && !IsNil(o.PublicKey) && !IsNil(o.PublicKey) { return true } @@ -288,7 +288,7 @@ func (o *GetServiceAccountKeyResponse) GetValidUntilOk() (*time.Time, bool) { // HasValidUntil returns a boolean if a field has been set. func (o *GetServiceAccountKeyResponse) HasValidUntil() bool { - if o != nil && !IsNil(o.ValidUntil) { + if o != nil && !IsNil(o.ValidUntil) && !IsNil(o.ValidUntil) { return true } diff --git a/services/serviceaccount/model_get_service_account_key_response_credentials.go b/services/serviceaccount/model_get_service_account_key_response_credentials.go index d6274d246..d841182a0 100644 --- a/services/serviceaccount/model_get_service_account_key_response_credentials.go +++ b/services/serviceaccount/model_get_service_account_key_response_credentials.go @@ -58,7 +58,7 @@ func NewGetServiceAccountKeyResponseCredentialsWithDefaults() *GetServiceAccount // GetAud returns the Aud field value func (o *GetServiceAccountKeyResponseCredentials) GetAud() *string { - if o == nil { + if o == nil || IsNil(o.Aud) { var ret *string return ret } @@ -82,7 +82,7 @@ func (o *GetServiceAccountKeyResponseCredentials) SetAud(v *string) { // GetIss returns the Iss field value func (o *GetServiceAccountKeyResponseCredentials) GetIss() *string { - if o == nil { + if o == nil || IsNil(o.Iss) { var ret *string return ret } @@ -106,7 +106,7 @@ func (o *GetServiceAccountKeyResponseCredentials) SetIss(v *string) { // GetKid returns the Kid field value func (o *GetServiceAccountKeyResponseCredentials) GetKid() *string { - if o == nil { + if o == nil || IsNil(o.Kid) { var ret *string return ret } @@ -130,7 +130,7 @@ func (o *GetServiceAccountKeyResponseCredentials) SetKid(v *string) { // GetSub returns the Sub field value func (o *GetServiceAccountKeyResponseCredentials) GetSub() *string { - if o == nil { + if o == nil || IsNil(o.Sub) { var ret *string return ret } diff --git a/services/serviceaccount/model_jwk.go b/services/serviceaccount/model_jwk.go index c976ed85e..026c78804 100644 --- a/services/serviceaccount/model_jwk.go +++ b/services/serviceaccount/model_jwk.go @@ -75,7 +75,7 @@ func (o *JWK) GetAlgOk() (*string, bool) { // HasAlg returns a boolean if a field has been set. func (o *JWK) HasAlg() bool { - if o != nil && !IsNil(o.Alg) { + if o != nil && !IsNil(o.Alg) && !IsNil(o.Alg) { return true } @@ -89,7 +89,7 @@ func (o *JWK) SetAlg(v *string) { // GetE returns the E field value func (o *JWK) GetE() *string { - if o == nil { + if o == nil || IsNil(o.E) { var ret *string return ret } @@ -131,7 +131,7 @@ func (o *JWK) GetKidOk() (*string, bool) { // HasKid returns a boolean if a field has been set. func (o *JWK) HasKid() bool { - if o != nil && !IsNil(o.Kid) { + if o != nil && !IsNil(o.Kid) && !IsNil(o.Kid) { return true } @@ -163,7 +163,7 @@ func (o *JWK) GetKsOk() (*string, bool) { // HasKs returns a boolean if a field has been set. func (o *JWK) HasKs() bool { - if o != nil && !IsNil(o.Ks) { + if o != nil && !IsNil(o.Ks) && !IsNil(o.Ks) { return true } @@ -177,7 +177,7 @@ func (o *JWK) SetKs(v *string) { // GetN returns the N field value func (o *JWK) GetN() *string { - if o == nil { + if o == nil || IsNil(o.N) { var ret *string return ret } @@ -219,7 +219,7 @@ func (o *JWK) GetOpsOk() (*string, bool) { // HasOps returns a boolean if a field has been set. func (o *JWK) HasOps() bool { - if o != nil && !IsNil(o.Ops) { + if o != nil && !IsNil(o.Ops) && !IsNil(o.Ops) { return true } @@ -251,7 +251,7 @@ func (o *JWK) GetUseOk() (*string, bool) { // HasUse returns a boolean if a field has been set. func (o *JWK) HasUse() bool { - if o != nil && !IsNil(o.Use) { + if o != nil && !IsNil(o.Use) && !IsNil(o.Use) { return true } @@ -283,7 +283,7 @@ func (o *JWK) GetX5cOk() (*string, bool) { // HasX5c returns a boolean if a field has been set. func (o *JWK) HasX5c() bool { - if o != nil && !IsNil(o.X5c) { + if o != nil && !IsNil(o.X5c) && !IsNil(o.X5c) { return true } @@ -315,7 +315,7 @@ func (o *JWK) GetX5tOk() (*string, bool) { // HasX5t returns a boolean if a field has been set. func (o *JWK) HasX5t() bool { - if o != nil && !IsNil(o.X5t) { + if o != nil && !IsNil(o.X5t) && !IsNil(o.X5t) { return true } @@ -347,7 +347,7 @@ func (o *JWK) GetX5t256Ok() (*string, bool) { // HasX5t256 returns a boolean if a field has been set. func (o *JWK) HasX5t256() bool { - if o != nil && !IsNil(o.X5t256) { + if o != nil && !IsNil(o.X5t256) && !IsNil(o.X5t256) { return true } @@ -379,7 +379,7 @@ func (o *JWK) GetX5uOk() (*string, bool) { // HasX5u returns a boolean if a field has been set. func (o *JWK) HasX5u() bool { - if o != nil && !IsNil(o.X5u) { + if o != nil && !IsNil(o.X5u) && !IsNil(o.X5u) { return true } diff --git a/services/serviceaccount/model_jwks.go b/services/serviceaccount/model_jwks.go index e3c3901f0..e6ee232ab 100644 --- a/services/serviceaccount/model_jwks.go +++ b/services/serviceaccount/model_jwks.go @@ -45,7 +45,7 @@ func NewJWKSWithDefaults() *JWKS { // GetKeys returns the Keys field value func (o *JWKS) GetKeys() *[]JWK { - if o == nil { + if o == nil || IsNil(o.Keys) { var ret *[]JWK return ret } diff --git a/services/serviceaccount/model_list_access_tokens_response.go b/services/serviceaccount/model_list_access_tokens_response.go index 7d889b665..f141ad3b3 100644 --- a/services/serviceaccount/model_list_access_tokens_response.go +++ b/services/serviceaccount/model_list_access_tokens_response.go @@ -59,7 +59,7 @@ func (o *ListAccessTokensResponse) GetItemsOk() (*[]AccessTokenMetadata, bool) { // HasItems returns a boolean if a field has been set. func (o *ListAccessTokensResponse) HasItems() bool { - if o != nil && !IsNil(o.Items) { + if o != nil && !IsNil(o.Items) && !IsNil(o.Items) { return true } diff --git a/services/serviceaccount/model_list_service_account_keys_response.go b/services/serviceaccount/model_list_service_account_keys_response.go index 925e9887b..688382be7 100644 --- a/services/serviceaccount/model_list_service_account_keys_response.go +++ b/services/serviceaccount/model_list_service_account_keys_response.go @@ -45,7 +45,7 @@ func NewListServiceAccountKeysResponseWithDefaults() *ListServiceAccountKeysResp // GetItems returns the Items field value func (o *ListServiceAccountKeysResponse) GetItems() *[]ServiceAccountKeyListResponse { - if o == nil { + if o == nil || IsNil(o.Items) { var ret *[]ServiceAccountKeyListResponse return ret } diff --git a/services/serviceaccount/model_list_service_accounts_response.go b/services/serviceaccount/model_list_service_accounts_response.go index c1ba34ce4..821951249 100644 --- a/services/serviceaccount/model_list_service_accounts_response.go +++ b/services/serviceaccount/model_list_service_accounts_response.go @@ -45,7 +45,7 @@ func NewListServiceAccountsResponseWithDefaults() *ListServiceAccountsResponse { // GetItems returns the Items field value func (o *ListServiceAccountsResponse) GetItems() *[]ServiceAccount { - if o == nil { + if o == nil || IsNil(o.Items) { var ret *[]ServiceAccount return ret } diff --git a/services/serviceaccount/model_partial_update_service_account_key_payload.go b/services/serviceaccount/model_partial_update_service_account_key_payload.go index cb93b7cfd..e505325a6 100644 --- a/services/serviceaccount/model_partial_update_service_account_key_payload.go +++ b/services/serviceaccount/model_partial_update_service_account_key_payload.go @@ -63,7 +63,7 @@ func (o *PartialUpdateServiceAccountKeyPayload) GetActiveOk() (*bool, bool) { // HasActive returns a boolean if a field has been set. func (o *PartialUpdateServiceAccountKeyPayload) HasActive() bool { - if o != nil && !IsNil(o.Active) { + if o != nil && !IsNil(o.Active) && !IsNil(o.Active) { return true } @@ -95,7 +95,7 @@ func (o *PartialUpdateServiceAccountKeyPayload) GetValidUntilOk() (*time.Time, b // HasValidUntil returns a boolean if a field has been set. func (o *PartialUpdateServiceAccountKeyPayload) HasValidUntil() bool { - if o != nil && !IsNil(o.ValidUntil) { + if o != nil && !IsNil(o.ValidUntil) && !IsNil(o.ValidUntil) { return true } diff --git a/services/serviceaccount/model_partial_update_service_account_key_response.go b/services/serviceaccount/model_partial_update_service_account_key_response.go index e26278efc..f9f8a0b34 100644 --- a/services/serviceaccount/model_partial_update_service_account_key_response.go +++ b/services/serviceaccount/model_partial_update_service_account_key_response.go @@ -65,7 +65,7 @@ func NewPartialUpdateServiceAccountKeyResponseWithDefaults() *PartialUpdateServi // GetActive returns the Active field value func (o *PartialUpdateServiceAccountKeyResponse) GetActive() *bool { - if o == nil { + if o == nil || IsNil(o.Active) { var ret *bool return ret } @@ -89,7 +89,7 @@ func (o *PartialUpdateServiceAccountKeyResponse) SetActive(v *bool) { // GetCreatedAt returns the CreatedAt field value func (o *PartialUpdateServiceAccountKeyResponse) GetCreatedAt() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreatedAt) { var ret *time.Time return ret } @@ -113,7 +113,7 @@ func (o *PartialUpdateServiceAccountKeyResponse) SetCreatedAt(v *time.Time) { // GetId returns the Id field value func (o *PartialUpdateServiceAccountKeyResponse) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -137,7 +137,7 @@ func (o *PartialUpdateServiceAccountKeyResponse) SetId(v *string) { // GetKeyAlgorithm returns the KeyAlgorithm field value func (o *PartialUpdateServiceAccountKeyResponse) GetKeyAlgorithm() *string { - if o == nil { + if o == nil || IsNil(o.KeyAlgorithm) { var ret *string return ret } @@ -161,7 +161,7 @@ func (o *PartialUpdateServiceAccountKeyResponse) SetKeyAlgorithm(v *string) { // GetKeyOrigin returns the KeyOrigin field value func (o *PartialUpdateServiceAccountKeyResponse) GetKeyOrigin() *string { - if o == nil { + if o == nil || IsNil(o.KeyOrigin) { var ret *string return ret } @@ -185,7 +185,7 @@ func (o *PartialUpdateServiceAccountKeyResponse) SetKeyOrigin(v *string) { // GetKeyType returns the KeyType field value func (o *PartialUpdateServiceAccountKeyResponse) GetKeyType() *string { - if o == nil { + if o == nil || IsNil(o.KeyType) { var ret *string return ret } @@ -227,7 +227,7 @@ func (o *PartialUpdateServiceAccountKeyResponse) GetValidUntilOk() (*time.Time, // HasValidUntil returns a boolean if a field has been set. func (o *PartialUpdateServiceAccountKeyResponse) HasValidUntil() bool { - if o != nil && !IsNil(o.ValidUntil) { + if o != nil && !IsNil(o.ValidUntil) && !IsNil(o.ValidUntil) { return true } diff --git a/services/serviceaccount/model_service_account.go b/services/serviceaccount/model_service_account.go index c98329b69..d26cc03d1 100644 --- a/services/serviceaccount/model_service_account.go +++ b/services/serviceaccount/model_service_account.go @@ -58,7 +58,7 @@ func NewServiceAccountWithDefaults() *ServiceAccount { // GetEmail returns the Email field value func (o *ServiceAccount) GetEmail() *string { - if o == nil { + if o == nil || IsNil(o.Email) { var ret *string return ret } @@ -82,7 +82,7 @@ func (o *ServiceAccount) SetEmail(v *string) { // GetId returns the Id field value func (o *ServiceAccount) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -106,7 +106,7 @@ func (o *ServiceAccount) SetId(v *string) { // GetInternal returns the Internal field value func (o *ServiceAccount) GetInternal() *bool { - if o == nil { + if o == nil || IsNil(o.Internal) { var ret *bool return ret } @@ -130,7 +130,7 @@ func (o *ServiceAccount) SetInternal(v *bool) { // GetProjectId returns the ProjectId field value func (o *ServiceAccount) GetProjectId() *string { - if o == nil { + if o == nil || IsNil(o.ProjectId) { var ret *string return ret } diff --git a/services/serviceaccount/model_service_account_key_list_response.go b/services/serviceaccount/model_service_account_key_list_response.go index b2b53faf5..b7d02bf31 100644 --- a/services/serviceaccount/model_service_account_key_list_response.go +++ b/services/serviceaccount/model_service_account_key_list_response.go @@ -65,7 +65,7 @@ func NewServiceAccountKeyListResponseWithDefaults() *ServiceAccountKeyListRespon // GetActive returns the Active field value func (o *ServiceAccountKeyListResponse) GetActive() *bool { - if o == nil { + if o == nil || IsNil(o.Active) { var ret *bool return ret } @@ -89,7 +89,7 @@ func (o *ServiceAccountKeyListResponse) SetActive(v *bool) { // GetCreatedAt returns the CreatedAt field value func (o *ServiceAccountKeyListResponse) GetCreatedAt() *time.Time { - if o == nil { + if o == nil || IsNil(o.CreatedAt) { var ret *time.Time return ret } @@ -113,7 +113,7 @@ func (o *ServiceAccountKeyListResponse) SetCreatedAt(v *time.Time) { // GetId returns the Id field value func (o *ServiceAccountKeyListResponse) GetId() *string { - if o == nil { + if o == nil || IsNil(o.Id) { var ret *string return ret } @@ -137,7 +137,7 @@ func (o *ServiceAccountKeyListResponse) SetId(v *string) { // GetKeyAlgorithm returns the KeyAlgorithm field value func (o *ServiceAccountKeyListResponse) GetKeyAlgorithm() *string { - if o == nil { + if o == nil || IsNil(o.KeyAlgorithm) { var ret *string return ret } @@ -161,7 +161,7 @@ func (o *ServiceAccountKeyListResponse) SetKeyAlgorithm(v *string) { // GetKeyOrigin returns the KeyOrigin field value func (o *ServiceAccountKeyListResponse) GetKeyOrigin() *string { - if o == nil { + if o == nil || IsNil(o.KeyOrigin) { var ret *string return ret } @@ -185,7 +185,7 @@ func (o *ServiceAccountKeyListResponse) SetKeyOrigin(v *string) { // GetKeyType returns the KeyType field value func (o *ServiceAccountKeyListResponse) GetKeyType() *string { - if o == nil { + if o == nil || IsNil(o.KeyType) { var ret *string return ret } @@ -227,7 +227,7 @@ func (o *ServiceAccountKeyListResponse) GetValidUntilOk() (*time.Time, bool) { // HasValidUntil returns a boolean if a field has been set. func (o *ServiceAccountKeyListResponse) HasValidUntil() bool { - if o != nil && !IsNil(o.ValidUntil) { + if o != nil && !IsNil(o.ValidUntil) && !IsNil(o.ValidUntil) { return true }