diff --git a/services/redis/api_default.go b/services/redis/api_default.go index 1ac758c5a..7822f7d2f 100644 --- a/services/redis/api_default.go +++ b/services/redis/api_default.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -24,6 +25,7 @@ import ( "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApi interface { /* CreateBackup create a backup @@ -42,6 +44,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return []CreateBackupResponseItem + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateBackupExecute(ctx context.Context, instanceId string, projectId string) ([]CreateBackupResponseItem, error) /* @@ -62,6 +65,7 @@ type DefaultApi interface { @param instanceId Instance id @return CredentialsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateCredentialsExecute(ctx context.Context, projectId string, instanceId string) (*CredentialsResponse, error) /* @@ -80,6 +84,7 @@ type DefaultApi interface { @param projectId @return CreateInstanceResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateInstanceExecute(ctx context.Context, projectId string) (*CreateInstanceResponse, error) /* @@ -96,6 +101,7 @@ type DefaultApi interface { /* DeleteCredentialsExecute executes the request + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteCredentialsExecute(ctx context.Context, projectId string, instanceId string, credentialsId string) error /* @@ -111,6 +117,7 @@ type DefaultApi interface { /* DeleteInstanceExecute executes the request + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteInstanceExecute(ctx context.Context, projectId string, instanceId string) error /* @@ -132,6 +139,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return *os.File + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DownloadBackupExecute(ctx context.Context, backupId int32, instanceId string, projectId string) (*os.File, error) /* @@ -154,6 +162,7 @@ type DefaultApi interface { @param credentialsId Credentials id of credentials to fetch @return CredentialsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetCredentialsExecute(ctx context.Context, projectId string, instanceId string, credentialsId string) (*CredentialsResponse, error) /* @@ -174,6 +183,7 @@ type DefaultApi interface { @param instanceId Instance id @return Instance + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetInstanceExecute(ctx context.Context, projectId string, instanceId string) (*Instance, error) /* @@ -193,6 +203,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return GetMetricsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetMetricsExecute(ctx context.Context, instanceId string, projectId string) (*GetMetricsResponse, error) /* @@ -212,6 +223,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return ListBackupsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListBackupsExecute(ctx context.Context, instanceId string, projectId string) (*ListBackupsResponse, error) /* @@ -232,6 +244,7 @@ type DefaultApi interface { @param instanceId Instance id @return ListCredentialsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListCredentialsExecute(ctx context.Context, projectId string, instanceId string) (*ListCredentialsResponse, error) /* @@ -250,6 +263,7 @@ type DefaultApi interface { @param projectId @return ListInstancesResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListInstancesExecute(ctx context.Context, projectId string) (*ListInstancesResponse, error) /* @@ -268,6 +282,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return ListOfferingsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListOfferingsExecute(ctx context.Context, projectId string) (*ListOfferingsResponse, error) /* @@ -287,6 +302,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return ListRestoresResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListRestoresExecute(ctx context.Context, instanceId string, projectId string) (*ListRestoresResponse, error) /* @@ -302,6 +318,7 @@ type DefaultApi interface { /* PartialUpdateInstanceExecute executes the request + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateInstanceExecute(ctx context.Context, projectId string, instanceId string) error /* @@ -321,6 +338,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return CreateInstanceResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ TriggerRecreateExecute(ctx context.Context, instanceId string, projectId string) (*CreateInstanceResponse, error) /* @@ -340,6 +358,7 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return CreateInstanceResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ TriggerRestartExecute(ctx context.Context, instanceId string, projectId string) (*CreateInstanceResponse, error) /* @@ -361,6 +380,7 @@ type DefaultApi interface { @param backupId Backup id @return TriggerRestoreResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ TriggerRestoreExecute(ctx context.Context, instanceId string, projectId string, backupId int32) (*TriggerRestoreResponse, error) /* @@ -381,95 +401,120 @@ type DefaultApi interface { @param projectId Project id on which user has permissions @return UpdateBackupsConfigResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ UpdateBackupsConfigExecute(ctx context.Context, instanceId string, projectId string) (*UpdateBackupsConfigResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateBackupRequest interface { Execute() ([]CreateBackupResponseItem, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateCredentialsRequest interface { Execute() (*CredentialsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateInstanceRequest interface { // Parameters for the requested service instance provision + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest Execute() (*CreateInstanceResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteCredentialsRequest interface { Execute() error } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteInstanceRequest interface { Execute() error } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDownloadBackupRequest interface { Execute() (*os.File, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetCredentialsRequest interface { Execute() (*CredentialsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetInstanceRequest interface { Execute() (*Instance, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetMetricsRequest interface { Execute() (*GetMetricsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListBackupsRequest interface { Execute() (*ListBackupsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListCredentialsRequest interface { Execute() (*ListCredentialsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListInstancesRequest interface { Execute() (*ListInstancesResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListOfferingsRequest interface { Execute() (*ListOfferingsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListRestoresRequest interface { Execute() (*ListRestoresResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiPartialUpdateInstanceRequest interface { // Parameters for the requested update operation on service instance - sgw acl update, plan upgrade + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PartialUpdateInstancePayload(partialUpdateInstancePayload PartialUpdateInstancePayload) ApiPartialUpdateInstanceRequest Execute() error } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiTriggerRecreateRequest interface { Execute() (*CreateInstanceResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiTriggerRestartRequest interface { Execute() (*CreateInstanceResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiTriggerRestoreRequest interface { Execute() (*TriggerRestoreResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiUpdateBackupsConfigRequest interface { // Parameters for the requested backup configuration update + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead UpdateBackupsConfigPayload(updateBackupsConfigPayload UpdateBackupsConfigPayload) ApiUpdateBackupsConfigRequest Execute() (*UpdateBackupsConfigResponse, error) } // DefaultApiService DefaultApi service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApiService service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupRequest struct { ctx context.Context apiService *DefaultApiService @@ -477,6 +522,7 @@ type CreateBackupRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateBackupRequest) Execute() ([]CreateBackupResponseItem, error) { var ( localVarHTTPMethod = http.MethodPost @@ -590,6 +636,7 @@ func (r CreateBackupRequest) Execute() ([]CreateBackupResponseItem, error) { /* CreateBackup: create a backup +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -605,6 +652,7 @@ func (a *APIClient) CreateBackup(ctx context.Context, instanceId string, project } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateBackupExecute(ctx context.Context, instanceId string, projectId string) ([]CreateBackupResponseItem, error) { r := CreateBackupRequest{ apiService: a.defaultApi, @@ -615,6 +663,7 @@ func (a *APIClient) CreateBackupExecute(ctx context.Context, instanceId string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -622,6 +671,7 @@ type CreateCredentialsRequest struct { instanceId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateCredentialsRequest) Execute() (*CredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -725,7 +775,7 @@ func (r CreateCredentialsRequest) Execute() (*CredentialsResponse, error) { /* CreateCredentials: create new credentials -Create new service credentials +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -741,6 +791,7 @@ func (a *APIClient) CreateCredentials(ctx context.Context, projectId string, ins } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateCredentialsExecute(ctx context.Context, projectId string, instanceId string) (*CredentialsResponse, error) { r := CreateCredentialsRequest{ apiService: a.defaultApi, @@ -751,6 +802,7 @@ func (a *APIClient) CreateCredentialsExecute(ctx context.Context, projectId stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -759,12 +811,13 @@ type CreateInstanceRequest struct { } // Parameters for the requested service instance provision - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateInstanceRequest) CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest { r.createInstancePayload = &createInstancePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -883,7 +936,7 @@ func (r CreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { /* CreateInstance: provision -Provision a service instance. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -897,6 +950,7 @@ func (a *APIClient) CreateInstance(ctx context.Context, projectId string) ApiCre } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateInstanceExecute(ctx context.Context, projectId string) (*CreateInstanceResponse, error) { r := CreateInstanceRequest{ apiService: a.defaultApi, @@ -906,6 +960,7 @@ func (a *APIClient) CreateInstanceExecute(ctx context.Context, projectId string) return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -914,6 +969,7 @@ type DeleteCredentialsRequest struct { credentialsId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteCredentialsRequest) Execute() error { var ( localVarHTTPMethod = http.MethodDelete @@ -1007,7 +1063,7 @@ func (r DeleteCredentialsRequest) Execute() error { /* DeleteCredentials: delete credentials by id -Delete a service credentials. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -1025,6 +1081,7 @@ func (a *APIClient) DeleteCredentials(ctx context.Context, projectId string, ins } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteCredentialsExecute(ctx context.Context, projectId string, instanceId string, credentialsId string) error { r := DeleteCredentialsRequest{ apiService: a.defaultApi, @@ -1036,6 +1093,7 @@ func (a *APIClient) DeleteCredentialsExecute(ctx context.Context, projectId stri return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -1043,6 +1101,7 @@ type DeleteInstanceRequest struct { instanceId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteInstanceRequest) Execute() error { var ( localVarHTTPMethod = http.MethodDelete @@ -1146,7 +1205,7 @@ func (r DeleteInstanceRequest) Execute() error { /* DeleteInstance: delete service instance -Deprovision a service instance. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -1162,6 +1221,7 @@ func (a *APIClient) DeleteInstance(ctx context.Context, projectId string, instan } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteInstanceExecute(ctx context.Context, projectId string, instanceId string) error { r := DeleteInstanceRequest{ apiService: a.defaultApi, @@ -1172,6 +1232,7 @@ func (a *APIClient) DeleteInstanceExecute(ctx context.Context, projectId string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DownloadBackupRequest struct { ctx context.Context apiService *DefaultApiService @@ -1180,6 +1241,7 @@ type DownloadBackupRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DownloadBackupRequest) Execute() (*os.File, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1283,6 +1345,7 @@ func (r DownloadBackupRequest) Execute() (*os.File, error) { /* DownloadBackup: download backup +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param backupId Backup id @@ -1300,6 +1363,7 @@ func (a *APIClient) DownloadBackup(ctx context.Context, backupId int32, instance } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DownloadBackupExecute(ctx context.Context, backupId int32, instanceId string, projectId string) (*os.File, error) { r := DownloadBackupRequest{ apiService: a.defaultApi, @@ -1311,6 +1375,7 @@ func (a *APIClient) DownloadBackupExecute(ctx context.Context, backupId int32, i return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -1319,6 +1384,7 @@ type GetCredentialsRequest struct { credentialsId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetCredentialsRequest) Execute() (*CredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1423,7 +1489,7 @@ func (r GetCredentialsRequest) Execute() (*CredentialsResponse, error) { /* GetCredentials: get credentials by id -get a service credentials by credentials id +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -1441,6 +1507,7 @@ func (a *APIClient) GetCredentials(ctx context.Context, projectId string, instan } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetCredentialsExecute(ctx context.Context, projectId string, instanceId string, credentialsId string) (*CredentialsResponse, error) { r := GetCredentialsRequest{ apiService: a.defaultApi, @@ -1452,6 +1519,7 @@ func (a *APIClient) GetCredentialsExecute(ctx context.Context, projectId string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -1459,6 +1527,7 @@ type GetInstanceRequest struct { instanceId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetInstanceRequest) Execute() (*Instance, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1573,7 +1642,7 @@ func (r GetInstanceRequest) Execute() (*Instance, error) { /* GetInstance: get a service instance -get a service instance +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -1589,6 +1658,7 @@ func (a *APIClient) GetInstance(ctx context.Context, projectId string, instanceI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetInstanceExecute(ctx context.Context, projectId string, instanceId string) (*Instance, error) { r := GetInstanceRequest{ apiService: a.defaultApi, @@ -1599,6 +1669,7 @@ func (a *APIClient) GetInstanceExecute(ctx context.Context, projectId string, in return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsRequest struct { ctx context.Context apiService *DefaultApiService @@ -1606,6 +1677,7 @@ type GetMetricsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetMetricsRequest) Execute() (*GetMetricsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1708,6 +1780,7 @@ func (r GetMetricsRequest) Execute() (*GetMetricsResponse, error) { /* GetMetrics: get latest metrics for cpu load, memory and disk usage +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -1723,6 +1796,7 @@ func (a *APIClient) GetMetrics(ctx context.Context, instanceId string, projectId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetMetricsExecute(ctx context.Context, instanceId string, projectId string) (*GetMetricsResponse, error) { r := GetMetricsRequest{ apiService: a.defaultApi, @@ -1733,6 +1807,7 @@ func (a *APIClient) GetMetricsExecute(ctx context.Context, instanceId string, pr return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupsRequest struct { ctx context.Context apiService *DefaultApiService @@ -1740,6 +1815,7 @@ type ListBackupsRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListBackupsRequest) Execute() (*ListBackupsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1842,6 +1918,7 @@ func (r ListBackupsRequest) Execute() (*ListBackupsResponse, error) { /* ListBackups: get latest backup information for provided instanceId +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -1857,6 +1934,7 @@ func (a *APIClient) ListBackups(ctx context.Context, instanceId string, projectI } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListBackupsExecute(ctx context.Context, instanceId string, projectId string) (*ListBackupsResponse, error) { r := ListBackupsRequest{ apiService: a.defaultApi, @@ -1867,6 +1945,7 @@ func (a *APIClient) ListBackupsExecute(ctx context.Context, instanceId string, p return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsRequest struct { ctx context.Context apiService *DefaultApiService @@ -1874,6 +1953,7 @@ type ListCredentialsRequest struct { instanceId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1977,7 +2057,7 @@ func (r ListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { /* ListCredentials: get list of credentials ids -get list all credentials ids for instance +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -1993,6 +2073,7 @@ func (a *APIClient) ListCredentials(ctx context.Context, projectId string, insta } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListCredentialsExecute(ctx context.Context, projectId string, instanceId string) (*ListCredentialsResponse, error) { r := ListCredentialsRequest{ apiService: a.defaultApi, @@ -2003,12 +2084,14 @@ func (a *APIClient) ListCredentialsExecute(ctx context.Context, projectId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesRequest struct { ctx context.Context apiService *DefaultApiService projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListInstancesRequest) Execute() (*ListInstancesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2111,7 +2194,7 @@ func (r ListInstancesRequest) Execute() (*ListInstancesResponse, error) { /* ListInstances: get service instances list -Get a list of available instances +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -2125,6 +2208,7 @@ func (a *APIClient) ListInstances(ctx context.Context, projectId string) ApiList } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string) (*ListInstancesResponse, error) { r := ListInstancesRequest{ apiService: a.defaultApi, @@ -2134,12 +2218,14 @@ func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string) return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListOfferingsRequest struct { ctx context.Context apiService *DefaultApiService projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2232,7 +2318,7 @@ func (r ListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { /* ListOfferings: get the service offerings -Get the service offerings that the service broker offers. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project id on which user has permissions @@ -2246,6 +2332,7 @@ func (a *APIClient) ListOfferings(ctx context.Context, projectId string) ApiList } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListOfferingsExecute(ctx context.Context, projectId string) (*ListOfferingsResponse, error) { r := ListOfferingsRequest{ apiService: a.defaultApi, @@ -2255,6 +2342,7 @@ func (a *APIClient) ListOfferingsExecute(ctx context.Context, projectId string) return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListRestoresRequest struct { ctx context.Context apiService *DefaultApiService @@ -2262,6 +2350,7 @@ type ListRestoresRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListRestoresRequest) Execute() (*ListRestoresResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2364,6 +2453,7 @@ func (r ListRestoresRequest) Execute() (*ListRestoresResponse, error) { /* ListRestores: get latest restore information for provided instanceId +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -2379,6 +2469,7 @@ func (a *APIClient) ListRestores(ctx context.Context, instanceId string, project } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListRestoresExecute(ctx context.Context, instanceId string, projectId string) (*ListRestoresResponse, error) { r := ListRestoresRequest{ apiService: a.defaultApi, @@ -2389,6 +2480,7 @@ func (a *APIClient) ListRestoresExecute(ctx context.Context, instanceId string, return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstanceRequest struct { ctx context.Context apiService *DefaultApiService @@ -2398,12 +2490,13 @@ type PartialUpdateInstanceRequest struct { } // Parameters for the requested update operation on service instance - sgw acl update, plan upgrade - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateInstanceRequest) PartialUpdateInstancePayload(partialUpdateInstancePayload PartialUpdateInstancePayload) ApiPartialUpdateInstanceRequest { r.partialUpdateInstancePayload = &partialUpdateInstancePayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateInstanceRequest) Execute() error { var ( localVarHTTPMethod = http.MethodPatch @@ -2512,7 +2605,7 @@ func (r PartialUpdateInstanceRequest) Execute() error { /* PartialUpdateInstance: update a service instance -Update a service instance. This could be a sgw acl update or a plan upgrade. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId @@ -2528,6 +2621,7 @@ func (a *APIClient) PartialUpdateInstance(ctx context.Context, projectId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) PartialUpdateInstanceExecute(ctx context.Context, projectId string, instanceId string) error { r := PartialUpdateInstanceRequest{ apiService: a.defaultApi, @@ -2538,6 +2632,7 @@ func (a *APIClient) PartialUpdateInstanceExecute(ctx context.Context, projectId return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TriggerRecreateRequest struct { ctx context.Context apiService *DefaultApiService @@ -2545,6 +2640,7 @@ type TriggerRecreateRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r TriggerRecreateRequest) Execute() (*CreateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -2658,6 +2754,7 @@ func (r TriggerRecreateRequest) Execute() (*CreateInstanceResponse, error) { /* TriggerRecreate: trigger a recreate +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -2673,6 +2770,7 @@ func (a *APIClient) TriggerRecreate(ctx context.Context, instanceId string, proj } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) TriggerRecreateExecute(ctx context.Context, instanceId string, projectId string) (*CreateInstanceResponse, error) { r := TriggerRecreateRequest{ apiService: a.defaultApi, @@ -2683,6 +2781,7 @@ func (a *APIClient) TriggerRecreateExecute(ctx context.Context, instanceId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TriggerRestartRequest struct { ctx context.Context apiService *DefaultApiService @@ -2690,6 +2789,7 @@ type TriggerRestartRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r TriggerRestartRequest) Execute() (*CreateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -2803,6 +2903,7 @@ func (r TriggerRestartRequest) Execute() (*CreateInstanceResponse, error) { /* TriggerRestart: trigger a restart +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -2818,6 +2919,7 @@ func (a *APIClient) TriggerRestart(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) TriggerRestartExecute(ctx context.Context, instanceId string, projectId string) (*CreateInstanceResponse, error) { r := TriggerRestartRequest{ apiService: a.defaultApi, @@ -2828,6 +2930,7 @@ func (a *APIClient) TriggerRestartExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TriggerRestoreRequest struct { ctx context.Context apiService *DefaultApiService @@ -2836,6 +2939,7 @@ type TriggerRestoreRequest struct { backupId int32 } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r TriggerRestoreRequest) Execute() (*TriggerRestoreResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -2950,6 +3054,7 @@ func (r TriggerRestoreRequest) Execute() (*TriggerRestoreResponse, error) { /* TriggerRestore: trigger a restore +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -2967,6 +3072,7 @@ func (a *APIClient) TriggerRestore(ctx context.Context, instanceId string, proje } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) TriggerRestoreExecute(ctx context.Context, instanceId string, projectId string, backupId int32) (*TriggerRestoreResponse, error) { r := TriggerRestoreRequest{ apiService: a.defaultApi, @@ -2978,6 +3084,7 @@ func (a *APIClient) TriggerRestoreExecute(ctx context.Context, instanceId string return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigRequest struct { ctx context.Context apiService *DefaultApiService @@ -2987,12 +3094,13 @@ type UpdateBackupsConfigRequest struct { } // Parameters for the requested backup configuration update - +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateBackupsConfigRequest) UpdateBackupsConfigPayload(updateBackupsConfigPayload UpdateBackupsConfigPayload) ApiUpdateBackupsConfigRequest { r.updateBackupsConfigPayload = &updateBackupsConfigPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r UpdateBackupsConfigRequest) Execute() (*UpdateBackupsConfigResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -3112,7 +3220,7 @@ func (r UpdateBackupsConfigRequest) Execute() (*UpdateBackupsConfigResponse, err /* UpdateBackupsConfig: backups configuration update -Update the configuration for backups for your instance. +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance id @@ -3128,6 +3236,7 @@ func (a *APIClient) UpdateBackupsConfig(ctx context.Context, instanceId string, } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) UpdateBackupsConfigExecute(ctx context.Context, instanceId string, projectId string) (*UpdateBackupsConfigResponse, error) { r := UpdateBackupsConfigRequest{ apiService: a.defaultApi, diff --git a/services/redis/client.go b/services/redis/client.go index 74adafbb6..17c0905a9 100644 --- a/services/redis/client.go +++ b/services/redis/client.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -44,18 +45,21 @@ var ( // APIClient manages communication with the STACKIT Redis API API v1.1.0 // In most cases there should be only one, shared, APIClient. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type APIClient struct { cfg *config.Configuration common service // Reuse a single struct instead of allocating one for each service on the heap. defaultApi *DefaultApiService } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type service struct { client DefaultApi } // NewAPIClient creates a new API client. // Optionally receives configuration options +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { cfg := NewConfiguration() @@ -147,6 +151,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func ParameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { return fmt.Sprintf("%v", obj) @@ -285,6 +290,7 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { // Allow modification of underlying config for alternate implementations and testing // Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (c *APIClient) GetConfig() *config.Configuration { return c.cfg } @@ -595,6 +601,7 @@ func parseCacheControl(headers http.Header) cacheControl { } // CacheExpires helper function to determine remaining time before repeating a request. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func CacheExpires(r *http.Response) time.Time { // Figure out when the cache expires. var expires time.Time diff --git a/services/redis/configuration.go b/services/redis/configuration.go index 25ad65c47..3807f6f4e 100644 --- a/services/redis/configuration.go +++ b/services/redis/configuration.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -15,6 +16,7 @@ import ( ) // NewConfiguration returns a new Configuration object +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewConfiguration() *config.Configuration { cfg := &config.Configuration{ DefaultHeader: make(map[string]string), diff --git a/services/redis/go.mod b/services/redis/go.mod index 659b59add..b5f8fda3f 100644 --- a/services/redis/go.mod +++ b/services/redis/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.21.1 + github.com/stackitcloud/stackit-sdk-go/core v0.22.0 ) require ( diff --git a/services/redis/go.sum b/services/redis/go.sum index ca103c909..195011dd5 100644 --- a/services/redis/go.sum +++ b/services/redis/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0 h1:6rViz7GnNwXSh51Lur5xuDzO8EWSZfN9J0HvEkBKq6c= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= diff --git a/services/redis/model_backup.go b/services/redis/model_backup.go index 6bd56b112..2bcb944a1 100644 --- a/services/redis/model_backup.go +++ b/services/redis/model_backup.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Backup{} */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupgetDownloadableAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupgetDownloadableArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupgetDownloadableRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupgetDownloadableAttributeTypeOk(arg BackupgetDownloadableAttributeType) (ret BackupgetDownloadableRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getBackupgetDownloadableAttributeTypeOk(arg BackupgetDownloadableAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupgetDownloadableAttributeType(arg *BackupgetDownloadableAttributeType, val BackupgetDownloadableRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setBackupgetDownloadableAttributeType(arg *BackupgetDownloadableAttributeTy */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetFinishedAtAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupGetFinishedAtAttributeTypeOk(arg BackupGetFinishedAtAttributeType) (ret BackupGetFinishedAtRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getBackupGetFinishedAtAttributeTypeOk(arg BackupGetFinishedAtAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupGetFinishedAtAttributeType(arg *BackupGetFinishedAtAttributeType, val BackupGetFinishedAtRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetFinishedAtArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetFinishedAtRetType = string /* @@ -63,10 +77,16 @@ type BackupGetFinishedAtRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetIdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetIdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetIdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupGetIdAttributeTypeOk(arg BackupGetIdAttributeType) (ret BackupGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getBackupGetIdAttributeTypeOk(arg BackupGetIdAttributeType) (ret BackupGetI return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupGetIdAttributeType(arg *BackupGetIdAttributeType, val BackupGetIdRetType) { *arg = &val } @@ -83,10 +104,16 @@ func setBackupGetIdAttributeType(arg *BackupGetIdAttributeType, val BackupGetIdR */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetSizeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetSizeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetSizeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupGetSizeAttributeTypeOk(arg BackupGetSizeAttributeType) (ret BackupGetSizeRetType, ok bool) { if arg == nil { return ret, false @@ -94,6 +121,7 @@ func getBackupGetSizeAttributeTypeOk(arg BackupGetSizeAttributeType) (ret Backup return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupGetSizeAttributeType(arg *BackupGetSizeAttributeType, val BackupGetSizeRetType) { *arg = &val } @@ -103,8 +131,10 @@ func setBackupGetSizeAttributeType(arg *BackupGetSizeAttributeType, val BackupGe */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetStatusAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupGetStatusAttributeTypeOk(arg BackupGetStatusAttributeType) (ret BackupGetStatusRetType, ok bool) { if arg == nil { return ret, false @@ -112,11 +142,15 @@ func getBackupGetStatusAttributeTypeOk(arg BackupGetStatusAttributeType) (ret Ba return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupGetStatusAttributeType(arg *BackupGetStatusAttributeType, val BackupGetStatusRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetStatusArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetStatusRetType = string /* @@ -124,8 +158,10 @@ type BackupGetStatusRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetTriggeredAtAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getBackupGetTriggeredAtAttributeTypeOk(arg BackupGetTriggeredAtAttributeType) (ret BackupGetTriggeredAtRetType, ok bool) { if arg == nil { return ret, false @@ -133,14 +169,19 @@ func getBackupGetTriggeredAtAttributeTypeOk(arg BackupGetTriggeredAtAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setBackupGetTriggeredAtAttributeType(arg *BackupGetTriggeredAtAttributeType, val BackupGetTriggeredAtRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetTriggeredAtArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type BackupGetTriggeredAtRetType = string // Backup struct for Backup +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Backup struct { Downloadable BackupgetDownloadableAttributeType `json:"downloadable,omitempty"` // REQUIRED @@ -153,12 +194,14 @@ type Backup struct { TriggeredAt BackupGetTriggeredAtAttributeType `json:"triggered_at,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Backup Backup // NewBackup instantiates a new Backup 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackup(finishedAt BackupGetFinishedAtArgType, id BackupGetIdArgType, status BackupGetStatusArgType) *Backup { this := Backup{} setBackupGetFinishedAtAttributeType(&this.FinishedAt, finishedAt) @@ -170,12 +213,14 @@ func NewBackup(finishedAt BackupGetFinishedAtArgType, id BackupGetIdArgType, sta // NewBackupWithDefaults instantiates a new Backup 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewBackupWithDefaults() *Backup { this := Backup{} return &this } // GetDownloadable returns the Downloadable field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetDownloadable() (res BackupgetDownloadableRetType) { res, _ = o.GetDownloadableOk() return @@ -183,22 +228,26 @@ func (o *Backup) GetDownloadable() (res BackupgetDownloadableRetType) { // GetDownloadableOk returns a tuple with the Downloadable field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetDownloadableOk() (ret BackupgetDownloadableRetType, ok bool) { return getBackupgetDownloadableAttributeTypeOk(o.Downloadable) } // HasDownloadable returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) HasDownloadable() bool { _, ok := o.GetDownloadableOk() return ok } // SetDownloadable gets a reference to the given bool and assigns it to the Downloadable field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) SetDownloadable(v BackupgetDownloadableRetType) { setBackupgetDownloadableAttributeType(&o.Downloadable, v) } // GetFinishedAt returns the FinishedAt field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetFinishedAt() (ret BackupGetFinishedAtRetType) { ret, _ = o.GetFinishedAtOk() return ret @@ -206,16 +255,19 @@ func (o *Backup) GetFinishedAt() (ret BackupGetFinishedAtRetType) { // GetFinishedAtOk returns a tuple with the FinishedAt field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetFinishedAtOk() (ret BackupGetFinishedAtRetType, ok bool) { return getBackupGetFinishedAtAttributeTypeOk(o.FinishedAt) } // SetFinishedAt sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) SetFinishedAt(v BackupGetFinishedAtRetType) { setBackupGetFinishedAtAttributeType(&o.FinishedAt, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetId() (ret BackupGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -223,16 +275,19 @@ func (o *Backup) GetId() (ret BackupGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetIdOk() (ret BackupGetIdRetType, ok bool) { return getBackupGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) SetId(v BackupGetIdRetType) { setBackupGetIdAttributeType(&o.Id, v) } // GetSize returns the Size field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetSize() (res BackupGetSizeRetType) { res, _ = o.GetSizeOk() return @@ -240,22 +295,26 @@ func (o *Backup) GetSize() (res BackupGetSizeRetType) { // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetSizeOk() (ret BackupGetSizeRetType, ok bool) { return getBackupGetSizeAttributeTypeOk(o.Size) } // HasSize returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) HasSize() bool { _, ok := o.GetSizeOk() return ok } // SetSize gets a reference to the given int64 and assigns it to the Size field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) SetSize(v BackupGetSizeRetType) { setBackupGetSizeAttributeType(&o.Size, v) } // GetStatus returns the Status field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetStatus() (ret BackupGetStatusRetType) { ret, _ = o.GetStatusOk() return ret @@ -263,16 +322,19 @@ func (o *Backup) GetStatus() (ret BackupGetStatusRetType) { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetStatusOk() (ret BackupGetStatusRetType, ok bool) { return getBackupGetStatusAttributeTypeOk(o.Status) } // SetStatus sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) SetStatus(v BackupGetStatusRetType) { setBackupGetStatusAttributeType(&o.Status, v) } // GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetTriggeredAt() (res BackupGetTriggeredAtRetType) { res, _ = o.GetTriggeredAtOk() return @@ -280,21 +342,25 @@ func (o *Backup) GetTriggeredAt() (res BackupGetTriggeredAtRetType) { // GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) GetTriggeredAtOk() (ret BackupGetTriggeredAtRetType, ok bool) { return getBackupGetTriggeredAtAttributeTypeOk(o.TriggeredAt) } // HasTriggeredAt returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) HasTriggeredAt() bool { _, ok := o.GetTriggeredAtOk() return ok } // SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Backup) SetTriggeredAt(v BackupGetTriggeredAtRetType) { setBackupGetTriggeredAtAttributeType(&o.TriggeredAt, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Backup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getBackupgetDownloadableAttributeTypeOk(o.Downloadable); ok { @@ -318,37 +384,45 @@ func (o Backup) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBackup struct { value *Backup isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackup) Get() *Backup { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackup) Set(val *Backup) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackup) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackup) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBackup(val *Backup) *NullableBackup { return &NullableBackup{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBackup) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBackup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_create_backup_response_item.go b/services/redis/model_create_backup_response_item.go index 0a9c6fb1c..e064cc228 100644 --- a/services/redis/model_create_backup_response_item.go +++ b/services/redis/model_create_backup_response_item.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &CreateBackupResponseItem{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupResponseItemGetIdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupResponseItemGetIdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupResponseItemGetIdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateBackupResponseItemGetIdAttributeTypeOk(arg CreateBackupResponseItemGetIdAttributeType) (ret CreateBackupResponseItemGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getCreateBackupResponseItemGetIdAttributeTypeOk(arg CreateBackupResponseIte return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateBackupResponseItemGetIdAttributeType(arg *CreateBackupResponseItemGetIdAttributeType, val CreateBackupResponseItemGetIdRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setCreateBackupResponseItemGetIdAttributeType(arg *CreateBackupResponseItem */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupResponseItemGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateBackupResponseItemGetMessageAttributeTypeOk(arg CreateBackupResponseItemGetMessageAttributeType) (ret CreateBackupResponseItemGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -51,14 +61,19 @@ func getCreateBackupResponseItemGetMessageAttributeTypeOk(arg CreateBackupRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateBackupResponseItemGetMessageAttributeType(arg *CreateBackupResponseItemGetMessageAttributeType, val CreateBackupResponseItemGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupResponseItemGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupResponseItemGetMessageRetType = string // CreateBackupResponseItem struct for CreateBackupResponseItem +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateBackupResponseItem struct { // REQUIRED Id CreateBackupResponseItemGetIdAttributeType `json:"id" required:"true"` @@ -66,12 +81,14 @@ type CreateBackupResponseItem struct { Message CreateBackupResponseItemGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateBackupResponseItem CreateBackupResponseItem // NewCreateBackupResponseItem instantiates a new CreateBackupResponseItem 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateBackupResponseItem(id CreateBackupResponseItemGetIdArgType, message CreateBackupResponseItemGetMessageArgType) *CreateBackupResponseItem { this := CreateBackupResponseItem{} setCreateBackupResponseItemGetIdAttributeType(&this.Id, id) @@ -82,12 +99,14 @@ func NewCreateBackupResponseItem(id CreateBackupResponseItemGetIdArgType, messag // NewCreateBackupResponseItemWithDefaults instantiates a new CreateBackupResponseItem 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateBackupResponseItemWithDefaults() *CreateBackupResponseItem { this := CreateBackupResponseItem{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupResponseItem) GetId() (ret CreateBackupResponseItemGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -95,16 +114,19 @@ func (o *CreateBackupResponseItem) GetId() (ret CreateBackupResponseItemGetIdRet // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupResponseItem) GetIdOk() (ret CreateBackupResponseItemGetIdRetType, ok bool) { return getCreateBackupResponseItemGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupResponseItem) SetId(v CreateBackupResponseItemGetIdRetType) { setCreateBackupResponseItemGetIdAttributeType(&o.Id, v) } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupResponseItem) GetMessage() (ret CreateBackupResponseItemGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -112,15 +134,18 @@ func (o *CreateBackupResponseItem) GetMessage() (ret CreateBackupResponseItemGet // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupResponseItem) GetMessageOk() (ret CreateBackupResponseItemGetMessageRetType, ok bool) { return getCreateBackupResponseItemGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateBackupResponseItem) SetMessage(v CreateBackupResponseItemGetMessageRetType) { setCreateBackupResponseItemGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateBackupResponseItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateBackupResponseItemGetIdAttributeTypeOk(o.Id); ok { @@ -132,37 +157,45 @@ func (o CreateBackupResponseItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateBackupResponseItem struct { value *CreateBackupResponseItem isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateBackupResponseItem) Get() *CreateBackupResponseItem { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateBackupResponseItem) Set(val *CreateBackupResponseItem) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateBackupResponseItem) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateBackupResponseItem) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateBackupResponseItem(val *CreateBackupResponseItem) *NullableCreateBackupResponseItem { return &NullableCreateBackupResponseItem{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateBackupResponseItem) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateBackupResponseItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_create_instance_payload.go b/services/redis/model_create_instance_payload.go index a88afd431..43a75e10e 100644 --- a/services/redis/model_create_instance_payload.go +++ b/services/redis/model_create_instance_payload.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateInstancePayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetInstanceNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstancePayloadGetInstanceNameAttributeTypeOk(arg CreateInstancePayloadGetInstanceNameAttributeType) (ret CreateInstancePayloadGetInstanceNameRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateInstancePayloadGetInstanceNameAttributeTypeOk(arg CreateInstancePa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstancePayloadGetInstanceNameAttributeType(arg *CreateInstancePayloadGetInstanceNameAttributeType, val CreateInstancePayloadGetInstanceNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetInstanceNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetInstanceNameRetType = string /* @@ -43,10 +50,16 @@ type CreateInstancePayloadGetInstanceNameRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetParametersAttributeType = *InstanceParameters + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetParametersArgType = InstanceParameters + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetParametersRetType = InstanceParameters +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstancePayloadGetParametersAttributeTypeOk(arg CreateInstancePayloadGetParametersAttributeType) (ret CreateInstancePayloadGetParametersRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getCreateInstancePayloadGetParametersAttributeTypeOk(arg CreateInstancePayl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstancePayloadGetParametersAttributeType(arg *CreateInstancePayloadGetParametersAttributeType, val CreateInstancePayloadGetParametersRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setCreateInstancePayloadGetParametersAttributeType(arg *CreateInstancePaylo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstancePayloadGetPlanIdAttributeTypeOk(arg CreateInstancePayloadGetPlanIdAttributeType) (ret CreateInstancePayloadGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -72,14 +88,19 @@ func getCreateInstancePayloadGetPlanIdAttributeTypeOk(arg CreateInstancePayloadG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstancePayloadGetPlanIdAttributeType(arg *CreateInstancePayloadGetPlanIdAttributeType, val CreateInstancePayloadGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayloadGetPlanIdRetType = string // CreateInstancePayload struct for CreateInstancePayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstancePayload struct { // REQUIRED InstanceName CreateInstancePayloadGetInstanceNameAttributeType `json:"instanceName" required:"true"` @@ -88,12 +109,14 @@ type CreateInstancePayload struct { PlanId CreateInstancePayloadGetPlanIdAttributeType `json:"planId" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateInstancePayload CreateInstancePayload // NewCreateInstancePayload instantiates a new CreateInstancePayload 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstancePayload(instanceName CreateInstancePayloadGetInstanceNameArgType, planId CreateInstancePayloadGetPlanIdArgType) *CreateInstancePayload { this := CreateInstancePayload{} setCreateInstancePayloadGetInstanceNameAttributeType(&this.InstanceName, instanceName) @@ -104,12 +127,14 @@ func NewCreateInstancePayload(instanceName CreateInstancePayloadGetInstanceNameA // NewCreateInstancePayloadWithDefaults instantiates a new CreateInstancePayload 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { this := CreateInstancePayload{} return &this } // GetInstanceName returns the InstanceName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetInstanceName() (ret CreateInstancePayloadGetInstanceNameRetType) { ret, _ = o.GetInstanceNameOk() return ret @@ -117,16 +142,19 @@ func (o *CreateInstancePayload) GetInstanceName() (ret CreateInstancePayloadGetI // GetInstanceNameOk returns a tuple with the InstanceName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetInstanceNameOk() (ret CreateInstancePayloadGetInstanceNameRetType, ok bool) { return getCreateInstancePayloadGetInstanceNameAttributeTypeOk(o.InstanceName) } // SetInstanceName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) SetInstanceName(v CreateInstancePayloadGetInstanceNameRetType) { setCreateInstancePayloadGetInstanceNameAttributeType(&o.InstanceName, v) } // GetParameters returns the Parameters field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetParameters() (res CreateInstancePayloadGetParametersRetType) { res, _ = o.GetParametersOk() return @@ -134,22 +162,26 @@ func (o *CreateInstancePayload) GetParameters() (res CreateInstancePayloadGetPar // GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetParametersOk() (ret CreateInstancePayloadGetParametersRetType, ok bool) { return getCreateInstancePayloadGetParametersAttributeTypeOk(o.Parameters) } // HasParameters returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) HasParameters() bool { _, ok := o.GetParametersOk() return ok } // SetParameters gets a reference to the given InstanceParameters and assigns it to the Parameters field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) SetParameters(v CreateInstancePayloadGetParametersRetType) { setCreateInstancePayloadGetParametersAttributeType(&o.Parameters, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetPlanId() (ret CreateInstancePayloadGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -157,15 +189,18 @@ func (o *CreateInstancePayload) GetPlanId() (ret CreateInstancePayloadGetPlanIdR // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) GetPlanIdOk() (ret CreateInstancePayloadGetPlanIdRetType, ok bool) { return getCreateInstancePayloadGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstancePayload) SetPlanId(v CreateInstancePayloadGetPlanIdRetType) { setCreateInstancePayloadGetPlanIdAttributeType(&o.PlanId, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateInstancePayloadGetInstanceNameAttributeTypeOk(o.InstanceName); ok { @@ -180,37 +215,45 @@ func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateInstancePayload struct { value *CreateInstancePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstancePayload) Get() *CreateInstancePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstancePayload) Set(val *CreateInstancePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstancePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstancePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateInstancePayload(val *CreateInstancePayload) *NullableCreateInstancePayload { return &NullableCreateInstancePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstancePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstancePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_create_instance_response.go b/services/redis/model_create_instance_response.go index fe8e49647..4e9e502b4 100644 --- a/services/redis/model_create_instance_response.go +++ b/services/redis/model_create_instance_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateInstanceResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetInstanceIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateInstanceResponseGetInstanceIdAttributeTypeOk(arg CreateInstanceResponseGetInstanceIdAttributeType) (ret CreateInstanceResponseGetInstanceIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getCreateInstanceResponseGetInstanceIdAttributeTypeOk(arg CreateInstanceRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateInstanceResponseGetInstanceIdAttributeType(arg *CreateInstanceResponseGetInstanceIdAttributeType, val CreateInstanceResponseGetInstanceIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetInstanceIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponseGetInstanceIdRetType = string // CreateInstanceResponse struct for CreateInstanceResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateInstanceResponse struct { // REQUIRED InstanceId CreateInstanceResponseGetInstanceIdAttributeType `json:"instanceId" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateInstanceResponse CreateInstanceResponse // NewCreateInstanceResponse instantiates a new CreateInstanceResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstanceResponse(instanceId CreateInstanceResponseGetInstanceIdArgType) *CreateInstanceResponse { this := CreateInstanceResponse{} setCreateInstanceResponseGetInstanceIdAttributeType(&this.InstanceId, instanceId) @@ -59,12 +69,14 @@ func NewCreateInstanceResponse(instanceId CreateInstanceResponseGetInstanceIdArg // NewCreateInstanceResponseWithDefaults instantiates a new CreateInstanceResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { this := CreateInstanceResponse{} return &this } // GetInstanceId returns the InstanceId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetInstanceId() (ret CreateInstanceResponseGetInstanceIdRetType) { ret, _ = o.GetInstanceIdOk() return ret @@ -72,15 +84,18 @@ func (o *CreateInstanceResponse) GetInstanceId() (ret CreateInstanceResponseGetI // GetInstanceIdOk returns a tuple with the InstanceId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) GetInstanceIdOk() (ret CreateInstanceResponseGetInstanceIdRetType, ok bool) { return getCreateInstanceResponseGetInstanceIdAttributeTypeOk(o.InstanceId) } // SetInstanceId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateInstanceResponse) SetInstanceId(v CreateInstanceResponseGetInstanceIdRetType) { setCreateInstanceResponseGetInstanceIdAttributeType(&o.InstanceId, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateInstanceResponseGetInstanceIdAttributeTypeOk(o.InstanceId); ok { @@ -89,37 +104,45 @@ func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateInstanceResponse struct { value *CreateInstanceResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstanceResponse) Get() *CreateInstanceResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstanceResponse) Set(val *CreateInstanceResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstanceResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstanceResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateInstanceResponse(val *CreateInstanceResponse) *NullableCreateInstanceResponse { return &NullableCreateInstanceResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateInstanceResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateInstanceResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_credentials.go b/services/redis/model_credentials.go index 0b37925ab..387745a8e 100644 --- a/services/redis/model_credentials.go +++ b/services/redis/model_credentials.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Credentials{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetHostAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetHostAttributeTypeOk(arg CredentialsGetHostAttributeType) (ret CredentialsGetHostRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCredentialsGetHostAttributeTypeOk(arg CredentialsGetHostAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetHostAttributeType(arg *CredentialsGetHostAttributeType, val CredentialsGetHostRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetHostArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetHostRetType = string /* @@ -43,10 +50,16 @@ type CredentialsGetHostRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetHostsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetHostsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetHostsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetHostsAttributeTypeOk(arg CredentialsGetHostsAttributeType) (ret CredentialsGetHostsRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getCredentialsGetHostsAttributeTypeOk(arg CredentialsGetHostsAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetHostsAttributeType(arg *CredentialsGetHostsAttributeType, val CredentialsGetHostsRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setCredentialsGetHostsAttributeType(arg *CredentialsGetHostsAttributeType, */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetLoadBalancedHostAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetLoadBalancedHostAttributeTypeOk(arg CredentialsGetLoadBalancedHostAttributeType) (ret CredentialsGetLoadBalancedHostRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getCredentialsGetLoadBalancedHostAttributeTypeOk(arg CredentialsGetLoadBala return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetLoadBalancedHostAttributeType(arg *CredentialsGetLoadBalancedHostAttributeType, val CredentialsGetLoadBalancedHostRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetLoadBalancedHostArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetLoadBalancedHostRetType = string /* @@ -84,8 +104,10 @@ type CredentialsGetLoadBalancedHostRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPasswordAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetPasswordAttributeTypeOk(arg CredentialsGetPasswordAttributeType) (ret CredentialsGetPasswordRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getCredentialsGetPasswordAttributeTypeOk(arg CredentialsGetPasswordAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetPasswordAttributeType(arg *CredentialsGetPasswordAttributeType, val CredentialsGetPasswordRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPasswordArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPasswordRetType = string /* @@ -105,10 +131,16 @@ type CredentialsGetPasswordRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPortAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPortArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetPortRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetPortAttributeTypeOk(arg CredentialsGetPortAttributeType) (ret CredentialsGetPortRetType, ok bool) { if arg == nil { return ret, false @@ -116,6 +148,7 @@ func getCredentialsGetPortAttributeTypeOk(arg CredentialsGetPortAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetPortAttributeType(arg *CredentialsGetPortAttributeType, val CredentialsGetPortRetType) { *arg = &val } @@ -125,8 +158,10 @@ func setCredentialsGetPortAttributeType(arg *CredentialsGetPortAttributeType, va */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUriAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetUriAttributeTypeOk(arg CredentialsGetUriAttributeType) (ret CredentialsGetUriRetType, ok bool) { if arg == nil { return ret, false @@ -134,11 +169,15 @@ func getCredentialsGetUriAttributeTypeOk(arg CredentialsGetUriAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetUriAttributeType(arg *CredentialsGetUriAttributeType, val CredentialsGetUriRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUriArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUriRetType = string /* @@ -146,8 +185,10 @@ type CredentialsGetUriRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUsernameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsGetUsernameAttributeTypeOk(arg CredentialsGetUsernameAttributeType) (ret CredentialsGetUsernameRetType, ok bool) { if arg == nil { return ret, false @@ -155,14 +196,19 @@ func getCredentialsGetUsernameAttributeTypeOk(arg CredentialsGetUsernameAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsGetUsernameAttributeType(arg *CredentialsGetUsernameAttributeType, val CredentialsGetUsernameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUsernameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsGetUsernameRetType = string // Credentials struct for Credentials +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Credentials struct { // REQUIRED Host CredentialsGetHostAttributeType `json:"host" required:"true"` @@ -177,12 +223,14 @@ type Credentials struct { Username CredentialsGetUsernameAttributeType `json:"username" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Credentials Credentials // NewCredentials instantiates a new Credentials 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentials(host CredentialsGetHostArgType, password CredentialsGetPasswordArgType, username CredentialsGetUsernameArgType) *Credentials { this := Credentials{} setCredentialsGetHostAttributeType(&this.Host, host) @@ -194,12 +242,14 @@ func NewCredentials(host CredentialsGetHostArgType, password CredentialsGetPassw // NewCredentialsWithDefaults instantiates a new Credentials 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsWithDefaults() *Credentials { this := Credentials{} return &this } // GetHost returns the Host field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetHost() (ret CredentialsGetHostRetType) { ret, _ = o.GetHostOk() return ret @@ -207,16 +257,19 @@ func (o *Credentials) GetHost() (ret CredentialsGetHostRetType) { // GetHostOk returns a tuple with the Host field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetHostOk() (ret CredentialsGetHostRetType, ok bool) { return getCredentialsGetHostAttributeTypeOk(o.Host) } // SetHost sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetHost(v CredentialsGetHostRetType) { setCredentialsGetHostAttributeType(&o.Host, v) } // GetHosts returns the Hosts field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetHosts() (res CredentialsGetHostsRetType) { res, _ = o.GetHostsOk() return @@ -224,22 +277,26 @@ func (o *Credentials) GetHosts() (res CredentialsGetHostsRetType) { // GetHostsOk returns a tuple with the Hosts field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetHostsOk() (ret CredentialsGetHostsRetType, ok bool) { return getCredentialsGetHostsAttributeTypeOk(o.Hosts) } // HasHosts returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) HasHosts() bool { _, ok := o.GetHostsOk() return ok } // SetHosts gets a reference to the given []string and assigns it to the Hosts field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetHosts(v CredentialsGetHostsRetType) { setCredentialsGetHostsAttributeType(&o.Hosts, v) } // GetLoadBalancedHost returns the LoadBalancedHost field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetLoadBalancedHost() (res CredentialsGetLoadBalancedHostRetType) { res, _ = o.GetLoadBalancedHostOk() return @@ -247,22 +304,26 @@ func (o *Credentials) GetLoadBalancedHost() (res CredentialsGetLoadBalancedHostR // GetLoadBalancedHostOk returns a tuple with the LoadBalancedHost field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetLoadBalancedHostOk() (ret CredentialsGetLoadBalancedHostRetType, ok bool) { return getCredentialsGetLoadBalancedHostAttributeTypeOk(o.LoadBalancedHost) } // HasLoadBalancedHost returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) HasLoadBalancedHost() bool { _, ok := o.GetLoadBalancedHostOk() return ok } // SetLoadBalancedHost gets a reference to the given string and assigns it to the LoadBalancedHost field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetLoadBalancedHost(v CredentialsGetLoadBalancedHostRetType) { setCredentialsGetLoadBalancedHostAttributeType(&o.LoadBalancedHost, v) } // GetPassword returns the Password field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetPassword() (ret CredentialsGetPasswordRetType) { ret, _ = o.GetPasswordOk() return ret @@ -270,16 +331,19 @@ func (o *Credentials) GetPassword() (ret CredentialsGetPasswordRetType) { // GetPasswordOk returns a tuple with the Password field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetPasswordOk() (ret CredentialsGetPasswordRetType, ok bool) { return getCredentialsGetPasswordAttributeTypeOk(o.Password) } // SetPassword sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetPassword(v CredentialsGetPasswordRetType) { setCredentialsGetPasswordAttributeType(&o.Password, v) } // GetPort returns the Port field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetPort() (res CredentialsGetPortRetType) { res, _ = o.GetPortOk() return @@ -287,22 +351,26 @@ func (o *Credentials) GetPort() (res CredentialsGetPortRetType) { // GetPortOk returns a tuple with the Port field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetPortOk() (ret CredentialsGetPortRetType, ok bool) { return getCredentialsGetPortAttributeTypeOk(o.Port) } // HasPort returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) HasPort() bool { _, ok := o.GetPortOk() return ok } // SetPort gets a reference to the given int64 and assigns it to the Port field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetPort(v CredentialsGetPortRetType) { setCredentialsGetPortAttributeType(&o.Port, v) } // GetUri returns the Uri field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetUri() (res CredentialsGetUriRetType) { res, _ = o.GetUriOk() return @@ -310,22 +378,26 @@ func (o *Credentials) GetUri() (res CredentialsGetUriRetType) { // GetUriOk returns a tuple with the Uri field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetUriOk() (ret CredentialsGetUriRetType, ok bool) { return getCredentialsGetUriAttributeTypeOk(o.Uri) } // HasUri returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) HasUri() bool { _, ok := o.GetUriOk() return ok } // SetUri gets a reference to the given string and assigns it to the Uri field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetUri(v CredentialsGetUriRetType) { setCredentialsGetUriAttributeType(&o.Uri, v) } // GetUsername returns the Username field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetUsername() (ret CredentialsGetUsernameRetType) { ret, _ = o.GetUsernameOk() return ret @@ -333,15 +405,18 @@ func (o *Credentials) GetUsername() (ret CredentialsGetUsernameRetType) { // GetUsernameOk returns a tuple with the Username field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) GetUsernameOk() (ret CredentialsGetUsernameRetType, ok bool) { return getCredentialsGetUsernameAttributeTypeOk(o.Username) } // SetUsername sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Credentials) SetUsername(v CredentialsGetUsernameRetType) { setCredentialsGetUsernameAttributeType(&o.Username, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Credentials) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCredentialsGetHostAttributeTypeOk(o.Host); ok { @@ -368,37 +443,45 @@ func (o Credentials) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCredentials struct { value *Credentials isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentials) Get() *Credentials { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentials) Set(val *Credentials) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentials) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentials) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCredentials(val *Credentials) *NullableCredentials { return &NullableCredentials{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentials) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentials) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_credentials_list_item.go b/services/redis/model_credentials_list_item.go index f72cf31ff..ea80046d4 100644 --- a/services/redis/model_credentials_list_item.go +++ b/services/redis/model_credentials_list_item.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CredentialsListItem{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsListItemGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsListItemGetIdAttributeTypeOk(arg CredentialsListItemGetIdAttributeType) (ret CredentialsListItemGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getCredentialsListItemGetIdAttributeTypeOk(arg CredentialsListItemGetIdAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsListItemGetIdAttributeType(arg *CredentialsListItemGetIdAttributeType, val CredentialsListItemGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsListItemGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsListItemGetIdRetType = string // CredentialsListItem struct for CredentialsListItem +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsListItem struct { // REQUIRED Id CredentialsListItemGetIdAttributeType `json:"id" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CredentialsListItem CredentialsListItem // NewCredentialsListItem instantiates a new CredentialsListItem 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsListItem(id CredentialsListItemGetIdArgType) *CredentialsListItem { this := CredentialsListItem{} setCredentialsListItemGetIdAttributeType(&this.Id, id) @@ -59,12 +69,14 @@ func NewCredentialsListItem(id CredentialsListItemGetIdArgType) *CredentialsList // NewCredentialsListItemWithDefaults instantiates a new CredentialsListItem 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsListItemWithDefaults() *CredentialsListItem { this := CredentialsListItem{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsListItem) GetId() (ret CredentialsListItemGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -72,15 +84,18 @@ func (o *CredentialsListItem) GetId() (ret CredentialsListItemGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsListItem) GetIdOk() (ret CredentialsListItemGetIdRetType, ok bool) { return getCredentialsListItemGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsListItem) SetId(v CredentialsListItemGetIdRetType) { setCredentialsListItemGetIdAttributeType(&o.Id, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CredentialsListItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCredentialsListItemGetIdAttributeTypeOk(o.Id); ok { @@ -89,37 +104,45 @@ func (o CredentialsListItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCredentialsListItem struct { value *CredentialsListItem isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsListItem) Get() *CredentialsListItem { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsListItem) Set(val *CredentialsListItem) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsListItem) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsListItem) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCredentialsListItem(val *CredentialsListItem) *NullableCredentialsListItem { return &NullableCredentialsListItem{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsListItem) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsListItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_credentials_response.go b/services/redis/model_credentials_response.go index 8bf9703cb..74707d92a 100644 --- a/services/redis/model_credentials_response.go +++ b/services/redis/model_credentials_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CredentialsResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsResponseGetIdAttributeTypeOk(arg CredentialsResponseGetIdAttributeType) (ret CredentialsResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCredentialsResponseGetIdAttributeTypeOk(arg CredentialsResponseGetIdAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsResponseGetIdAttributeType(arg *CredentialsResponseGetIdAttributeType, val CredentialsResponseGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetIdRetType = string /* @@ -43,10 +50,16 @@ type CredentialsResponseGetIdRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetRawAttributeType = *RawCredentials + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetRawArgType = RawCredentials + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetRawRetType = RawCredentials +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsResponseGetRawAttributeTypeOk(arg CredentialsResponseGetRawAttributeType) (ret CredentialsResponseGetRawRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getCredentialsResponseGetRawAttributeTypeOk(arg CredentialsResponseGetRawAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsResponseGetRawAttributeType(arg *CredentialsResponseGetRawAttributeType, val CredentialsResponseGetRawRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setCredentialsResponseGetRawAttributeType(arg *CredentialsResponseGetRawAtt */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetUriAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCredentialsResponseGetUriAttributeTypeOk(arg CredentialsResponseGetUriAttributeType) (ret CredentialsResponseGetUriRetType, ok bool) { if arg == nil { return ret, false @@ -72,14 +88,19 @@ func getCredentialsResponseGetUriAttributeTypeOk(arg CredentialsResponseGetUriAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCredentialsResponseGetUriAttributeType(arg *CredentialsResponseGetUriAttributeType, val CredentialsResponseGetUriRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetUriArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponseGetUriRetType = string // CredentialsResponse struct for CredentialsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CredentialsResponse struct { // REQUIRED Id CredentialsResponseGetIdAttributeType `json:"id" required:"true"` @@ -88,12 +109,14 @@ type CredentialsResponse struct { Uri CredentialsResponseGetUriAttributeType `json:"uri" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CredentialsResponse CredentialsResponse // NewCredentialsResponse instantiates a new CredentialsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsResponse(id CredentialsResponseGetIdArgType, uri CredentialsResponseGetUriArgType) *CredentialsResponse { this := CredentialsResponse{} setCredentialsResponseGetIdAttributeType(&this.Id, id) @@ -104,12 +127,14 @@ func NewCredentialsResponse(id CredentialsResponseGetIdArgType, uri CredentialsR // NewCredentialsResponseWithDefaults instantiates a new CredentialsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCredentialsResponseWithDefaults() *CredentialsResponse { this := CredentialsResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) GetId() (ret CredentialsResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -117,16 +142,19 @@ func (o *CredentialsResponse) GetId() (ret CredentialsResponseGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) GetIdOk() (ret CredentialsResponseGetIdRetType, ok bool) { return getCredentialsResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) SetId(v CredentialsResponseGetIdRetType) { setCredentialsResponseGetIdAttributeType(&o.Id, v) } // GetRaw returns the Raw field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) GetRaw() (res CredentialsResponseGetRawRetType) { res, _ = o.GetRawOk() return @@ -134,22 +162,26 @@ func (o *CredentialsResponse) GetRaw() (res CredentialsResponseGetRawRetType) { // GetRawOk returns a tuple with the Raw field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) GetRawOk() (ret CredentialsResponseGetRawRetType, ok bool) { return getCredentialsResponseGetRawAttributeTypeOk(o.Raw) } // HasRaw returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) HasRaw() bool { _, ok := o.GetRawOk() return ok } // SetRaw gets a reference to the given RawCredentials and assigns it to the Raw field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) SetRaw(v CredentialsResponseGetRawRetType) { setCredentialsResponseGetRawAttributeType(&o.Raw, v) } // GetUri returns the Uri field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) GetUri() (ret CredentialsResponseGetUriRetType) { ret, _ = o.GetUriOk() return ret @@ -157,15 +189,18 @@ func (o *CredentialsResponse) GetUri() (ret CredentialsResponseGetUriRetType) { // GetUriOk returns a tuple with the Uri field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) GetUriOk() (ret CredentialsResponseGetUriRetType, ok bool) { return getCredentialsResponseGetUriAttributeTypeOk(o.Uri) } // SetUri sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CredentialsResponse) SetUri(v CredentialsResponseGetUriRetType) { setCredentialsResponseGetUriAttributeType(&o.Uri, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CredentialsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCredentialsResponseGetIdAttributeTypeOk(o.Id); ok { @@ -180,37 +215,45 @@ func (o CredentialsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCredentialsResponse struct { value *CredentialsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsResponse) Get() *CredentialsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsResponse) Set(val *CredentialsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCredentialsResponse(val *CredentialsResponse) *NullableCredentialsResponse { return &NullableCredentialsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCredentialsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCredentialsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_error.go b/services/redis/model_error.go index 9a2dcd873..8c286541a 100644 --- a/services/redis/model_error.go +++ b/services/redis/model_error.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Error{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getErrorGetDescriptionAttributeTypeOk(arg ErrorGetDescriptionAttributeType) (ret ErrorGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getErrorGetDescriptionAttributeTypeOk(arg ErrorGetDescriptionAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setErrorGetDescriptionAttributeType(arg *ErrorGetDescriptionAttributeType, val ErrorGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type ErrorGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetErrorAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getErrorGetErrorAttributeTypeOk(arg ErrorGetErrorAttributeType) (ret ErrorGetErrorRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getErrorGetErrorAttributeTypeOk(arg ErrorGetErrorAttributeType) (ret ErrorG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setErrorGetErrorAttributeType(arg *ErrorGetErrorAttributeType, val ErrorGetErrorRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetErrorArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorGetErrorRetType = string // Error struct for Error +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Error struct { // REQUIRED Description ErrorGetDescriptionAttributeType `json:"description" required:"true"` @@ -67,12 +81,14 @@ type Error struct { Error ErrorGetErrorAttributeType `json:"error" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Error Error // NewError instantiates a new Error 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewError(description ErrorGetDescriptionArgType, error_ ErrorGetErrorArgType) *Error { this := Error{} setErrorGetDescriptionAttributeType(&this.Description, description) @@ -83,12 +99,14 @@ func NewError(description ErrorGetDescriptionArgType, error_ ErrorGetErrorArgTyp // NewErrorWithDefaults instantiates a new Error 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewErrorWithDefaults() *Error { this := Error{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetDescription() (ret ErrorGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -96,16 +114,19 @@ func (o *Error) GetDescription() (ret ErrorGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetDescriptionOk() (ret ErrorGetDescriptionRetType, ok bool) { return getErrorGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) SetDescription(v ErrorGetDescriptionRetType) { setErrorGetDescriptionAttributeType(&o.Description, v) } // GetError returns the Error field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetError() (ret ErrorGetErrorRetType) { ret, _ = o.GetErrorOk() return ret @@ -113,15 +134,18 @@ func (o *Error) GetError() (ret ErrorGetErrorRetType) { // GetErrorOk returns a tuple with the Error field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) GetErrorOk() (ret ErrorGetErrorRetType, ok bool) { return getErrorGetErrorAttributeTypeOk(o.Error) } // SetError sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Error) SetError(v ErrorGetErrorRetType) { setErrorGetErrorAttributeType(&o.Error, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Error) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getErrorGetDescriptionAttributeTypeOk(o.Description); ok { @@ -133,37 +157,45 @@ func (o Error) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableError struct { value *Error isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableError) Get() *Error { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableError) Set(val *Error) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableError) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableError) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableError(val *Error) *NullableError { return &NullableError{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableError) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableError) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_get_metrics_response.go b/services/redis/model_get_metrics_response.go index 412845bb3..26c9813a8 100644 --- a/services/redis/model_get_metrics_response.go +++ b/services/redis/model_get_metrics_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &GetMetricsResponse{} */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuIdleTimeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuIdleTimeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuIdleTimeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetCpuIdleTimeAttributeTypeOk(arg GetMetricsResponseGetCpuIdleTimeAttributeType) (ret GetMetricsResponseGetCpuIdleTimeRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getGetMetricsResponseGetCpuIdleTimeAttributeTypeOk(arg GetMetricsResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetCpuIdleTimeAttributeType(arg *GetMetricsResponseGetCpuIdleTimeAttributeType, val GetMetricsResponseGetCpuIdleTimeRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setGetMetricsResponseGetCpuIdleTimeAttributeType(arg *GetMetricsResponseGet */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuLoadPercentAttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuLoadPercentArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuLoadPercentRetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetCpuLoadPercentAttributeTypeOk(arg GetMetricsResponseGetCpuLoadPercentAttributeType) (ret GetMetricsResponseGetCpuLoadPercentRetType, ok bool) { if arg == nil { return ret, false @@ -53,6 +67,7 @@ func getGetMetricsResponseGetCpuLoadPercentAttributeTypeOk(arg GetMetricsRespons return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetCpuLoadPercentAttributeType(arg *GetMetricsResponseGetCpuLoadPercentAttributeType, val GetMetricsResponseGetCpuLoadPercentRetType) { *arg = &val } @@ -62,10 +77,16 @@ func setGetMetricsResponseGetCpuLoadPercentAttributeType(arg *GetMetricsResponse */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuSystemTimeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuSystemTimeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuSystemTimeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetCpuSystemTimeAttributeTypeOk(arg GetMetricsResponseGetCpuSystemTimeAttributeType) (ret GetMetricsResponseGetCpuSystemTimeRetType, ok bool) { if arg == nil { return ret, false @@ -73,6 +94,7 @@ func getGetMetricsResponseGetCpuSystemTimeAttributeTypeOk(arg GetMetricsResponse return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetCpuSystemTimeAttributeType(arg *GetMetricsResponseGetCpuSystemTimeAttributeType, val GetMetricsResponseGetCpuSystemTimeRetType) { *arg = &val } @@ -82,10 +104,16 @@ func setGetMetricsResponseGetCpuSystemTimeAttributeType(arg *GetMetricsResponseG */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuUserTimeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuUserTimeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetCpuUserTimeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetCpuUserTimeAttributeTypeOk(arg GetMetricsResponseGetCpuUserTimeAttributeType) (ret GetMetricsResponseGetCpuUserTimeRetType, ok bool) { if arg == nil { return ret, false @@ -93,6 +121,7 @@ func getGetMetricsResponseGetCpuUserTimeAttributeTypeOk(arg GetMetricsResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetCpuUserTimeAttributeType(arg *GetMetricsResponseGetCpuUserTimeAttributeType, val GetMetricsResponseGetCpuUserTimeRetType) { *arg = &val } @@ -102,10 +131,16 @@ func setGetMetricsResponseGetCpuUserTimeAttributeType(arg *GetMetricsResponseGet */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskEphemeralTotalAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskEphemeralTotalArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskEphemeralTotalRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetDiskEphemeralTotalAttributeTypeOk(arg GetMetricsResponseGetDiskEphemeralTotalAttributeType) (ret GetMetricsResponseGetDiskEphemeralTotalRetType, ok bool) { if arg == nil { return ret, false @@ -113,6 +148,7 @@ func getGetMetricsResponseGetDiskEphemeralTotalAttributeTypeOk(arg GetMetricsRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetDiskEphemeralTotalAttributeType(arg *GetMetricsResponseGetDiskEphemeralTotalAttributeType, val GetMetricsResponseGetDiskEphemeralTotalRetType) { *arg = &val } @@ -122,10 +158,16 @@ func setGetMetricsResponseGetDiskEphemeralTotalAttributeType(arg *GetMetricsResp */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskEphemeralUsedAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskEphemeralUsedArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskEphemeralUsedRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetDiskEphemeralUsedAttributeTypeOk(arg GetMetricsResponseGetDiskEphemeralUsedAttributeType) (ret GetMetricsResponseGetDiskEphemeralUsedRetType, ok bool) { if arg == nil { return ret, false @@ -133,6 +175,7 @@ func getGetMetricsResponseGetDiskEphemeralUsedAttributeTypeOk(arg GetMetricsResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetDiskEphemeralUsedAttributeType(arg *GetMetricsResponseGetDiskEphemeralUsedAttributeType, val GetMetricsResponseGetDiskEphemeralUsedRetType) { *arg = &val } @@ -142,10 +185,16 @@ func setGetMetricsResponseGetDiskEphemeralUsedAttributeType(arg *GetMetricsRespo */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskPersistentTotalAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskPersistentTotalArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskPersistentTotalRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetDiskPersistentTotalAttributeTypeOk(arg GetMetricsResponseGetDiskPersistentTotalAttributeType) (ret GetMetricsResponseGetDiskPersistentTotalRetType, ok bool) { if arg == nil { return ret, false @@ -153,6 +202,7 @@ func getGetMetricsResponseGetDiskPersistentTotalAttributeTypeOk(arg GetMetricsRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetDiskPersistentTotalAttributeType(arg *GetMetricsResponseGetDiskPersistentTotalAttributeType, val GetMetricsResponseGetDiskPersistentTotalRetType) { *arg = &val } @@ -162,10 +212,16 @@ func setGetMetricsResponseGetDiskPersistentTotalAttributeType(arg *GetMetricsRes */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskPersistentUsedAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskPersistentUsedArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetDiskPersistentUsedRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetDiskPersistentUsedAttributeTypeOk(arg GetMetricsResponseGetDiskPersistentUsedAttributeType) (ret GetMetricsResponseGetDiskPersistentUsedRetType, ok bool) { if arg == nil { return ret, false @@ -173,6 +229,7 @@ func getGetMetricsResponseGetDiskPersistentUsedAttributeTypeOk(arg GetMetricsRes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetDiskPersistentUsedAttributeType(arg *GetMetricsResponseGetDiskPersistentUsedAttributeType, val GetMetricsResponseGetDiskPersistentUsedRetType) { *arg = &val } @@ -182,10 +239,16 @@ func setGetMetricsResponseGetDiskPersistentUsedAttributeType(arg *GetMetricsResp */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad1AttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad1ArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad1RetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetLoad1AttributeTypeOk(arg GetMetricsResponseGetLoad1AttributeType) (ret GetMetricsResponseGetLoad1RetType, ok bool) { if arg == nil { return ret, false @@ -193,6 +256,7 @@ func getGetMetricsResponseGetLoad1AttributeTypeOk(arg GetMetricsResponseGetLoad1 return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetLoad1AttributeType(arg *GetMetricsResponseGetLoad1AttributeType, val GetMetricsResponseGetLoad1RetType) { *arg = &val } @@ -202,10 +266,16 @@ func setGetMetricsResponseGetLoad1AttributeType(arg *GetMetricsResponseGetLoad1A */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad15AttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad15ArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad15RetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetLoad15AttributeTypeOk(arg GetMetricsResponseGetLoad15AttributeType) (ret GetMetricsResponseGetLoad15RetType, ok bool) { if arg == nil { return ret, false @@ -213,6 +283,7 @@ func getGetMetricsResponseGetLoad15AttributeTypeOk(arg GetMetricsResponseGetLoad return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetLoad15AttributeType(arg *GetMetricsResponseGetLoad15AttributeType, val GetMetricsResponseGetLoad15RetType) { *arg = &val } @@ -222,10 +293,16 @@ func setGetMetricsResponseGetLoad15AttributeType(arg *GetMetricsResponseGetLoad1 */ // isNumber +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad5AttributeType = *float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad5ArgType = float64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetLoad5RetType = float64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetLoad5AttributeTypeOk(arg GetMetricsResponseGetLoad5AttributeType) (ret GetMetricsResponseGetLoad5RetType, ok bool) { if arg == nil { return ret, false @@ -233,6 +310,7 @@ func getGetMetricsResponseGetLoad5AttributeTypeOk(arg GetMetricsResponseGetLoad5 return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetLoad5AttributeType(arg *GetMetricsResponseGetLoad5AttributeType, val GetMetricsResponseGetLoad5RetType) { *arg = &val } @@ -242,10 +320,16 @@ func setGetMetricsResponseGetLoad5AttributeType(arg *GetMetricsResponseGetLoad5A */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetMemoryTotalAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetMemoryTotalArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetMemoryTotalRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetMemoryTotalAttributeTypeOk(arg GetMetricsResponseGetMemoryTotalAttributeType) (ret GetMetricsResponseGetMemoryTotalRetType, ok bool) { if arg == nil { return ret, false @@ -253,6 +337,7 @@ func getGetMetricsResponseGetMemoryTotalAttributeTypeOk(arg GetMetricsResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetMemoryTotalAttributeType(arg *GetMetricsResponseGetMemoryTotalAttributeType, val GetMetricsResponseGetMemoryTotalRetType) { *arg = &val } @@ -262,10 +347,16 @@ func setGetMetricsResponseGetMemoryTotalAttributeType(arg *GetMetricsResponseGet */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetMemoryUsedAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetMemoryUsedArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetMemoryUsedRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetMemoryUsedAttributeTypeOk(arg GetMetricsResponseGetMemoryUsedAttributeType) (ret GetMetricsResponseGetMemoryUsedRetType, ok bool) { if arg == nil { return ret, false @@ -273,6 +364,7 @@ func getGetMetricsResponseGetMemoryUsedAttributeTypeOk(arg GetMetricsResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetMemoryUsedAttributeType(arg *GetMetricsResponseGetMemoryUsedAttributeType, val GetMetricsResponseGetMemoryUsedRetType) { *arg = &val } @@ -282,10 +374,16 @@ func setGetMetricsResponseGetMemoryUsedAttributeType(arg *GetMetricsResponseGetM */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponsegetParachuteDiskEphemeralActivatedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponsegetParachuteDiskEphemeralActivatedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeTypeOk(arg GetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType) (ret GetMetricsResponsegetParachuteDiskEphemeralActivatedRetType, ok bool) { if arg == nil { return ret, false @@ -293,6 +391,7 @@ func getGetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType(arg *GetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType, val GetMetricsResponsegetParachuteDiskEphemeralActivatedRetType) { *arg = &val } @@ -302,10 +401,16 @@ func setGetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType(arg *G */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralTotalArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralTotalRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskEphemeralTotalAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType) (ret GetMetricsResponseGetParachuteDiskEphemeralTotalRetType, ok bool) { if arg == nil { return ret, false @@ -313,6 +418,7 @@ func getGetMetricsResponseGetParachuteDiskEphemeralTotalAttributeTypeOk(arg GetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType(arg *GetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType, val GetMetricsResponseGetParachuteDiskEphemeralTotalRetType) { *arg = &val } @@ -322,10 +428,16 @@ func setGetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType(arg *GetMe */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskEphemeralUsedAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType) (ret GetMetricsResponseGetParachuteDiskEphemeralUsedRetType, ok bool) { if arg == nil { return ret, false @@ -333,6 +445,7 @@ func getGetMetricsResponseGetParachuteDiskEphemeralUsedAttributeTypeOk(arg GetMe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType(arg *GetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType, val GetMetricsResponseGetParachuteDiskEphemeralUsedRetType) { *arg = &val } @@ -342,10 +455,16 @@ func setGetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType(arg *GetMet */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedPercentArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedPercentRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType) (ret GetMetricsResponseGetParachuteDiskEphemeralUsedPercentRetType, ok bool) { if arg == nil { return ret, false @@ -353,6 +472,7 @@ func getGetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeTypeOk(ar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType(arg *GetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType, val GetMetricsResponseGetParachuteDiskEphemeralUsedPercentRetType) { *arg = &val } @@ -362,10 +482,16 @@ func setGetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType(arg */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType) (ret GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdRetType, ok bool) { if arg == nil { return ret, false @@ -373,6 +499,7 @@ func getGetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeTypeOk( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType(arg *GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType, val GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdRetType) { *arg = &val } @@ -382,10 +509,16 @@ func setGetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType(ar */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponsegetParachuteDiskPersistentActivatedArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponsegetParachuteDiskPersistentActivatedRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponsegetParachuteDiskPersistentActivatedAttributeTypeOk(arg GetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType) (ret GetMetricsResponsegetParachuteDiskPersistentActivatedRetType, ok bool) { if arg == nil { return ret, false @@ -393,6 +526,7 @@ func getGetMetricsResponsegetParachuteDiskPersistentActivatedAttributeTypeOk(arg return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType(arg *GetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType, val GetMetricsResponsegetParachuteDiskPersistentActivatedRetType) { *arg = &val } @@ -402,10 +536,16 @@ func setGetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType(arg * */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentTotalAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentTotalArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentTotalRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskPersistentTotalAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskPersistentTotalAttributeType) (ret GetMetricsResponseGetParachuteDiskPersistentTotalRetType, ok bool) { if arg == nil { return ret, false @@ -413,6 +553,7 @@ func getGetMetricsResponseGetParachuteDiskPersistentTotalAttributeTypeOk(arg Get return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskPersistentTotalAttributeType(arg *GetMetricsResponseGetParachuteDiskPersistentTotalAttributeType, val GetMetricsResponseGetParachuteDiskPersistentTotalRetType) { *arg = &val } @@ -422,10 +563,16 @@ func setGetMetricsResponseGetParachuteDiskPersistentTotalAttributeType(arg *GetM */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskPersistentUsedAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskPersistentUsedAttributeType) (ret GetMetricsResponseGetParachuteDiskPersistentUsedRetType, ok bool) { if arg == nil { return ret, false @@ -433,6 +580,7 @@ func getGetMetricsResponseGetParachuteDiskPersistentUsedAttributeTypeOk(arg GetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskPersistentUsedAttributeType(arg *GetMetricsResponseGetParachuteDiskPersistentUsedAttributeType, val GetMetricsResponseGetParachuteDiskPersistentUsedRetType) { *arg = &val } @@ -442,10 +590,16 @@ func setGetMetricsResponseGetParachuteDiskPersistentUsedAttributeType(arg *GetMe */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedPercentArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedPercentRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType) (ret GetMetricsResponseGetParachuteDiskPersistentUsedPercentRetType, ok bool) { if arg == nil { return ret, false @@ -453,6 +607,7 @@ func getGetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeTypeOk(a return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType(arg *GetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType, val GetMetricsResponseGetParachuteDiskPersistentUsedPercentRetType) { *arg = &val } @@ -462,10 +617,16 @@ func setGetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType(arg */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedThresholdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponseGetParachuteDiskPersistentUsedThresholdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeTypeOk(arg GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType) (ret GetMetricsResponseGetParachuteDiskPersistentUsedThresholdRetType, ok bool) { if arg == nil { return ret, false @@ -473,11 +634,13 @@ func getGetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeTypeOk return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType(arg *GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType, val GetMetricsResponseGetParachuteDiskPersistentUsedThresholdRetType) { *arg = &val } // GetMetricsResponse struct for GetMetricsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetMetricsResponse struct { CpuIdleTime GetMetricsResponseGetCpuIdleTimeAttributeType `json:"cpuIdleTime,omitempty"` // REQUIRED @@ -524,12 +687,14 @@ type GetMetricsResponse struct { ParachuteDiskPersistentUsedThreshold GetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType `json:"parachuteDiskPersistentUsedThreshold" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetMetricsResponse GetMetricsResponse // NewGetMetricsResponse instantiates a new GetMetricsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetMetricsResponse(cpuLoadPercent GetMetricsResponseGetCpuLoadPercentArgType, diskEphemeralTotal GetMetricsResponseGetDiskEphemeralTotalArgType, diskEphemeralUsed GetMetricsResponseGetDiskEphemeralUsedArgType, diskPersistentTotal GetMetricsResponseGetDiskPersistentTotalArgType, diskPersistentUsed GetMetricsResponseGetDiskPersistentUsedArgType, load1 GetMetricsResponseGetLoad1ArgType, load15 GetMetricsResponseGetLoad15ArgType, load5 GetMetricsResponseGetLoad5ArgType, memoryTotal GetMetricsResponseGetMemoryTotalArgType, memoryUsed GetMetricsResponseGetMemoryUsedArgType, parachuteDiskEphemeralActivated GetMetricsResponsegetParachuteDiskEphemeralActivatedArgType, parachuteDiskEphemeralTotal GetMetricsResponseGetParachuteDiskEphemeralTotalArgType, parachuteDiskEphemeralUsed GetMetricsResponseGetParachuteDiskEphemeralUsedArgType, parachuteDiskEphemeralUsedPercent GetMetricsResponseGetParachuteDiskEphemeralUsedPercentArgType, parachuteDiskEphemeralUsedThreshold GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdArgType, parachuteDiskPersistentActivated GetMetricsResponsegetParachuteDiskPersistentActivatedArgType, parachuteDiskPersistentTotal GetMetricsResponseGetParachuteDiskPersistentTotalArgType, parachuteDiskPersistentUsed GetMetricsResponseGetParachuteDiskPersistentUsedArgType, parachuteDiskPersistentUsedPercent GetMetricsResponseGetParachuteDiskPersistentUsedPercentArgType, parachuteDiskPersistentUsedThreshold GetMetricsResponseGetParachuteDiskPersistentUsedThresholdArgType) *GetMetricsResponse { this := GetMetricsResponse{} setGetMetricsResponseGetCpuLoadPercentAttributeType(&this.CpuLoadPercent, cpuLoadPercent) @@ -558,12 +723,14 @@ func NewGetMetricsResponse(cpuLoadPercent GetMetricsResponseGetCpuLoadPercentArg // NewGetMetricsResponseWithDefaults instantiates a new GetMetricsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetMetricsResponseWithDefaults() *GetMetricsResponse { this := GetMetricsResponse{} return &this } // GetCpuIdleTime returns the CpuIdleTime field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuIdleTime() (res GetMetricsResponseGetCpuIdleTimeRetType) { res, _ = o.GetCpuIdleTimeOk() return @@ -571,22 +738,26 @@ func (o *GetMetricsResponse) GetCpuIdleTime() (res GetMetricsResponseGetCpuIdleT // GetCpuIdleTimeOk returns a tuple with the CpuIdleTime field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuIdleTimeOk() (ret GetMetricsResponseGetCpuIdleTimeRetType, ok bool) { return getGetMetricsResponseGetCpuIdleTimeAttributeTypeOk(o.CpuIdleTime) } // HasCpuIdleTime returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) HasCpuIdleTime() bool { _, ok := o.GetCpuIdleTimeOk() return ok } // SetCpuIdleTime gets a reference to the given int64 and assigns it to the CpuIdleTime field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetCpuIdleTime(v GetMetricsResponseGetCpuIdleTimeRetType) { setGetMetricsResponseGetCpuIdleTimeAttributeType(&o.CpuIdleTime, v) } // GetCpuLoadPercent returns the CpuLoadPercent field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuLoadPercent() (ret GetMetricsResponseGetCpuLoadPercentRetType) { ret, _ = o.GetCpuLoadPercentOk() return ret @@ -594,16 +765,19 @@ func (o *GetMetricsResponse) GetCpuLoadPercent() (ret GetMetricsResponseGetCpuLo // GetCpuLoadPercentOk returns a tuple with the CpuLoadPercent field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuLoadPercentOk() (ret GetMetricsResponseGetCpuLoadPercentRetType, ok bool) { return getGetMetricsResponseGetCpuLoadPercentAttributeTypeOk(o.CpuLoadPercent) } // SetCpuLoadPercent sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetCpuLoadPercent(v GetMetricsResponseGetCpuLoadPercentRetType) { setGetMetricsResponseGetCpuLoadPercentAttributeType(&o.CpuLoadPercent, v) } // GetCpuSystemTime returns the CpuSystemTime field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuSystemTime() (res GetMetricsResponseGetCpuSystemTimeRetType) { res, _ = o.GetCpuSystemTimeOk() return @@ -611,22 +785,26 @@ func (o *GetMetricsResponse) GetCpuSystemTime() (res GetMetricsResponseGetCpuSys // GetCpuSystemTimeOk returns a tuple with the CpuSystemTime field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuSystemTimeOk() (ret GetMetricsResponseGetCpuSystemTimeRetType, ok bool) { return getGetMetricsResponseGetCpuSystemTimeAttributeTypeOk(o.CpuSystemTime) } // HasCpuSystemTime returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) HasCpuSystemTime() bool { _, ok := o.GetCpuSystemTimeOk() return ok } // SetCpuSystemTime gets a reference to the given int64 and assigns it to the CpuSystemTime field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetCpuSystemTime(v GetMetricsResponseGetCpuSystemTimeRetType) { setGetMetricsResponseGetCpuSystemTimeAttributeType(&o.CpuSystemTime, v) } // GetCpuUserTime returns the CpuUserTime field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuUserTime() (res GetMetricsResponseGetCpuUserTimeRetType) { res, _ = o.GetCpuUserTimeOk() return @@ -634,22 +812,26 @@ func (o *GetMetricsResponse) GetCpuUserTime() (res GetMetricsResponseGetCpuUserT // GetCpuUserTimeOk returns a tuple with the CpuUserTime field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetCpuUserTimeOk() (ret GetMetricsResponseGetCpuUserTimeRetType, ok bool) { return getGetMetricsResponseGetCpuUserTimeAttributeTypeOk(o.CpuUserTime) } // HasCpuUserTime returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) HasCpuUserTime() bool { _, ok := o.GetCpuUserTimeOk() return ok } // SetCpuUserTime gets a reference to the given int64 and assigns it to the CpuUserTime field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetCpuUserTime(v GetMetricsResponseGetCpuUserTimeRetType) { setGetMetricsResponseGetCpuUserTimeAttributeType(&o.CpuUserTime, v) } // GetDiskEphemeralTotal returns the DiskEphemeralTotal field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskEphemeralTotal() (ret GetMetricsResponseGetDiskEphemeralTotalRetType) { ret, _ = o.GetDiskEphemeralTotalOk() return ret @@ -657,16 +839,19 @@ func (o *GetMetricsResponse) GetDiskEphemeralTotal() (ret GetMetricsResponseGetD // GetDiskEphemeralTotalOk returns a tuple with the DiskEphemeralTotal field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskEphemeralTotalOk() (ret GetMetricsResponseGetDiskEphemeralTotalRetType, ok bool) { return getGetMetricsResponseGetDiskEphemeralTotalAttributeTypeOk(o.DiskEphemeralTotal) } // SetDiskEphemeralTotal sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetDiskEphemeralTotal(v GetMetricsResponseGetDiskEphemeralTotalRetType) { setGetMetricsResponseGetDiskEphemeralTotalAttributeType(&o.DiskEphemeralTotal, v) } // GetDiskEphemeralUsed returns the DiskEphemeralUsed field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskEphemeralUsed() (ret GetMetricsResponseGetDiskEphemeralUsedRetType) { ret, _ = o.GetDiskEphemeralUsedOk() return ret @@ -674,16 +859,19 @@ func (o *GetMetricsResponse) GetDiskEphemeralUsed() (ret GetMetricsResponseGetDi // GetDiskEphemeralUsedOk returns a tuple with the DiskEphemeralUsed field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskEphemeralUsedOk() (ret GetMetricsResponseGetDiskEphemeralUsedRetType, ok bool) { return getGetMetricsResponseGetDiskEphemeralUsedAttributeTypeOk(o.DiskEphemeralUsed) } // SetDiskEphemeralUsed sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetDiskEphemeralUsed(v GetMetricsResponseGetDiskEphemeralUsedRetType) { setGetMetricsResponseGetDiskEphemeralUsedAttributeType(&o.DiskEphemeralUsed, v) } // GetDiskPersistentTotal returns the DiskPersistentTotal field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskPersistentTotal() (ret GetMetricsResponseGetDiskPersistentTotalRetType) { ret, _ = o.GetDiskPersistentTotalOk() return ret @@ -691,16 +879,19 @@ func (o *GetMetricsResponse) GetDiskPersistentTotal() (ret GetMetricsResponseGet // GetDiskPersistentTotalOk returns a tuple with the DiskPersistentTotal field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskPersistentTotalOk() (ret GetMetricsResponseGetDiskPersistentTotalRetType, ok bool) { return getGetMetricsResponseGetDiskPersistentTotalAttributeTypeOk(o.DiskPersistentTotal) } // SetDiskPersistentTotal sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetDiskPersistentTotal(v GetMetricsResponseGetDiskPersistentTotalRetType) { setGetMetricsResponseGetDiskPersistentTotalAttributeType(&o.DiskPersistentTotal, v) } // GetDiskPersistentUsed returns the DiskPersistentUsed field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskPersistentUsed() (ret GetMetricsResponseGetDiskPersistentUsedRetType) { ret, _ = o.GetDiskPersistentUsedOk() return ret @@ -708,16 +899,19 @@ func (o *GetMetricsResponse) GetDiskPersistentUsed() (ret GetMetricsResponseGetD // GetDiskPersistentUsedOk returns a tuple with the DiskPersistentUsed field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetDiskPersistentUsedOk() (ret GetMetricsResponseGetDiskPersistentUsedRetType, ok bool) { return getGetMetricsResponseGetDiskPersistentUsedAttributeTypeOk(o.DiskPersistentUsed) } // SetDiskPersistentUsed sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetDiskPersistentUsed(v GetMetricsResponseGetDiskPersistentUsedRetType) { setGetMetricsResponseGetDiskPersistentUsedAttributeType(&o.DiskPersistentUsed, v) } // GetLoad1 returns the Load1 field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetLoad1() (ret GetMetricsResponseGetLoad1RetType) { ret, _ = o.GetLoad1Ok() return ret @@ -725,16 +919,19 @@ func (o *GetMetricsResponse) GetLoad1() (ret GetMetricsResponseGetLoad1RetType) // GetLoad1Ok returns a tuple with the Load1 field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetLoad1Ok() (ret GetMetricsResponseGetLoad1RetType, ok bool) { return getGetMetricsResponseGetLoad1AttributeTypeOk(o.Load1) } // SetLoad1 sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetLoad1(v GetMetricsResponseGetLoad1RetType) { setGetMetricsResponseGetLoad1AttributeType(&o.Load1, v) } // GetLoad15 returns the Load15 field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetLoad15() (ret GetMetricsResponseGetLoad15RetType) { ret, _ = o.GetLoad15Ok() return ret @@ -742,16 +939,19 @@ func (o *GetMetricsResponse) GetLoad15() (ret GetMetricsResponseGetLoad15RetType // GetLoad15Ok returns a tuple with the Load15 field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetLoad15Ok() (ret GetMetricsResponseGetLoad15RetType, ok bool) { return getGetMetricsResponseGetLoad15AttributeTypeOk(o.Load15) } // SetLoad15 sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetLoad15(v GetMetricsResponseGetLoad15RetType) { setGetMetricsResponseGetLoad15AttributeType(&o.Load15, v) } // GetLoad5 returns the Load5 field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetLoad5() (ret GetMetricsResponseGetLoad5RetType) { ret, _ = o.GetLoad5Ok() return ret @@ -759,16 +959,19 @@ func (o *GetMetricsResponse) GetLoad5() (ret GetMetricsResponseGetLoad5RetType) // GetLoad5Ok returns a tuple with the Load5 field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetLoad5Ok() (ret GetMetricsResponseGetLoad5RetType, ok bool) { return getGetMetricsResponseGetLoad5AttributeTypeOk(o.Load5) } // SetLoad5 sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetLoad5(v GetMetricsResponseGetLoad5RetType) { setGetMetricsResponseGetLoad5AttributeType(&o.Load5, v) } // GetMemoryTotal returns the MemoryTotal field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetMemoryTotal() (ret GetMetricsResponseGetMemoryTotalRetType) { ret, _ = o.GetMemoryTotalOk() return ret @@ -776,16 +979,19 @@ func (o *GetMetricsResponse) GetMemoryTotal() (ret GetMetricsResponseGetMemoryTo // GetMemoryTotalOk returns a tuple with the MemoryTotal field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetMemoryTotalOk() (ret GetMetricsResponseGetMemoryTotalRetType, ok bool) { return getGetMetricsResponseGetMemoryTotalAttributeTypeOk(o.MemoryTotal) } // SetMemoryTotal sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetMemoryTotal(v GetMetricsResponseGetMemoryTotalRetType) { setGetMetricsResponseGetMemoryTotalAttributeType(&o.MemoryTotal, v) } // GetMemoryUsed returns the MemoryUsed field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetMemoryUsed() (ret GetMetricsResponseGetMemoryUsedRetType) { ret, _ = o.GetMemoryUsedOk() return ret @@ -793,16 +999,19 @@ func (o *GetMetricsResponse) GetMemoryUsed() (ret GetMetricsResponseGetMemoryUse // GetMemoryUsedOk returns a tuple with the MemoryUsed field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetMemoryUsedOk() (ret GetMetricsResponseGetMemoryUsedRetType, ok bool) { return getGetMetricsResponseGetMemoryUsedAttributeTypeOk(o.MemoryUsed) } // SetMemoryUsed sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetMemoryUsed(v GetMetricsResponseGetMemoryUsedRetType) { setGetMetricsResponseGetMemoryUsedAttributeType(&o.MemoryUsed, v) } // GetParachuteDiskEphemeralActivated returns the ParachuteDiskEphemeralActivated field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivated() (ret GetMetricsResponsegetParachuteDiskEphemeralActivatedRetType) { ret, _ = o.GetParachuteDiskEphemeralActivatedOk() return ret @@ -810,16 +1019,19 @@ func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivated() (ret GetMetric // GetParachuteDiskEphemeralActivatedOk returns a tuple with the ParachuteDiskEphemeralActivated field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivatedOk() (ret GetMetricsResponsegetParachuteDiskEphemeralActivatedRetType, ok bool) { return getGetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeTypeOk(o.ParachuteDiskEphemeralActivated) } // SetParachuteDiskEphemeralActivated sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskEphemeralActivated(v GetMetricsResponsegetParachuteDiskEphemeralActivatedRetType) { setGetMetricsResponsegetParachuteDiskEphemeralActivatedAttributeType(&o.ParachuteDiskEphemeralActivated, v) } // GetParachuteDiskEphemeralTotal returns the ParachuteDiskEphemeralTotal field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotal() (ret GetMetricsResponseGetParachuteDiskEphemeralTotalRetType) { ret, _ = o.GetParachuteDiskEphemeralTotalOk() return ret @@ -827,16 +1039,19 @@ func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotal() (ret GetMetricsRes // GetParachuteDiskEphemeralTotalOk returns a tuple with the ParachuteDiskEphemeralTotal field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotalOk() (ret GetMetricsResponseGetParachuteDiskEphemeralTotalRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskEphemeralTotalAttributeTypeOk(o.ParachuteDiskEphemeralTotal) } // SetParachuteDiskEphemeralTotal sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskEphemeralTotal(v GetMetricsResponseGetParachuteDiskEphemeralTotalRetType) { setGetMetricsResponseGetParachuteDiskEphemeralTotalAttributeType(&o.ParachuteDiskEphemeralTotal, v) } // GetParachuteDiskEphemeralUsed returns the ParachuteDiskEphemeralUsed field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsed() (ret GetMetricsResponseGetParachuteDiskEphemeralUsedRetType) { ret, _ = o.GetParachuteDiskEphemeralUsedOk() return ret @@ -844,16 +1059,19 @@ func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsed() (ret GetMetricsResp // GetParachuteDiskEphemeralUsedOk returns a tuple with the ParachuteDiskEphemeralUsed field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedOk() (ret GetMetricsResponseGetParachuteDiskEphemeralUsedRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskEphemeralUsedAttributeTypeOk(o.ParachuteDiskEphemeralUsed) } // SetParachuteDiskEphemeralUsed sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsed(v GetMetricsResponseGetParachuteDiskEphemeralUsedRetType) { setGetMetricsResponseGetParachuteDiskEphemeralUsedAttributeType(&o.ParachuteDiskEphemeralUsed, v) } // GetParachuteDiskEphemeralUsedPercent returns the ParachuteDiskEphemeralUsedPercent field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercent() (ret GetMetricsResponseGetParachuteDiskEphemeralUsedPercentRetType) { ret, _ = o.GetParachuteDiskEphemeralUsedPercentOk() return ret @@ -861,16 +1079,19 @@ func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercent() (ret GetMetr // GetParachuteDiskEphemeralUsedPercentOk returns a tuple with the ParachuteDiskEphemeralUsedPercent field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercentOk() (ret GetMetricsResponseGetParachuteDiskEphemeralUsedPercentRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeTypeOk(o.ParachuteDiskEphemeralUsedPercent) } // SetParachuteDiskEphemeralUsedPercent sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedPercent(v GetMetricsResponseGetParachuteDiskEphemeralUsedPercentRetType) { setGetMetricsResponseGetParachuteDiskEphemeralUsedPercentAttributeType(&o.ParachuteDiskEphemeralUsedPercent, v) } // GetParachuteDiskEphemeralUsedThreshold returns the ParachuteDiskEphemeralUsedThreshold field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThreshold() (ret GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdRetType) { ret, _ = o.GetParachuteDiskEphemeralUsedThresholdOk() return ret @@ -878,16 +1099,19 @@ func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThreshold() (ret GetMe // GetParachuteDiskEphemeralUsedThresholdOk returns a tuple with the ParachuteDiskEphemeralUsedThreshold field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThresholdOk() (ret GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeTypeOk(o.ParachuteDiskEphemeralUsedThreshold) } // SetParachuteDiskEphemeralUsedThreshold sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedThreshold(v GetMetricsResponseGetParachuteDiskEphemeralUsedThresholdRetType) { setGetMetricsResponseGetParachuteDiskEphemeralUsedThresholdAttributeType(&o.ParachuteDiskEphemeralUsedThreshold, v) } // GetParachuteDiskPersistentActivated returns the ParachuteDiskPersistentActivated field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentActivated() (ret GetMetricsResponsegetParachuteDiskPersistentActivatedRetType) { ret, _ = o.GetParachuteDiskPersistentActivatedOk() return ret @@ -895,16 +1119,19 @@ func (o *GetMetricsResponse) GetParachuteDiskPersistentActivated() (ret GetMetri // GetParachuteDiskPersistentActivatedOk returns a tuple with the ParachuteDiskPersistentActivated field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentActivatedOk() (ret GetMetricsResponsegetParachuteDiskPersistentActivatedRetType, ok bool) { return getGetMetricsResponsegetParachuteDiskPersistentActivatedAttributeTypeOk(o.ParachuteDiskPersistentActivated) } // SetParachuteDiskPersistentActivated sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskPersistentActivated(v GetMetricsResponsegetParachuteDiskPersistentActivatedRetType) { setGetMetricsResponsegetParachuteDiskPersistentActivatedAttributeType(&o.ParachuteDiskPersistentActivated, v) } // GetParachuteDiskPersistentTotal returns the ParachuteDiskPersistentTotal field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentTotal() (ret GetMetricsResponseGetParachuteDiskPersistentTotalRetType) { ret, _ = o.GetParachuteDiskPersistentTotalOk() return ret @@ -912,16 +1139,19 @@ func (o *GetMetricsResponse) GetParachuteDiskPersistentTotal() (ret GetMetricsRe // GetParachuteDiskPersistentTotalOk returns a tuple with the ParachuteDiskPersistentTotal field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentTotalOk() (ret GetMetricsResponseGetParachuteDiskPersistentTotalRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskPersistentTotalAttributeTypeOk(o.ParachuteDiskPersistentTotal) } // SetParachuteDiskPersistentTotal sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskPersistentTotal(v GetMetricsResponseGetParachuteDiskPersistentTotalRetType) { setGetMetricsResponseGetParachuteDiskPersistentTotalAttributeType(&o.ParachuteDiskPersistentTotal, v) } // GetParachuteDiskPersistentUsed returns the ParachuteDiskPersistentUsed field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentUsed() (ret GetMetricsResponseGetParachuteDiskPersistentUsedRetType) { ret, _ = o.GetParachuteDiskPersistentUsedOk() return ret @@ -929,16 +1159,19 @@ func (o *GetMetricsResponse) GetParachuteDiskPersistentUsed() (ret GetMetricsRes // GetParachuteDiskPersistentUsedOk returns a tuple with the ParachuteDiskPersistentUsed field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedOk() (ret GetMetricsResponseGetParachuteDiskPersistentUsedRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskPersistentUsedAttributeTypeOk(o.ParachuteDiskPersistentUsed) } // SetParachuteDiskPersistentUsed sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskPersistentUsed(v GetMetricsResponseGetParachuteDiskPersistentUsedRetType) { setGetMetricsResponseGetParachuteDiskPersistentUsedAttributeType(&o.ParachuteDiskPersistentUsed, v) } // GetParachuteDiskPersistentUsedPercent returns the ParachuteDiskPersistentUsedPercent field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercent() (ret GetMetricsResponseGetParachuteDiskPersistentUsedPercentRetType) { ret, _ = o.GetParachuteDiskPersistentUsedPercentOk() return ret @@ -946,16 +1179,19 @@ func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercent() (ret GetMet // GetParachuteDiskPersistentUsedPercentOk returns a tuple with the ParachuteDiskPersistentUsedPercent field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercentOk() (ret GetMetricsResponseGetParachuteDiskPersistentUsedPercentRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeTypeOk(o.ParachuteDiskPersistentUsedPercent) } // SetParachuteDiskPersistentUsedPercent sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskPersistentUsedPercent(v GetMetricsResponseGetParachuteDiskPersistentUsedPercentRetType) { setGetMetricsResponseGetParachuteDiskPersistentUsedPercentAttributeType(&o.ParachuteDiskPersistentUsedPercent, v) } // GetParachuteDiskPersistentUsedThreshold returns the ParachuteDiskPersistentUsedThreshold field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThreshold() (ret GetMetricsResponseGetParachuteDiskPersistentUsedThresholdRetType) { ret, _ = o.GetParachuteDiskPersistentUsedThresholdOk() return ret @@ -963,15 +1199,18 @@ func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThreshold() (ret GetM // GetParachuteDiskPersistentUsedThresholdOk returns a tuple with the ParachuteDiskPersistentUsedThreshold field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThresholdOk() (ret GetMetricsResponseGetParachuteDiskPersistentUsedThresholdRetType, ok bool) { return getGetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeTypeOk(o.ParachuteDiskPersistentUsedThreshold) } // SetParachuteDiskPersistentUsedThreshold sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetMetricsResponse) SetParachuteDiskPersistentUsedThreshold(v GetMetricsResponseGetParachuteDiskPersistentUsedThresholdRetType) { setGetMetricsResponseGetParachuteDiskPersistentUsedThresholdAttributeType(&o.ParachuteDiskPersistentUsedThreshold, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetMetricsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetMetricsResponseGetCpuIdleTimeAttributeTypeOk(o.CpuIdleTime); ok { @@ -1046,37 +1285,45 @@ func (o GetMetricsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetMetricsResponse struct { value *GetMetricsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetMetricsResponse) Get() *GetMetricsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetMetricsResponse) Set(val *GetMetricsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetMetricsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetMetricsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetMetricsResponse(val *GetMetricsResponse) *NullableGetMetricsResponse { return &NullableGetMetricsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetMetricsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetMetricsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_instance.go b/services/redis/model_instance.go index 4101b8972..3e411936b 100644 --- a/services/redis/model_instance.go +++ b/services/redis/model_instance.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -23,8 +24,10 @@ var _ MappedNullable = &Instance{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfGuidAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetCfGuidAttributeTypeOk(arg InstanceGetCfGuidAttributeType) (ret InstanceGetCfGuidRetType, ok bool) { if arg == nil { return ret, false @@ -32,11 +35,15 @@ func getInstanceGetCfGuidAttributeTypeOk(arg InstanceGetCfGuidAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetCfGuidAttributeType(arg *InstanceGetCfGuidAttributeType, val InstanceGetCfGuidRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfGuidArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfGuidRetType = string /* @@ -44,8 +51,10 @@ type InstanceGetCfGuidRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfOrganizationGuidAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetCfOrganizationGuidAttributeTypeOk(arg InstanceGetCfOrganizationGuidAttributeType) (ret InstanceGetCfOrganizationGuidRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +62,15 @@ func getInstanceGetCfOrganizationGuidAttributeTypeOk(arg InstanceGetCfOrganizati return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetCfOrganizationGuidAttributeType(arg *InstanceGetCfOrganizationGuidAttributeType, val InstanceGetCfOrganizationGuidRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfOrganizationGuidArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfOrganizationGuidRetType = string /* @@ -65,8 +78,10 @@ type InstanceGetCfOrganizationGuidRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfSpaceGuidAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetCfSpaceGuidAttributeTypeOk(arg InstanceGetCfSpaceGuidAttributeType) (ret InstanceGetCfSpaceGuidRetType, ok bool) { if arg == nil { return ret, false @@ -74,11 +89,15 @@ func getInstanceGetCfSpaceGuidAttributeTypeOk(arg InstanceGetCfSpaceGuidAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetCfSpaceGuidAttributeType(arg *InstanceGetCfSpaceGuidAttributeType, val InstanceGetCfSpaceGuidRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfSpaceGuidArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetCfSpaceGuidRetType = string /* @@ -86,8 +105,10 @@ type InstanceGetCfSpaceGuidRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetDashboardUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetDashboardUrlAttributeTypeOk(arg InstanceGetDashboardUrlAttributeType) (ret InstanceGetDashboardUrlRetType, ok bool) { if arg == nil { return ret, false @@ -95,11 +116,15 @@ func getInstanceGetDashboardUrlAttributeTypeOk(arg InstanceGetDashboardUrlAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetDashboardUrlAttributeType(arg *InstanceGetDashboardUrlAttributeType, val InstanceGetDashboardUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetDashboardUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetDashboardUrlRetType = string /* @@ -107,8 +132,10 @@ type InstanceGetDashboardUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetImageUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetImageUrlAttributeTypeOk(arg InstanceGetImageUrlAttributeType) (ret InstanceGetImageUrlRetType, ok bool) { if arg == nil { return ret, false @@ -116,11 +143,15 @@ func getInstanceGetImageUrlAttributeTypeOk(arg InstanceGetImageUrlAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetImageUrlAttributeType(arg *InstanceGetImageUrlAttributeType, val InstanceGetImageUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetImageUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetImageUrlRetType = string /* @@ -128,8 +159,10 @@ type InstanceGetImageUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetInstanceIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetInstanceIdAttributeTypeOk(arg InstanceGetInstanceIdAttributeType) (ret InstanceGetInstanceIdRetType, ok bool) { if arg == nil { return ret, false @@ -137,11 +170,15 @@ func getInstanceGetInstanceIdAttributeTypeOk(arg InstanceGetInstanceIdAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetInstanceIdAttributeType(arg *InstanceGetInstanceIdAttributeType, val InstanceGetInstanceIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetInstanceIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetInstanceIdRetType = string /* @@ -149,10 +186,16 @@ type InstanceGetInstanceIdRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetLastOperationAttributeType = *InstanceLastOperation + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetLastOperationArgType = InstanceLastOperation + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetLastOperationRetType = InstanceLastOperation +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetLastOperationAttributeTypeOk(arg InstanceGetLastOperationAttributeType) (ret InstanceGetLastOperationRetType, ok bool) { if arg == nil { return ret, false @@ -160,6 +203,7 @@ func getInstanceGetLastOperationAttributeTypeOk(arg InstanceGetLastOperationAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetLastOperationAttributeType(arg *InstanceGetLastOperationAttributeType, val InstanceGetLastOperationRetType) { *arg = &val } @@ -169,8 +213,10 @@ func setInstanceGetLastOperationAttributeType(arg *InstanceGetLastOperationAttri */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetNameAttributeTypeOk(arg InstanceGetNameAttributeType) (ret InstanceGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -178,11 +224,15 @@ func getInstanceGetNameAttributeTypeOk(arg InstanceGetNameAttributeType) (ret In return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetNameAttributeType(arg *InstanceGetNameAttributeType, val InstanceGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetNameRetType = string /* @@ -190,8 +240,10 @@ type InstanceGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetOfferingNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetOfferingNameAttributeTypeOk(arg InstanceGetOfferingNameAttributeType) (ret InstanceGetOfferingNameRetType, ok bool) { if arg == nil { return ret, false @@ -199,11 +251,15 @@ func getInstanceGetOfferingNameAttributeTypeOk(arg InstanceGetOfferingNameAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetOfferingNameAttributeType(arg *InstanceGetOfferingNameAttributeType, val InstanceGetOfferingNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetOfferingNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetOfferingNameRetType = string /* @@ -211,8 +267,10 @@ type InstanceGetOfferingNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetOfferingVersionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetOfferingVersionAttributeTypeOk(arg InstanceGetOfferingVersionAttributeType) (ret InstanceGetOfferingVersionRetType, ok bool) { if arg == nil { return ret, false @@ -220,11 +278,15 @@ func getInstanceGetOfferingVersionAttributeTypeOk(arg InstanceGetOfferingVersion return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetOfferingVersionAttributeType(arg *InstanceGetOfferingVersionAttributeType, val InstanceGetOfferingVersionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetOfferingVersionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetOfferingVersionRetType = string /* @@ -232,10 +294,16 @@ type InstanceGetOfferingVersionRetType = string */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetParametersAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetParametersArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetParametersRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetParametersAttributeTypeOk(arg InstanceGetParametersAttributeType) (ret InstanceGetParametersRetType, ok bool) { if arg == nil { return ret, false @@ -243,6 +311,7 @@ func getInstanceGetParametersAttributeTypeOk(arg InstanceGetParametersAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetParametersAttributeType(arg *InstanceGetParametersAttributeType, val InstanceGetParametersRetType) { *arg = &val } @@ -252,8 +321,10 @@ func setInstanceGetParametersAttributeType(arg *InstanceGetParametersAttributeTy */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetPlanIdAttributeTypeOk(arg InstanceGetPlanIdAttributeType) (ret InstanceGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -261,11 +332,15 @@ func getInstanceGetPlanIdAttributeTypeOk(arg InstanceGetPlanIdAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetPlanIdAttributeType(arg *InstanceGetPlanIdAttributeType, val InstanceGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanIdRetType = string /* @@ -273,8 +348,10 @@ type InstanceGetPlanIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetPlanNameAttributeTypeOk(arg InstanceGetPlanNameAttributeType) (ret InstanceGetPlanNameRetType, ok bool) { if arg == nil { return ret, false @@ -282,11 +359,15 @@ func getInstanceGetPlanNameAttributeTypeOk(arg InstanceGetPlanNameAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetPlanNameAttributeType(arg *InstanceGetPlanNameAttributeType, val InstanceGetPlanNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetPlanNameRetType = string /* @@ -297,19 +378,27 @@ type InstanceGetPlanNameRetType = string // InstanceStatus the model 'Instance' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceStatus string // List of Status const ( - INSTANCESTATUS_ACTIVE InstanceStatus = "active" - INSTANCESTATUS_FAILED InstanceStatus = "failed" - INSTANCESTATUS_STOPPED InstanceStatus = "stopped" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATUS_ACTIVE InstanceStatus = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATUS_FAILED InstanceStatus = "failed" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCESTATUS_STOPPED InstanceStatus = "stopped" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCESTATUS_CREATING InstanceStatus = "creating" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCESTATUS_DELETING InstanceStatus = "deleting" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCESTATUS_UPDATING InstanceStatus = "updating" ) // All allowed values of Instance enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceStatusEnumValues = []InstanceStatus{ "active", "failed", @@ -319,6 +408,7 @@ var AllowedInstanceStatusEnumValues = []InstanceStatus{ "updating", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceStatus) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -346,6 +436,7 @@ func (v *InstanceStatus) UnmarshalJSON(src []byte) error { // NewInstanceStatusFromValue returns a pointer to a valid InstanceStatus // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceStatusFromValue(v InstanceStatus) (*InstanceStatus, error) { ev := InstanceStatus(v) if ev.IsValid() { @@ -356,6 +447,7 @@ func NewInstanceStatusFromValue(v InstanceStatus) (*InstanceStatus, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceStatus) IsValid() bool { for _, existing := range AllowedInstanceStatusEnumValues { if existing == v { @@ -366,50 +458,65 @@ func (v InstanceStatus) IsValid() bool { } // Ptr returns reference to StatusStatus value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceStatus) Ptr() *InstanceStatus { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceStatus struct { value *InstanceStatus isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceStatus) Get() *InstanceStatus { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceStatus) Set(val *InstanceStatus) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceStatus) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceStatus) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceStatus(val *InstanceStatus) *NullableInstanceStatus { return &NullableInstanceStatus{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceStatus) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetStatusAttributeType = *InstanceStatus + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetStatusArgType = InstanceStatus + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceGetStatusRetType = InstanceStatus +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceGetStatusAttributeTypeOk(arg InstanceGetStatusAttributeType) (ret InstanceGetStatusRetType, ok bool) { if arg == nil { return ret, false @@ -417,11 +524,13 @@ func getInstanceGetStatusAttributeTypeOk(arg InstanceGetStatusAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceGetStatusAttributeType(arg *InstanceGetStatusAttributeType, val InstanceGetStatusRetType) { *arg = &val } // Instance struct for Instance +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Instance struct { // REQUIRED CfGuid InstanceGetCfGuidAttributeType `json:"cfGuid" required:"true"` @@ -452,12 +561,14 @@ type Instance struct { Status InstanceGetStatusAttributeType `json:"status,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Instance Instance // NewInstance instantiates a new Instance 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstance(cfGuid InstanceGetCfGuidArgType, cfOrganizationGuid InstanceGetCfOrganizationGuidArgType, cfSpaceGuid InstanceGetCfSpaceGuidArgType, dashboardUrl InstanceGetDashboardUrlArgType, imageUrl InstanceGetImageUrlArgType, lastOperation InstanceGetLastOperationArgType, name InstanceGetNameArgType, offeringName InstanceGetOfferingNameArgType, offeringVersion InstanceGetOfferingVersionArgType, parameters InstanceGetParametersArgType, planId InstanceGetPlanIdArgType, planName InstanceGetPlanNameArgType) *Instance { this := Instance{} setInstanceGetCfGuidAttributeType(&this.CfGuid, cfGuid) @@ -478,12 +589,14 @@ func NewInstance(cfGuid InstanceGetCfGuidArgType, cfOrganizationGuid InstanceGet // NewInstanceWithDefaults instantiates a new Instance 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceWithDefaults() *Instance { this := Instance{} return &this } // GetCfGuid returns the CfGuid field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetCfGuid() (ret InstanceGetCfGuidRetType) { ret, _ = o.GetCfGuidOk() return ret @@ -491,16 +604,19 @@ func (o *Instance) GetCfGuid() (ret InstanceGetCfGuidRetType) { // GetCfGuidOk returns a tuple with the CfGuid field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetCfGuidOk() (ret InstanceGetCfGuidRetType, ok bool) { return getInstanceGetCfGuidAttributeTypeOk(o.CfGuid) } // SetCfGuid sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetCfGuid(v InstanceGetCfGuidRetType) { setInstanceGetCfGuidAttributeType(&o.CfGuid, v) } // GetCfOrganizationGuid returns the CfOrganizationGuid field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetCfOrganizationGuid() (ret InstanceGetCfOrganizationGuidRetType) { ret, _ = o.GetCfOrganizationGuidOk() return ret @@ -508,16 +624,19 @@ func (o *Instance) GetCfOrganizationGuid() (ret InstanceGetCfOrganizationGuidRet // GetCfOrganizationGuidOk returns a tuple with the CfOrganizationGuid field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetCfOrganizationGuidOk() (ret InstanceGetCfOrganizationGuidRetType, ok bool) { return getInstanceGetCfOrganizationGuidAttributeTypeOk(o.CfOrganizationGuid) } // SetCfOrganizationGuid sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetCfOrganizationGuid(v InstanceGetCfOrganizationGuidRetType) { setInstanceGetCfOrganizationGuidAttributeType(&o.CfOrganizationGuid, v) } // GetCfSpaceGuid returns the CfSpaceGuid field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetCfSpaceGuid() (ret InstanceGetCfSpaceGuidRetType) { ret, _ = o.GetCfSpaceGuidOk() return ret @@ -525,16 +644,19 @@ func (o *Instance) GetCfSpaceGuid() (ret InstanceGetCfSpaceGuidRetType) { // GetCfSpaceGuidOk returns a tuple with the CfSpaceGuid field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetCfSpaceGuidOk() (ret InstanceGetCfSpaceGuidRetType, ok bool) { return getInstanceGetCfSpaceGuidAttributeTypeOk(o.CfSpaceGuid) } // SetCfSpaceGuid sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetCfSpaceGuid(v InstanceGetCfSpaceGuidRetType) { setInstanceGetCfSpaceGuidAttributeType(&o.CfSpaceGuid, v) } // GetDashboardUrl returns the DashboardUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetDashboardUrl() (ret InstanceGetDashboardUrlRetType) { ret, _ = o.GetDashboardUrlOk() return ret @@ -542,16 +664,19 @@ func (o *Instance) GetDashboardUrl() (ret InstanceGetDashboardUrlRetType) { // GetDashboardUrlOk returns a tuple with the DashboardUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetDashboardUrlOk() (ret InstanceGetDashboardUrlRetType, ok bool) { return getInstanceGetDashboardUrlAttributeTypeOk(o.DashboardUrl) } // SetDashboardUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetDashboardUrl(v InstanceGetDashboardUrlRetType) { setInstanceGetDashboardUrlAttributeType(&o.DashboardUrl, v) } // GetImageUrl returns the ImageUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetImageUrl() (ret InstanceGetImageUrlRetType) { ret, _ = o.GetImageUrlOk() return ret @@ -559,16 +684,19 @@ func (o *Instance) GetImageUrl() (ret InstanceGetImageUrlRetType) { // GetImageUrlOk returns a tuple with the ImageUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetImageUrlOk() (ret InstanceGetImageUrlRetType, ok bool) { return getInstanceGetImageUrlAttributeTypeOk(o.ImageUrl) } // SetImageUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetImageUrl(v InstanceGetImageUrlRetType) { setInstanceGetImageUrlAttributeType(&o.ImageUrl, v) } // GetInstanceId returns the InstanceId field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetInstanceId() (res InstanceGetInstanceIdRetType) { res, _ = o.GetInstanceIdOk() return @@ -576,22 +704,26 @@ func (o *Instance) GetInstanceId() (res InstanceGetInstanceIdRetType) { // GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetInstanceIdOk() (ret InstanceGetInstanceIdRetType, ok bool) { return getInstanceGetInstanceIdAttributeTypeOk(o.InstanceId) } // HasInstanceId returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) HasInstanceId() bool { _, ok := o.GetInstanceIdOk() return ok } // SetInstanceId gets a reference to the given string and assigns it to the InstanceId field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetInstanceId(v InstanceGetInstanceIdRetType) { setInstanceGetInstanceIdAttributeType(&o.InstanceId, v) } // GetLastOperation returns the LastOperation field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetLastOperation() (ret InstanceGetLastOperationRetType) { ret, _ = o.GetLastOperationOk() return ret @@ -599,16 +731,19 @@ func (o *Instance) GetLastOperation() (ret InstanceGetLastOperationRetType) { // GetLastOperationOk returns a tuple with the LastOperation field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetLastOperationOk() (ret InstanceGetLastOperationRetType, ok bool) { return getInstanceGetLastOperationAttributeTypeOk(o.LastOperation) } // SetLastOperation sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetLastOperation(v InstanceGetLastOperationRetType) { setInstanceGetLastOperationAttributeType(&o.LastOperation, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetName() (ret InstanceGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -616,17 +751,19 @@ func (o *Instance) GetName() (ret InstanceGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetNameOk() (ret InstanceGetNameRetType, ok bool) { return getInstanceGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetName(v InstanceGetNameRetType) { setInstanceGetNameAttributeType(&o.Name, v) } // GetOfferingName returns the OfferingName field value -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetOfferingName() (ret InstanceGetOfferingNameRetType) { ret, _ = o.GetOfferingNameOk() return ret @@ -634,18 +771,19 @@ func (o *Instance) GetOfferingName() (ret InstanceGetOfferingNameRetType) { // GetOfferingNameOk returns a tuple with the OfferingName field value // and a boolean to check if the value has been set. -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetOfferingNameOk() (ret InstanceGetOfferingNameRetType, ok bool) { return getInstanceGetOfferingNameAttributeTypeOk(o.OfferingName) } // SetOfferingName sets field value -// Deprecated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetOfferingName(v InstanceGetOfferingNameRetType) { setInstanceGetOfferingNameAttributeType(&o.OfferingName, v) } // GetOfferingVersion returns the OfferingVersion field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetOfferingVersion() (ret InstanceGetOfferingVersionRetType) { ret, _ = o.GetOfferingVersionOk() return ret @@ -653,16 +791,19 @@ func (o *Instance) GetOfferingVersion() (ret InstanceGetOfferingVersionRetType) // GetOfferingVersionOk returns a tuple with the OfferingVersion field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetOfferingVersionOk() (ret InstanceGetOfferingVersionRetType, ok bool) { return getInstanceGetOfferingVersionAttributeTypeOk(o.OfferingVersion) } // SetOfferingVersion sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetOfferingVersion(v InstanceGetOfferingVersionRetType) { setInstanceGetOfferingVersionAttributeType(&o.OfferingVersion, v) } // GetParameters returns the Parameters field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetParameters() (ret InstanceGetParametersRetType) { ret, _ = o.GetParametersOk() return ret @@ -670,16 +811,19 @@ func (o *Instance) GetParameters() (ret InstanceGetParametersRetType) { // GetParametersOk returns a tuple with the Parameters field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetParametersOk() (ret InstanceGetParametersRetType, ok bool) { return getInstanceGetParametersAttributeTypeOk(o.Parameters) } // SetParameters sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetParameters(v InstanceGetParametersRetType) { setInstanceGetParametersAttributeType(&o.Parameters, v) } // GetPlanId returns the PlanId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetPlanId() (ret InstanceGetPlanIdRetType) { ret, _ = o.GetPlanIdOk() return ret @@ -687,16 +831,19 @@ func (o *Instance) GetPlanId() (ret InstanceGetPlanIdRetType) { // GetPlanIdOk returns a tuple with the PlanId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetPlanIdOk() (ret InstanceGetPlanIdRetType, ok bool) { return getInstanceGetPlanIdAttributeTypeOk(o.PlanId) } // SetPlanId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetPlanId(v InstanceGetPlanIdRetType) { setInstanceGetPlanIdAttributeType(&o.PlanId, v) } // GetPlanName returns the PlanName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetPlanName() (ret InstanceGetPlanNameRetType) { ret, _ = o.GetPlanNameOk() return ret @@ -704,16 +851,19 @@ func (o *Instance) GetPlanName() (ret InstanceGetPlanNameRetType) { // GetPlanNameOk returns a tuple with the PlanName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetPlanNameOk() (ret InstanceGetPlanNameRetType, ok bool) { return getInstanceGetPlanNameAttributeTypeOk(o.PlanName) } // SetPlanName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetPlanName(v InstanceGetPlanNameRetType) { setInstanceGetPlanNameAttributeType(&o.PlanName, v) } // GetStatus returns the Status field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetStatus() (res InstanceGetStatusRetType) { res, _ = o.GetStatusOk() return @@ -721,21 +871,25 @@ func (o *Instance) GetStatus() (res InstanceGetStatusRetType) { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) GetStatusOk() (ret InstanceGetStatusRetType, ok bool) { return getInstanceGetStatusAttributeTypeOk(o.Status) } // HasStatus returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) HasStatus() bool { _, ok := o.GetStatusOk() return ok } // SetStatus gets a reference to the given string and assigns it to the Status field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Instance) SetStatus(v InstanceGetStatusRetType) { setInstanceGetStatusAttributeType(&o.Status, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Instance) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInstanceGetCfGuidAttributeTypeOk(o.CfGuid); ok { @@ -783,37 +937,45 @@ func (o Instance) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstance struct { value *Instance isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstance) Get() *Instance { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstance) Set(val *Instance) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstance) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstance) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstance(val *Instance) *NullableInstance { return &NullableInstance{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstance) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_instance_last_operation.go b/services/redis/model_instance_last_operation.go index 44cc1332c..4b35e66f3 100644 --- a/services/redis/model_instance_last_operation.go +++ b/services/redis/model_instance_last_operation.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -23,8 +24,10 @@ var _ MappedNullable = &InstanceLastOperation{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceLastOperationGetDescriptionAttributeTypeOk(arg InstanceLastOperationGetDescriptionAttributeType) (ret InstanceLastOperationGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -32,11 +35,15 @@ func getInstanceLastOperationGetDescriptionAttributeTypeOk(arg InstanceLastOpera return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceLastOperationGetDescriptionAttributeType(arg *InstanceLastOperationGetDescriptionAttributeType, val InstanceLastOperationGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetDescriptionRetType = string /* @@ -47,22 +54,28 @@ type InstanceLastOperationGetDescriptionRetType = string // InstanceLastOperationState the model 'InstanceLastOperation' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationState string // List of State const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCELASTOPERATIONSTATE_IN_PROGRESS InstanceLastOperationState = "in progress" - INSTANCELASTOPERATIONSTATE_SUCCEEDED InstanceLastOperationState = "succeeded" - INSTANCELASTOPERATIONSTATE_FAILED InstanceLastOperationState = "failed" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCELASTOPERATIONSTATE_SUCCEEDED InstanceLastOperationState = "succeeded" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCELASTOPERATIONSTATE_FAILED InstanceLastOperationState = "failed" ) // All allowed values of InstanceLastOperation enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceLastOperationStateEnumValues = []InstanceLastOperationState{ "in progress", "succeeded", "failed", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceLastOperationState) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -90,6 +103,7 @@ func (v *InstanceLastOperationState) UnmarshalJSON(src []byte) error { // NewInstanceLastOperationStateFromValue returns a pointer to a valid InstanceLastOperationState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceLastOperationStateFromValue(v InstanceLastOperationState) (*InstanceLastOperationState, error) { ev := InstanceLastOperationState(v) if ev.IsValid() { @@ -100,6 +114,7 @@ func NewInstanceLastOperationStateFromValue(v InstanceLastOperationState) (*Inst } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceLastOperationState) IsValid() bool { for _, existing := range AllowedInstanceLastOperationStateEnumValues { if existing == v { @@ -110,50 +125,65 @@ func (v InstanceLastOperationState) IsValid() bool { } // Ptr returns reference to StateState value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceLastOperationState) Ptr() *InstanceLastOperationState { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceLastOperationState struct { value *InstanceLastOperationState isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperationState) Get() *InstanceLastOperationState { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperationState) Set(val *InstanceLastOperationState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperationState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperationState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceLastOperationState(val *InstanceLastOperationState) *NullableInstanceLastOperationState { return &NullableInstanceLastOperationState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperationState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperationState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetStateAttributeType = *InstanceLastOperationState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetStateArgType = InstanceLastOperationState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetStateRetType = InstanceLastOperationState +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceLastOperationGetStateAttributeTypeOk(arg InstanceLastOperationGetStateAttributeType) (ret InstanceLastOperationGetStateRetType, ok bool) { if arg == nil { return ret, false @@ -161,6 +191,7 @@ func getInstanceLastOperationGetStateAttributeTypeOk(arg InstanceLastOperationGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceLastOperationGetStateAttributeType(arg *InstanceLastOperationGetStateAttributeType, val InstanceLastOperationGetStateRetType) { *arg = &val } @@ -173,22 +204,28 @@ func setInstanceLastOperationGetStateAttributeType(arg *InstanceLastOperationGet // InstanceLastOperationTypes the model 'InstanceLastOperation' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationTypes string // List of Type const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCELASTOPERATIONTYPE_CREATE InstanceLastOperationTypes = "create" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCELASTOPERATIONTYPE_UPDATE InstanceLastOperationTypes = "update" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCELASTOPERATIONTYPE_DELETE InstanceLastOperationTypes = "delete" ) // All allowed values of InstanceLastOperation enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceLastOperationTypesEnumValues = []InstanceLastOperationTypes{ "create", "update", "delete", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceLastOperationTypes) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -216,6 +253,7 @@ func (v *InstanceLastOperationTypes) UnmarshalJSON(src []byte) error { // NewInstanceLastOperationTypesFromValue returns a pointer to a valid InstanceLastOperationTypes // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceLastOperationTypesFromValue(v InstanceLastOperationTypes) (*InstanceLastOperationTypes, error) { ev := InstanceLastOperationTypes(v) if ev.IsValid() { @@ -226,6 +264,7 @@ func NewInstanceLastOperationTypesFromValue(v InstanceLastOperationTypes) (*Inst } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceLastOperationTypes) IsValid() bool { for _, existing := range AllowedInstanceLastOperationTypesEnumValues { if existing == v { @@ -236,50 +275,65 @@ func (v InstanceLastOperationTypes) IsValid() bool { } // Ptr returns reference to TypeTypes value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceLastOperationTypes) Ptr() *InstanceLastOperationTypes { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceLastOperationTypes struct { value *InstanceLastOperationTypes isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperationTypes) Get() *InstanceLastOperationTypes { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperationTypes) Set(val *InstanceLastOperationTypes) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperationTypes) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperationTypes) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceLastOperationTypes(val *InstanceLastOperationTypes) *NullableInstanceLastOperationTypes { return &NullableInstanceLastOperationTypes{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperationTypes) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperationTypes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetTypeAttributeType = *InstanceLastOperationTypes + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetTypeArgType = InstanceLastOperationTypes + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperationGetTypeRetType = InstanceLastOperationTypes +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceLastOperationGetTypeAttributeTypeOk(arg InstanceLastOperationGetTypeAttributeType) (ret InstanceLastOperationGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -287,11 +341,13 @@ func getInstanceLastOperationGetTypeAttributeTypeOk(arg InstanceLastOperationGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceLastOperationGetTypeAttributeType(arg *InstanceLastOperationGetTypeAttributeType, val InstanceLastOperationGetTypeRetType) { *arg = &val } // InstanceLastOperation struct for InstanceLastOperation +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceLastOperation struct { // REQUIRED Description InstanceLastOperationGetDescriptionAttributeType `json:"description" required:"true"` @@ -301,12 +357,14 @@ type InstanceLastOperation struct { Type InstanceLastOperationGetTypeAttributeType `json:"type" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _InstanceLastOperation InstanceLastOperation // NewInstanceLastOperation instantiates a new InstanceLastOperation 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceLastOperation(description InstanceLastOperationGetDescriptionArgType, state InstanceLastOperationGetStateArgType, types InstanceLastOperationGetTypeArgType) *InstanceLastOperation { this := InstanceLastOperation{} setInstanceLastOperationGetDescriptionAttributeType(&this.Description, description) @@ -318,12 +376,14 @@ func NewInstanceLastOperation(description InstanceLastOperationGetDescriptionArg // NewInstanceLastOperationWithDefaults instantiates a new InstanceLastOperation 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceLastOperationWithDefaults() *InstanceLastOperation { this := InstanceLastOperation{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) GetDescription() (ret InstanceLastOperationGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -331,16 +391,19 @@ func (o *InstanceLastOperation) GetDescription() (ret InstanceLastOperationGetDe // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) GetDescriptionOk() (ret InstanceLastOperationGetDescriptionRetType, ok bool) { return getInstanceLastOperationGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) SetDescription(v InstanceLastOperationGetDescriptionRetType) { setInstanceLastOperationGetDescriptionAttributeType(&o.Description, v) } // GetState returns the State field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) GetState() (ret InstanceLastOperationGetStateRetType) { ret, _ = o.GetStateOk() return ret @@ -348,16 +411,19 @@ func (o *InstanceLastOperation) GetState() (ret InstanceLastOperationGetStateRet // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) GetStateOk() (ret InstanceLastOperationGetStateRetType, ok bool) { return getInstanceLastOperationGetStateAttributeTypeOk(o.State) } // SetState sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) SetState(v InstanceLastOperationGetStateRetType) { setInstanceLastOperationGetStateAttributeType(&o.State, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) GetType() (ret InstanceLastOperationGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -365,15 +431,18 @@ func (o *InstanceLastOperation) GetType() (ret InstanceLastOperationGetTypeRetTy // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) GetTypeOk() (ret InstanceLastOperationGetTypeRetType, ok bool) { return getInstanceLastOperationGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceLastOperation) SetType(v InstanceLastOperationGetTypeRetType) { setInstanceLastOperationGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o InstanceLastOperation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInstanceLastOperationGetDescriptionAttributeTypeOk(o.Description); ok { @@ -388,37 +457,45 @@ func (o InstanceLastOperation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceLastOperation struct { value *InstanceLastOperation isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperation) Get() *InstanceLastOperation { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperation) Set(val *InstanceLastOperation) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperation) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperation) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceLastOperation(val *InstanceLastOperation) *NullableInstanceLastOperation { return &NullableInstanceLastOperation{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceLastOperation) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceLastOperation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_instance_parameters.go b/services/redis/model_instance_parameters.go index 418df8462..a436b0ce7 100644 --- a/services/redis/model_instance_parameters.go +++ b/services/redis/model_instance_parameters.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -23,10 +24,16 @@ var _ MappedNullable = &InstanceParameters{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetDownAfterMillisecondsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetDownAfterMillisecondsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetDownAfterMillisecondsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetDownAfterMillisecondsAttributeTypeOk(arg InstanceParametersGetDownAfterMillisecondsAttributeType) (ret InstanceParametersGetDownAfterMillisecondsRetType, ok bool) { if arg == nil { return ret, false @@ -34,6 +41,7 @@ func getInstanceParametersGetDownAfterMillisecondsAttributeTypeOk(arg InstancePa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetDownAfterMillisecondsAttributeType(arg *InstanceParametersGetDownAfterMillisecondsAttributeType, val InstanceParametersGetDownAfterMillisecondsRetType) { *arg = &val } @@ -43,10 +51,16 @@ func setInstanceParametersGetDownAfterMillisecondsAttributeType(arg *InstancePar */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersgetEnableMonitoringAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersgetEnableMonitoringArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersgetEnableMonitoringRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersgetEnableMonitoringAttributeTypeOk(arg InstanceParametersgetEnableMonitoringAttributeType) (ret InstanceParametersgetEnableMonitoringRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +68,7 @@ func getInstanceParametersgetEnableMonitoringAttributeTypeOk(arg InstanceParamet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersgetEnableMonitoringAttributeType(arg *InstanceParametersgetEnableMonitoringAttributeType, val InstanceParametersgetEnableMonitoringRetType) { *arg = &val } @@ -63,10 +78,16 @@ func setInstanceParametersgetEnableMonitoringAttributeType(arg *InstanceParamete */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetFailoverTimeoutAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetFailoverTimeoutArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetFailoverTimeoutRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetFailoverTimeoutAttributeTypeOk(arg InstanceParametersGetFailoverTimeoutAttributeType) (ret InstanceParametersGetFailoverTimeoutRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +95,7 @@ func getInstanceParametersGetFailoverTimeoutAttributeTypeOk(arg InstanceParamete return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetFailoverTimeoutAttributeType(arg *InstanceParametersGetFailoverTimeoutAttributeType, val InstanceParametersGetFailoverTimeoutRetType) { *arg = &val } @@ -83,8 +105,10 @@ func setInstanceParametersGetFailoverTimeoutAttributeType(arg *InstanceParameter */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetGraphiteAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetGraphiteAttributeTypeOk(arg InstanceParametersGetGraphiteAttributeType) (ret InstanceParametersGetGraphiteRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +116,15 @@ func getInstanceParametersGetGraphiteAttributeTypeOk(arg InstanceParametersGetGr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetGraphiteAttributeType(arg *InstanceParametersGetGraphiteAttributeType, val InstanceParametersGetGraphiteRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetGraphiteArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetGraphiteRetType = string /* @@ -107,20 +135,25 @@ type InstanceParametersGetGraphiteRetType = string // InstanceParametersLazyfreeLazyEviction the model 'InstanceParameters' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersLazyfreeLazyEviction string // List of LazyfreeLazyEviction const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCEPARAMETERSLAZYFREE_LAZY_EVICTION_YES InstanceParametersLazyfreeLazyEviction = "yes" - INSTANCEPARAMETERSLAZYFREE_LAZY_EVICTION_NO InstanceParametersLazyfreeLazyEviction = "no" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCEPARAMETERSLAZYFREE_LAZY_EVICTION_NO InstanceParametersLazyfreeLazyEviction = "no" ) // All allowed values of InstanceParameters enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceParametersLazyfreeLazyEvictionEnumValues = []InstanceParametersLazyfreeLazyEviction{ "yes", "no", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceParametersLazyfreeLazyEviction) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -148,6 +181,7 @@ func (v *InstanceParametersLazyfreeLazyEviction) UnmarshalJSON(src []byte) error // NewInstanceParametersLazyfreeLazyEvictionFromValue returns a pointer to a valid InstanceParametersLazyfreeLazyEviction // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceParametersLazyfreeLazyEvictionFromValue(v InstanceParametersLazyfreeLazyEviction) (*InstanceParametersLazyfreeLazyEviction, error) { ev := InstanceParametersLazyfreeLazyEviction(v) if ev.IsValid() { @@ -158,6 +192,7 @@ func NewInstanceParametersLazyfreeLazyEvictionFromValue(v InstanceParametersLazy } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersLazyfreeLazyEviction) IsValid() bool { for _, existing := range AllowedInstanceParametersLazyfreeLazyEvictionEnumValues { if existing == v { @@ -168,50 +203,65 @@ func (v InstanceParametersLazyfreeLazyEviction) IsValid() bool { } // Ptr returns reference to LazyfreeLazyEvictionLazyfreeLazyEviction value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersLazyfreeLazyEviction) Ptr() *InstanceParametersLazyfreeLazyEviction { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceParametersLazyfreeLazyEviction struct { value *InstanceParametersLazyfreeLazyEviction isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersLazyfreeLazyEviction) Get() *InstanceParametersLazyfreeLazyEviction { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersLazyfreeLazyEviction) Set(val *InstanceParametersLazyfreeLazyEviction) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersLazyfreeLazyEviction) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersLazyfreeLazyEviction) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceParametersLazyfreeLazyEviction(val *InstanceParametersLazyfreeLazyEviction) *NullableInstanceParametersLazyfreeLazyEviction { return &NullableInstanceParametersLazyfreeLazyEviction{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersLazyfreeLazyEviction) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersLazyfreeLazyEviction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLazyfreeLazyEvictionAttributeType = *InstanceParametersLazyfreeLazyEviction + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLazyfreeLazyEvictionArgType = InstanceParametersLazyfreeLazyEviction + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLazyfreeLazyEvictionRetType = InstanceParametersLazyfreeLazyEviction +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetLazyfreeLazyEvictionAttributeTypeOk(arg InstanceParametersGetLazyfreeLazyEvictionAttributeType) (ret InstanceParametersGetLazyfreeLazyEvictionRetType, ok bool) { if arg == nil { return ret, false @@ -219,6 +269,7 @@ func getInstanceParametersGetLazyfreeLazyEvictionAttributeTypeOk(arg InstancePar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetLazyfreeLazyEvictionAttributeType(arg *InstanceParametersGetLazyfreeLazyEvictionAttributeType, val InstanceParametersGetLazyfreeLazyEvictionRetType) { *arg = &val } @@ -231,20 +282,25 @@ func setInstanceParametersGetLazyfreeLazyEvictionAttributeType(arg *InstancePara // InstanceParametersLazyfreeLazyExpire the model 'InstanceParameters' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersLazyfreeLazyExpire string // List of LazyfreeLazyExpire const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCEPARAMETERSLAZYFREE_LAZY_EXPIRE_YES InstanceParametersLazyfreeLazyExpire = "yes" - INSTANCEPARAMETERSLAZYFREE_LAZY_EXPIRE_NO InstanceParametersLazyfreeLazyExpire = "no" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCEPARAMETERSLAZYFREE_LAZY_EXPIRE_NO InstanceParametersLazyfreeLazyExpire = "no" ) // All allowed values of InstanceParameters enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceParametersLazyfreeLazyExpireEnumValues = []InstanceParametersLazyfreeLazyExpire{ "yes", "no", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceParametersLazyfreeLazyExpire) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -272,6 +328,7 @@ func (v *InstanceParametersLazyfreeLazyExpire) UnmarshalJSON(src []byte) error { // NewInstanceParametersLazyfreeLazyExpireFromValue returns a pointer to a valid InstanceParametersLazyfreeLazyExpire // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceParametersLazyfreeLazyExpireFromValue(v InstanceParametersLazyfreeLazyExpire) (*InstanceParametersLazyfreeLazyExpire, error) { ev := InstanceParametersLazyfreeLazyExpire(v) if ev.IsValid() { @@ -282,6 +339,7 @@ func NewInstanceParametersLazyfreeLazyExpireFromValue(v InstanceParametersLazyfr } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersLazyfreeLazyExpire) IsValid() bool { for _, existing := range AllowedInstanceParametersLazyfreeLazyExpireEnumValues { if existing == v { @@ -292,50 +350,65 @@ func (v InstanceParametersLazyfreeLazyExpire) IsValid() bool { } // Ptr returns reference to LazyfreeLazyExpireLazyfreeLazyExpire value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersLazyfreeLazyExpire) Ptr() *InstanceParametersLazyfreeLazyExpire { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceParametersLazyfreeLazyExpire struct { value *InstanceParametersLazyfreeLazyExpire isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersLazyfreeLazyExpire) Get() *InstanceParametersLazyfreeLazyExpire { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersLazyfreeLazyExpire) Set(val *InstanceParametersLazyfreeLazyExpire) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersLazyfreeLazyExpire) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersLazyfreeLazyExpire) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceParametersLazyfreeLazyExpire(val *InstanceParametersLazyfreeLazyExpire) *NullableInstanceParametersLazyfreeLazyExpire { return &NullableInstanceParametersLazyfreeLazyExpire{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersLazyfreeLazyExpire) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersLazyfreeLazyExpire) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLazyfreeLazyExpireAttributeType = *InstanceParametersLazyfreeLazyExpire + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLazyfreeLazyExpireArgType = InstanceParametersLazyfreeLazyExpire + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLazyfreeLazyExpireRetType = InstanceParametersLazyfreeLazyExpire +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetLazyfreeLazyExpireAttributeTypeOk(arg InstanceParametersGetLazyfreeLazyExpireAttributeType) (ret InstanceParametersGetLazyfreeLazyExpireRetType, ok bool) { if arg == nil { return ret, false @@ -343,6 +416,7 @@ func getInstanceParametersGetLazyfreeLazyExpireAttributeTypeOk(arg InstanceParam return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetLazyfreeLazyExpireAttributeType(arg *InstanceParametersGetLazyfreeLazyExpireAttributeType, val InstanceParametersGetLazyfreeLazyExpireRetType) { *arg = &val } @@ -352,10 +426,16 @@ func setInstanceParametersGetLazyfreeLazyExpireAttributeType(arg *InstanceParame */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLuaTimeLimitAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLuaTimeLimitArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetLuaTimeLimitRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetLuaTimeLimitAttributeTypeOk(arg InstanceParametersGetLuaTimeLimitAttributeType) (ret InstanceParametersGetLuaTimeLimitRetType, ok bool) { if arg == nil { return ret, false @@ -363,6 +443,7 @@ func getInstanceParametersGetLuaTimeLimitAttributeTypeOk(arg InstanceParametersG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetLuaTimeLimitAttributeType(arg *InstanceParametersGetLuaTimeLimitAttributeType, val InstanceParametersGetLuaTimeLimitRetType) { *arg = &val } @@ -372,10 +453,16 @@ func setInstanceParametersGetLuaTimeLimitAttributeType(arg *InstanceParametersGe */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxDiskThresholdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxDiskThresholdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxDiskThresholdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMaxDiskThresholdAttributeTypeOk(arg InstanceParametersGetMaxDiskThresholdAttributeType) (ret InstanceParametersGetMaxDiskThresholdRetType, ok bool) { if arg == nil { return ret, false @@ -383,6 +470,7 @@ func getInstanceParametersGetMaxDiskThresholdAttributeTypeOk(arg InstanceParamet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMaxDiskThresholdAttributeType(arg *InstanceParametersGetMaxDiskThresholdAttributeType, val InstanceParametersGetMaxDiskThresholdRetType) { *arg = &val } @@ -392,10 +480,16 @@ func setInstanceParametersGetMaxDiskThresholdAttributeType(arg *InstanceParamete */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxclientsAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxclientsArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxclientsRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMaxclientsAttributeTypeOk(arg InstanceParametersGetMaxclientsAttributeType) (ret InstanceParametersGetMaxclientsRetType, ok bool) { if arg == nil { return ret, false @@ -403,6 +497,7 @@ func getInstanceParametersGetMaxclientsAttributeTypeOk(arg InstanceParametersGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMaxclientsAttributeType(arg *InstanceParametersGetMaxclientsAttributeType, val InstanceParametersGetMaxclientsRetType) { *arg = &val } @@ -415,19 +510,27 @@ func setInstanceParametersGetMaxclientsAttributeType(arg *InstanceParametersGetM // InstanceParametersMaxmemoryPolicy the model 'InstanceParameters' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersMaxmemoryPolicy string // List of MaxmemoryPolicy const ( - INSTANCEPARAMETERSMAXMEMORY_POLICY_VOLATILE_LRU InstanceParametersMaxmemoryPolicy = "volatile-lru" - INSTANCEPARAMETERSMAXMEMORY_POLICY_ALLKEYS_LRU InstanceParametersMaxmemoryPolicy = "allkeys-lru" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCEPARAMETERSMAXMEMORY_POLICY_VOLATILE_LRU InstanceParametersMaxmemoryPolicy = "volatile-lru" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCEPARAMETERSMAXMEMORY_POLICY_ALLKEYS_LRU InstanceParametersMaxmemoryPolicy = "allkeys-lru" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCEPARAMETERSMAXMEMORY_POLICY_VOLATILE_RANDOM InstanceParametersMaxmemoryPolicy = "volatile-random" - INSTANCEPARAMETERSMAXMEMORY_POLICY_ALLKEYS_RANDOM InstanceParametersMaxmemoryPolicy = "allkeys-random" - INSTANCEPARAMETERSMAXMEMORY_POLICY_VOLATILE_TTL InstanceParametersMaxmemoryPolicy = "volatile-ttl" - INSTANCEPARAMETERSMAXMEMORY_POLICY_NOEVICTION InstanceParametersMaxmemoryPolicy = "noeviction" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCEPARAMETERSMAXMEMORY_POLICY_ALLKEYS_RANDOM InstanceParametersMaxmemoryPolicy = "allkeys-random" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCEPARAMETERSMAXMEMORY_POLICY_VOLATILE_TTL InstanceParametersMaxmemoryPolicy = "volatile-ttl" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + INSTANCEPARAMETERSMAXMEMORY_POLICY_NOEVICTION InstanceParametersMaxmemoryPolicy = "noeviction" ) // All allowed values of InstanceParameters enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceParametersMaxmemoryPolicyEnumValues = []InstanceParametersMaxmemoryPolicy{ "volatile-lru", "allkeys-lru", @@ -437,6 +540,7 @@ var AllowedInstanceParametersMaxmemoryPolicyEnumValues = []InstanceParametersMax "noeviction", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceParametersMaxmemoryPolicy) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -464,6 +568,7 @@ func (v *InstanceParametersMaxmemoryPolicy) UnmarshalJSON(src []byte) error { // NewInstanceParametersMaxmemoryPolicyFromValue returns a pointer to a valid InstanceParametersMaxmemoryPolicy // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceParametersMaxmemoryPolicyFromValue(v InstanceParametersMaxmemoryPolicy) (*InstanceParametersMaxmemoryPolicy, error) { ev := InstanceParametersMaxmemoryPolicy(v) if ev.IsValid() { @@ -474,6 +579,7 @@ func NewInstanceParametersMaxmemoryPolicyFromValue(v InstanceParametersMaxmemory } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersMaxmemoryPolicy) IsValid() bool { for _, existing := range AllowedInstanceParametersMaxmemoryPolicyEnumValues { if existing == v { @@ -484,50 +590,65 @@ func (v InstanceParametersMaxmemoryPolicy) IsValid() bool { } // Ptr returns reference to MaxmemoryPolicyMaxmemoryPolicy value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersMaxmemoryPolicy) Ptr() *InstanceParametersMaxmemoryPolicy { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceParametersMaxmemoryPolicy struct { value *InstanceParametersMaxmemoryPolicy isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersMaxmemoryPolicy) Get() *InstanceParametersMaxmemoryPolicy { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersMaxmemoryPolicy) Set(val *InstanceParametersMaxmemoryPolicy) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersMaxmemoryPolicy) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersMaxmemoryPolicy) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceParametersMaxmemoryPolicy(val *InstanceParametersMaxmemoryPolicy) *NullableInstanceParametersMaxmemoryPolicy { return &NullableInstanceParametersMaxmemoryPolicy{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersMaxmemoryPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersMaxmemoryPolicy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxmemoryPolicyAttributeType = *InstanceParametersMaxmemoryPolicy + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxmemoryPolicyArgType = InstanceParametersMaxmemoryPolicy + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxmemoryPolicyRetType = InstanceParametersMaxmemoryPolicy +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMaxmemoryPolicyAttributeTypeOk(arg InstanceParametersGetMaxmemoryPolicyAttributeType) (ret InstanceParametersGetMaxmemoryPolicyRetType, ok bool) { if arg == nil { return ret, false @@ -535,6 +656,7 @@ func getInstanceParametersGetMaxmemoryPolicyAttributeTypeOk(arg InstanceParamete return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMaxmemoryPolicyAttributeType(arg *InstanceParametersGetMaxmemoryPolicyAttributeType, val InstanceParametersGetMaxmemoryPolicyRetType) { *arg = &val } @@ -544,10 +666,16 @@ func setInstanceParametersGetMaxmemoryPolicyAttributeType(arg *InstanceParameter */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxmemorySamplesAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxmemorySamplesArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMaxmemorySamplesRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMaxmemorySamplesAttributeTypeOk(arg InstanceParametersGetMaxmemorySamplesAttributeType) (ret InstanceParametersGetMaxmemorySamplesRetType, ok bool) { if arg == nil { return ret, false @@ -555,6 +683,7 @@ func getInstanceParametersGetMaxmemorySamplesAttributeTypeOk(arg InstanceParamet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMaxmemorySamplesAttributeType(arg *InstanceParametersGetMaxmemorySamplesAttributeType, val InstanceParametersGetMaxmemorySamplesRetType) { *arg = &val } @@ -564,10 +693,16 @@ func setInstanceParametersGetMaxmemorySamplesAttributeType(arg *InstanceParamete */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMetricsFrequencyAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMetricsFrequencyArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMetricsFrequencyRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMetricsFrequencyAttributeTypeOk(arg InstanceParametersGetMetricsFrequencyAttributeType) (ret InstanceParametersGetMetricsFrequencyRetType, ok bool) { if arg == nil { return ret, false @@ -575,6 +710,7 @@ func getInstanceParametersGetMetricsFrequencyAttributeTypeOk(arg InstanceParamet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMetricsFrequencyAttributeType(arg *InstanceParametersGetMetricsFrequencyAttributeType, val InstanceParametersGetMetricsFrequencyRetType) { *arg = &val } @@ -584,8 +720,10 @@ func setInstanceParametersGetMetricsFrequencyAttributeType(arg *InstanceParamete */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMetricsPrefixAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMetricsPrefixAttributeTypeOk(arg InstanceParametersGetMetricsPrefixAttributeType) (ret InstanceParametersGetMetricsPrefixRetType, ok bool) { if arg == nil { return ret, false @@ -593,11 +731,15 @@ func getInstanceParametersGetMetricsPrefixAttributeTypeOk(arg InstanceParameters return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMetricsPrefixAttributeType(arg *InstanceParametersGetMetricsPrefixAttributeType, val InstanceParametersGetMetricsPrefixRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMetricsPrefixArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMetricsPrefixRetType = string /* @@ -605,10 +747,16 @@ type InstanceParametersGetMetricsPrefixRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMinReplicasMaxLagAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMinReplicasMaxLagArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMinReplicasMaxLagRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMinReplicasMaxLagAttributeTypeOk(arg InstanceParametersGetMinReplicasMaxLagAttributeType) (ret InstanceParametersGetMinReplicasMaxLagRetType, ok bool) { if arg == nil { return ret, false @@ -616,6 +764,7 @@ func getInstanceParametersGetMinReplicasMaxLagAttributeTypeOk(arg InstanceParame return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMinReplicasMaxLagAttributeType(arg *InstanceParametersGetMinReplicasMaxLagAttributeType, val InstanceParametersGetMinReplicasMaxLagRetType) { *arg = &val } @@ -625,8 +774,10 @@ func setInstanceParametersGetMinReplicasMaxLagAttributeType(arg *InstanceParamet */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMonitoringInstanceIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetMonitoringInstanceIdAttributeTypeOk(arg InstanceParametersGetMonitoringInstanceIdAttributeType) (ret InstanceParametersGetMonitoringInstanceIdRetType, ok bool) { if arg == nil { return ret, false @@ -634,11 +785,15 @@ func getInstanceParametersGetMonitoringInstanceIdAttributeTypeOk(arg InstancePar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetMonitoringInstanceIdAttributeType(arg *InstanceParametersGetMonitoringInstanceIdAttributeType, val InstanceParametersGetMonitoringInstanceIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMonitoringInstanceIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetMonitoringInstanceIdRetType = string /* @@ -646,8 +801,10 @@ type InstanceParametersGetMonitoringInstanceIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetNotifyKeyspaceEventsAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetNotifyKeyspaceEventsAttributeTypeOk(arg InstanceParametersGetNotifyKeyspaceEventsAttributeType) (ret InstanceParametersGetNotifyKeyspaceEventsRetType, ok bool) { if arg == nil { return ret, false @@ -655,11 +812,15 @@ func getInstanceParametersGetNotifyKeyspaceEventsAttributeTypeOk(arg InstancePar return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetNotifyKeyspaceEventsAttributeType(arg *InstanceParametersGetNotifyKeyspaceEventsAttributeType, val InstanceParametersGetNotifyKeyspaceEventsRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetNotifyKeyspaceEventsArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetNotifyKeyspaceEventsRetType = string /* @@ -667,8 +828,10 @@ type InstanceParametersGetNotifyKeyspaceEventsRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSgwAclAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetSgwAclAttributeTypeOk(arg InstanceParametersGetSgwAclAttributeType) (ret InstanceParametersGetSgwAclRetType, ok bool) { if arg == nil { return ret, false @@ -676,11 +839,15 @@ func getInstanceParametersGetSgwAclAttributeTypeOk(arg InstanceParametersGetSgwA return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetSgwAclAttributeType(arg *InstanceParametersGetSgwAclAttributeType, val InstanceParametersGetSgwAclRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSgwAclArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSgwAclRetType = string /* @@ -688,8 +855,10 @@ type InstanceParametersGetSgwAclRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSnapshotAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetSnapshotAttributeTypeOk(arg InstanceParametersGetSnapshotAttributeType) (ret InstanceParametersGetSnapshotRetType, ok bool) { if arg == nil { return ret, false @@ -697,11 +866,15 @@ func getInstanceParametersGetSnapshotAttributeTypeOk(arg InstanceParametersGetSn return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetSnapshotAttributeType(arg *InstanceParametersGetSnapshotAttributeType, val InstanceParametersGetSnapshotRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSnapshotArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSnapshotRetType = string /* @@ -709,10 +882,16 @@ type InstanceParametersGetSnapshotRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSyslogAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSyslogArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetSyslogRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetSyslogAttributeTypeOk(arg InstanceParametersGetSyslogAttributeType) (ret InstanceParametersGetSyslogRetType, ok bool) { if arg == nil { return ret, false @@ -720,6 +899,7 @@ func getInstanceParametersGetSyslogAttributeTypeOk(arg InstanceParametersGetSysl return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetSyslogAttributeType(arg *InstanceParametersGetSyslogAttributeType, val InstanceParametersGetSyslogRetType) { *arg = &val } @@ -729,10 +909,16 @@ func setInstanceParametersGetSyslogAttributeType(arg *InstanceParametersGetSyslo */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsCiphersAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsCiphersArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsCiphersRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetTlsCiphersAttributeTypeOk(arg InstanceParametersGetTlsCiphersAttributeType) (ret InstanceParametersGetTlsCiphersRetType, ok bool) { if arg == nil { return ret, false @@ -740,6 +926,7 @@ func getInstanceParametersGetTlsCiphersAttributeTypeOk(arg InstanceParametersGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetTlsCiphersAttributeType(arg *InstanceParametersGetTlsCiphersAttributeType, val InstanceParametersGetTlsCiphersRetType) { *arg = &val } @@ -749,8 +936,10 @@ func setInstanceParametersGetTlsCiphersAttributeType(arg *InstanceParametersGetT */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsCiphersuitesAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetTlsCiphersuitesAttributeTypeOk(arg InstanceParametersGetTlsCiphersuitesAttributeType) (ret InstanceParametersGetTlsCiphersuitesRetType, ok bool) { if arg == nil { return ret, false @@ -758,11 +947,15 @@ func getInstanceParametersGetTlsCiphersuitesAttributeTypeOk(arg InstanceParamete return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetTlsCiphersuitesAttributeType(arg *InstanceParametersGetTlsCiphersuitesAttributeType, val InstanceParametersGetTlsCiphersuitesRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsCiphersuitesArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsCiphersuitesRetType = string /* @@ -773,20 +966,25 @@ type InstanceParametersGetTlsCiphersuitesRetType = string // InstanceParametersTlsProtocols the model 'InstanceParameters' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersTlsProtocols string // List of TlsProtocols const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCEPARAMETERSTLS_PROTOCOLS__2 InstanceParametersTlsProtocols = "TLSv1.2" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead INSTANCEPARAMETERSTLS_PROTOCOLS__3 InstanceParametersTlsProtocols = "TLSv1.3" ) // All allowed values of InstanceParameters enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedInstanceParametersTlsProtocolsEnumValues = []InstanceParametersTlsProtocols{ "TLSv1.2", "TLSv1.3", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *InstanceParametersTlsProtocols) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -814,6 +1012,7 @@ func (v *InstanceParametersTlsProtocols) UnmarshalJSON(src []byte) error { // NewInstanceParametersTlsProtocolsFromValue returns a pointer to a valid InstanceParametersTlsProtocols // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceParametersTlsProtocolsFromValue(v InstanceParametersTlsProtocols) (*InstanceParametersTlsProtocols, error) { ev := InstanceParametersTlsProtocols(v) if ev.IsValid() { @@ -824,6 +1023,7 @@ func NewInstanceParametersTlsProtocolsFromValue(v InstanceParametersTlsProtocols } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersTlsProtocols) IsValid() bool { for _, existing := range AllowedInstanceParametersTlsProtocolsEnumValues { if existing == v { @@ -834,50 +1034,65 @@ func (v InstanceParametersTlsProtocols) IsValid() bool { } // Ptr returns reference to TlsProtocolsTlsProtocols value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v InstanceParametersTlsProtocols) Ptr() *InstanceParametersTlsProtocols { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceParametersTlsProtocols struct { value *InstanceParametersTlsProtocols isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersTlsProtocols) Get() *InstanceParametersTlsProtocols { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersTlsProtocols) Set(val *InstanceParametersTlsProtocols) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersTlsProtocols) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersTlsProtocols) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceParametersTlsProtocols(val *InstanceParametersTlsProtocols) *NullableInstanceParametersTlsProtocols { return &NullableInstanceParametersTlsProtocols{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParametersTlsProtocols) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParametersTlsProtocols) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsProtocolsAttributeType = *InstanceParametersTlsProtocols + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsProtocolsArgType = InstanceParametersTlsProtocols + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParametersGetTlsProtocolsRetType = InstanceParametersTlsProtocols +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceParametersGetTlsProtocolsAttributeTypeOk(arg InstanceParametersGetTlsProtocolsAttributeType) (ret InstanceParametersGetTlsProtocolsRetType, ok bool) { if arg == nil { return ret, false @@ -885,11 +1100,13 @@ func getInstanceParametersGetTlsProtocolsAttributeTypeOk(arg InstanceParametersG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceParametersGetTlsProtocolsAttributeType(arg *InstanceParametersGetTlsProtocolsAttributeType, val InstanceParametersGetTlsProtocolsRetType) { *arg = &val } // InstanceParameters struct for InstanceParameters +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceParameters struct { // The unit is milliseconds. // Can be cast to int32 without loss of precision. @@ -937,6 +1154,7 @@ type InstanceParameters struct { // 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceParameters() *InstanceParameters { this := InstanceParameters{} return &this @@ -945,6 +1163,7 @@ func NewInstanceParameters() *InstanceParameters { // NewInstanceParametersWithDefaults instantiates a new InstanceParameters 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceParametersWithDefaults() *InstanceParameters { this := InstanceParameters{} var downAfterMilliseconds int64 = 10000 @@ -977,6 +1196,7 @@ func NewInstanceParametersWithDefaults() *InstanceParameters { } // GetDownAfterMilliseconds returns the DownAfterMilliseconds field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetDownAfterMilliseconds() (res InstanceParametersGetDownAfterMillisecondsRetType) { res, _ = o.GetDownAfterMillisecondsOk() return @@ -984,22 +1204,26 @@ func (o *InstanceParameters) GetDownAfterMilliseconds() (res InstanceParametersG // GetDownAfterMillisecondsOk returns a tuple with the DownAfterMilliseconds field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetDownAfterMillisecondsOk() (ret InstanceParametersGetDownAfterMillisecondsRetType, ok bool) { return getInstanceParametersGetDownAfterMillisecondsAttributeTypeOk(o.DownAfterMilliseconds) } // HasDownAfterMilliseconds returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasDownAfterMilliseconds() bool { _, ok := o.GetDownAfterMillisecondsOk() return ok } // SetDownAfterMilliseconds gets a reference to the given int64 and assigns it to the DownAfterMilliseconds field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetDownAfterMilliseconds(v InstanceParametersGetDownAfterMillisecondsRetType) { setInstanceParametersGetDownAfterMillisecondsAttributeType(&o.DownAfterMilliseconds, v) } // GetEnableMonitoring returns the EnableMonitoring field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetEnableMonitoring() (res InstanceParametersgetEnableMonitoringRetType) { res, _ = o.GetEnableMonitoringOk() return @@ -1007,22 +1231,26 @@ func (o *InstanceParameters) GetEnableMonitoring() (res InstanceParametersgetEna // GetEnableMonitoringOk returns a tuple with the EnableMonitoring field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetEnableMonitoringOk() (ret InstanceParametersgetEnableMonitoringRetType, ok bool) { return getInstanceParametersgetEnableMonitoringAttributeTypeOk(o.EnableMonitoring) } // HasEnableMonitoring returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasEnableMonitoring() bool { _, ok := o.GetEnableMonitoringOk() return ok } // SetEnableMonitoring gets a reference to the given bool and assigns it to the EnableMonitoring field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetEnableMonitoring(v InstanceParametersgetEnableMonitoringRetType) { setInstanceParametersgetEnableMonitoringAttributeType(&o.EnableMonitoring, v) } // GetFailoverTimeout returns the FailoverTimeout field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetFailoverTimeout() (res InstanceParametersGetFailoverTimeoutRetType) { res, _ = o.GetFailoverTimeoutOk() return @@ -1030,22 +1258,26 @@ func (o *InstanceParameters) GetFailoverTimeout() (res InstanceParametersGetFail // GetFailoverTimeoutOk returns a tuple with the FailoverTimeout field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetFailoverTimeoutOk() (ret InstanceParametersGetFailoverTimeoutRetType, ok bool) { return getInstanceParametersGetFailoverTimeoutAttributeTypeOk(o.FailoverTimeout) } // HasFailoverTimeout returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasFailoverTimeout() bool { _, ok := o.GetFailoverTimeoutOk() return ok } // SetFailoverTimeout gets a reference to the given int64 and assigns it to the FailoverTimeout field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetFailoverTimeout(v InstanceParametersGetFailoverTimeoutRetType) { setInstanceParametersGetFailoverTimeoutAttributeType(&o.FailoverTimeout, v) } // GetGraphite returns the Graphite field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetGraphite() (res InstanceParametersGetGraphiteRetType) { res, _ = o.GetGraphiteOk() return @@ -1053,22 +1285,26 @@ func (o *InstanceParameters) GetGraphite() (res InstanceParametersGetGraphiteRet // GetGraphiteOk returns a tuple with the Graphite field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetGraphiteOk() (ret InstanceParametersGetGraphiteRetType, ok bool) { return getInstanceParametersGetGraphiteAttributeTypeOk(o.Graphite) } // HasGraphite returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasGraphite() bool { _, ok := o.GetGraphiteOk() return ok } // SetGraphite gets a reference to the given string and assigns it to the Graphite field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetGraphite(v InstanceParametersGetGraphiteRetType) { setInstanceParametersGetGraphiteAttributeType(&o.Graphite, v) } // GetLazyfreeLazyEviction returns the LazyfreeLazyEviction field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetLazyfreeLazyEviction() (res InstanceParametersGetLazyfreeLazyEvictionRetType) { res, _ = o.GetLazyfreeLazyEvictionOk() return @@ -1076,22 +1312,26 @@ func (o *InstanceParameters) GetLazyfreeLazyEviction() (res InstanceParametersGe // GetLazyfreeLazyEvictionOk returns a tuple with the LazyfreeLazyEviction field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetLazyfreeLazyEvictionOk() (ret InstanceParametersGetLazyfreeLazyEvictionRetType, ok bool) { return getInstanceParametersGetLazyfreeLazyEvictionAttributeTypeOk(o.LazyfreeLazyEviction) } // HasLazyfreeLazyEviction returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasLazyfreeLazyEviction() bool { _, ok := o.GetLazyfreeLazyEvictionOk() return ok } // SetLazyfreeLazyEviction gets a reference to the given string and assigns it to the LazyfreeLazyEviction field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetLazyfreeLazyEviction(v InstanceParametersGetLazyfreeLazyEvictionRetType) { setInstanceParametersGetLazyfreeLazyEvictionAttributeType(&o.LazyfreeLazyEviction, v) } // GetLazyfreeLazyExpire returns the LazyfreeLazyExpire field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetLazyfreeLazyExpire() (res InstanceParametersGetLazyfreeLazyExpireRetType) { res, _ = o.GetLazyfreeLazyExpireOk() return @@ -1099,22 +1339,26 @@ func (o *InstanceParameters) GetLazyfreeLazyExpire() (res InstanceParametersGetL // GetLazyfreeLazyExpireOk returns a tuple with the LazyfreeLazyExpire field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetLazyfreeLazyExpireOk() (ret InstanceParametersGetLazyfreeLazyExpireRetType, ok bool) { return getInstanceParametersGetLazyfreeLazyExpireAttributeTypeOk(o.LazyfreeLazyExpire) } // HasLazyfreeLazyExpire returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasLazyfreeLazyExpire() bool { _, ok := o.GetLazyfreeLazyExpireOk() return ok } // SetLazyfreeLazyExpire gets a reference to the given string and assigns it to the LazyfreeLazyExpire field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetLazyfreeLazyExpire(v InstanceParametersGetLazyfreeLazyExpireRetType) { setInstanceParametersGetLazyfreeLazyExpireAttributeType(&o.LazyfreeLazyExpire, v) } // GetLuaTimeLimit returns the LuaTimeLimit field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetLuaTimeLimit() (res InstanceParametersGetLuaTimeLimitRetType) { res, _ = o.GetLuaTimeLimitOk() return @@ -1122,22 +1366,26 @@ func (o *InstanceParameters) GetLuaTimeLimit() (res InstanceParametersGetLuaTime // GetLuaTimeLimitOk returns a tuple with the LuaTimeLimit field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetLuaTimeLimitOk() (ret InstanceParametersGetLuaTimeLimitRetType, ok bool) { return getInstanceParametersGetLuaTimeLimitAttributeTypeOk(o.LuaTimeLimit) } // HasLuaTimeLimit returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasLuaTimeLimit() bool { _, ok := o.GetLuaTimeLimitOk() return ok } // SetLuaTimeLimit gets a reference to the given int64 and assigns it to the LuaTimeLimit field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetLuaTimeLimit(v InstanceParametersGetLuaTimeLimitRetType) { setInstanceParametersGetLuaTimeLimitAttributeType(&o.LuaTimeLimit, v) } // GetMaxDiskThreshold returns the MaxDiskThreshold field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxDiskThreshold() (res InstanceParametersGetMaxDiskThresholdRetType) { res, _ = o.GetMaxDiskThresholdOk() return @@ -1145,22 +1393,26 @@ func (o *InstanceParameters) GetMaxDiskThreshold() (res InstanceParametersGetMax // GetMaxDiskThresholdOk returns a tuple with the MaxDiskThreshold field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxDiskThresholdOk() (ret InstanceParametersGetMaxDiskThresholdRetType, ok bool) { return getInstanceParametersGetMaxDiskThresholdAttributeTypeOk(o.MaxDiskThreshold) } // HasMaxDiskThreshold returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMaxDiskThreshold() bool { _, ok := o.GetMaxDiskThresholdOk() return ok } // SetMaxDiskThreshold gets a reference to the given int64 and assigns it to the MaxDiskThreshold field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMaxDiskThreshold(v InstanceParametersGetMaxDiskThresholdRetType) { setInstanceParametersGetMaxDiskThresholdAttributeType(&o.MaxDiskThreshold, v) } // GetMaxclients returns the Maxclients field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxclients() (res InstanceParametersGetMaxclientsRetType) { res, _ = o.GetMaxclientsOk() return @@ -1168,22 +1420,26 @@ func (o *InstanceParameters) GetMaxclients() (res InstanceParametersGetMaxclient // GetMaxclientsOk returns a tuple with the Maxclients field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxclientsOk() (ret InstanceParametersGetMaxclientsRetType, ok bool) { return getInstanceParametersGetMaxclientsAttributeTypeOk(o.Maxclients) } // HasMaxclients returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMaxclients() bool { _, ok := o.GetMaxclientsOk() return ok } // SetMaxclients gets a reference to the given int64 and assigns it to the Maxclients field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMaxclients(v InstanceParametersGetMaxclientsRetType) { setInstanceParametersGetMaxclientsAttributeType(&o.Maxclients, v) } // GetMaxmemoryPolicy returns the MaxmemoryPolicy field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxmemoryPolicy() (res InstanceParametersGetMaxmemoryPolicyRetType) { res, _ = o.GetMaxmemoryPolicyOk() return @@ -1191,22 +1447,26 @@ func (o *InstanceParameters) GetMaxmemoryPolicy() (res InstanceParametersGetMaxm // GetMaxmemoryPolicyOk returns a tuple with the MaxmemoryPolicy field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxmemoryPolicyOk() (ret InstanceParametersGetMaxmemoryPolicyRetType, ok bool) { return getInstanceParametersGetMaxmemoryPolicyAttributeTypeOk(o.MaxmemoryPolicy) } // HasMaxmemoryPolicy returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMaxmemoryPolicy() bool { _, ok := o.GetMaxmemoryPolicyOk() return ok } // SetMaxmemoryPolicy gets a reference to the given string and assigns it to the MaxmemoryPolicy field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMaxmemoryPolicy(v InstanceParametersGetMaxmemoryPolicyRetType) { setInstanceParametersGetMaxmemoryPolicyAttributeType(&o.MaxmemoryPolicy, v) } // GetMaxmemorySamples returns the MaxmemorySamples field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxmemorySamples() (res InstanceParametersGetMaxmemorySamplesRetType) { res, _ = o.GetMaxmemorySamplesOk() return @@ -1214,22 +1474,26 @@ func (o *InstanceParameters) GetMaxmemorySamples() (res InstanceParametersGetMax // GetMaxmemorySamplesOk returns a tuple with the MaxmemorySamples field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMaxmemorySamplesOk() (ret InstanceParametersGetMaxmemorySamplesRetType, ok bool) { return getInstanceParametersGetMaxmemorySamplesAttributeTypeOk(o.MaxmemorySamples) } // HasMaxmemorySamples returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMaxmemorySamples() bool { _, ok := o.GetMaxmemorySamplesOk() return ok } // SetMaxmemorySamples gets a reference to the given int64 and assigns it to the MaxmemorySamples field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMaxmemorySamples(v InstanceParametersGetMaxmemorySamplesRetType) { setInstanceParametersGetMaxmemorySamplesAttributeType(&o.MaxmemorySamples, v) } // GetMetricsFrequency returns the MetricsFrequency field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMetricsFrequency() (res InstanceParametersGetMetricsFrequencyRetType) { res, _ = o.GetMetricsFrequencyOk() return @@ -1237,22 +1501,26 @@ func (o *InstanceParameters) GetMetricsFrequency() (res InstanceParametersGetMet // GetMetricsFrequencyOk returns a tuple with the MetricsFrequency field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMetricsFrequencyOk() (ret InstanceParametersGetMetricsFrequencyRetType, ok bool) { return getInstanceParametersGetMetricsFrequencyAttributeTypeOk(o.MetricsFrequency) } // HasMetricsFrequency returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMetricsFrequency() bool { _, ok := o.GetMetricsFrequencyOk() return ok } // SetMetricsFrequency gets a reference to the given int64 and assigns it to the MetricsFrequency field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMetricsFrequency(v InstanceParametersGetMetricsFrequencyRetType) { setInstanceParametersGetMetricsFrequencyAttributeType(&o.MetricsFrequency, v) } // GetMetricsPrefix returns the MetricsPrefix field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMetricsPrefix() (res InstanceParametersGetMetricsPrefixRetType) { res, _ = o.GetMetricsPrefixOk() return @@ -1260,22 +1528,26 @@ func (o *InstanceParameters) GetMetricsPrefix() (res InstanceParametersGetMetric // GetMetricsPrefixOk returns a tuple with the MetricsPrefix field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMetricsPrefixOk() (ret InstanceParametersGetMetricsPrefixRetType, ok bool) { return getInstanceParametersGetMetricsPrefixAttributeTypeOk(o.MetricsPrefix) } // HasMetricsPrefix returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMetricsPrefix() bool { _, ok := o.GetMetricsPrefixOk() return ok } // SetMetricsPrefix gets a reference to the given string and assigns it to the MetricsPrefix field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMetricsPrefix(v InstanceParametersGetMetricsPrefixRetType) { setInstanceParametersGetMetricsPrefixAttributeType(&o.MetricsPrefix, v) } // GetMinReplicasMaxLag returns the MinReplicasMaxLag field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMinReplicasMaxLag() (res InstanceParametersGetMinReplicasMaxLagRetType) { res, _ = o.GetMinReplicasMaxLagOk() return @@ -1283,22 +1555,26 @@ func (o *InstanceParameters) GetMinReplicasMaxLag() (res InstanceParametersGetMi // GetMinReplicasMaxLagOk returns a tuple with the MinReplicasMaxLag field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMinReplicasMaxLagOk() (ret InstanceParametersGetMinReplicasMaxLagRetType, ok bool) { return getInstanceParametersGetMinReplicasMaxLagAttributeTypeOk(o.MinReplicasMaxLag) } // HasMinReplicasMaxLag returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMinReplicasMaxLag() bool { _, ok := o.GetMinReplicasMaxLagOk() return ok } // SetMinReplicasMaxLag gets a reference to the given int64 and assigns it to the MinReplicasMaxLag field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMinReplicasMaxLag(v InstanceParametersGetMinReplicasMaxLagRetType) { setInstanceParametersGetMinReplicasMaxLagAttributeType(&o.MinReplicasMaxLag, v) } // GetMonitoringInstanceId returns the MonitoringInstanceId field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMonitoringInstanceId() (res InstanceParametersGetMonitoringInstanceIdRetType) { res, _ = o.GetMonitoringInstanceIdOk() return @@ -1306,22 +1582,26 @@ func (o *InstanceParameters) GetMonitoringInstanceId() (res InstanceParametersGe // GetMonitoringInstanceIdOk returns a tuple with the MonitoringInstanceId field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetMonitoringInstanceIdOk() (ret InstanceParametersGetMonitoringInstanceIdRetType, ok bool) { return getInstanceParametersGetMonitoringInstanceIdAttributeTypeOk(o.MonitoringInstanceId) } // HasMonitoringInstanceId returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasMonitoringInstanceId() bool { _, ok := o.GetMonitoringInstanceIdOk() return ok } // SetMonitoringInstanceId gets a reference to the given string and assigns it to the MonitoringInstanceId field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetMonitoringInstanceId(v InstanceParametersGetMonitoringInstanceIdRetType) { setInstanceParametersGetMonitoringInstanceIdAttributeType(&o.MonitoringInstanceId, v) } // GetNotifyKeyspaceEvents returns the NotifyKeyspaceEvents field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetNotifyKeyspaceEvents() (res InstanceParametersGetNotifyKeyspaceEventsRetType) { res, _ = o.GetNotifyKeyspaceEventsOk() return @@ -1329,22 +1609,26 @@ func (o *InstanceParameters) GetNotifyKeyspaceEvents() (res InstanceParametersGe // GetNotifyKeyspaceEventsOk returns a tuple with the NotifyKeyspaceEvents field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetNotifyKeyspaceEventsOk() (ret InstanceParametersGetNotifyKeyspaceEventsRetType, ok bool) { return getInstanceParametersGetNotifyKeyspaceEventsAttributeTypeOk(o.NotifyKeyspaceEvents) } // HasNotifyKeyspaceEvents returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasNotifyKeyspaceEvents() bool { _, ok := o.GetNotifyKeyspaceEventsOk() return ok } // SetNotifyKeyspaceEvents gets a reference to the given string and assigns it to the NotifyKeyspaceEvents field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetNotifyKeyspaceEvents(v InstanceParametersGetNotifyKeyspaceEventsRetType) { setInstanceParametersGetNotifyKeyspaceEventsAttributeType(&o.NotifyKeyspaceEvents, v) } // GetSgwAcl returns the SgwAcl field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetSgwAcl() (res InstanceParametersGetSgwAclRetType) { res, _ = o.GetSgwAclOk() return @@ -1352,22 +1636,26 @@ func (o *InstanceParameters) GetSgwAcl() (res InstanceParametersGetSgwAclRetType // GetSgwAclOk returns a tuple with the SgwAcl field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetSgwAclOk() (ret InstanceParametersGetSgwAclRetType, ok bool) { return getInstanceParametersGetSgwAclAttributeTypeOk(o.SgwAcl) } // HasSgwAcl returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasSgwAcl() bool { _, ok := o.GetSgwAclOk() return ok } // SetSgwAcl gets a reference to the given string and assigns it to the SgwAcl field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetSgwAcl(v InstanceParametersGetSgwAclRetType) { setInstanceParametersGetSgwAclAttributeType(&o.SgwAcl, v) } // GetSnapshot returns the Snapshot field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetSnapshot() (res InstanceParametersGetSnapshotRetType) { res, _ = o.GetSnapshotOk() return @@ -1375,22 +1663,26 @@ func (o *InstanceParameters) GetSnapshot() (res InstanceParametersGetSnapshotRet // GetSnapshotOk returns a tuple with the Snapshot field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetSnapshotOk() (ret InstanceParametersGetSnapshotRetType, ok bool) { return getInstanceParametersGetSnapshotAttributeTypeOk(o.Snapshot) } // HasSnapshot returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasSnapshot() bool { _, ok := o.GetSnapshotOk() return ok } // SetSnapshot gets a reference to the given string and assigns it to the Snapshot field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetSnapshot(v InstanceParametersGetSnapshotRetType) { setInstanceParametersGetSnapshotAttributeType(&o.Snapshot, v) } // GetSyslog returns the Syslog field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetSyslog() (res InstanceParametersGetSyslogRetType) { res, _ = o.GetSyslogOk() return @@ -1398,22 +1690,26 @@ func (o *InstanceParameters) GetSyslog() (res InstanceParametersGetSyslogRetType // GetSyslogOk returns a tuple with the Syslog field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetSyslogOk() (ret InstanceParametersGetSyslogRetType, ok bool) { return getInstanceParametersGetSyslogAttributeTypeOk(o.Syslog) } // HasSyslog returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasSyslog() bool { _, ok := o.GetSyslogOk() return ok } // SetSyslog gets a reference to the given []string and assigns it to the Syslog field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetSyslog(v InstanceParametersGetSyslogRetType) { setInstanceParametersGetSyslogAttributeType(&o.Syslog, v) } // GetTlsCiphers returns the TlsCiphers field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetTlsCiphers() (res InstanceParametersGetTlsCiphersRetType) { res, _ = o.GetTlsCiphersOk() return @@ -1421,22 +1717,26 @@ func (o *InstanceParameters) GetTlsCiphers() (res InstanceParametersGetTlsCipher // GetTlsCiphersOk returns a tuple with the TlsCiphers field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetTlsCiphersOk() (ret InstanceParametersGetTlsCiphersRetType, ok bool) { return getInstanceParametersGetTlsCiphersAttributeTypeOk(o.TlsCiphers) } // HasTlsCiphers returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasTlsCiphers() bool { _, ok := o.GetTlsCiphersOk() return ok } // SetTlsCiphers gets a reference to the given []string and assigns it to the TlsCiphers field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetTlsCiphers(v InstanceParametersGetTlsCiphersRetType) { setInstanceParametersGetTlsCiphersAttributeType(&o.TlsCiphers, v) } // GetTlsCiphersuites returns the TlsCiphersuites field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetTlsCiphersuites() (res InstanceParametersGetTlsCiphersuitesRetType) { res, _ = o.GetTlsCiphersuitesOk() return @@ -1444,22 +1744,26 @@ func (o *InstanceParameters) GetTlsCiphersuites() (res InstanceParametersGetTlsC // GetTlsCiphersuitesOk returns a tuple with the TlsCiphersuites field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetTlsCiphersuitesOk() (ret InstanceParametersGetTlsCiphersuitesRetType, ok bool) { return getInstanceParametersGetTlsCiphersuitesAttributeTypeOk(o.TlsCiphersuites) } // HasTlsCiphersuites returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasTlsCiphersuites() bool { _, ok := o.GetTlsCiphersuitesOk() return ok } // SetTlsCiphersuites gets a reference to the given string and assigns it to the TlsCiphersuites field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetTlsCiphersuites(v InstanceParametersGetTlsCiphersuitesRetType) { setInstanceParametersGetTlsCiphersuitesAttributeType(&o.TlsCiphersuites, v) } // GetTlsProtocols returns the TlsProtocols field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetTlsProtocols() (res InstanceParametersGetTlsProtocolsRetType) { res, _ = o.GetTlsProtocolsOk() return @@ -1467,21 +1771,25 @@ func (o *InstanceParameters) GetTlsProtocols() (res InstanceParametersGetTlsProt // GetTlsProtocolsOk returns a tuple with the TlsProtocols field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) GetTlsProtocolsOk() (ret InstanceParametersGetTlsProtocolsRetType, ok bool) { return getInstanceParametersGetTlsProtocolsAttributeTypeOk(o.TlsProtocols) } // HasTlsProtocols returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) HasTlsProtocols() bool { _, ok := o.GetTlsProtocolsOk() return ok } // SetTlsProtocols gets a reference to the given string and assigns it to the TlsProtocols field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceParameters) SetTlsProtocols(v InstanceParametersGetTlsProtocolsRetType) { setInstanceParametersGetTlsProtocolsAttributeType(&o.TlsProtocols, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o InstanceParameters) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInstanceParametersGetDownAfterMillisecondsAttributeTypeOk(o.DownAfterMilliseconds); ok { @@ -1553,37 +1861,45 @@ func (o InstanceParameters) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceParameters struct { value *InstanceParameters isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParameters) Get() *InstanceParameters { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParameters) Set(val *InstanceParameters) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParameters) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParameters) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceParameters(val *InstanceParameters) *NullableInstanceParameters { return &NullableInstanceParameters{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceParameters) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceParameters) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_instance_schema.go b/services/redis/model_instance_schema.go index 172f86066..4c1c2f1bd 100644 --- a/services/redis/model_instance_schema.go +++ b/services/redis/model_instance_schema.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &InstanceSchema{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSchemaGetCreateAttributeType = *Schema + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSchemaGetCreateArgType = Schema + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSchemaGetCreateRetType = Schema +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSchemaGetCreateAttributeTypeOk(arg InstanceSchemaGetCreateAttributeType) (ret InstanceSchemaGetCreateRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getInstanceSchemaGetCreateAttributeTypeOk(arg InstanceSchemaGetCreateAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSchemaGetCreateAttributeType(arg *InstanceSchemaGetCreateAttributeType, val InstanceSchemaGetCreateRetType) { *arg = &val } @@ -42,10 +50,16 @@ func setInstanceSchemaGetCreateAttributeType(arg *InstanceSchemaGetCreateAttribu */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSchemaGetUpdateAttributeType = *Schema + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSchemaGetUpdateArgType = Schema + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSchemaGetUpdateRetType = Schema +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getInstanceSchemaGetUpdateAttributeTypeOk(arg InstanceSchemaGetUpdateAttributeType) (ret InstanceSchemaGetUpdateRetType, ok bool) { if arg == nil { return ret, false @@ -53,11 +67,13 @@ func getInstanceSchemaGetUpdateAttributeTypeOk(arg InstanceSchemaGetUpdateAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setInstanceSchemaGetUpdateAttributeType(arg *InstanceSchemaGetUpdateAttributeType, val InstanceSchemaGetUpdateRetType) { *arg = &val } // InstanceSchema struct for InstanceSchema +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type InstanceSchema struct { // REQUIRED Create InstanceSchemaGetCreateAttributeType `json:"create" required:"true"` @@ -65,12 +81,14 @@ type InstanceSchema struct { Update InstanceSchemaGetUpdateAttributeType `json:"update" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _InstanceSchema InstanceSchema // NewInstanceSchema instantiates a new InstanceSchema 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceSchema(create InstanceSchemaGetCreateArgType, update InstanceSchemaGetUpdateArgType) *InstanceSchema { this := InstanceSchema{} setInstanceSchemaGetCreateAttributeType(&this.Create, create) @@ -81,12 +99,14 @@ func NewInstanceSchema(create InstanceSchemaGetCreateArgType, update InstanceSch // NewInstanceSchemaWithDefaults instantiates a new InstanceSchema 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewInstanceSchemaWithDefaults() *InstanceSchema { this := InstanceSchema{} return &this } // GetCreate returns the Create field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSchema) GetCreate() (ret InstanceSchemaGetCreateRetType) { ret, _ = o.GetCreateOk() return ret @@ -94,16 +114,19 @@ func (o *InstanceSchema) GetCreate() (ret InstanceSchemaGetCreateRetType) { // GetCreateOk returns a tuple with the Create field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSchema) GetCreateOk() (ret InstanceSchemaGetCreateRetType, ok bool) { return getInstanceSchemaGetCreateAttributeTypeOk(o.Create) } // SetCreate sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSchema) SetCreate(v InstanceSchemaGetCreateRetType) { setInstanceSchemaGetCreateAttributeType(&o.Create, v) } // GetUpdate returns the Update field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSchema) GetUpdate() (ret InstanceSchemaGetUpdateRetType) { ret, _ = o.GetUpdateOk() return ret @@ -111,15 +134,18 @@ func (o *InstanceSchema) GetUpdate() (ret InstanceSchemaGetUpdateRetType) { // GetUpdateOk returns a tuple with the Update field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSchema) GetUpdateOk() (ret InstanceSchemaGetUpdateRetType, ok bool) { return getInstanceSchemaGetUpdateAttributeTypeOk(o.Update) } // SetUpdate sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *InstanceSchema) SetUpdate(v InstanceSchemaGetUpdateRetType) { setInstanceSchemaGetUpdateAttributeType(&o.Update, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o InstanceSchema) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getInstanceSchemaGetCreateAttributeTypeOk(o.Create); ok { @@ -131,37 +157,45 @@ func (o InstanceSchema) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInstanceSchema struct { value *InstanceSchema isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceSchema) Get() *InstanceSchema { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceSchema) Set(val *InstanceSchema) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceSchema) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceSchema) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInstanceSchema(val *InstanceSchema) *NullableInstanceSchema { return &NullableInstanceSchema{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInstanceSchema) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInstanceSchema) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_list_backups_response.go b/services/redis/model_list_backups_response.go index c8a7290c1..236efb49f 100644 --- a/services/redis/model_list_backups_response.go +++ b/services/redis/model_list_backups_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListBackupsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupsResponseGetInstanceBackupsAttributeType = *[]Backup + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupsResponseGetInstanceBackupsArgType = []Backup + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupsResponseGetInstanceBackupsRetType = []Backup +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListBackupsResponseGetInstanceBackupsAttributeTypeOk(arg ListBackupsResponseGetInstanceBackupsAttributeType) (ret ListBackupsResponseGetInstanceBackupsRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getListBackupsResponseGetInstanceBackupsAttributeTypeOk(arg ListBackupsResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListBackupsResponseGetInstanceBackupsAttributeType(arg *ListBackupsResponseGetInstanceBackupsAttributeType, val ListBackupsResponseGetInstanceBackupsRetType) { *arg = &val } // ListBackupsResponse struct for ListBackupsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListBackupsResponse struct { // REQUIRED InstanceBackups ListBackupsResponseGetInstanceBackupsAttributeType `json:"instanceBackups" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListBackupsResponse ListBackupsResponse // NewListBackupsResponse instantiates a new ListBackupsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListBackupsResponse(instanceBackups ListBackupsResponseGetInstanceBackupsArgType) *ListBackupsResponse { this := ListBackupsResponse{} setListBackupsResponseGetInstanceBackupsAttributeType(&this.InstanceBackups, instanceBackups) @@ -58,12 +69,14 @@ func NewListBackupsResponse(instanceBackups ListBackupsResponseGetInstanceBackup // NewListBackupsResponseWithDefaults instantiates a new ListBackupsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListBackupsResponseWithDefaults() *ListBackupsResponse { this := ListBackupsResponse{} return &this } // GetInstanceBackups returns the InstanceBackups field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListBackupsResponse) GetInstanceBackups() (ret ListBackupsResponseGetInstanceBackupsRetType) { ret, _ = o.GetInstanceBackupsOk() return ret @@ -71,15 +84,18 @@ func (o *ListBackupsResponse) GetInstanceBackups() (ret ListBackupsResponseGetIn // GetInstanceBackupsOk returns a tuple with the InstanceBackups field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListBackupsResponse) GetInstanceBackupsOk() (ret ListBackupsResponseGetInstanceBackupsRetType, ok bool) { return getListBackupsResponseGetInstanceBackupsAttributeTypeOk(o.InstanceBackups) } // SetInstanceBackups sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListBackupsResponse) SetInstanceBackups(v ListBackupsResponseGetInstanceBackupsRetType) { setListBackupsResponseGetInstanceBackupsAttributeType(&o.InstanceBackups, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListBackupsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListBackupsResponseGetInstanceBackupsAttributeTypeOk(o.InstanceBackups); ok { @@ -88,37 +104,45 @@ func (o ListBackupsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListBackupsResponse struct { value *ListBackupsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListBackupsResponse) Get() *ListBackupsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListBackupsResponse) Set(val *ListBackupsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListBackupsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListBackupsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListBackupsResponse(val *ListBackupsResponse) *NullableListBackupsResponse { return &NullableListBackupsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListBackupsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListBackupsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_list_credentials_response.go b/services/redis/model_list_credentials_response.go index ab36871c5..c4cf02869 100644 --- a/services/redis/model_list_credentials_response.go +++ b/services/redis/model_list_credentials_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListCredentialsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetCredentialsListAttributeType = *[]CredentialsListItem + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetCredentialsListArgType = []CredentialsListItem + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponseGetCredentialsListRetType = []CredentialsListItem +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListCredentialsResponseGetCredentialsListAttributeTypeOk(arg ListCredentialsResponseGetCredentialsListAttributeType) (ret ListCredentialsResponseGetCredentialsListRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getListCredentialsResponseGetCredentialsListAttributeTypeOk(arg ListCredent return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListCredentialsResponseGetCredentialsListAttributeType(arg *ListCredentialsResponseGetCredentialsListAttributeType, val ListCredentialsResponseGetCredentialsListRetType) { *arg = &val } // ListCredentialsResponse struct for ListCredentialsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListCredentialsResponse struct { // REQUIRED CredentialsList ListCredentialsResponseGetCredentialsListAttributeType `json:"credentialsList" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListCredentialsResponse ListCredentialsResponse // NewListCredentialsResponse instantiates a new ListCredentialsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListCredentialsResponse(credentialsList ListCredentialsResponseGetCredentialsListArgType) *ListCredentialsResponse { this := ListCredentialsResponse{} setListCredentialsResponseGetCredentialsListAttributeType(&this.CredentialsList, credentialsList) @@ -58,12 +69,14 @@ func NewListCredentialsResponse(credentialsList ListCredentialsResponseGetCreden // NewListCredentialsResponseWithDefaults instantiates a new ListCredentialsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListCredentialsResponseWithDefaults() *ListCredentialsResponse { this := ListCredentialsResponse{} return &this } // GetCredentialsList returns the CredentialsList field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) GetCredentialsList() (ret ListCredentialsResponseGetCredentialsListRetType) { ret, _ = o.GetCredentialsListOk() return ret @@ -71,15 +84,18 @@ func (o *ListCredentialsResponse) GetCredentialsList() (ret ListCredentialsRespo // GetCredentialsListOk returns a tuple with the CredentialsList field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) GetCredentialsListOk() (ret ListCredentialsResponseGetCredentialsListRetType, ok bool) { return getListCredentialsResponseGetCredentialsListAttributeTypeOk(o.CredentialsList) } // SetCredentialsList sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListCredentialsResponse) SetCredentialsList(v ListCredentialsResponseGetCredentialsListRetType) { setListCredentialsResponseGetCredentialsListAttributeType(&o.CredentialsList, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListCredentialsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListCredentialsResponseGetCredentialsListAttributeTypeOk(o.CredentialsList); ok { @@ -88,37 +104,45 @@ func (o ListCredentialsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListCredentialsResponse struct { value *ListCredentialsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListCredentialsResponse) Get() *ListCredentialsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListCredentialsResponse) Set(val *ListCredentialsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListCredentialsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListCredentialsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListCredentialsResponse(val *ListCredentialsResponse) *NullableListCredentialsResponse { return &NullableListCredentialsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListCredentialsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListCredentialsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_list_instances_response.go b/services/redis/model_list_instances_response.go index 26e34e749..956ce807c 100644 --- a/services/redis/model_list_instances_response.go +++ b/services/redis/model_list_instances_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListInstancesResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetInstancesAttributeType = *[]Instance + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetInstancesArgType = []Instance + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponseGetInstancesRetType = []Instance +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListInstancesResponseGetInstancesAttributeTypeOk(arg ListInstancesResponseGetInstancesAttributeType) (ret ListInstancesResponseGetInstancesRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getListInstancesResponseGetInstancesAttributeTypeOk(arg ListInstancesRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListInstancesResponseGetInstancesAttributeType(arg *ListInstancesResponseGetInstancesAttributeType, val ListInstancesResponseGetInstancesRetType) { *arg = &val } // ListInstancesResponse struct for ListInstancesResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListInstancesResponse struct { // REQUIRED Instances ListInstancesResponseGetInstancesAttributeType `json:"instances" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListInstancesResponse ListInstancesResponse // NewListInstancesResponse instantiates a new ListInstancesResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListInstancesResponse(instances ListInstancesResponseGetInstancesArgType) *ListInstancesResponse { this := ListInstancesResponse{} setListInstancesResponseGetInstancesAttributeType(&this.Instances, instances) @@ -58,12 +69,14 @@ func NewListInstancesResponse(instances ListInstancesResponseGetInstancesArgType // NewListInstancesResponseWithDefaults instantiates a new ListInstancesResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListInstancesResponseWithDefaults() *ListInstancesResponse { this := ListInstancesResponse{} return &this } // GetInstances returns the Instances field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) GetInstances() (ret ListInstancesResponseGetInstancesRetType) { ret, _ = o.GetInstancesOk() return ret @@ -71,15 +84,18 @@ func (o *ListInstancesResponse) GetInstances() (ret ListInstancesResponseGetInst // GetInstancesOk returns a tuple with the Instances field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) GetInstancesOk() (ret ListInstancesResponseGetInstancesRetType, ok bool) { return getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances) } // SetInstances sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListInstancesResponse) SetInstances(v ListInstancesResponseGetInstancesRetType) { setListInstancesResponseGetInstancesAttributeType(&o.Instances, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances); ok { @@ -88,37 +104,45 @@ func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListInstancesResponse struct { value *ListInstancesResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListInstancesResponse) Get() *ListInstancesResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListInstancesResponse) Set(val *ListInstancesResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListInstancesResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListInstancesResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListInstancesResponse(val *ListInstancesResponse) *NullableListInstancesResponse { return &NullableListInstancesResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListInstancesResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListInstancesResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_list_offerings_response.go b/services/redis/model_list_offerings_response.go index b5a9fd85e..9ed3d3813 100644 --- a/services/redis/model_list_offerings_response.go +++ b/services/redis/model_list_offerings_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListOfferingsResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListOfferingsResponseGetOfferingsAttributeType = *[]Offering + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListOfferingsResponseGetOfferingsArgType = []Offering + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListOfferingsResponseGetOfferingsRetType = []Offering +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListOfferingsResponseGetOfferingsAttributeTypeOk(arg ListOfferingsResponseGetOfferingsAttributeType) (ret ListOfferingsResponseGetOfferingsRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getListOfferingsResponseGetOfferingsAttributeTypeOk(arg ListOfferingsRespon return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListOfferingsResponseGetOfferingsAttributeType(arg *ListOfferingsResponseGetOfferingsAttributeType, val ListOfferingsResponseGetOfferingsRetType) { *arg = &val } // ListOfferingsResponse struct for ListOfferingsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListOfferingsResponse struct { // REQUIRED Offerings ListOfferingsResponseGetOfferingsAttributeType `json:"offerings" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListOfferingsResponse ListOfferingsResponse // NewListOfferingsResponse instantiates a new ListOfferingsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListOfferingsResponse(offerings ListOfferingsResponseGetOfferingsArgType) *ListOfferingsResponse { this := ListOfferingsResponse{} setListOfferingsResponseGetOfferingsAttributeType(&this.Offerings, offerings) @@ -58,12 +69,14 @@ func NewListOfferingsResponse(offerings ListOfferingsResponseGetOfferingsArgType // NewListOfferingsResponseWithDefaults instantiates a new ListOfferingsResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListOfferingsResponseWithDefaults() *ListOfferingsResponse { this := ListOfferingsResponse{} return &this } // GetOfferings returns the Offerings field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListOfferingsResponse) GetOfferings() (ret ListOfferingsResponseGetOfferingsRetType) { ret, _ = o.GetOfferingsOk() return ret @@ -71,15 +84,18 @@ func (o *ListOfferingsResponse) GetOfferings() (ret ListOfferingsResponseGetOffe // GetOfferingsOk returns a tuple with the Offerings field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListOfferingsResponse) GetOfferingsOk() (ret ListOfferingsResponseGetOfferingsRetType, ok bool) { return getListOfferingsResponseGetOfferingsAttributeTypeOk(o.Offerings) } // SetOfferings sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListOfferingsResponse) SetOfferings(v ListOfferingsResponseGetOfferingsRetType) { setListOfferingsResponseGetOfferingsAttributeType(&o.Offerings, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListOfferingsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListOfferingsResponseGetOfferingsAttributeTypeOk(o.Offerings); ok { @@ -88,37 +104,45 @@ func (o ListOfferingsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListOfferingsResponse struct { value *ListOfferingsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListOfferingsResponse) Get() *ListOfferingsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListOfferingsResponse) Set(val *ListOfferingsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListOfferingsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListOfferingsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListOfferingsResponse(val *ListOfferingsResponse) *NullableListOfferingsResponse { return &NullableListOfferingsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListOfferingsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListOfferingsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_list_restores_response.go b/services/redis/model_list_restores_response.go index 79ae1c8f5..ba1971da8 100644 --- a/services/redis/model_list_restores_response.go +++ b/services/redis/model_list_restores_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &ListRestoresResponse{} */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListRestoresResponseGetInstanceRestoresAttributeType = *[]Restore + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListRestoresResponseGetInstanceRestoresArgType = []Restore + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListRestoresResponseGetInstanceRestoresRetType = []Restore +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListRestoresResponseGetInstanceRestoresAttributeTypeOk(arg ListRestoresResponseGetInstanceRestoresAttributeType) (ret ListRestoresResponseGetInstanceRestoresRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getListRestoresResponseGetInstanceRestoresAttributeTypeOk(arg ListRestoresR return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListRestoresResponseGetInstanceRestoresAttributeType(arg *ListRestoresResponseGetInstanceRestoresAttributeType, val ListRestoresResponseGetInstanceRestoresRetType) { *arg = &val } // ListRestoresResponse struct for ListRestoresResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListRestoresResponse struct { // REQUIRED InstanceRestores ListRestoresResponseGetInstanceRestoresAttributeType `json:"instanceRestores" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListRestoresResponse ListRestoresResponse // NewListRestoresResponse instantiates a new ListRestoresResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListRestoresResponse(instanceRestores ListRestoresResponseGetInstanceRestoresArgType) *ListRestoresResponse { this := ListRestoresResponse{} setListRestoresResponseGetInstanceRestoresAttributeType(&this.InstanceRestores, instanceRestores) @@ -58,12 +69,14 @@ func NewListRestoresResponse(instanceRestores ListRestoresResponseGetInstanceRes // NewListRestoresResponseWithDefaults instantiates a new ListRestoresResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListRestoresResponseWithDefaults() *ListRestoresResponse { this := ListRestoresResponse{} return &this } // GetInstanceRestores returns the InstanceRestores field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListRestoresResponse) GetInstanceRestores() (ret ListRestoresResponseGetInstanceRestoresRetType) { ret, _ = o.GetInstanceRestoresOk() return ret @@ -71,15 +84,18 @@ func (o *ListRestoresResponse) GetInstanceRestores() (ret ListRestoresResponseGe // GetInstanceRestoresOk returns a tuple with the InstanceRestores field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListRestoresResponse) GetInstanceRestoresOk() (ret ListRestoresResponseGetInstanceRestoresRetType, ok bool) { return getListRestoresResponseGetInstanceRestoresAttributeTypeOk(o.InstanceRestores) } // SetInstanceRestores sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListRestoresResponse) SetInstanceRestores(v ListRestoresResponseGetInstanceRestoresRetType) { setListRestoresResponseGetInstanceRestoresAttributeType(&o.InstanceRestores, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListRestoresResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListRestoresResponseGetInstanceRestoresAttributeTypeOk(o.InstanceRestores); ok { @@ -88,37 +104,45 @@ func (o ListRestoresResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListRestoresResponse struct { value *ListRestoresResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListRestoresResponse) Get() *ListRestoresResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListRestoresResponse) Set(val *ListRestoresResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListRestoresResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListRestoresResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListRestoresResponse(val *ListRestoresResponse) *NullableListRestoresResponse { return &NullableListRestoresResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListRestoresResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListRestoresResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_offering.go b/services/redis/model_offering.go index a25429a4a..6e0a26bf2 100644 --- a/services/redis/model_offering.go +++ b/services/redis/model_offering.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Offering{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetDescriptionAttributeTypeOk(arg OfferingGetDescriptionAttributeType) (ret OfferingGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getOfferingGetDescriptionAttributeTypeOk(arg OfferingGetDescriptionAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetDescriptionAttributeType(arg *OfferingGetDescriptionAttributeType, val OfferingGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type OfferingGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetDocumentationUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetDocumentationUrlAttributeTypeOk(arg OfferingGetDocumentationUrlAttributeType) (ret OfferingGetDocumentationUrlRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getOfferingGetDocumentationUrlAttributeTypeOk(arg OfferingGetDocumentationU return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetDocumentationUrlAttributeType(arg *OfferingGetDocumentationUrlAttributeType, val OfferingGetDocumentationUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetDocumentationUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetDocumentationUrlRetType = string /* @@ -64,8 +77,10 @@ type OfferingGetDocumentationUrlRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetImageUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetImageUrlAttributeTypeOk(arg OfferingGetImageUrlAttributeType) (ret OfferingGetImageUrlRetType, ok bool) { if arg == nil { return ret, false @@ -73,11 +88,15 @@ func getOfferingGetImageUrlAttributeTypeOk(arg OfferingGetImageUrlAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetImageUrlAttributeType(arg *OfferingGetImageUrlAttributeType, val OfferingGetImageUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetImageUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetImageUrlRetType = string /* @@ -85,10 +104,16 @@ type OfferingGetImageUrlRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferinggetLatestAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferinggetLatestArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferinggetLatestRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferinggetLatestAttributeTypeOk(arg OfferinggetLatestAttributeType) (ret OfferinggetLatestRetType, ok bool) { if arg == nil { return ret, false @@ -96,6 +121,7 @@ func getOfferinggetLatestAttributeTypeOk(arg OfferinggetLatestAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferinggetLatestAttributeType(arg *OfferinggetLatestAttributeType, val OfferinggetLatestRetType) { *arg = &val } @@ -105,8 +131,10 @@ func setOfferinggetLatestAttributeType(arg *OfferinggetLatestAttributeType, val */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetLifecycleAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetLifecycleAttributeTypeOk(arg OfferingGetLifecycleAttributeType) (ret OfferingGetLifecycleRetType, ok bool) { if arg == nil { return ret, false @@ -114,11 +142,15 @@ func getOfferingGetLifecycleAttributeTypeOk(arg OfferingGetLifecycleAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetLifecycleAttributeType(arg *OfferingGetLifecycleAttributeType, val OfferingGetLifecycleRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetLifecycleArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetLifecycleRetType = string /* @@ -126,8 +158,10 @@ type OfferingGetLifecycleRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetNameAttributeTypeOk(arg OfferingGetNameAttributeType) (ret OfferingGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -135,11 +169,15 @@ func getOfferingGetNameAttributeTypeOk(arg OfferingGetNameAttributeType) (ret Of return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetNameAttributeType(arg *OfferingGetNameAttributeType, val OfferingGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetNameRetType = string /* @@ -147,10 +185,16 @@ type OfferingGetNameRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetPlansAttributeType = *[]Plan + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetPlansArgType = []Plan + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetPlansRetType = []Plan +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetPlansAttributeTypeOk(arg OfferingGetPlansAttributeType) (ret OfferingGetPlansRetType, ok bool) { if arg == nil { return ret, false @@ -158,6 +202,7 @@ func getOfferingGetPlansAttributeTypeOk(arg OfferingGetPlansAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetPlansAttributeType(arg *OfferingGetPlansAttributeType, val OfferingGetPlansRetType) { *arg = &val } @@ -167,10 +212,16 @@ func setOfferingGetPlansAttributeType(arg *OfferingGetPlansAttributeType, val Of */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetQuotaCountAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetQuotaCountArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetQuotaCountRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetQuotaCountAttributeTypeOk(arg OfferingGetQuotaCountAttributeType) (ret OfferingGetQuotaCountRetType, ok bool) { if arg == nil { return ret, false @@ -178,6 +229,7 @@ func getOfferingGetQuotaCountAttributeTypeOk(arg OfferingGetQuotaCountAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetQuotaCountAttributeType(arg *OfferingGetQuotaCountAttributeType, val OfferingGetQuotaCountRetType) { *arg = &val } @@ -187,10 +239,16 @@ func setOfferingGetQuotaCountAttributeType(arg *OfferingGetQuotaCountAttributeTy */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetSchemaAttributeType = *InstanceSchema + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetSchemaArgType = InstanceSchema + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetSchemaRetType = InstanceSchema +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetSchemaAttributeTypeOk(arg OfferingGetSchemaAttributeType) (ret OfferingGetSchemaRetType, ok bool) { if arg == nil { return ret, false @@ -198,6 +256,7 @@ func getOfferingGetSchemaAttributeTypeOk(arg OfferingGetSchemaAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetSchemaAttributeType(arg *OfferingGetSchemaAttributeType, val OfferingGetSchemaRetType) { *arg = &val } @@ -207,8 +266,10 @@ func setOfferingGetSchemaAttributeType(arg *OfferingGetSchemaAttributeType, val */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetVersionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getOfferingGetVersionAttributeTypeOk(arg OfferingGetVersionAttributeType) (ret OfferingGetVersionRetType, ok bool) { if arg == nil { return ret, false @@ -216,14 +277,19 @@ func getOfferingGetVersionAttributeTypeOk(arg OfferingGetVersionAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setOfferingGetVersionAttributeType(arg *OfferingGetVersionAttributeType, val OfferingGetVersionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetVersionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type OfferingGetVersionRetType = string // Offering struct for Offering +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Offering struct { // REQUIRED Description OfferingGetDescriptionAttributeType `json:"description" required:"true"` @@ -245,12 +311,14 @@ type Offering struct { Version OfferingGetVersionAttributeType `json:"version" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Offering Offering // NewOffering instantiates a new Offering 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOffering(description OfferingGetDescriptionArgType, documentationUrl OfferingGetDocumentationUrlArgType, imageUrl OfferingGetImageUrlArgType, latest OfferinggetLatestArgType, name OfferingGetNameArgType, plans OfferingGetPlansArgType, quotaCount OfferingGetQuotaCountArgType, version OfferingGetVersionArgType) *Offering { this := Offering{} setOfferingGetDescriptionAttributeType(&this.Description, description) @@ -267,12 +335,14 @@ func NewOffering(description OfferingGetDescriptionArgType, documentationUrl Off // NewOfferingWithDefaults instantiates a new Offering 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewOfferingWithDefaults() *Offering { this := Offering{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetDescription() (ret OfferingGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -280,16 +350,19 @@ func (o *Offering) GetDescription() (ret OfferingGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetDescriptionOk() (ret OfferingGetDescriptionRetType, ok bool) { return getOfferingGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetDescription(v OfferingGetDescriptionRetType) { setOfferingGetDescriptionAttributeType(&o.Description, v) } // GetDocumentationUrl returns the DocumentationUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetDocumentationUrl() (ret OfferingGetDocumentationUrlRetType) { ret, _ = o.GetDocumentationUrlOk() return ret @@ -297,16 +370,19 @@ func (o *Offering) GetDocumentationUrl() (ret OfferingGetDocumentationUrlRetType // GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetDocumentationUrlOk() (ret OfferingGetDocumentationUrlRetType, ok bool) { return getOfferingGetDocumentationUrlAttributeTypeOk(o.DocumentationUrl) } // SetDocumentationUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetDocumentationUrl(v OfferingGetDocumentationUrlRetType) { setOfferingGetDocumentationUrlAttributeType(&o.DocumentationUrl, v) } // GetImageUrl returns the ImageUrl field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetImageUrl() (ret OfferingGetImageUrlRetType) { ret, _ = o.GetImageUrlOk() return ret @@ -314,16 +390,19 @@ func (o *Offering) GetImageUrl() (ret OfferingGetImageUrlRetType) { // GetImageUrlOk returns a tuple with the ImageUrl field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetImageUrlOk() (ret OfferingGetImageUrlRetType, ok bool) { return getOfferingGetImageUrlAttributeTypeOk(o.ImageUrl) } // SetImageUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetImageUrl(v OfferingGetImageUrlRetType) { setOfferingGetImageUrlAttributeType(&o.ImageUrl, v) } // GetLatest returns the Latest field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetLatest() (ret OfferinggetLatestRetType) { ret, _ = o.GetLatestOk() return ret @@ -331,16 +410,19 @@ func (o *Offering) GetLatest() (ret OfferinggetLatestRetType) { // GetLatestOk returns a tuple with the Latest field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetLatestOk() (ret OfferinggetLatestRetType, ok bool) { return getOfferinggetLatestAttributeTypeOk(o.Latest) } // SetLatest sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetLatest(v OfferinggetLatestRetType) { setOfferinggetLatestAttributeType(&o.Latest, v) } // GetLifecycle returns the Lifecycle field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetLifecycle() (res OfferingGetLifecycleRetType) { res, _ = o.GetLifecycleOk() return @@ -348,22 +430,26 @@ func (o *Offering) GetLifecycle() (res OfferingGetLifecycleRetType) { // GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetLifecycleOk() (ret OfferingGetLifecycleRetType, ok bool) { return getOfferingGetLifecycleAttributeTypeOk(o.Lifecycle) } // HasLifecycle returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) HasLifecycle() bool { _, ok := o.GetLifecycleOk() return ok } // SetLifecycle gets a reference to the given string and assigns it to the Lifecycle field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetLifecycle(v OfferingGetLifecycleRetType) { setOfferingGetLifecycleAttributeType(&o.Lifecycle, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetName() (ret OfferingGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -371,16 +457,19 @@ func (o *Offering) GetName() (ret OfferingGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetNameOk() (ret OfferingGetNameRetType, ok bool) { return getOfferingGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetName(v OfferingGetNameRetType) { setOfferingGetNameAttributeType(&o.Name, v) } // GetPlans returns the Plans field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetPlans() (ret OfferingGetPlansRetType) { ret, _ = o.GetPlansOk() return ret @@ -388,16 +477,19 @@ func (o *Offering) GetPlans() (ret OfferingGetPlansRetType) { // GetPlansOk returns a tuple with the Plans field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetPlansOk() (ret OfferingGetPlansRetType, ok bool) { return getOfferingGetPlansAttributeTypeOk(o.Plans) } // SetPlans sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetPlans(v OfferingGetPlansRetType) { setOfferingGetPlansAttributeType(&o.Plans, v) } // GetQuotaCount returns the QuotaCount field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetQuotaCount() (ret OfferingGetQuotaCountRetType) { ret, _ = o.GetQuotaCountOk() return ret @@ -405,16 +497,19 @@ func (o *Offering) GetQuotaCount() (ret OfferingGetQuotaCountRetType) { // GetQuotaCountOk returns a tuple with the QuotaCount field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetQuotaCountOk() (ret OfferingGetQuotaCountRetType, ok bool) { return getOfferingGetQuotaCountAttributeTypeOk(o.QuotaCount) } // SetQuotaCount sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetQuotaCount(v OfferingGetQuotaCountRetType) { setOfferingGetQuotaCountAttributeType(&o.QuotaCount, v) } // GetSchema returns the Schema field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetSchema() (res OfferingGetSchemaRetType) { res, _ = o.GetSchemaOk() return @@ -422,22 +517,26 @@ func (o *Offering) GetSchema() (res OfferingGetSchemaRetType) { // GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetSchemaOk() (ret OfferingGetSchemaRetType, ok bool) { return getOfferingGetSchemaAttributeTypeOk(o.Schema) } // HasSchema returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) HasSchema() bool { _, ok := o.GetSchemaOk() return ok } // SetSchema gets a reference to the given InstanceSchema and assigns it to the Schema field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetSchema(v OfferingGetSchemaRetType) { setOfferingGetSchemaAttributeType(&o.Schema, v) } // GetVersion returns the Version field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetVersion() (ret OfferingGetVersionRetType) { ret, _ = o.GetVersionOk() return ret @@ -445,15 +544,18 @@ func (o *Offering) GetVersion() (ret OfferingGetVersionRetType) { // GetVersionOk returns a tuple with the Version field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) GetVersionOk() (ret OfferingGetVersionRetType, ok bool) { return getOfferingGetVersionAttributeTypeOk(o.Version) } // SetVersion sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Offering) SetVersion(v OfferingGetVersionRetType) { setOfferingGetVersionAttributeType(&o.Version, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Offering) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getOfferingGetDescriptionAttributeTypeOk(o.Description); ok { @@ -489,37 +591,45 @@ func (o Offering) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableOffering struct { value *Offering isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOffering) Get() *Offering { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOffering) Set(val *Offering) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOffering) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOffering) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableOffering(val *Offering) *NullableOffering { return &NullableOffering{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableOffering) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableOffering) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_partial_update_instance_payload.go b/services/redis/model_partial_update_instance_payload.go index cccf0687a..3fda94095 100644 --- a/services/redis/model_partial_update_instance_payload.go +++ b/services/redis/model_partial_update_instance_payload.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateInstancePayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetInstanceNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateInstancePayloadGetInstanceNameAttributeTypeOk(arg PartialUpdateInstancePayloadGetInstanceNameAttributeType) (ret PartialUpdateInstancePayloadGetInstanceNameRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPartialUpdateInstancePayloadGetInstanceNameAttributeTypeOk(arg PartialUp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateInstancePayloadGetInstanceNameAttributeType(arg *PartialUpdateInstancePayloadGetInstanceNameAttributeType, val PartialUpdateInstancePayloadGetInstanceNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetInstanceNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetInstanceNameRetType = string /* @@ -43,10 +50,16 @@ type PartialUpdateInstancePayloadGetInstanceNameRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetParametersAttributeType = *InstanceParameters + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetParametersArgType = InstanceParameters + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetParametersRetType = InstanceParameters +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateInstancePayloadGetParametersAttributeTypeOk(arg PartialUpdateInstancePayloadGetParametersAttributeType) (ret PartialUpdateInstancePayloadGetParametersRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getPartialUpdateInstancePayloadGetParametersAttributeTypeOk(arg PartialUpda return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateInstancePayloadGetParametersAttributeType(arg *PartialUpdateInstancePayloadGetParametersAttributeType, val PartialUpdateInstancePayloadGetParametersRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setPartialUpdateInstancePayloadGetParametersAttributeType(arg *PartialUpdat */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetPlanIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateInstancePayloadGetPlanIdAttributeTypeOk(arg PartialUpdateInstancePayloadGetPlanIdAttributeType) (ret PartialUpdateInstancePayloadGetPlanIdRetType, ok bool) { if arg == nil { return ret, false @@ -72,14 +88,19 @@ func getPartialUpdateInstancePayloadGetPlanIdAttributeTypeOk(arg PartialUpdateIn return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateInstancePayloadGetPlanIdAttributeType(arg *PartialUpdateInstancePayloadGetPlanIdAttributeType, val PartialUpdateInstancePayloadGetPlanIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetPlanIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayloadGetPlanIdRetType = string // PartialUpdateInstancePayload struct for PartialUpdateInstancePayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateInstancePayload struct { InstanceName PartialUpdateInstancePayloadGetInstanceNameAttributeType `json:"instanceName,omitempty"` Parameters PartialUpdateInstancePayloadGetParametersAttributeType `json:"parameters,omitempty"` @@ -90,6 +111,7 @@ type PartialUpdateInstancePayload struct { // 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateInstancePayload() *PartialUpdateInstancePayload { this := PartialUpdateInstancePayload{} return &this @@ -98,12 +120,14 @@ func NewPartialUpdateInstancePayload() *PartialUpdateInstancePayload { // NewPartialUpdateInstancePayloadWithDefaults instantiates a new PartialUpdateInstancePayload 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateInstancePayloadWithDefaults() *PartialUpdateInstancePayload { this := PartialUpdateInstancePayload{} return &this } // GetInstanceName returns the InstanceName field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) GetInstanceName() (res PartialUpdateInstancePayloadGetInstanceNameRetType) { res, _ = o.GetInstanceNameOk() return @@ -111,22 +135,26 @@ func (o *PartialUpdateInstancePayload) GetInstanceName() (res PartialUpdateInsta // GetInstanceNameOk returns a tuple with the InstanceName field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) GetInstanceNameOk() (ret PartialUpdateInstancePayloadGetInstanceNameRetType, ok bool) { return getPartialUpdateInstancePayloadGetInstanceNameAttributeTypeOk(o.InstanceName) } // HasInstanceName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) HasInstanceName() bool { _, ok := o.GetInstanceNameOk() return ok } // SetInstanceName gets a reference to the given string and assigns it to the InstanceName field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) SetInstanceName(v PartialUpdateInstancePayloadGetInstanceNameRetType) { setPartialUpdateInstancePayloadGetInstanceNameAttributeType(&o.InstanceName, v) } // GetParameters returns the Parameters field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) GetParameters() (res PartialUpdateInstancePayloadGetParametersRetType) { res, _ = o.GetParametersOk() return @@ -134,22 +162,26 @@ func (o *PartialUpdateInstancePayload) GetParameters() (res PartialUpdateInstanc // GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) GetParametersOk() (ret PartialUpdateInstancePayloadGetParametersRetType, ok bool) { return getPartialUpdateInstancePayloadGetParametersAttributeTypeOk(o.Parameters) } // HasParameters returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) HasParameters() bool { _, ok := o.GetParametersOk() return ok } // SetParameters gets a reference to the given InstanceParameters and assigns it to the Parameters field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) SetParameters(v PartialUpdateInstancePayloadGetParametersRetType) { setPartialUpdateInstancePayloadGetParametersAttributeType(&o.Parameters, v) } // GetPlanId returns the PlanId field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) GetPlanId() (res PartialUpdateInstancePayloadGetPlanIdRetType) { res, _ = o.GetPlanIdOk() return @@ -157,21 +189,25 @@ func (o *PartialUpdateInstancePayload) GetPlanId() (res PartialUpdateInstancePay // GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) GetPlanIdOk() (ret PartialUpdateInstancePayloadGetPlanIdRetType, ok bool) { return getPartialUpdateInstancePayloadGetPlanIdAttributeTypeOk(o.PlanId) } // HasPlanId returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) HasPlanId() bool { _, ok := o.GetPlanIdOk() return ok } // SetPlanId gets a reference to the given string and assigns it to the PlanId field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateInstancePayload) SetPlanId(v PartialUpdateInstancePayloadGetPlanIdRetType) { setPartialUpdateInstancePayloadGetPlanIdAttributeType(&o.PlanId, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateInstancePayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateInstancePayloadGetInstanceNameAttributeTypeOk(o.InstanceName); ok { @@ -186,37 +222,45 @@ func (o PartialUpdateInstancePayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateInstancePayload struct { value *PartialUpdateInstancePayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateInstancePayload) Get() *PartialUpdateInstancePayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateInstancePayload) Set(val *PartialUpdateInstancePayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateInstancePayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateInstancePayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateInstancePayload(val *PartialUpdateInstancePayload) *NullablePartialUpdateInstancePayload { return &NullablePartialUpdateInstancePayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateInstancePayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateInstancePayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_plan.go b/services/redis/model_plan.go index 1d24c8d36..46dfe416c 100644 --- a/services/redis/model_plan.go +++ b/services/redis/model_plan.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &Plan{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetDescriptionAttributeTypeOk(arg PlanGetDescriptionAttributeType) (ret PlanGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPlanGetDescriptionAttributeTypeOk(arg PlanGetDescriptionAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetDescriptionAttributeType(arg *PlanGetDescriptionAttributeType, val PlanGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetDescriptionRetType = string /* @@ -43,10 +50,16 @@ type PlanGetDescriptionRetType = string */ // isBoolean +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetFreeAttributeType = *bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetFreeArgType = bool + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlangetFreeRetType = bool +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlangetFreeAttributeTypeOk(arg PlangetFreeAttributeType) (ret PlangetFreeRetType, ok bool) { if arg == nil { return ret, false @@ -54,6 +67,7 @@ func getPlangetFreeAttributeTypeOk(arg PlangetFreeAttributeType) (ret PlangetFre return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlangetFreeAttributeType(arg *PlangetFreeAttributeType, val PlangetFreeRetType) { *arg = &val } @@ -63,8 +77,10 @@ func setPlangetFreeAttributeType(arg *PlangetFreeAttributeType, val PlangetFreeR */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetIdAttributeTypeOk(arg PlanGetIdAttributeType) (ret PlanGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -72,11 +88,15 @@ func getPlanGetIdAttributeTypeOk(arg PlanGetIdAttributeType) (ret PlanGetIdRetTy return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetIdAttributeType(arg *PlanGetIdAttributeType, val PlanGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetIdRetType = string /* @@ -84,8 +104,10 @@ type PlanGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetNameAttributeTypeOk(arg PlanGetNameAttributeType) (ret PlanGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -93,11 +115,15 @@ func getPlanGetNameAttributeTypeOk(arg PlanGetNameAttributeType) (ret PlanGetNam return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetNameAttributeType(arg *PlanGetNameAttributeType, val PlanGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetNameRetType = string /* @@ -105,8 +131,10 @@ type PlanGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSkuNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPlanGetSkuNameAttributeTypeOk(arg PlanGetSkuNameAttributeType) (ret PlanGetSkuNameRetType, ok bool) { if arg == nil { return ret, false @@ -114,14 +142,19 @@ func getPlanGetSkuNameAttributeTypeOk(arg PlanGetSkuNameAttributeType) (ret Plan return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPlanGetSkuNameAttributeType(arg *PlanGetSkuNameAttributeType, val PlanGetSkuNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSkuNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PlanGetSkuNameRetType = string // Plan struct for Plan +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Plan struct { // REQUIRED Description PlanGetDescriptionAttributeType `json:"description" required:"true"` @@ -135,12 +168,14 @@ type Plan struct { SkuName PlanGetSkuNameAttributeType `json:"skuName" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Plan Plan // NewPlan instantiates a new Plan 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlan(description PlanGetDescriptionArgType, free PlangetFreeArgType, id PlanGetIdArgType, name PlanGetNameArgType, skuName PlanGetSkuNameArgType) *Plan { this := Plan{} setPlanGetDescriptionAttributeType(&this.Description, description) @@ -154,12 +189,14 @@ func NewPlan(description PlanGetDescriptionArgType, free PlangetFreeArgType, id // NewPlanWithDefaults instantiates a new Plan 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPlanWithDefaults() *Plan { this := Plan{} return &this } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetDescription() (ret PlanGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -167,16 +204,19 @@ func (o *Plan) GetDescription() (ret PlanGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetDescriptionOk() (ret PlanGetDescriptionRetType, ok bool) { return getPlanGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetDescription(v PlanGetDescriptionRetType) { setPlanGetDescriptionAttributeType(&o.Description, v) } // GetFree returns the Free field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetFree() (ret PlangetFreeRetType) { ret, _ = o.GetFreeOk() return ret @@ -184,16 +224,19 @@ func (o *Plan) GetFree() (ret PlangetFreeRetType) { // GetFreeOk returns a tuple with the Free field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetFreeOk() (ret PlangetFreeRetType, ok bool) { return getPlangetFreeAttributeTypeOk(o.Free) } // SetFree sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetFree(v PlangetFreeRetType) { setPlangetFreeAttributeType(&o.Free, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetId() (ret PlanGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -201,16 +244,19 @@ func (o *Plan) GetId() (ret PlanGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetIdOk() (ret PlanGetIdRetType, ok bool) { return getPlanGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetId(v PlanGetIdRetType) { setPlanGetIdAttributeType(&o.Id, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetName() (ret PlanGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -218,16 +264,19 @@ func (o *Plan) GetName() (ret PlanGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetNameOk() (ret PlanGetNameRetType, ok bool) { return getPlanGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetName(v PlanGetNameRetType) { setPlanGetNameAttributeType(&o.Name, v) } // GetSkuName returns the SkuName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetSkuName() (ret PlanGetSkuNameRetType) { ret, _ = o.GetSkuNameOk() return ret @@ -235,15 +284,18 @@ func (o *Plan) GetSkuName() (ret PlanGetSkuNameRetType) { // GetSkuNameOk returns a tuple with the SkuName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) GetSkuNameOk() (ret PlanGetSkuNameRetType, ok bool) { return getPlanGetSkuNameAttributeTypeOk(o.SkuName) } // SetSkuName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Plan) SetSkuName(v PlanGetSkuNameRetType) { setPlanGetSkuNameAttributeType(&o.SkuName, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Plan) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPlanGetDescriptionAttributeTypeOk(o.Description); ok { @@ -264,37 +316,45 @@ func (o Plan) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePlan struct { value *Plan isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlan) Get() *Plan { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlan) Set(val *Plan) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlan) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlan) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePlan(val *Plan) *NullablePlan { return &NullablePlan{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePlan) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePlan) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_raw_credentials.go b/services/redis/model_raw_credentials.go index e05dcb305..978222e55 100644 --- a/services/redis/model_raw_credentials.go +++ b/services/redis/model_raw_credentials.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &RawCredentials{} */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RawCredentialsGetCredentialsAttributeType = *Credentials + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RawCredentialsGetCredentialsArgType = Credentials + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RawCredentialsGetCredentialsRetType = Credentials +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRawCredentialsGetCredentialsAttributeTypeOk(arg RawCredentialsGetCredentialsAttributeType) (ret RawCredentialsGetCredentialsRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getRawCredentialsGetCredentialsAttributeTypeOk(arg RawCredentialsGetCredent return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRawCredentialsGetCredentialsAttributeType(arg *RawCredentialsGetCredentialsAttributeType, val RawCredentialsGetCredentialsRetType) { *arg = &val } // RawCredentials struct for RawCredentials +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RawCredentials struct { // REQUIRED Credentials RawCredentialsGetCredentialsAttributeType `json:"credentials" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _RawCredentials RawCredentials // NewRawCredentials instantiates a new RawCredentials 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRawCredentials(credentials RawCredentialsGetCredentialsArgType) *RawCredentials { this := RawCredentials{} setRawCredentialsGetCredentialsAttributeType(&this.Credentials, credentials) @@ -58,12 +69,14 @@ func NewRawCredentials(credentials RawCredentialsGetCredentialsArgType) *RawCred // NewRawCredentialsWithDefaults instantiates a new RawCredentials 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRawCredentialsWithDefaults() *RawCredentials { this := RawCredentials{} return &this } // GetCredentials returns the Credentials field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RawCredentials) GetCredentials() (ret RawCredentialsGetCredentialsRetType) { ret, _ = o.GetCredentialsOk() return ret @@ -71,15 +84,18 @@ func (o *RawCredentials) GetCredentials() (ret RawCredentialsGetCredentialsRetTy // GetCredentialsOk returns a tuple with the Credentials field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RawCredentials) GetCredentialsOk() (ret RawCredentialsGetCredentialsRetType, ok bool) { return getRawCredentialsGetCredentialsAttributeTypeOk(o.Credentials) } // SetCredentials sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *RawCredentials) SetCredentials(v RawCredentialsGetCredentialsRetType) { setRawCredentialsGetCredentialsAttributeType(&o.Credentials, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o RawCredentials) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRawCredentialsGetCredentialsAttributeTypeOk(o.Credentials); ok { @@ -88,37 +104,45 @@ func (o RawCredentials) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRawCredentials struct { value *RawCredentials isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRawCredentials) Get() *RawCredentials { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRawCredentials) Set(val *RawCredentials) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRawCredentials) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRawCredentials) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRawCredentials(val *RawCredentials) *NullableRawCredentials { return &NullableRawCredentials{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRawCredentials) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRawCredentials) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_restore.go b/services/redis/model_restore.go index 0a3b8ef70..8dccaa185 100644 --- a/services/redis/model_restore.go +++ b/services/redis/model_restore.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Restore{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetBackupIdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetBackupIdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetBackupIdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRestoreGetBackupIdAttributeTypeOk(arg RestoreGetBackupIdAttributeType) (ret RestoreGetBackupIdRetType, ok bool) { if arg == nil { return ret, false @@ -33,6 +40,7 @@ func getRestoreGetBackupIdAttributeTypeOk(arg RestoreGetBackupIdAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRestoreGetBackupIdAttributeType(arg *RestoreGetBackupIdAttributeType, val RestoreGetBackupIdRetType) { *arg = &val } @@ -42,8 +50,10 @@ func setRestoreGetBackupIdAttributeType(arg *RestoreGetBackupIdAttributeType, va */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetFinishedAtAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRestoreGetFinishedAtAttributeTypeOk(arg RestoreGetFinishedAtAttributeType) (ret RestoreGetFinishedAtRetType, ok bool) { if arg == nil { return ret, false @@ -51,11 +61,15 @@ func getRestoreGetFinishedAtAttributeTypeOk(arg RestoreGetFinishedAtAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRestoreGetFinishedAtAttributeType(arg *RestoreGetFinishedAtAttributeType, val RestoreGetFinishedAtRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetFinishedAtArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetFinishedAtRetType = string /* @@ -63,10 +77,16 @@ type RestoreGetFinishedAtRetType = string */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetIdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetIdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetIdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRestoreGetIdAttributeTypeOk(arg RestoreGetIdAttributeType) (ret RestoreGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -74,6 +94,7 @@ func getRestoreGetIdAttributeTypeOk(arg RestoreGetIdAttributeType) (ret RestoreG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRestoreGetIdAttributeType(arg *RestoreGetIdAttributeType, val RestoreGetIdRetType) { *arg = &val } @@ -83,8 +104,10 @@ func setRestoreGetIdAttributeType(arg *RestoreGetIdAttributeType, val RestoreGet */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetStatusAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRestoreGetStatusAttributeTypeOk(arg RestoreGetStatusAttributeType) (ret RestoreGetStatusRetType, ok bool) { if arg == nil { return ret, false @@ -92,11 +115,15 @@ func getRestoreGetStatusAttributeTypeOk(arg RestoreGetStatusAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRestoreGetStatusAttributeType(arg *RestoreGetStatusAttributeType, val RestoreGetStatusRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetStatusArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetStatusRetType = string /* @@ -104,8 +131,10 @@ type RestoreGetStatusRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetTriggeredAtAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getRestoreGetTriggeredAtAttributeTypeOk(arg RestoreGetTriggeredAtAttributeType) (ret RestoreGetTriggeredAtRetType, ok bool) { if arg == nil { return ret, false @@ -113,14 +142,19 @@ func getRestoreGetTriggeredAtAttributeTypeOk(arg RestoreGetTriggeredAtAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setRestoreGetTriggeredAtAttributeType(arg *RestoreGetTriggeredAtAttributeType, val RestoreGetTriggeredAtRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetTriggeredAtArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type RestoreGetTriggeredAtRetType = string // Restore struct for Restore +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Restore struct { // REQUIRED BackupId RestoreGetBackupIdAttributeType `json:"backup_id" required:"true"` @@ -133,12 +167,14 @@ type Restore struct { TriggeredAt RestoreGetTriggeredAtAttributeType `json:"triggered_at,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Restore Restore // NewRestore instantiates a new Restore 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRestore(backupId RestoreGetBackupIdArgType, finishedAt RestoreGetFinishedAtArgType, id RestoreGetIdArgType, status RestoreGetStatusArgType) *Restore { this := Restore{} setRestoreGetBackupIdAttributeType(&this.BackupId, backupId) @@ -151,12 +187,14 @@ func NewRestore(backupId RestoreGetBackupIdArgType, finishedAt RestoreGetFinishe // NewRestoreWithDefaults instantiates a new Restore 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewRestoreWithDefaults() *Restore { this := Restore{} return &this } // GetBackupId returns the BackupId field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetBackupId() (ret RestoreGetBackupIdRetType) { ret, _ = o.GetBackupIdOk() return ret @@ -164,16 +202,19 @@ func (o *Restore) GetBackupId() (ret RestoreGetBackupIdRetType) { // GetBackupIdOk returns a tuple with the BackupId field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetBackupIdOk() (ret RestoreGetBackupIdRetType, ok bool) { return getRestoreGetBackupIdAttributeTypeOk(o.BackupId) } // SetBackupId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) SetBackupId(v RestoreGetBackupIdRetType) { setRestoreGetBackupIdAttributeType(&o.BackupId, v) } // GetFinishedAt returns the FinishedAt field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetFinishedAt() (ret RestoreGetFinishedAtRetType) { ret, _ = o.GetFinishedAtOk() return ret @@ -181,16 +222,19 @@ func (o *Restore) GetFinishedAt() (ret RestoreGetFinishedAtRetType) { // GetFinishedAtOk returns a tuple with the FinishedAt field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetFinishedAtOk() (ret RestoreGetFinishedAtRetType, ok bool) { return getRestoreGetFinishedAtAttributeTypeOk(o.FinishedAt) } // SetFinishedAt sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) SetFinishedAt(v RestoreGetFinishedAtRetType) { setRestoreGetFinishedAtAttributeType(&o.FinishedAt, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetId() (ret RestoreGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -198,16 +242,19 @@ func (o *Restore) GetId() (ret RestoreGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetIdOk() (ret RestoreGetIdRetType, ok bool) { return getRestoreGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) SetId(v RestoreGetIdRetType) { setRestoreGetIdAttributeType(&o.Id, v) } // GetStatus returns the Status field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetStatus() (ret RestoreGetStatusRetType) { ret, _ = o.GetStatusOk() return ret @@ -215,16 +262,19 @@ func (o *Restore) GetStatus() (ret RestoreGetStatusRetType) { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetStatusOk() (ret RestoreGetStatusRetType, ok bool) { return getRestoreGetStatusAttributeTypeOk(o.Status) } // SetStatus sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) SetStatus(v RestoreGetStatusRetType) { setRestoreGetStatusAttributeType(&o.Status, v) } // GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetTriggeredAt() (res RestoreGetTriggeredAtRetType) { res, _ = o.GetTriggeredAtOk() return @@ -232,21 +282,25 @@ func (o *Restore) GetTriggeredAt() (res RestoreGetTriggeredAtRetType) { // GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) GetTriggeredAtOk() (ret RestoreGetTriggeredAtRetType, ok bool) { return getRestoreGetTriggeredAtAttributeTypeOk(o.TriggeredAt) } // HasTriggeredAt returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) HasTriggeredAt() bool { _, ok := o.GetTriggeredAtOk() return ok } // SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Restore) SetTriggeredAt(v RestoreGetTriggeredAtRetType) { setRestoreGetTriggeredAtAttributeType(&o.TriggeredAt, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Restore) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getRestoreGetBackupIdAttributeTypeOk(o.BackupId); ok { @@ -267,37 +321,45 @@ func (o Restore) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableRestore struct { value *Restore isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRestore) Get() *Restore { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRestore) Set(val *Restore) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRestore) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRestore) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableRestore(val *Restore) *NullableRestore { return &NullableRestore{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableRestore) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableRestore) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_schema.go b/services/redis/model_schema.go index b082f1246..3a3b9d09d 100644 --- a/services/redis/model_schema.go +++ b/services/redis/model_schema.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &Schema{} */ // isFreeform +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SchemaGetParametersAttributeType = *map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SchemaGetParametersArgType = map[string]interface{} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SchemaGetParametersRetType = map[string]interface{} +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getSchemaGetParametersAttributeTypeOk(arg SchemaGetParametersAttributeType) (ret SchemaGetParametersRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getSchemaGetParametersAttributeTypeOk(arg SchemaGetParametersAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setSchemaGetParametersAttributeType(arg *SchemaGetParametersAttributeType, val SchemaGetParametersRetType) { *arg = &val } // Schema struct for Schema +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Schema struct { // REQUIRED Parameters SchemaGetParametersAttributeType `json:"parameters" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Schema Schema // NewSchema instantiates a new Schema 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewSchema(parameters SchemaGetParametersArgType) *Schema { this := Schema{} setSchemaGetParametersAttributeType(&this.Parameters, parameters) @@ -58,12 +69,14 @@ func NewSchema(parameters SchemaGetParametersArgType) *Schema { // NewSchemaWithDefaults instantiates a new Schema 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewSchemaWithDefaults() *Schema { this := Schema{} return &this } // GetParameters returns the Parameters field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Schema) GetParameters() (ret SchemaGetParametersRetType) { ret, _ = o.GetParametersOk() return ret @@ -71,15 +84,18 @@ func (o *Schema) GetParameters() (ret SchemaGetParametersRetType) { // GetParametersOk returns a tuple with the Parameters field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Schema) GetParametersOk() (ret SchemaGetParametersRetType, ok bool) { return getSchemaGetParametersAttributeTypeOk(o.Parameters) } // SetParameters sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Schema) SetParameters(v SchemaGetParametersRetType) { setSchemaGetParametersAttributeType(&o.Parameters, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Schema) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getSchemaGetParametersAttributeTypeOk(o.Parameters); ok { @@ -88,37 +104,45 @@ func (o Schema) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableSchema struct { value *Schema isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableSchema) Get() *Schema { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableSchema) Set(val *Schema) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableSchema) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableSchema) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableSchema(val *Schema) *NullableSchema { return &NullableSchema{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableSchema) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableSchema) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_trigger_restore_response.go b/services/redis/model_trigger_restore_response.go index 53519f057..400d96b1d 100644 --- a/services/redis/model_trigger_restore_response.go +++ b/services/redis/model_trigger_restore_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,10 +23,16 @@ var _ MappedNullable = &TriggerRestoreResponse{} */ // isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TriggerRestoreResponseGetIdAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TriggerRestoreResponseGetIdArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TriggerRestoreResponseGetIdRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTriggerRestoreResponseGetIdAttributeTypeOk(arg TriggerRestoreResponseGetIdAttributeType) (ret TriggerRestoreResponseGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -33,22 +40,26 @@ func getTriggerRestoreResponseGetIdAttributeTypeOk(arg TriggerRestoreResponseGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTriggerRestoreResponseGetIdAttributeType(arg *TriggerRestoreResponseGetIdAttributeType, val TriggerRestoreResponseGetIdRetType) { *arg = &val } // TriggerRestoreResponse struct for TriggerRestoreResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TriggerRestoreResponse struct { // REQUIRED Id TriggerRestoreResponseGetIdAttributeType `json:"id" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _TriggerRestoreResponse TriggerRestoreResponse // NewTriggerRestoreResponse instantiates a new TriggerRestoreResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTriggerRestoreResponse(id TriggerRestoreResponseGetIdArgType) *TriggerRestoreResponse { this := TriggerRestoreResponse{} setTriggerRestoreResponseGetIdAttributeType(&this.Id, id) @@ -58,12 +69,14 @@ func NewTriggerRestoreResponse(id TriggerRestoreResponseGetIdArgType) *TriggerRe // NewTriggerRestoreResponseWithDefaults instantiates a new TriggerRestoreResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTriggerRestoreResponseWithDefaults() *TriggerRestoreResponse { this := TriggerRestoreResponse{} return &this } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TriggerRestoreResponse) GetId() (ret TriggerRestoreResponseGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -71,15 +84,18 @@ func (o *TriggerRestoreResponse) GetId() (ret TriggerRestoreResponseGetIdRetType // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TriggerRestoreResponse) GetIdOk() (ret TriggerRestoreResponseGetIdRetType, ok bool) { return getTriggerRestoreResponseGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TriggerRestoreResponse) SetId(v TriggerRestoreResponseGetIdRetType) { setTriggerRestoreResponseGetIdAttributeType(&o.Id, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o TriggerRestoreResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getTriggerRestoreResponseGetIdAttributeTypeOk(o.Id); ok { @@ -88,37 +104,45 @@ func (o TriggerRestoreResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTriggerRestoreResponse struct { value *TriggerRestoreResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTriggerRestoreResponse) Get() *TriggerRestoreResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTriggerRestoreResponse) Set(val *TriggerRestoreResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTriggerRestoreResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTriggerRestoreResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTriggerRestoreResponse(val *TriggerRestoreResponse) *NullableTriggerRestoreResponse { return &NullableTriggerRestoreResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTriggerRestoreResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTriggerRestoreResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_update_backups_config_payload.go b/services/redis/model_update_backups_config_payload.go index 9ae8011bc..bb581beb9 100644 --- a/services/redis/model_update_backups_config_payload.go +++ b/services/redis/model_update_backups_config_payload.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateBackupsConfigPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigPayloadGetEncryptionKeyAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateBackupsConfigPayloadGetEncryptionKeyAttributeTypeOk(arg UpdateBackupsConfigPayloadGetEncryptionKeyAttributeType) (ret UpdateBackupsConfigPayloadGetEncryptionKeyRetType, ok bool) { if arg == nil { return ret, false @@ -31,14 +34,19 @@ func getUpdateBackupsConfigPayloadGetEncryptionKeyAttributeTypeOk(arg UpdateBack return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateBackupsConfigPayloadGetEncryptionKeyAttributeType(arg *UpdateBackupsConfigPayloadGetEncryptionKeyAttributeType, val UpdateBackupsConfigPayloadGetEncryptionKeyRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigPayloadGetEncryptionKeyArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigPayloadGetEncryptionKeyRetType = string // UpdateBackupsConfigPayload struct for UpdateBackupsConfigPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigPayload struct { EncryptionKey UpdateBackupsConfigPayloadGetEncryptionKeyAttributeType `json:"encryption_key,omitempty"` } @@ -47,6 +55,7 @@ type UpdateBackupsConfigPayload struct { // 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateBackupsConfigPayload() *UpdateBackupsConfigPayload { this := UpdateBackupsConfigPayload{} return &this @@ -55,12 +64,14 @@ func NewUpdateBackupsConfigPayload() *UpdateBackupsConfigPayload { // NewUpdateBackupsConfigPayloadWithDefaults instantiates a new UpdateBackupsConfigPayload 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateBackupsConfigPayloadWithDefaults() *UpdateBackupsConfigPayload { this := UpdateBackupsConfigPayload{} return &this } // GetEncryptionKey returns the EncryptionKey field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateBackupsConfigPayload) GetEncryptionKey() (res UpdateBackupsConfigPayloadGetEncryptionKeyRetType) { res, _ = o.GetEncryptionKeyOk() return @@ -68,21 +79,25 @@ func (o *UpdateBackupsConfigPayload) GetEncryptionKey() (res UpdateBackupsConfig // GetEncryptionKeyOk returns a tuple with the EncryptionKey field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateBackupsConfigPayload) GetEncryptionKeyOk() (ret UpdateBackupsConfigPayloadGetEncryptionKeyRetType, ok bool) { return getUpdateBackupsConfigPayloadGetEncryptionKeyAttributeTypeOk(o.EncryptionKey) } // HasEncryptionKey returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateBackupsConfigPayload) HasEncryptionKey() bool { _, ok := o.GetEncryptionKeyOk() return ok } // SetEncryptionKey gets a reference to the given string and assigns it to the EncryptionKey field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateBackupsConfigPayload) SetEncryptionKey(v UpdateBackupsConfigPayloadGetEncryptionKeyRetType) { setUpdateBackupsConfigPayloadGetEncryptionKeyAttributeType(&o.EncryptionKey, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateBackupsConfigPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateBackupsConfigPayloadGetEncryptionKeyAttributeTypeOk(o.EncryptionKey); ok { @@ -91,37 +106,45 @@ func (o UpdateBackupsConfigPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateBackupsConfigPayload struct { value *UpdateBackupsConfigPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateBackupsConfigPayload) Get() *UpdateBackupsConfigPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateBackupsConfigPayload) Set(val *UpdateBackupsConfigPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateBackupsConfigPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateBackupsConfigPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateBackupsConfigPayload(val *UpdateBackupsConfigPayload) *NullableUpdateBackupsConfigPayload { return &NullableUpdateBackupsConfigPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateBackupsConfigPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateBackupsConfigPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/model_update_backups_config_response.go b/services/redis/model_update_backups_config_response.go index 6b44f4a3e..d954dfc27 100644 --- a/services/redis/model_update_backups_config_response.go +++ b/services/redis/model_update_backups_config_response.go @@ -8,6 +8,7 @@ API version: 1.1.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package redis import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateBackupsConfigResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateBackupsConfigResponseGetMessageAttributeTypeOk(arg UpdateBackupsConfigResponseGetMessageAttributeType) (ret UpdateBackupsConfigResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,25 +34,32 @@ func getUpdateBackupsConfigResponseGetMessageAttributeTypeOk(arg UpdateBackupsCo return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateBackupsConfigResponseGetMessageAttributeType(arg *UpdateBackupsConfigResponseGetMessageAttributeType, val UpdateBackupsConfigResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigResponseGetMessageRetType = string // UpdateBackupsConfigResponse struct for UpdateBackupsConfigResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateBackupsConfigResponse struct { // REQUIRED Message UpdateBackupsConfigResponseGetMessageAttributeType `json:"message" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateBackupsConfigResponse UpdateBackupsConfigResponse // NewUpdateBackupsConfigResponse instantiates a new UpdateBackupsConfigResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateBackupsConfigResponse(message UpdateBackupsConfigResponseGetMessageArgType) *UpdateBackupsConfigResponse { this := UpdateBackupsConfigResponse{} setUpdateBackupsConfigResponseGetMessageAttributeType(&this.Message, message) @@ -59,12 +69,14 @@ func NewUpdateBackupsConfigResponse(message UpdateBackupsConfigResponseGetMessag // NewUpdateBackupsConfigResponseWithDefaults instantiates a new UpdateBackupsConfigResponse 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 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateBackupsConfigResponseWithDefaults() *UpdateBackupsConfigResponse { this := UpdateBackupsConfigResponse{} return &this } // GetMessage returns the Message field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateBackupsConfigResponse) GetMessage() (ret UpdateBackupsConfigResponseGetMessageRetType) { ret, _ = o.GetMessageOk() return ret @@ -72,15 +84,18 @@ func (o *UpdateBackupsConfigResponse) GetMessage() (ret UpdateBackupsConfigRespo // GetMessageOk returns a tuple with the Message field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateBackupsConfigResponse) GetMessageOk() (ret UpdateBackupsConfigResponseGetMessageRetType, ok bool) { return getUpdateBackupsConfigResponseGetMessageAttributeTypeOk(o.Message) } // SetMessage sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateBackupsConfigResponse) SetMessage(v UpdateBackupsConfigResponseGetMessageRetType) { setUpdateBackupsConfigResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateBackupsConfigResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateBackupsConfigResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -89,37 +104,45 @@ func (o UpdateBackupsConfigResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateBackupsConfigResponse struct { value *UpdateBackupsConfigResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateBackupsConfigResponse) Get() *UpdateBackupsConfigResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateBackupsConfigResponse) Set(val *UpdateBackupsConfigResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateBackupsConfigResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateBackupsConfigResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateBackupsConfigResponse(val *UpdateBackupsConfigResponse) *NullableUpdateBackupsConfigResponse { return &NullableUpdateBackupsConfigResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateBackupsConfigResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateBackupsConfigResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/redis/oas_commit b/services/redis/oas_commit index 588ee296b..853627d06 100644 --- a/services/redis/oas_commit +++ b/services/redis/oas_commit @@ -1 +1 @@ -964ac4ce34f0b6417f2496a1d48585c4926dee3a +335aa32af4d6c0d2a036b8567773da2f051f7efb diff --git a/services/redis/utils.go b/services/redis/utils.go index 71532f25b..59f012786 100644 --- a/services/redis/utils.go +++ b/services/redis/utils.go @@ -18,341 +18,419 @@ import ( ) // PtrBool is a helper routine that returns a pointer to given boolean value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrBool(v bool) *bool { return &v } // PtrInt is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt(v int) *int { return &v } // PtrInt32 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt32(v int32) *int32 { return &v } // PtrInt64 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt64(v int64) *int64 { return &v } // PtrFloat32 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat32(v float32) *float32 { return &v } // PtrFloat64 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat64(v float64) *float64 { return &v } // PtrString is a helper routine that returns a pointer to given string value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrString(v string) *string { return &v } // PtrTime is helper routine that returns a pointer to given Time value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrTime(v time.Time) *time.Time { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableValue[T any] struct { value *T isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) Get() *T { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Set(val *T) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBool struct { value *bool isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) Get() *bool { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Set(val *bool) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBool(val *bool) *NullableBool { return &NullableBool{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt struct { value *int isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) Get() *int { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Set(val *int) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt(val *int) *NullableInt { return &NullableInt{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt32 struct { value *int32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) Get() *int32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Set(val *int32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt32(val *int32) *NullableInt32 { return &NullableInt32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt64 struct { value *int64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) Get() *int64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Set(val *int64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt64(val *int64) *NullableInt64 { return &NullableInt64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat32 struct { value *float32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) Get() *float32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Set(val *float32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat32(val *float32) *NullableFloat32 { return &NullableFloat32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat64 struct { value *float64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) Get() *float64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Set(val *float64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat64(val *float64) *NullableFloat64 { return &NullableFloat64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableString struct { value *string isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) Get() *string { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Set(val *string) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableString(val *string) *NullableString { return &NullableString{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTime struct { value *time.Time isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) Get() *time.Time { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Set(val *time.Time) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTime(val *time.Time) *NullableTime { return &NullableTime{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) MarshalJSON() ([]byte, error) { return v.value.MarshalJSON() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } // IsNil checks if an input is nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func IsNil(i interface{}) bool { if i == nil { return true @@ -369,13 +447,16 @@ func IsNil(i interface{}) bool { return false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MappedNullable interface { ToMap() (map[string]interface{}, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // randString returns a random string with a specified length. It panics if n <= 0. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func randString(n int) string { b := make([]byte, n) for i := range b { diff --git a/services/redis/v1api/api_default.go b/services/redis/v1api/api_default.go new file mode 100644 index 000000000..225b82631 --- /dev/null +++ b/services/redis/v1api/api_default.go @@ -0,0 +1,2867 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "os" + "strings" + + "github.com/stackitcloud/stackit-sdk-go/core/config" + "github.com/stackitcloud/stackit-sdk-go/core/oapierror" +) + +type DefaultAPI interface { + + /* + CreateBackup create a backup + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiCreateBackupRequest + */ + CreateBackup(ctx context.Context, instanceId string, projectId string) ApiCreateBackupRequest + + // CreateBackupExecute executes the request + // @return []CreateBackupResponseItem + CreateBackupExecute(r ApiCreateBackupRequest) ([]CreateBackupResponseItem, *http.Response, error) + + /* + CreateCredentials create new credentials + + Create new service credentials + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @return ApiCreateCredentialsRequest + */ + CreateCredentials(ctx context.Context, projectId string, instanceId string) ApiCreateCredentialsRequest + + // CreateCredentialsExecute executes the request + // @return CredentialsResponse + CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CredentialsResponse, *http.Response, error) + + /* + CreateInstance provision + + Provision a service instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiCreateInstanceRequest + */ + CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest + + // CreateInstanceExecute executes the request + // @return CreateInstanceResponse + CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, *http.Response, error) + + /* + DeleteCredentials delete credentials by id + + Delete a service credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @param credentialsId Id of the credentials being deleted + @return ApiDeleteCredentialsRequest + */ + DeleteCredentials(ctx context.Context, projectId string, instanceId string, credentialsId string) ApiDeleteCredentialsRequest + + // DeleteCredentialsExecute executes the request + DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (*http.Response, error) + + /* + DeleteInstance delete service instance + + Deprovision a service instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Id of instance being deleted + @return ApiDeleteInstanceRequest + */ + DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest + + // DeleteInstanceExecute executes the request + DeleteInstanceExecute(r ApiDeleteInstanceRequest) (*http.Response, error) + + /* + DownloadBackup download backup + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param backupId Backup id + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiDownloadBackupRequest + */ + DownloadBackup(ctx context.Context, backupId int32, instanceId string, projectId string) ApiDownloadBackupRequest + + // DownloadBackupExecute executes the request + // @return *os.File + DownloadBackupExecute(r ApiDownloadBackupRequest) (*os.File, *http.Response, error) + + /* + GetCredentials get credentials by id + + get a service credentials by credentials id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @param credentialsId Credentials id of credentials to fetch + @return ApiGetCredentialsRequest + */ + GetCredentials(ctx context.Context, projectId string, instanceId string, credentialsId string) ApiGetCredentialsRequest + + // GetCredentialsExecute executes the request + // @return CredentialsResponse + GetCredentialsExecute(r ApiGetCredentialsRequest) (*CredentialsResponse, *http.Response, error) + + /* + GetInstance get a service instance + + get a service instance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @return ApiGetInstanceRequest + */ + GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest + + // GetInstanceExecute executes the request + // @return Instance + GetInstanceExecute(r ApiGetInstanceRequest) (*Instance, *http.Response, error) + + /* + GetMetrics get latest metrics for cpu load, memory and disk usage + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiGetMetricsRequest + */ + GetMetrics(ctx context.Context, instanceId string, projectId string) ApiGetMetricsRequest + + // GetMetricsExecute executes the request + // @return GetMetricsResponse + GetMetricsExecute(r ApiGetMetricsRequest) (*GetMetricsResponse, *http.Response, error) + + /* + ListBackups get latest backup information for provided instanceId + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiListBackupsRequest + */ + ListBackups(ctx context.Context, instanceId string, projectId string) ApiListBackupsRequest + + // ListBackupsExecute executes the request + // @return ListBackupsResponse + ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, *http.Response, error) + + /* + ListCredentials get list of credentials ids + + get list all credentials ids for instance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @return ApiListCredentialsRequest + */ + ListCredentials(ctx context.Context, projectId string, instanceId string) ApiListCredentialsRequest + + // ListCredentialsExecute executes the request + // @return ListCredentialsResponse + ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, *http.Response, error) + + /* + ListInstances get service instances list + + Get a list of available instances + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListInstancesRequest + */ + ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest + + // ListInstancesExecute executes the request + // @return ListInstancesResponse + ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, *http.Response, error) + + /* + ListOfferings get the service offerings + + Get the service offerings that the service broker offers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @return ApiListOfferingsRequest + */ + ListOfferings(ctx context.Context, projectId string) ApiListOfferingsRequest + + // ListOfferingsExecute executes the request + // @return ListOfferingsResponse + ListOfferingsExecute(r ApiListOfferingsRequest) (*ListOfferingsResponse, *http.Response, error) + + /* + ListRestores get latest restore information for provided instanceId + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiListRestoresRequest + */ + ListRestores(ctx context.Context, instanceId string, projectId string) ApiListRestoresRequest + + // ListRestoresExecute executes the request + // @return ListRestoresResponse + ListRestoresExecute(r ApiListRestoresRequest) (*ListRestoresResponse, *http.Response, error) + + /* + PartialUpdateInstance update a service instance + + Update a service instance. This could be a sgw acl update or a plan upgrade. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId id of the instance being updated + @return ApiPartialUpdateInstanceRequest + */ + PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest + + // PartialUpdateInstanceExecute executes the request + PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*http.Response, error) + + /* + TriggerRecreate trigger a recreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiTriggerRecreateRequest + */ + TriggerRecreate(ctx context.Context, instanceId string, projectId string) ApiTriggerRecreateRequest + + // TriggerRecreateExecute executes the request + // @return CreateInstanceResponse + TriggerRecreateExecute(r ApiTriggerRecreateRequest) (*CreateInstanceResponse, *http.Response, error) + + /* + TriggerRestart trigger a restart + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiTriggerRestartRequest + */ + TriggerRestart(ctx context.Context, instanceId string, projectId string) ApiTriggerRestartRequest + + // TriggerRestartExecute executes the request + // @return CreateInstanceResponse + TriggerRestartExecute(r ApiTriggerRestartRequest) (*CreateInstanceResponse, *http.Response, error) + + /* + TriggerRestore trigger a restore + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @param backupId Backup id + @return ApiTriggerRestoreRequest + */ + TriggerRestore(ctx context.Context, instanceId string, projectId string, backupId int32) ApiTriggerRestoreRequest + + // TriggerRestoreExecute executes the request + // @return TriggerRestoreResponse + TriggerRestoreExecute(r ApiTriggerRestoreRequest) (*TriggerRestoreResponse, *http.Response, error) + + /* + UpdateBackupsConfig backups configuration update + + Update the configuration for backups for your instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiUpdateBackupsConfigRequest + */ + UpdateBackupsConfig(ctx context.Context, instanceId string, projectId string) ApiUpdateBackupsConfigRequest + + // UpdateBackupsConfigExecute executes the request + // @return UpdateBackupsConfigResponse + UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, *http.Response, error) +} + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiCreateBackupRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiCreateBackupRequest) Execute() ([]CreateBackupResponseItem, *http.Response, error) { + return r.ApiService.CreateBackupExecute(r) +} + +/* +CreateBackup create a backup + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiCreateBackupRequest +*/ +func (a *DefaultAPIService) CreateBackup(ctx context.Context, instanceId string, projectId string) ApiCreateBackupRequest { + return ApiCreateBackupRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return []CreateBackupResponseItem +func (a *DefaultAPIService) CreateBackupExecute(r ApiCreateBackupRequest) ([]CreateBackupResponseItem, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CreateBackupResponseItem + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateBackup") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + instanceId string +} + +func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, *http.Response, error) { + return r.ApiService.CreateCredentialsExecute(r) +} + +/* +CreateCredentials create new credentials + +Create new service credentials + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @return ApiCreateCredentialsRequest +*/ +func (a *DefaultAPIService) CreateCredentials(ctx context.Context, projectId string, instanceId string) ApiCreateCredentialsRequest { + return ApiCreateCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// Execute executes the request +// +// @return CredentialsResponse +func (a *DefaultAPIService) CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CredentialsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateCredentials") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCreateInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + createInstancePayload *CreateInstancePayload +} + +// Parameters for the requested service instance provision +func (r ApiCreateInstanceRequest) CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest { + r.createInstancePayload = &createInstancePayload + return r +} + +func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, *http.Response, error) { + return r.ApiService.CreateInstanceExecute(r) +} + +/* +CreateInstance provision + +Provision a service instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiCreateInstanceRequest +*/ +func (a *DefaultAPIService) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest { + return ApiCreateInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateInstanceResponse +func (a *DefaultAPIService) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateInstanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateInstance") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createInstancePayload == nil { + return localVarReturnValue, nil, reportError("createInstancePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createInstancePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDeleteCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + instanceId string + credentialsId string +} + +func (r ApiDeleteCredentialsRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteCredentialsExecute(r) +} + +/* +DeleteCredentials delete credentials by id + +Delete a service credentials. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @param credentialsId Id of the credentials being deleted + @return ApiDeleteCredentialsRequest +*/ +func (a *DefaultAPIService) DeleteCredentials(ctx context.Context, projectId string, instanceId string, credentialsId string) ApiDeleteCredentialsRequest { + return ApiDeleteCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + credentialsId: credentialsId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteCredentials") + if err != nil { + return nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials/{credentialsId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"credentialsId"+"}", url.PathEscape(parameterValueToString(r.credentialsId, "credentialsId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDeleteInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + instanceId string +} + +func (r ApiDeleteInstanceRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteInstanceExecute(r) +} + +/* +DeleteInstance delete service instance + +Deprovision a service instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Id of instance being deleted + @return ApiDeleteInstanceRequest +*/ +func (a *DefaultAPIService) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest { + return ApiDeleteInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) DeleteInstanceExecute(r ApiDeleteInstanceRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteInstance") + if err != nil { + return nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDownloadBackupRequest struct { + ctx context.Context + ApiService DefaultAPI + backupId int32 + instanceId string + projectId string +} + +func (r ApiDownloadBackupRequest) Execute() (*os.File, *http.Response, error) { + return r.ApiService.DownloadBackupExecute(r) +} + +/* +DownloadBackup download backup + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param backupId Backup id + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiDownloadBackupRequest +*/ +func (a *DefaultAPIService) DownloadBackup(ctx context.Context, backupId int32, instanceId string, projectId string) ApiDownloadBackupRequest { + return ApiDownloadBackupRequest{ + ApiService: a, + ctx: ctx, + backupId: backupId, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return *os.File +func (a *DefaultAPIService) DownloadBackupExecute(r ApiDownloadBackupRequest) (*os.File, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *os.File + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DownloadBackup") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backups/{backupId}/download" + localVarPath = strings.Replace(localVarPath, "{"+"backupId"+"}", url.PathEscape(parameterValueToString(r.backupId, "backupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/octet-stream", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + instanceId string + credentialsId string +} + +func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, *http.Response, error) { + return r.ApiService.GetCredentialsExecute(r) +} + +/* +GetCredentials get credentials by id + +get a service credentials by credentials id + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @param credentialsId Credentials id of credentials to fetch + @return ApiGetCredentialsRequest +*/ +func (a *DefaultAPIService) GetCredentials(ctx context.Context, projectId string, instanceId string, credentialsId string) ApiGetCredentialsRequest { + return ApiGetCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + credentialsId: credentialsId, + } +} + +// Execute executes the request +// +// @return CredentialsResponse +func (a *DefaultAPIService) GetCredentialsExecute(r ApiGetCredentialsRequest) (*CredentialsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CredentialsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetCredentials") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials/{credentialsId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"credentialsId"+"}", url.PathEscape(parameterValueToString(r.credentialsId, "credentialsId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + instanceId string +} + +func (r ApiGetInstanceRequest) Execute() (*Instance, *http.Response, error) { + return r.ApiService.GetInstanceExecute(r) +} + +/* +GetInstance get a service instance + +get a service instance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @return ApiGetInstanceRequest +*/ +func (a *DefaultAPIService) GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest { + return ApiGetInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// Execute executes the request +// +// @return Instance +func (a *DefaultAPIService) GetInstanceExecute(r ApiGetInstanceRequest) (*Instance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Instance + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetInstance") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 410 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiGetMetricsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiGetMetricsRequest) Execute() (*GetMetricsResponse, *http.Response, error) { + return r.ApiService.GetMetricsExecute(r) +} + +/* +GetMetrics get latest metrics for cpu load, memory and disk usage + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiGetMetricsRequest +*/ +func (a *DefaultAPIService) GetMetrics(ctx context.Context, instanceId string, projectId string) ApiGetMetricsRequest { + return ApiGetMetricsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return GetMetricsResponse +func (a *DefaultAPIService) GetMetricsExecute(r ApiGetMetricsRequest) (*GetMetricsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetMetricsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetMetrics") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/metrics" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListBackupsRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListBackupsRequest) Execute() (*ListBackupsResponse, *http.Response, error) { + return r.ApiService.ListBackupsExecute(r) +} + +/* +ListBackups get latest backup information for provided instanceId + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiListBackupsRequest +*/ +func (a *DefaultAPIService) ListBackups(ctx context.Context, instanceId string, projectId string) ApiListBackupsRequest { + return ApiListBackupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListBackupsResponse +func (a *DefaultAPIService) ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListBackupsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListBackups") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backups" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListCredentialsRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + instanceId string +} + +func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, *http.Response, error) { + return r.ApiService.ListCredentialsExecute(r) +} + +/* +ListCredentials get list of credentials ids + +get list all credentials ids for instance + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId Instance id + @return ApiListCredentialsRequest +*/ +func (a *DefaultAPIService) ListCredentials(ctx context.Context, projectId string, instanceId string) ApiListCredentialsRequest { + return ApiListCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// Execute executes the request +// +// @return ListCredentialsResponse +func (a *DefaultAPIService) ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListCredentialsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListCredentials") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/credentials" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListInstancesRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string +} + +func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, *http.Response, error) { + return r.ApiService.ListInstancesExecute(r) +} + +/* +ListInstances get service instances list + +Get a list of available instances + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @return ApiListInstancesRequest +*/ +func (a *DefaultAPIService) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest { + return ApiListInstancesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListInstancesResponse +func (a *DefaultAPIService) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListInstancesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListInstances") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListOfferingsRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string +} + +func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, *http.Response, error) { + return r.ApiService.ListOfferingsExecute(r) +} + +/* +ListOfferings get the service offerings + +Get the service offerings that the service broker offers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @return ApiListOfferingsRequest +*/ +func (a *DefaultAPIService) ListOfferings(ctx context.Context, projectId string) ApiListOfferingsRequest { + return ApiListOfferingsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListOfferingsResponse +func (a *DefaultAPIService) ListOfferingsExecute(r ApiListOfferingsRequest) (*ListOfferingsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListOfferingsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListOfferings") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/offerings" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiListRestoresRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiListRestoresRequest) Execute() (*ListRestoresResponse, *http.Response, error) { + return r.ApiService.ListRestoresExecute(r) +} + +/* +ListRestores get latest restore information for provided instanceId + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiListRestoresRequest +*/ +func (a *DefaultAPIService) ListRestores(ctx context.Context, instanceId string, projectId string) ApiListRestoresRequest { + return ApiListRestoresRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListRestoresResponse +func (a *DefaultAPIService) ListRestoresExecute(r ApiListRestoresRequest) (*ListRestoresResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListRestoresResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListRestores") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/restores" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiPartialUpdateInstanceRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + instanceId string + partialUpdateInstancePayload *PartialUpdateInstancePayload +} + +// Parameters for the requested update operation on service instance - sgw acl update, plan upgrade +func (r ApiPartialUpdateInstanceRequest) PartialUpdateInstancePayload(partialUpdateInstancePayload PartialUpdateInstancePayload) ApiPartialUpdateInstanceRequest { + r.partialUpdateInstancePayload = &partialUpdateInstancePayload + return r +} + +func (r ApiPartialUpdateInstanceRequest) Execute() (*http.Response, error) { + return r.ApiService.PartialUpdateInstanceExecute(r) +} + +/* +PartialUpdateInstance update a service instance + +Update a service instance. This could be a sgw acl update or a plan upgrade. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId + @param instanceId id of the instance being updated + @return ApiPartialUpdateInstanceRequest +*/ +func (a *DefaultAPIService) PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest { + return ApiPartialUpdateInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateInstance") + if err != nil { + return nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.partialUpdateInstancePayload == nil { + return nil, reportError("partialUpdateInstancePayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.partialUpdateInstancePayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarHTTPResponse, newErr + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiTriggerRecreateRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiTriggerRecreateRequest) Execute() (*CreateInstanceResponse, *http.Response, error) { + return r.ApiService.TriggerRecreateExecute(r) +} + +/* +TriggerRecreate trigger a recreate + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiTriggerRecreateRequest +*/ +func (a *DefaultAPIService) TriggerRecreate(ctx context.Context, instanceId string, projectId string) ApiTriggerRecreateRequest { + return ApiTriggerRecreateRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateInstanceResponse +func (a *DefaultAPIService) TriggerRecreateExecute(r ApiTriggerRecreateRequest) (*CreateInstanceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateInstanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TriggerRecreate") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/recreate" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiTriggerRestartRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string +} + +func (r ApiTriggerRestartRequest) Execute() (*CreateInstanceResponse, *http.Response, error) { + return r.ApiService.TriggerRestartExecute(r) +} + +/* +TriggerRestart trigger a restart + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiTriggerRestartRequest +*/ +func (a *DefaultAPIService) TriggerRestart(ctx context.Context, instanceId string, projectId string) ApiTriggerRestartRequest { + return ApiTriggerRestartRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateInstanceResponse +func (a *DefaultAPIService) TriggerRestartExecute(r ApiTriggerRestartRequest) (*CreateInstanceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateInstanceResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TriggerRestart") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/restart" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiTriggerRestoreRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + backupId int32 +} + +func (r ApiTriggerRestoreRequest) Execute() (*TriggerRestoreResponse, *http.Response, error) { + return r.ApiService.TriggerRestoreExecute(r) +} + +/* +TriggerRestore trigger a restore + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @param backupId Backup id + @return ApiTriggerRestoreRequest +*/ +func (a *DefaultAPIService) TriggerRestore(ctx context.Context, instanceId string, projectId string, backupId int32) ApiTriggerRestoreRequest { + return ApiTriggerRestoreRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + backupId: backupId, + } +} + +// Execute executes the request +// +// @return TriggerRestoreResponse +func (a *DefaultAPIService) TriggerRestoreExecute(r ApiTriggerRestoreRequest) (*TriggerRestoreResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TriggerRestoreResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TriggerRestore") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backups/{backupId}/restore" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"backupId"+"}", url.PathEscape(parameterValueToString(r.backupId, "backupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiUpdateBackupsConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + instanceId string + projectId string + updateBackupsConfigPayload *UpdateBackupsConfigPayload +} + +// Parameters for the requested backup configuration update +func (r ApiUpdateBackupsConfigRequest) UpdateBackupsConfigPayload(updateBackupsConfigPayload UpdateBackupsConfigPayload) ApiUpdateBackupsConfigRequest { + r.updateBackupsConfigPayload = &updateBackupsConfigPayload + return r +} + +func (r ApiUpdateBackupsConfigRequest) Execute() (*UpdateBackupsConfigResponse, *http.Response, error) { + return r.ApiService.UpdateBackupsConfigExecute(r) +} + +/* +UpdateBackupsConfig backups configuration update + +Update the configuration for backups for your instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId Instance id + @param projectId Project id on which user has permissions + @return ApiUpdateBackupsConfigRequest +*/ +func (a *DefaultAPIService) UpdateBackupsConfig(ctx context.Context, instanceId string, projectId string) ApiUpdateBackupsConfigRequest { + return ApiUpdateBackupsConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return UpdateBackupsConfigResponse +func (a *DefaultAPIService) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateBackupsConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateBackupsConfig") + if err != nil { + return localVarReturnValue, nil, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/instances/{instanceId}/backups-config" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateBackupsConfigPayload == nil { + return localVarReturnValue, nil, reportError("updateBackupsConfigPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateBackupsConfigPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/services/redis/v1api/api_default_mock.go b/services/redis/v1api/api_default_mock.go new file mode 100644 index 000000000..07dda88d7 --- /dev/null +++ b/services/redis/v1api/api_default_mock.go @@ -0,0 +1,422 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "context" + "net/http" + "os" +) + +// assert the implementation matches the interface +var _ DefaultAPI = &DefaultAPIServiceMock{} + +// DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. +// By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. +type DefaultAPIServiceMock struct { + // CreateBackupExecuteMock can be populated to implement the behavior of the CreateBackupExecute function of this mock + CreateBackupExecuteMock *func(r ApiCreateBackupRequest) ([]CreateBackupResponseItem, *http.Response, error) + // CreateCredentialsExecuteMock can be populated to implement the behavior of the CreateCredentialsExecute function of this mock + CreateCredentialsExecuteMock *func(r ApiCreateCredentialsRequest) (*CredentialsResponse, *http.Response, error) + // CreateInstanceExecuteMock can be populated to implement the behavior of the CreateInstanceExecute function of this mock + CreateInstanceExecuteMock *func(r ApiCreateInstanceRequest) (*CreateInstanceResponse, *http.Response, error) + // DeleteCredentialsExecuteMock can be populated to implement the behavior of the DeleteCredentialsExecute function of this mock + DeleteCredentialsExecuteMock *func(r ApiDeleteCredentialsRequest) (*http.Response, error) + // DeleteInstanceExecuteMock can be populated to implement the behavior of the DeleteInstanceExecute function of this mock + DeleteInstanceExecuteMock *func(r ApiDeleteInstanceRequest) (*http.Response, error) + // DownloadBackupExecuteMock can be populated to implement the behavior of the DownloadBackupExecute function of this mock + DownloadBackupExecuteMock *func(r ApiDownloadBackupRequest) (*os.File, *http.Response, error) + // GetCredentialsExecuteMock can be populated to implement the behavior of the GetCredentialsExecute function of this mock + GetCredentialsExecuteMock *func(r ApiGetCredentialsRequest) (*CredentialsResponse, *http.Response, error) + // GetInstanceExecuteMock can be populated to implement the behavior of the GetInstanceExecute function of this mock + GetInstanceExecuteMock *func(r ApiGetInstanceRequest) (*Instance, *http.Response, error) + // GetMetricsExecuteMock can be populated to implement the behavior of the GetMetricsExecute function of this mock + GetMetricsExecuteMock *func(r ApiGetMetricsRequest) (*GetMetricsResponse, *http.Response, error) + // ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock + ListBackupsExecuteMock *func(r ApiListBackupsRequest) (*ListBackupsResponse, *http.Response, error) + // ListCredentialsExecuteMock can be populated to implement the behavior of the ListCredentialsExecute function of this mock + ListCredentialsExecuteMock *func(r ApiListCredentialsRequest) (*ListCredentialsResponse, *http.Response, error) + // ListInstancesExecuteMock can be populated to implement the behavior of the ListInstancesExecute function of this mock + ListInstancesExecuteMock *func(r ApiListInstancesRequest) (*ListInstancesResponse, *http.Response, error) + // ListOfferingsExecuteMock can be populated to implement the behavior of the ListOfferingsExecute function of this mock + ListOfferingsExecuteMock *func(r ApiListOfferingsRequest) (*ListOfferingsResponse, *http.Response, error) + // ListRestoresExecuteMock can be populated to implement the behavior of the ListRestoresExecute function of this mock + ListRestoresExecuteMock *func(r ApiListRestoresRequest) (*ListRestoresResponse, *http.Response, error) + // PartialUpdateInstanceExecuteMock can be populated to implement the behavior of the PartialUpdateInstanceExecute function of this mock + PartialUpdateInstanceExecuteMock *func(r ApiPartialUpdateInstanceRequest) (*http.Response, error) + // TriggerRecreateExecuteMock can be populated to implement the behavior of the TriggerRecreateExecute function of this mock + TriggerRecreateExecuteMock *func(r ApiTriggerRecreateRequest) (*CreateInstanceResponse, *http.Response, error) + // TriggerRestartExecuteMock can be populated to implement the behavior of the TriggerRestartExecute function of this mock + TriggerRestartExecuteMock *func(r ApiTriggerRestartRequest) (*CreateInstanceResponse, *http.Response, error) + // TriggerRestoreExecuteMock can be populated to implement the behavior of the TriggerRestoreExecute function of this mock + TriggerRestoreExecuteMock *func(r ApiTriggerRestoreRequest) (*TriggerRestoreResponse, *http.Response, error) + // UpdateBackupsConfigExecuteMock can be populated to implement the behavior of the UpdateBackupsConfigExecute function of this mock + UpdateBackupsConfigExecuteMock *func(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, *http.Response, error) +} + +func (a DefaultAPIServiceMock) CreateBackup(ctx context.Context, instanceId string, projectId string) ApiCreateBackupRequest { + return ApiCreateBackupRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// CreateBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateBackupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateBackupExecute(r ApiCreateBackupRequest) ([]CreateBackupResponseItem, *http.Response, error) { + if a.CreateBackupExecuteMock == nil { + var localVarReturnValue []CreateBackupResponseItem + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.CreateBackupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateCredentials(ctx context.Context, projectId string, instanceId string) ApiCreateCredentialsRequest { + return ApiCreateCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// CreateCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateCredentialsExecute(r ApiCreateCredentialsRequest) (*CredentialsResponse, *http.Response, error) { + if a.CreateCredentialsExecuteMock == nil { + var localVarReturnValue *CredentialsResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.CreateCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest { + return ApiCreateInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// CreateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, *http.Response, error) { + if a.CreateInstanceExecuteMock == nil { + var localVarReturnValue *CreateInstanceResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.CreateInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteCredentials(ctx context.Context, projectId string, instanceId string, credentialsId string) ApiDeleteCredentialsRequest { + return ApiDeleteCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + credentialsId: credentialsId, + } +} + +// DeleteCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteCredentialsExecute(r ApiDeleteCredentialsRequest) (*http.Response, error) { + if a.DeleteCredentialsExecuteMock == nil { + return &http.Response{}, nil + } + + return (*a.DeleteCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest { + return ApiDeleteInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// DeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteInstanceExecute(r ApiDeleteInstanceRequest) (*http.Response, error) { + if a.DeleteInstanceExecuteMock == nil { + return &http.Response{}, nil + } + + return (*a.DeleteInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DownloadBackup(ctx context.Context, backupId int32, instanceId string, projectId string) ApiDownloadBackupRequest { + return ApiDownloadBackupRequest{ + ApiService: a, + ctx: ctx, + backupId: backupId, + instanceId: instanceId, + projectId: projectId, + } +} + +// DownloadBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DownloadBackupExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DownloadBackupExecute(r ApiDownloadBackupRequest) (*os.File, *http.Response, error) { + if a.DownloadBackupExecuteMock == nil { + var localVarReturnValue *os.File + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.DownloadBackupExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetCredentials(ctx context.Context, projectId string, instanceId string, credentialsId string) ApiGetCredentialsRequest { + return ApiGetCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + credentialsId: credentialsId, + } +} + +// GetCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetCredentialsExecute(r ApiGetCredentialsRequest) (*CredentialsResponse, *http.Response, error) { + if a.GetCredentialsExecuteMock == nil { + var localVarReturnValue *CredentialsResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.GetCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest { + return ApiGetInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// GetInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetInstanceExecute(r ApiGetInstanceRequest) (*Instance, *http.Response, error) { + if a.GetInstanceExecuteMock == nil { + var localVarReturnValue *Instance + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.GetInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetMetrics(ctx context.Context, instanceId string, projectId string) ApiGetMetricsRequest { + return ApiGetMetricsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// GetMetricsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetMetricsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetMetricsExecute(r ApiGetMetricsRequest) (*GetMetricsResponse, *http.Response, error) { + if a.GetMetricsExecuteMock == nil { + var localVarReturnValue *GetMetricsResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.GetMetricsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, instanceId string, projectId string) ApiListBackupsRequest { + return ApiListBackupsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListBackupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, *http.Response, error) { + if a.ListBackupsExecuteMock == nil { + var localVarReturnValue *ListBackupsResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.ListBackupsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListCredentials(ctx context.Context, projectId string, instanceId string) ApiListCredentialsRequest { + return ApiListCredentialsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// ListCredentialsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListCredentialsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListCredentialsExecute(r ApiListCredentialsRequest) (*ListCredentialsResponse, *http.Response, error) { + if a.ListCredentialsExecuteMock == nil { + var localVarReturnValue *ListCredentialsResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.ListCredentialsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest { + return ApiListInstancesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ListInstancesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListInstancesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, *http.Response, error) { + if a.ListInstancesExecuteMock == nil { + var localVarReturnValue *ListInstancesResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.ListInstancesExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListOfferings(ctx context.Context, projectId string) ApiListOfferingsRequest { + return ApiListOfferingsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// ListOfferingsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListOfferingsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListOfferingsExecute(r ApiListOfferingsRequest) (*ListOfferingsResponse, *http.Response, error) { + if a.ListOfferingsExecuteMock == nil { + var localVarReturnValue *ListOfferingsResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.ListOfferingsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListRestores(ctx context.Context, instanceId string, projectId string) ApiListRestoresRequest { + return ApiListRestoresRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// ListRestoresExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListRestoresExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListRestoresExecute(r ApiListRestoresRequest) (*ListRestoresResponse, *http.Response, error) { + if a.ListRestoresExecuteMock == nil { + var localVarReturnValue *ListRestoresResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.ListRestoresExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest { + return ApiPartialUpdateInstanceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + instanceId: instanceId, + } +} + +// PartialUpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*http.Response, error) { + if a.PartialUpdateInstanceExecuteMock == nil { + return &http.Response{}, nil + } + + return (*a.PartialUpdateInstanceExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) TriggerRecreate(ctx context.Context, instanceId string, projectId string) ApiTriggerRecreateRequest { + return ApiTriggerRecreateRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// TriggerRecreateExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the TriggerRecreateExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) TriggerRecreateExecute(r ApiTriggerRecreateRequest) (*CreateInstanceResponse, *http.Response, error) { + if a.TriggerRecreateExecuteMock == nil { + var localVarReturnValue *CreateInstanceResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.TriggerRecreateExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) TriggerRestart(ctx context.Context, instanceId string, projectId string) ApiTriggerRestartRequest { + return ApiTriggerRestartRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// TriggerRestartExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the TriggerRestartExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) TriggerRestartExecute(r ApiTriggerRestartRequest) (*CreateInstanceResponse, *http.Response, error) { + if a.TriggerRestartExecuteMock == nil { + var localVarReturnValue *CreateInstanceResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.TriggerRestartExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) TriggerRestore(ctx context.Context, instanceId string, projectId string, backupId int32) ApiTriggerRestoreRequest { + return ApiTriggerRestoreRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + backupId: backupId, + } +} + +// TriggerRestoreExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the TriggerRestoreExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) TriggerRestoreExecute(r ApiTriggerRestoreRequest) (*TriggerRestoreResponse, *http.Response, error) { + if a.TriggerRestoreExecuteMock == nil { + var localVarReturnValue *TriggerRestoreResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.TriggerRestoreExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) UpdateBackupsConfig(ctx context.Context, instanceId string, projectId string) ApiUpdateBackupsConfigRequest { + return ApiUpdateBackupsConfigRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + projectId: projectId, + } +} + +// UpdateBackupsConfigExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateBackupsConfigExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, *http.Response, error) { + if a.UpdateBackupsConfigExecuteMock == nil { + var localVarReturnValue *UpdateBackupsConfigResponse + return localVarReturnValue, &http.Response{}, nil + } + + return (*a.UpdateBackupsConfigExecuteMock)(r) +} diff --git a/services/redis/v1api/client.go b/services/redis/v1api/client.go new file mode 100644 index 000000000..89c3e54cf --- /dev/null +++ b/services/redis/v1api/client.go @@ -0,0 +1,658 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/stackitcloud/stackit-sdk-go/core/auth" + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the STACKIT Redis API API v1.1.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *config.Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI DefaultAPI +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { + cfg := NewConfiguration() + + for _, option := range opts { + err := option(cfg) + if err != nil { + return nil, fmt.Errorf("configuring the client: %w", err) + } + } + + err := config.ConfigureRegion(cfg) + if err != nil { + return nil, fmt.Errorf("configuring region: %w", err) + } + + if cfg.HTTPClient == nil { + cfg.HTTPClient = &http.Client{} + } + + authRoundTripper, err := auth.SetupAuth(cfg) + if err != nil { + return nil, fmt.Errorf("setting up authentication: %w", err) + } + + roundTripper := authRoundTripper + if cfg.Middleware != nil { + roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...) + } + + cfg.HTTPClient.Transport = roundTripper + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c, nil +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *config.Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/services/redis/v1api/configuration.go b/services/redis/v1api/configuration.go new file mode 100644 index 000000000..99525d388 --- /dev/null +++ b/services/redis/v1api/configuration.go @@ -0,0 +1,40 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *config.Configuration { + cfg := &config.Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "stackit-sdk-go/redis", + Debug: false, + Servers: config.ServerConfigurations{ + { + URL: "https://redis.api.{region}stackit.cloud", + Description: "No description provided", + Variables: map[string]config.ServerVariable{ + "region": { + Description: "No description provided", + DefaultValue: "eu01.", + EnumValues: []string{ + "eu01.", + }, + }, + }, + }, + }, + OperationServers: map[string]config.ServerConfigurations{}, + } + return cfg +} diff --git a/services/redis/v1api/model_backup.go b/services/redis/v1api/model_backup.go new file mode 100644 index 000000000..dbff8fbbb --- /dev/null +++ b/services/redis/v1api/model_backup.go @@ -0,0 +1,320 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Backup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Backup{} + +// Backup struct for Backup +type Backup struct { + Downloadable *bool `json:"downloadable,omitempty"` + FinishedAt string `json:"finished_at"` + Id int32 `json:"id"` + Size *int32 `json:"size,omitempty"` + Status string `json:"status"` + TriggeredAt *string `json:"triggered_at,omitempty"` +} + +type _Backup Backup + +// NewBackup instantiates a new Backup 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 +func NewBackup(finishedAt string, id int32, status string) *Backup { + this := Backup{} + this.FinishedAt = finishedAt + this.Id = id + this.Status = status + return &this +} + +// NewBackupWithDefaults instantiates a new Backup 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 +func NewBackupWithDefaults() *Backup { + this := Backup{} + return &this +} + +// GetDownloadable returns the Downloadable field value if set, zero value otherwise. +func (o *Backup) GetDownloadable() bool { + if o == nil || IsNil(o.Downloadable) { + var ret bool + return ret + } + return *o.Downloadable +} + +// GetDownloadableOk returns a tuple with the Downloadable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Backup) GetDownloadableOk() (*bool, bool) { + if o == nil || IsNil(o.Downloadable) { + return nil, false + } + return o.Downloadable, true +} + +// HasDownloadable returns a boolean if a field has been set. +func (o *Backup) HasDownloadable() bool { + if o != nil && !IsNil(o.Downloadable) { + return true + } + + return false +} + +// SetDownloadable gets a reference to the given bool and assigns it to the Downloadable field. +func (o *Backup) SetDownloadable(v bool) { + o.Downloadable = &v +} + +// GetFinishedAt returns the FinishedAt field value +func (o *Backup) GetFinishedAt() string { + if o == nil { + var ret string + return ret + } + + return o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value +// and a boolean to check if the value has been set. +func (o *Backup) GetFinishedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FinishedAt, true +} + +// SetFinishedAt sets field value +func (o *Backup) SetFinishedAt(v string) { + o.FinishedAt = v +} + +// GetId returns the Id field value +func (o *Backup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Backup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Backup) SetId(v int32) { + o.Id = v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *Backup) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Backup) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *Backup) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *Backup) SetSize(v int32) { + o.Size = &v +} + +// GetStatus returns the Status field value +func (o *Backup) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Backup) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Backup) SetStatus(v string) { + o.Status = v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *Backup) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Backup) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *Backup) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *Backup) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +func (o Backup) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Backup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Downloadable) { + toSerialize["downloadable"] = o.Downloadable + } + toSerialize["finished_at"] = o.FinishedAt + toSerialize["id"] = o.Id + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + toSerialize["status"] = o.Status + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + return toSerialize, nil +} + +func (o *Backup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "finished_at", + "id", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBackup := _Backup{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varBackup) + + if err != nil { + return err + } + + *o = Backup(varBackup) + + return err +} + +type NullableBackup struct { + value *Backup + isSet bool +} + +func (v NullableBackup) Get() *Backup { + return v.value +} + +func (v *NullableBackup) Set(val *Backup) { + v.value = val + v.isSet = true +} + +func (v NullableBackup) IsSet() bool { + return v.isSet +} + +func (v *NullableBackup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBackup(val *Backup) *NullableBackup { + return &NullableBackup{value: val, isSet: true} +} + +func (v NullableBackup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBackup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_create_backup_response_item.go b/services/redis/v1api/model_create_backup_response_item.go new file mode 100644 index 000000000..a886835e6 --- /dev/null +++ b/services/redis/v1api/model_create_backup_response_item.go @@ -0,0 +1,184 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateBackupResponseItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateBackupResponseItem{} + +// CreateBackupResponseItem struct for CreateBackupResponseItem +type CreateBackupResponseItem struct { + Id int32 `json:"id"` + Message string `json:"message"` +} + +type _CreateBackupResponseItem CreateBackupResponseItem + +// NewCreateBackupResponseItem instantiates a new CreateBackupResponseItem 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 +func NewCreateBackupResponseItem(id int32, message string) *CreateBackupResponseItem { + this := CreateBackupResponseItem{} + this.Id = id + this.Message = message + return &this +} + +// NewCreateBackupResponseItemWithDefaults instantiates a new CreateBackupResponseItem 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 +func NewCreateBackupResponseItemWithDefaults() *CreateBackupResponseItem { + this := CreateBackupResponseItem{} + return &this +} + +// GetId returns the Id field value +func (o *CreateBackupResponseItem) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CreateBackupResponseItem) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CreateBackupResponseItem) SetId(v int32) { + o.Id = v +} + +// GetMessage returns the Message field value +func (o *CreateBackupResponseItem) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *CreateBackupResponseItem) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *CreateBackupResponseItem) SetMessage(v string) { + o.Message = v +} + +func (o CreateBackupResponseItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateBackupResponseItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *CreateBackupResponseItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateBackupResponseItem := _CreateBackupResponseItem{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateBackupResponseItem) + + if err != nil { + return err + } + + *o = CreateBackupResponseItem(varCreateBackupResponseItem) + + return err +} + +type NullableCreateBackupResponseItem struct { + value *CreateBackupResponseItem + isSet bool +} + +func (v NullableCreateBackupResponseItem) Get() *CreateBackupResponseItem { + return v.value +} + +func (v *NullableCreateBackupResponseItem) Set(val *CreateBackupResponseItem) { + v.value = val + v.isSet = true +} + +func (v NullableCreateBackupResponseItem) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateBackupResponseItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateBackupResponseItem(val *CreateBackupResponseItem) *NullableCreateBackupResponseItem { + return &NullableCreateBackupResponseItem{value: val, isSet: true} +} + +func (v NullableCreateBackupResponseItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateBackupResponseItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_create_instance_payload.go b/services/redis/v1api/model_create_instance_payload.go new file mode 100644 index 000000000..ee7606089 --- /dev/null +++ b/services/redis/v1api/model_create_instance_payload.go @@ -0,0 +1,220 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateInstancePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateInstancePayload{} + +// CreateInstancePayload struct for CreateInstancePayload +type CreateInstancePayload struct { + InstanceName string `json:"instanceName"` + Parameters *InstanceParameters `json:"parameters,omitempty"` + PlanId string `json:"planId"` +} + +type _CreateInstancePayload CreateInstancePayload + +// NewCreateInstancePayload instantiates a new CreateInstancePayload 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 +func NewCreateInstancePayload(instanceName string, planId string) *CreateInstancePayload { + this := CreateInstancePayload{} + this.InstanceName = instanceName + this.PlanId = planId + return &this +} + +// NewCreateInstancePayloadWithDefaults instantiates a new CreateInstancePayload 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 +func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { + this := CreateInstancePayload{} + return &this +} + +// GetInstanceName returns the InstanceName field value +func (o *CreateInstancePayload) GetInstanceName() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceName +} + +// GetInstanceNameOk returns a tuple with the InstanceName field value +// and a boolean to check if the value has been set. +func (o *CreateInstancePayload) GetInstanceNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceName, true +} + +// SetInstanceName sets field value +func (o *CreateInstancePayload) SetInstanceName(v string) { + o.InstanceName = v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *CreateInstancePayload) GetParameters() InstanceParameters { + if o == nil || IsNil(o.Parameters) { + var ret InstanceParameters + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateInstancePayload) GetParametersOk() (*InstanceParameters, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *CreateInstancePayload) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given InstanceParameters and assigns it to the Parameters field. +func (o *CreateInstancePayload) SetParameters(v InstanceParameters) { + o.Parameters = &v +} + +// GetPlanId returns the PlanId field value +func (o *CreateInstancePayload) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *CreateInstancePayload) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *CreateInstancePayload) SetPlanId(v string) { + o.PlanId = v +} + +func (o CreateInstancePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instanceName"] = o.InstanceName + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + toSerialize["planId"] = o.PlanId + return toSerialize, nil +} + +func (o *CreateInstancePayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "instanceName", + "planId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateInstancePayload := _CreateInstancePayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateInstancePayload) + + if err != nil { + return err + } + + *o = CreateInstancePayload(varCreateInstancePayload) + + return err +} + +type NullableCreateInstancePayload struct { + value *CreateInstancePayload + isSet bool +} + +func (v NullableCreateInstancePayload) Get() *CreateInstancePayload { + return v.value +} + +func (v *NullableCreateInstancePayload) Set(val *CreateInstancePayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateInstancePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateInstancePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateInstancePayload(val *CreateInstancePayload) *NullableCreateInstancePayload { + return &NullableCreateInstancePayload{value: val, isSet: true} +} + +func (v NullableCreateInstancePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateInstancePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_create_instance_response.go b/services/redis/v1api/model_create_instance_response.go new file mode 100644 index 000000000..5fcd5e2b5 --- /dev/null +++ b/services/redis/v1api/model_create_instance_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateInstanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateInstanceResponse{} + +// CreateInstanceResponse struct for CreateInstanceResponse +type CreateInstanceResponse struct { + InstanceId string `json:"instanceId"` +} + +type _CreateInstanceResponse CreateInstanceResponse + +// NewCreateInstanceResponse instantiates a new CreateInstanceResponse 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 +func NewCreateInstanceResponse(instanceId string) *CreateInstanceResponse { + this := CreateInstanceResponse{} + this.InstanceId = instanceId + return &this +} + +// NewCreateInstanceResponseWithDefaults instantiates a new CreateInstanceResponse 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 +func NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { + this := CreateInstanceResponse{} + return &this +} + +// GetInstanceId returns the InstanceId field value +func (o *CreateInstanceResponse) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *CreateInstanceResponse) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *CreateInstanceResponse) SetInstanceId(v string) { + o.InstanceId = v +} + +func (o CreateInstanceResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instanceId"] = o.InstanceId + return toSerialize, nil +} + +func (o *CreateInstanceResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "instanceId", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateInstanceResponse := _CreateInstanceResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateInstanceResponse) + + if err != nil { + return err + } + + *o = CreateInstanceResponse(varCreateInstanceResponse) + + return err +} + +type NullableCreateInstanceResponse struct { + value *CreateInstanceResponse + isSet bool +} + +func (v NullableCreateInstanceResponse) Get() *CreateInstanceResponse { + return v.value +} + +func (v *NullableCreateInstanceResponse) Set(val *CreateInstanceResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateInstanceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateInstanceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateInstanceResponse(val *CreateInstanceResponse) *NullableCreateInstanceResponse { + return &NullableCreateInstanceResponse{value: val, isSet: true} +} + +func (v NullableCreateInstanceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateInstanceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_credentials.go b/services/redis/v1api/model_credentials.go new file mode 100644 index 000000000..313ff558e --- /dev/null +++ b/services/redis/v1api/model_credentials.go @@ -0,0 +1,356 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Credentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Credentials{} + +// Credentials struct for Credentials +type Credentials struct { + Host string `json:"host"` + Hosts []string `json:"hosts,omitempty"` + LoadBalancedHost *string `json:"load_balanced_host,omitempty"` + Password string `json:"password"` + Port *int32 `json:"port,omitempty"` + Uri *string `json:"uri,omitempty"` + Username string `json:"username"` +} + +type _Credentials Credentials + +// NewCredentials instantiates a new Credentials 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 +func NewCredentials(host string, password string, username string) *Credentials { + this := Credentials{} + this.Host = host + this.Password = password + this.Username = username + return &this +} + +// NewCredentialsWithDefaults instantiates a new Credentials 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 +func NewCredentialsWithDefaults() *Credentials { + this := Credentials{} + return &this +} + +// GetHost returns the Host field value +func (o *Credentials) GetHost() string { + if o == nil { + var ret string + return ret + } + + return o.Host +} + +// GetHostOk returns a tuple with the Host field value +// and a boolean to check if the value has been set. +func (o *Credentials) GetHostOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Host, true +} + +// SetHost sets field value +func (o *Credentials) SetHost(v string) { + o.Host = v +} + +// GetHosts returns the Hosts field value if set, zero value otherwise. +func (o *Credentials) GetHosts() []string { + if o == nil || IsNil(o.Hosts) { + var ret []string + return ret + } + return o.Hosts +} + +// GetHostsOk returns a tuple with the Hosts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Credentials) GetHostsOk() ([]string, bool) { + if o == nil || IsNil(o.Hosts) { + return nil, false + } + return o.Hosts, true +} + +// HasHosts returns a boolean if a field has been set. +func (o *Credentials) HasHosts() bool { + if o != nil && !IsNil(o.Hosts) { + return true + } + + return false +} + +// SetHosts gets a reference to the given []string and assigns it to the Hosts field. +func (o *Credentials) SetHosts(v []string) { + o.Hosts = v +} + +// GetLoadBalancedHost returns the LoadBalancedHost field value if set, zero value otherwise. +func (o *Credentials) GetLoadBalancedHost() string { + if o == nil || IsNil(o.LoadBalancedHost) { + var ret string + return ret + } + return *o.LoadBalancedHost +} + +// GetLoadBalancedHostOk returns a tuple with the LoadBalancedHost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Credentials) GetLoadBalancedHostOk() (*string, bool) { + if o == nil || IsNil(o.LoadBalancedHost) { + return nil, false + } + return o.LoadBalancedHost, true +} + +// HasLoadBalancedHost returns a boolean if a field has been set. +func (o *Credentials) HasLoadBalancedHost() bool { + if o != nil && !IsNil(o.LoadBalancedHost) { + return true + } + + return false +} + +// SetLoadBalancedHost gets a reference to the given string and assigns it to the LoadBalancedHost field. +func (o *Credentials) SetLoadBalancedHost(v string) { + o.LoadBalancedHost = &v +} + +// GetPassword returns the Password field value +func (o *Credentials) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *Credentials) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *Credentials) SetPassword(v string) { + o.Password = v +} + +// GetPort returns the Port field value if set, zero value otherwise. +func (o *Credentials) GetPort() int32 { + if o == nil || IsNil(o.Port) { + var ret int32 + return ret + } + return *o.Port +} + +// GetPortOk returns a tuple with the Port field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Credentials) GetPortOk() (*int32, bool) { + if o == nil || IsNil(o.Port) { + return nil, false + } + return o.Port, true +} + +// HasPort returns a boolean if a field has been set. +func (o *Credentials) HasPort() bool { + if o != nil && !IsNil(o.Port) { + return true + } + + return false +} + +// SetPort gets a reference to the given int32 and assigns it to the Port field. +func (o *Credentials) SetPort(v int32) { + o.Port = &v +} + +// GetUri returns the Uri field value if set, zero value otherwise. +func (o *Credentials) GetUri() string { + if o == nil || IsNil(o.Uri) { + var ret string + return ret + } + return *o.Uri +} + +// GetUriOk returns a tuple with the Uri field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Credentials) GetUriOk() (*string, bool) { + if o == nil || IsNil(o.Uri) { + return nil, false + } + return o.Uri, true +} + +// HasUri returns a boolean if a field has been set. +func (o *Credentials) HasUri() bool { + if o != nil && !IsNil(o.Uri) { + return true + } + + return false +} + +// SetUri gets a reference to the given string and assigns it to the Uri field. +func (o *Credentials) SetUri(v string) { + o.Uri = &v +} + +// GetUsername returns the Username field value +func (o *Credentials) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *Credentials) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *Credentials) SetUsername(v string) { + o.Username = v +} + +func (o Credentials) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Credentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["host"] = o.Host + if !IsNil(o.Hosts) { + toSerialize["hosts"] = o.Hosts + } + if !IsNil(o.LoadBalancedHost) { + toSerialize["load_balanced_host"] = o.LoadBalancedHost + } + toSerialize["password"] = o.Password + if !IsNil(o.Port) { + toSerialize["port"] = o.Port + } + if !IsNil(o.Uri) { + toSerialize["uri"] = o.Uri + } + toSerialize["username"] = o.Username + return toSerialize, nil +} + +func (o *Credentials) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "host", + "password", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCredentials := _Credentials{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCredentials) + + if err != nil { + return err + } + + *o = Credentials(varCredentials) + + return err +} + +type NullableCredentials struct { + value *Credentials + isSet bool +} + +func (v NullableCredentials) Get() *Credentials { + return v.value +} + +func (v *NullableCredentials) Set(val *Credentials) { + v.value = val + v.isSet = true +} + +func (v NullableCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentials(val *Credentials) *NullableCredentials { + return &NullableCredentials{value: val, isSet: true} +} + +func (v NullableCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_credentials_list_item.go b/services/redis/v1api/model_credentials_list_item.go new file mode 100644 index 000000000..a7273432b --- /dev/null +++ b/services/redis/v1api/model_credentials_list_item.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CredentialsListItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CredentialsListItem{} + +// CredentialsListItem struct for CredentialsListItem +type CredentialsListItem struct { + Id string `json:"id"` +} + +type _CredentialsListItem CredentialsListItem + +// NewCredentialsListItem instantiates a new CredentialsListItem 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 +func NewCredentialsListItem(id string) *CredentialsListItem { + this := CredentialsListItem{} + this.Id = id + return &this +} + +// NewCredentialsListItemWithDefaults instantiates a new CredentialsListItem 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 +func NewCredentialsListItemWithDefaults() *CredentialsListItem { + this := CredentialsListItem{} + return &this +} + +// GetId returns the Id field value +func (o *CredentialsListItem) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CredentialsListItem) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CredentialsListItem) SetId(v string) { + o.Id = v +} + +func (o CredentialsListItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CredentialsListItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +func (o *CredentialsListItem) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCredentialsListItem := _CredentialsListItem{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCredentialsListItem) + + if err != nil { + return err + } + + *o = CredentialsListItem(varCredentialsListItem) + + return err +} + +type NullableCredentialsListItem struct { + value *CredentialsListItem + isSet bool +} + +func (v NullableCredentialsListItem) Get() *CredentialsListItem { + return v.value +} + +func (v *NullableCredentialsListItem) Set(val *CredentialsListItem) { + v.value = val + v.isSet = true +} + +func (v NullableCredentialsListItem) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentialsListItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentialsListItem(val *CredentialsListItem) *NullableCredentialsListItem { + return &NullableCredentialsListItem{value: val, isSet: true} +} + +func (v NullableCredentialsListItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentialsListItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_credentials_response.go b/services/redis/v1api/model_credentials_response.go new file mode 100644 index 000000000..cb3ec7ed3 --- /dev/null +++ b/services/redis/v1api/model_credentials_response.go @@ -0,0 +1,220 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CredentialsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CredentialsResponse{} + +// CredentialsResponse struct for CredentialsResponse +type CredentialsResponse struct { + Id string `json:"id"` + Raw *RawCredentials `json:"raw,omitempty"` + Uri string `json:"uri"` +} + +type _CredentialsResponse CredentialsResponse + +// NewCredentialsResponse instantiates a new CredentialsResponse 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 +func NewCredentialsResponse(id string, uri string) *CredentialsResponse { + this := CredentialsResponse{} + this.Id = id + this.Uri = uri + return &this +} + +// NewCredentialsResponseWithDefaults instantiates a new CredentialsResponse 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 +func NewCredentialsResponseWithDefaults() *CredentialsResponse { + this := CredentialsResponse{} + return &this +} + +// GetId returns the Id field value +func (o *CredentialsResponse) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CredentialsResponse) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CredentialsResponse) SetId(v string) { + o.Id = v +} + +// GetRaw returns the Raw field value if set, zero value otherwise. +func (o *CredentialsResponse) GetRaw() RawCredentials { + if o == nil || IsNil(o.Raw) { + var ret RawCredentials + return ret + } + return *o.Raw +} + +// GetRawOk returns a tuple with the Raw field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CredentialsResponse) GetRawOk() (*RawCredentials, bool) { + if o == nil || IsNil(o.Raw) { + return nil, false + } + return o.Raw, true +} + +// HasRaw returns a boolean if a field has been set. +func (o *CredentialsResponse) HasRaw() bool { + if o != nil && !IsNil(o.Raw) { + return true + } + + return false +} + +// SetRaw gets a reference to the given RawCredentials and assigns it to the Raw field. +func (o *CredentialsResponse) SetRaw(v RawCredentials) { + o.Raw = &v +} + +// GetUri returns the Uri field value +func (o *CredentialsResponse) GetUri() string { + if o == nil { + var ret string + return ret + } + + return o.Uri +} + +// GetUriOk returns a tuple with the Uri field value +// and a boolean to check if the value has been set. +func (o *CredentialsResponse) GetUriOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Uri, true +} + +// SetUri sets field value +func (o *CredentialsResponse) SetUri(v string) { + o.Uri = v +} + +func (o CredentialsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CredentialsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.Raw) { + toSerialize["raw"] = o.Raw + } + toSerialize["uri"] = o.Uri + return toSerialize, nil +} + +func (o *CredentialsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "uri", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCredentialsResponse := _CredentialsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCredentialsResponse) + + if err != nil { + return err + } + + *o = CredentialsResponse(varCredentialsResponse) + + return err +} + +type NullableCredentialsResponse struct { + value *CredentialsResponse + isSet bool +} + +func (v NullableCredentialsResponse) Get() *CredentialsResponse { + return v.value +} + +func (v *NullableCredentialsResponse) Set(val *CredentialsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCredentialsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCredentialsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCredentialsResponse(val *CredentialsResponse) *NullableCredentialsResponse { + return &NullableCredentialsResponse{value: val, isSet: true} +} + +func (v NullableCredentialsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCredentialsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_error.go b/services/redis/v1api/model_error.go new file mode 100644 index 000000000..f16e34fc8 --- /dev/null +++ b/services/redis/v1api/model_error.go @@ -0,0 +1,184 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Error type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Error{} + +// Error struct for Error +type Error struct { + Description string `json:"description"` + Error string `json:"error"` +} + +type _Error Error + +// NewError instantiates a new Error 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 +func NewError(description string, error_ string) *Error { + this := Error{} + this.Description = description + this.Error = error_ + return &this +} + +// NewErrorWithDefaults instantiates a new Error 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 +func NewErrorWithDefaults() *Error { + this := Error{} + return &this +} + +// GetDescription returns the Description field value +func (o *Error) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *Error) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *Error) SetDescription(v string) { + o.Description = v +} + +// GetError returns the Error field value +func (o *Error) GetError() string { + if o == nil { + var ret string + return ret + } + + return o.Error +} + +// GetErrorOk returns a tuple with the Error field value +// and a boolean to check if the value has been set. +func (o *Error) GetErrorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Error, true +} + +// SetError sets field value +func (o *Error) SetError(v string) { + o.Error = v +} + +func (o Error) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Error) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["description"] = o.Description + toSerialize["error"] = o.Error + return toSerialize, nil +} + +func (o *Error) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "description", + "error", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varError := _Error{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varError) + + if err != nil { + return err + } + + *o = Error(varError) + + return err +} + +type NullableError struct { + value *Error + isSet bool +} + +func (v NullableError) Get() *Error { + return v.value +} + +func (v *NullableError) Set(val *Error) { + v.value = val + v.isSet = true +} + +func (v NullableError) IsSet() bool { + return v.isSet +} + +func (v *NullableError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableError(val *Error) *NullableError { + return &NullableError{value: val, isSet: true} +} + +func (v NullableError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_get_metrics_response.go b/services/redis/v1api/model_get_metrics_response.go new file mode 100644 index 000000000..26d6a1734 --- /dev/null +++ b/services/redis/v1api/model_get_metrics_response.go @@ -0,0 +1,796 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetMetricsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetMetricsResponse{} + +// GetMetricsResponse struct for GetMetricsResponse +type GetMetricsResponse struct { + CpuIdleTime *int64 `json:"cpuIdleTime,omitempty"` + CpuLoadPercent float32 `json:"cpuLoadPercent"` + CpuSystemTime *int64 `json:"cpuSystemTime,omitempty"` + CpuUserTime *int64 `json:"cpuUserTime,omitempty"` + DiskEphemeralTotal int64 `json:"diskEphemeralTotal"` + DiskEphemeralUsed int64 `json:"diskEphemeralUsed"` + DiskPersistentTotal int64 `json:"diskPersistentTotal"` + DiskPersistentUsed int64 `json:"diskPersistentUsed"` + Load1 float32 `json:"load1"` + Load15 float32 `json:"load15"` + Load5 float32 `json:"load5"` + MemoryTotal int64 `json:"memoryTotal"` + MemoryUsed int64 `json:"memoryUsed"` + ParachuteDiskEphemeralActivated bool `json:"parachuteDiskEphemeralActivated"` + ParachuteDiskEphemeralTotal int64 `json:"parachuteDiskEphemeralTotal"` + ParachuteDiskEphemeralUsed int64 `json:"parachuteDiskEphemeralUsed"` + ParachuteDiskEphemeralUsedPercent int64 `json:"parachuteDiskEphemeralUsedPercent"` + ParachuteDiskEphemeralUsedThreshold int64 `json:"parachuteDiskEphemeralUsedThreshold"` + ParachuteDiskPersistentActivated bool `json:"parachuteDiskPersistentActivated"` + ParachuteDiskPersistentTotal int64 `json:"parachuteDiskPersistentTotal"` + ParachuteDiskPersistentUsed int64 `json:"parachuteDiskPersistentUsed"` + ParachuteDiskPersistentUsedPercent int64 `json:"parachuteDiskPersistentUsedPercent"` + ParachuteDiskPersistentUsedThreshold int64 `json:"parachuteDiskPersistentUsedThreshold"` +} + +type _GetMetricsResponse GetMetricsResponse + +// NewGetMetricsResponse instantiates a new GetMetricsResponse 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 +func NewGetMetricsResponse(cpuLoadPercent float32, diskEphemeralTotal int64, diskEphemeralUsed int64, diskPersistentTotal int64, diskPersistentUsed int64, load1 float32, load15 float32, load5 float32, memoryTotal int64, memoryUsed int64, parachuteDiskEphemeralActivated bool, parachuteDiskEphemeralTotal int64, parachuteDiskEphemeralUsed int64, parachuteDiskEphemeralUsedPercent int64, parachuteDiskEphemeralUsedThreshold int64, parachuteDiskPersistentActivated bool, parachuteDiskPersistentTotal int64, parachuteDiskPersistentUsed int64, parachuteDiskPersistentUsedPercent int64, parachuteDiskPersistentUsedThreshold int64) *GetMetricsResponse { + this := GetMetricsResponse{} + this.CpuLoadPercent = cpuLoadPercent + this.DiskEphemeralTotal = diskEphemeralTotal + this.DiskEphemeralUsed = diskEphemeralUsed + this.DiskPersistentTotal = diskPersistentTotal + this.DiskPersistentUsed = diskPersistentUsed + this.Load1 = load1 + this.Load15 = load15 + this.Load5 = load5 + this.MemoryTotal = memoryTotal + this.MemoryUsed = memoryUsed + this.ParachuteDiskEphemeralActivated = parachuteDiskEphemeralActivated + this.ParachuteDiskEphemeralTotal = parachuteDiskEphemeralTotal + this.ParachuteDiskEphemeralUsed = parachuteDiskEphemeralUsed + this.ParachuteDiskEphemeralUsedPercent = parachuteDiskEphemeralUsedPercent + this.ParachuteDiskEphemeralUsedThreshold = parachuteDiskEphemeralUsedThreshold + this.ParachuteDiskPersistentActivated = parachuteDiskPersistentActivated + this.ParachuteDiskPersistentTotal = parachuteDiskPersistentTotal + this.ParachuteDiskPersistentUsed = parachuteDiskPersistentUsed + this.ParachuteDiskPersistentUsedPercent = parachuteDiskPersistentUsedPercent + this.ParachuteDiskPersistentUsedThreshold = parachuteDiskPersistentUsedThreshold + return &this +} + +// NewGetMetricsResponseWithDefaults instantiates a new GetMetricsResponse 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 +func NewGetMetricsResponseWithDefaults() *GetMetricsResponse { + this := GetMetricsResponse{} + return &this +} + +// GetCpuIdleTime returns the CpuIdleTime field value if set, zero value otherwise. +func (o *GetMetricsResponse) GetCpuIdleTime() int64 { + if o == nil || IsNil(o.CpuIdleTime) { + var ret int64 + return ret + } + return *o.CpuIdleTime +} + +// GetCpuIdleTimeOk returns a tuple with the CpuIdleTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetCpuIdleTimeOk() (*int64, bool) { + if o == nil || IsNil(o.CpuIdleTime) { + return nil, false + } + return o.CpuIdleTime, true +} + +// HasCpuIdleTime returns a boolean if a field has been set. +func (o *GetMetricsResponse) HasCpuIdleTime() bool { + if o != nil && !IsNil(o.CpuIdleTime) { + return true + } + + return false +} + +// SetCpuIdleTime gets a reference to the given int64 and assigns it to the CpuIdleTime field. +func (o *GetMetricsResponse) SetCpuIdleTime(v int64) { + o.CpuIdleTime = &v +} + +// GetCpuLoadPercent returns the CpuLoadPercent field value +func (o *GetMetricsResponse) GetCpuLoadPercent() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.CpuLoadPercent +} + +// GetCpuLoadPercentOk returns a tuple with the CpuLoadPercent field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetCpuLoadPercentOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.CpuLoadPercent, true +} + +// SetCpuLoadPercent sets field value +func (o *GetMetricsResponse) SetCpuLoadPercent(v float32) { + o.CpuLoadPercent = v +} + +// GetCpuSystemTime returns the CpuSystemTime field value if set, zero value otherwise. +func (o *GetMetricsResponse) GetCpuSystemTime() int64 { + if o == nil || IsNil(o.CpuSystemTime) { + var ret int64 + return ret + } + return *o.CpuSystemTime +} + +// GetCpuSystemTimeOk returns a tuple with the CpuSystemTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetCpuSystemTimeOk() (*int64, bool) { + if o == nil || IsNil(o.CpuSystemTime) { + return nil, false + } + return o.CpuSystemTime, true +} + +// HasCpuSystemTime returns a boolean if a field has been set. +func (o *GetMetricsResponse) HasCpuSystemTime() bool { + if o != nil && !IsNil(o.CpuSystemTime) { + return true + } + + return false +} + +// SetCpuSystemTime gets a reference to the given int64 and assigns it to the CpuSystemTime field. +func (o *GetMetricsResponse) SetCpuSystemTime(v int64) { + o.CpuSystemTime = &v +} + +// GetCpuUserTime returns the CpuUserTime field value if set, zero value otherwise. +func (o *GetMetricsResponse) GetCpuUserTime() int64 { + if o == nil || IsNil(o.CpuUserTime) { + var ret int64 + return ret + } + return *o.CpuUserTime +} + +// GetCpuUserTimeOk returns a tuple with the CpuUserTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetCpuUserTimeOk() (*int64, bool) { + if o == nil || IsNil(o.CpuUserTime) { + return nil, false + } + return o.CpuUserTime, true +} + +// HasCpuUserTime returns a boolean if a field has been set. +func (o *GetMetricsResponse) HasCpuUserTime() bool { + if o != nil && !IsNil(o.CpuUserTime) { + return true + } + + return false +} + +// SetCpuUserTime gets a reference to the given int64 and assigns it to the CpuUserTime field. +func (o *GetMetricsResponse) SetCpuUserTime(v int64) { + o.CpuUserTime = &v +} + +// GetDiskEphemeralTotal returns the DiskEphemeralTotal field value +func (o *GetMetricsResponse) GetDiskEphemeralTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DiskEphemeralTotal +} + +// GetDiskEphemeralTotalOk returns a tuple with the DiskEphemeralTotal field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetDiskEphemeralTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DiskEphemeralTotal, true +} + +// SetDiskEphemeralTotal sets field value +func (o *GetMetricsResponse) SetDiskEphemeralTotal(v int64) { + o.DiskEphemeralTotal = v +} + +// GetDiskEphemeralUsed returns the DiskEphemeralUsed field value +func (o *GetMetricsResponse) GetDiskEphemeralUsed() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DiskEphemeralUsed +} + +// GetDiskEphemeralUsedOk returns a tuple with the DiskEphemeralUsed field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetDiskEphemeralUsedOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DiskEphemeralUsed, true +} + +// SetDiskEphemeralUsed sets field value +func (o *GetMetricsResponse) SetDiskEphemeralUsed(v int64) { + o.DiskEphemeralUsed = v +} + +// GetDiskPersistentTotal returns the DiskPersistentTotal field value +func (o *GetMetricsResponse) GetDiskPersistentTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DiskPersistentTotal +} + +// GetDiskPersistentTotalOk returns a tuple with the DiskPersistentTotal field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetDiskPersistentTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DiskPersistentTotal, true +} + +// SetDiskPersistentTotal sets field value +func (o *GetMetricsResponse) SetDiskPersistentTotal(v int64) { + o.DiskPersistentTotal = v +} + +// GetDiskPersistentUsed returns the DiskPersistentUsed field value +func (o *GetMetricsResponse) GetDiskPersistentUsed() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.DiskPersistentUsed +} + +// GetDiskPersistentUsedOk returns a tuple with the DiskPersistentUsed field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetDiskPersistentUsedOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.DiskPersistentUsed, true +} + +// SetDiskPersistentUsed sets field value +func (o *GetMetricsResponse) SetDiskPersistentUsed(v int64) { + o.DiskPersistentUsed = v +} + +// GetLoad1 returns the Load1 field value +func (o *GetMetricsResponse) GetLoad1() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Load1 +} + +// GetLoad1Ok returns a tuple with the Load1 field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetLoad1Ok() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Load1, true +} + +// SetLoad1 sets field value +func (o *GetMetricsResponse) SetLoad1(v float32) { + o.Load1 = v +} + +// GetLoad15 returns the Load15 field value +func (o *GetMetricsResponse) GetLoad15() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Load15 +} + +// GetLoad15Ok returns a tuple with the Load15 field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetLoad15Ok() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Load15, true +} + +// SetLoad15 sets field value +func (o *GetMetricsResponse) SetLoad15(v float32) { + o.Load15 = v +} + +// GetLoad5 returns the Load5 field value +func (o *GetMetricsResponse) GetLoad5() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Load5 +} + +// GetLoad5Ok returns a tuple with the Load5 field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetLoad5Ok() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Load5, true +} + +// SetLoad5 sets field value +func (o *GetMetricsResponse) SetLoad5(v float32) { + o.Load5 = v +} + +// GetMemoryTotal returns the MemoryTotal field value +func (o *GetMetricsResponse) GetMemoryTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.MemoryTotal +} + +// GetMemoryTotalOk returns a tuple with the MemoryTotal field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetMemoryTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.MemoryTotal, true +} + +// SetMemoryTotal sets field value +func (o *GetMetricsResponse) SetMemoryTotal(v int64) { + o.MemoryTotal = v +} + +// GetMemoryUsed returns the MemoryUsed field value +func (o *GetMetricsResponse) GetMemoryUsed() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.MemoryUsed +} + +// GetMemoryUsedOk returns a tuple with the MemoryUsed field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetMemoryUsedOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.MemoryUsed, true +} + +// SetMemoryUsed sets field value +func (o *GetMetricsResponse) SetMemoryUsed(v int64) { + o.MemoryUsed = v +} + +// GetParachuteDiskEphemeralActivated returns the ParachuteDiskEphemeralActivated field value +func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivated() bool { + if o == nil { + var ret bool + return ret + } + + return o.ParachuteDiskEphemeralActivated +} + +// GetParachuteDiskEphemeralActivatedOk returns a tuple with the ParachuteDiskEphemeralActivated field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskEphemeralActivatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskEphemeralActivated, true +} + +// SetParachuteDiskEphemeralActivated sets field value +func (o *GetMetricsResponse) SetParachuteDiskEphemeralActivated(v bool) { + o.ParachuteDiskEphemeralActivated = v +} + +// GetParachuteDiskEphemeralTotal returns the ParachuteDiskEphemeralTotal field value +func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskEphemeralTotal +} + +// GetParachuteDiskEphemeralTotalOk returns a tuple with the ParachuteDiskEphemeralTotal field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskEphemeralTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskEphemeralTotal, true +} + +// SetParachuteDiskEphemeralTotal sets field value +func (o *GetMetricsResponse) SetParachuteDiskEphemeralTotal(v int64) { + o.ParachuteDiskEphemeralTotal = v +} + +// GetParachuteDiskEphemeralUsed returns the ParachuteDiskEphemeralUsed field value +func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsed() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskEphemeralUsed +} + +// GetParachuteDiskEphemeralUsedOk returns a tuple with the ParachuteDiskEphemeralUsed field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskEphemeralUsed, true +} + +// SetParachuteDiskEphemeralUsed sets field value +func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsed(v int64) { + o.ParachuteDiskEphemeralUsed = v +} + +// GetParachuteDiskEphemeralUsedPercent returns the ParachuteDiskEphemeralUsedPercent field value +func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercent() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskEphemeralUsedPercent +} + +// GetParachuteDiskEphemeralUsedPercentOk returns a tuple with the ParachuteDiskEphemeralUsedPercent field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedPercentOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskEphemeralUsedPercent, true +} + +// SetParachuteDiskEphemeralUsedPercent sets field value +func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedPercent(v int64) { + o.ParachuteDiskEphemeralUsedPercent = v +} + +// GetParachuteDiskEphemeralUsedThreshold returns the ParachuteDiskEphemeralUsedThreshold field value +func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThreshold() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskEphemeralUsedThreshold +} + +// GetParachuteDiskEphemeralUsedThresholdOk returns a tuple with the ParachuteDiskEphemeralUsedThreshold field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskEphemeralUsedThresholdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskEphemeralUsedThreshold, true +} + +// SetParachuteDiskEphemeralUsedThreshold sets field value +func (o *GetMetricsResponse) SetParachuteDiskEphemeralUsedThreshold(v int64) { + o.ParachuteDiskEphemeralUsedThreshold = v +} + +// GetParachuteDiskPersistentActivated returns the ParachuteDiskPersistentActivated field value +func (o *GetMetricsResponse) GetParachuteDiskPersistentActivated() bool { + if o == nil { + var ret bool + return ret + } + + return o.ParachuteDiskPersistentActivated +} + +// GetParachuteDiskPersistentActivatedOk returns a tuple with the ParachuteDiskPersistentActivated field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskPersistentActivatedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskPersistentActivated, true +} + +// SetParachuteDiskPersistentActivated sets field value +func (o *GetMetricsResponse) SetParachuteDiskPersistentActivated(v bool) { + o.ParachuteDiskPersistentActivated = v +} + +// GetParachuteDiskPersistentTotal returns the ParachuteDiskPersistentTotal field value +func (o *GetMetricsResponse) GetParachuteDiskPersistentTotal() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskPersistentTotal +} + +// GetParachuteDiskPersistentTotalOk returns a tuple with the ParachuteDiskPersistentTotal field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskPersistentTotalOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskPersistentTotal, true +} + +// SetParachuteDiskPersistentTotal sets field value +func (o *GetMetricsResponse) SetParachuteDiskPersistentTotal(v int64) { + o.ParachuteDiskPersistentTotal = v +} + +// GetParachuteDiskPersistentUsed returns the ParachuteDiskPersistentUsed field value +func (o *GetMetricsResponse) GetParachuteDiskPersistentUsed() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskPersistentUsed +} + +// GetParachuteDiskPersistentUsedOk returns a tuple with the ParachuteDiskPersistentUsed field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskPersistentUsed, true +} + +// SetParachuteDiskPersistentUsed sets field value +func (o *GetMetricsResponse) SetParachuteDiskPersistentUsed(v int64) { + o.ParachuteDiskPersistentUsed = v +} + +// GetParachuteDiskPersistentUsedPercent returns the ParachuteDiskPersistentUsedPercent field value +func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercent() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskPersistentUsedPercent +} + +// GetParachuteDiskPersistentUsedPercentOk returns a tuple with the ParachuteDiskPersistentUsedPercent field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedPercentOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskPersistentUsedPercent, true +} + +// SetParachuteDiskPersistentUsedPercent sets field value +func (o *GetMetricsResponse) SetParachuteDiskPersistentUsedPercent(v int64) { + o.ParachuteDiskPersistentUsedPercent = v +} + +// GetParachuteDiskPersistentUsedThreshold returns the ParachuteDiskPersistentUsedThreshold field value +func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThreshold() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ParachuteDiskPersistentUsedThreshold +} + +// GetParachuteDiskPersistentUsedThresholdOk returns a tuple with the ParachuteDiskPersistentUsedThreshold field value +// and a boolean to check if the value has been set. +func (o *GetMetricsResponse) GetParachuteDiskPersistentUsedThresholdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ParachuteDiskPersistentUsedThreshold, true +} + +// SetParachuteDiskPersistentUsedThreshold sets field value +func (o *GetMetricsResponse) SetParachuteDiskPersistentUsedThreshold(v int64) { + o.ParachuteDiskPersistentUsedThreshold = v +} + +func (o GetMetricsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetMetricsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CpuIdleTime) { + toSerialize["cpuIdleTime"] = o.CpuIdleTime + } + toSerialize["cpuLoadPercent"] = o.CpuLoadPercent + if !IsNil(o.CpuSystemTime) { + toSerialize["cpuSystemTime"] = o.CpuSystemTime + } + if !IsNil(o.CpuUserTime) { + toSerialize["cpuUserTime"] = o.CpuUserTime + } + toSerialize["diskEphemeralTotal"] = o.DiskEphemeralTotal + toSerialize["diskEphemeralUsed"] = o.DiskEphemeralUsed + toSerialize["diskPersistentTotal"] = o.DiskPersistentTotal + toSerialize["diskPersistentUsed"] = o.DiskPersistentUsed + toSerialize["load1"] = o.Load1 + toSerialize["load15"] = o.Load15 + toSerialize["load5"] = o.Load5 + toSerialize["memoryTotal"] = o.MemoryTotal + toSerialize["memoryUsed"] = o.MemoryUsed + toSerialize["parachuteDiskEphemeralActivated"] = o.ParachuteDiskEphemeralActivated + toSerialize["parachuteDiskEphemeralTotal"] = o.ParachuteDiskEphemeralTotal + toSerialize["parachuteDiskEphemeralUsed"] = o.ParachuteDiskEphemeralUsed + toSerialize["parachuteDiskEphemeralUsedPercent"] = o.ParachuteDiskEphemeralUsedPercent + toSerialize["parachuteDiskEphemeralUsedThreshold"] = o.ParachuteDiskEphemeralUsedThreshold + toSerialize["parachuteDiskPersistentActivated"] = o.ParachuteDiskPersistentActivated + toSerialize["parachuteDiskPersistentTotal"] = o.ParachuteDiskPersistentTotal + toSerialize["parachuteDiskPersistentUsed"] = o.ParachuteDiskPersistentUsed + toSerialize["parachuteDiskPersistentUsedPercent"] = o.ParachuteDiskPersistentUsedPercent + toSerialize["parachuteDiskPersistentUsedThreshold"] = o.ParachuteDiskPersistentUsedThreshold + return toSerialize, nil +} + +func (o *GetMetricsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cpuLoadPercent", + "diskEphemeralTotal", + "diskEphemeralUsed", + "diskPersistentTotal", + "diskPersistentUsed", + "load1", + "load15", + "load5", + "memoryTotal", + "memoryUsed", + "parachuteDiskEphemeralActivated", + "parachuteDiskEphemeralTotal", + "parachuteDiskEphemeralUsed", + "parachuteDiskEphemeralUsedPercent", + "parachuteDiskEphemeralUsedThreshold", + "parachuteDiskPersistentActivated", + "parachuteDiskPersistentTotal", + "parachuteDiskPersistentUsed", + "parachuteDiskPersistentUsedPercent", + "parachuteDiskPersistentUsedThreshold", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetMetricsResponse := _GetMetricsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetMetricsResponse) + + if err != nil { + return err + } + + *o = GetMetricsResponse(varGetMetricsResponse) + + return err +} + +type NullableGetMetricsResponse struct { + value *GetMetricsResponse + isSet bool +} + +func (v NullableGetMetricsResponse) Get() *GetMetricsResponse { + return v.value +} + +func (v *NullableGetMetricsResponse) Set(val *GetMetricsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetMetricsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetMetricsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetMetricsResponse(val *GetMetricsResponse) *NullableGetMetricsResponse { + return &NullableGetMetricsResponse{value: val, isSet: true} +} + +func (v NullableGetMetricsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetMetricsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_instance.go b/services/redis/v1api/model_instance.go new file mode 100644 index 000000000..8cb4af4fb --- /dev/null +++ b/services/redis/v1api/model_instance.go @@ -0,0 +1,540 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Instance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Instance{} + +// Instance struct for Instance +type Instance struct { + CfGuid string `json:"cfGuid"` + CfOrganizationGuid string `json:"cfOrganizationGuid"` + CfSpaceGuid string `json:"cfSpaceGuid"` + DashboardUrl string `json:"dashboardUrl"` + ImageUrl string `json:"imageUrl"` + InstanceId *string `json:"instanceId,omitempty"` + LastOperation InstanceLastOperation `json:"lastOperation"` + Name string `json:"name"` + // Deprecated + OfferingName string `json:"offeringName"` + OfferingVersion string `json:"offeringVersion"` + Parameters map[string]interface{} `json:"parameters"` + PlanId string `json:"planId"` + PlanName string `json:"planName"` + Status *string `json:"status,omitempty"` +} + +type _Instance Instance + +// NewInstance instantiates a new Instance 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 +func NewInstance(cfGuid string, cfOrganizationGuid string, cfSpaceGuid string, dashboardUrl string, imageUrl string, lastOperation InstanceLastOperation, name string, offeringName string, offeringVersion string, parameters map[string]interface{}, planId string, planName string) *Instance { + this := Instance{} + this.CfGuid = cfGuid + this.CfOrganizationGuid = cfOrganizationGuid + this.CfSpaceGuid = cfSpaceGuid + this.DashboardUrl = dashboardUrl + this.ImageUrl = imageUrl + this.LastOperation = lastOperation + this.Name = name + this.OfferingName = offeringName + this.OfferingVersion = offeringVersion + this.Parameters = parameters + this.PlanId = planId + this.PlanName = planName + return &this +} + +// NewInstanceWithDefaults instantiates a new Instance 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 +func NewInstanceWithDefaults() *Instance { + this := Instance{} + return &this +} + +// GetCfGuid returns the CfGuid field value +func (o *Instance) GetCfGuid() string { + if o == nil { + var ret string + return ret + } + + return o.CfGuid +} + +// GetCfGuidOk returns a tuple with the CfGuid field value +// and a boolean to check if the value has been set. +func (o *Instance) GetCfGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CfGuid, true +} + +// SetCfGuid sets field value +func (o *Instance) SetCfGuid(v string) { + o.CfGuid = v +} + +// GetCfOrganizationGuid returns the CfOrganizationGuid field value +func (o *Instance) GetCfOrganizationGuid() string { + if o == nil { + var ret string + return ret + } + + return o.CfOrganizationGuid +} + +// GetCfOrganizationGuidOk returns a tuple with the CfOrganizationGuid field value +// and a boolean to check if the value has been set. +func (o *Instance) GetCfOrganizationGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CfOrganizationGuid, true +} + +// SetCfOrganizationGuid sets field value +func (o *Instance) SetCfOrganizationGuid(v string) { + o.CfOrganizationGuid = v +} + +// GetCfSpaceGuid returns the CfSpaceGuid field value +func (o *Instance) GetCfSpaceGuid() string { + if o == nil { + var ret string + return ret + } + + return o.CfSpaceGuid +} + +// GetCfSpaceGuidOk returns a tuple with the CfSpaceGuid field value +// and a boolean to check if the value has been set. +func (o *Instance) GetCfSpaceGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CfSpaceGuid, true +} + +// SetCfSpaceGuid sets field value +func (o *Instance) SetCfSpaceGuid(v string) { + o.CfSpaceGuid = v +} + +// GetDashboardUrl returns the DashboardUrl field value +func (o *Instance) GetDashboardUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DashboardUrl +} + +// GetDashboardUrlOk returns a tuple with the DashboardUrl field value +// and a boolean to check if the value has been set. +func (o *Instance) GetDashboardUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DashboardUrl, true +} + +// SetDashboardUrl sets field value +func (o *Instance) SetDashboardUrl(v string) { + o.DashboardUrl = v +} + +// GetImageUrl returns the ImageUrl field value +func (o *Instance) GetImageUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ImageUrl +} + +// GetImageUrlOk returns a tuple with the ImageUrl field value +// and a boolean to check if the value has been set. +func (o *Instance) GetImageUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ImageUrl, true +} + +// SetImageUrl sets field value +func (o *Instance) SetImageUrl(v string) { + o.ImageUrl = v +} + +// GetInstanceId returns the InstanceId field value if set, zero value otherwise. +func (o *Instance) GetInstanceId() string { + if o == nil || IsNil(o.InstanceId) { + var ret string + return ret + } + return *o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetInstanceIdOk() (*string, bool) { + if o == nil || IsNil(o.InstanceId) { + return nil, false + } + return o.InstanceId, true +} + +// HasInstanceId returns a boolean if a field has been set. +func (o *Instance) HasInstanceId() bool { + if o != nil && !IsNil(o.InstanceId) { + return true + } + + return false +} + +// SetInstanceId gets a reference to the given string and assigns it to the InstanceId field. +func (o *Instance) SetInstanceId(v string) { + o.InstanceId = &v +} + +// GetLastOperation returns the LastOperation field value +func (o *Instance) GetLastOperation() InstanceLastOperation { + if o == nil { + var ret InstanceLastOperation + return ret + } + + return o.LastOperation +} + +// GetLastOperationOk returns a tuple with the LastOperation field value +// and a boolean to check if the value has been set. +func (o *Instance) GetLastOperationOk() (*InstanceLastOperation, bool) { + if o == nil { + return nil, false + } + return &o.LastOperation, true +} + +// SetLastOperation sets field value +func (o *Instance) SetLastOperation(v InstanceLastOperation) { + o.LastOperation = v +} + +// GetName returns the Name field value +func (o *Instance) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Instance) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Instance) SetName(v string) { + o.Name = v +} + +// GetOfferingName returns the OfferingName field value +// Deprecated +func (o *Instance) GetOfferingName() string { + if o == nil { + var ret string + return ret + } + + return o.OfferingName +} + +// GetOfferingNameOk returns a tuple with the OfferingName field value +// and a boolean to check if the value has been set. +// Deprecated +func (o *Instance) GetOfferingNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OfferingName, true +} + +// SetOfferingName sets field value +// Deprecated +func (o *Instance) SetOfferingName(v string) { + o.OfferingName = v +} + +// GetOfferingVersion returns the OfferingVersion field value +func (o *Instance) GetOfferingVersion() string { + if o == nil { + var ret string + return ret + } + + return o.OfferingVersion +} + +// GetOfferingVersionOk returns a tuple with the OfferingVersion field value +// and a boolean to check if the value has been set. +func (o *Instance) GetOfferingVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OfferingVersion, true +} + +// SetOfferingVersion sets field value +func (o *Instance) SetOfferingVersion(v string) { + o.OfferingVersion = v +} + +// GetParameters returns the Parameters field value +func (o *Instance) GetParameters() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *Instance) GetParametersOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Parameters, true +} + +// SetParameters sets field value +func (o *Instance) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +// GetPlanId returns the PlanId field value +func (o *Instance) GetPlanId() string { + if o == nil { + var ret string + return ret + } + + return o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value +// and a boolean to check if the value has been set. +func (o *Instance) GetPlanIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanId, true +} + +// SetPlanId sets field value +func (o *Instance) SetPlanId(v string) { + o.PlanId = v +} + +// GetPlanName returns the PlanName field value +func (o *Instance) GetPlanName() string { + if o == nil { + var ret string + return ret + } + + return o.PlanName +} + +// GetPlanNameOk returns a tuple with the PlanName field value +// and a boolean to check if the value has been set. +func (o *Instance) GetPlanNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PlanName, true +} + +// SetPlanName sets field value +func (o *Instance) SetPlanName(v string) { + o.PlanName = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Instance) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Instance) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *Instance) SetStatus(v string) { + o.Status = &v +} + +func (o Instance) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Instance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cfGuid"] = o.CfGuid + toSerialize["cfOrganizationGuid"] = o.CfOrganizationGuid + toSerialize["cfSpaceGuid"] = o.CfSpaceGuid + toSerialize["dashboardUrl"] = o.DashboardUrl + toSerialize["imageUrl"] = o.ImageUrl + if !IsNil(o.InstanceId) { + toSerialize["instanceId"] = o.InstanceId + } + toSerialize["lastOperation"] = o.LastOperation + toSerialize["name"] = o.Name + toSerialize["offeringName"] = o.OfferingName + toSerialize["offeringVersion"] = o.OfferingVersion + toSerialize["parameters"] = o.Parameters + toSerialize["planId"] = o.PlanId + toSerialize["planName"] = o.PlanName + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +func (o *Instance) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cfGuid", + "cfOrganizationGuid", + "cfSpaceGuid", + "dashboardUrl", + "imageUrl", + "lastOperation", + "name", + "offeringName", + "offeringVersion", + "parameters", + "planId", + "planName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstance := _Instance{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInstance) + + if err != nil { + return err + } + + *o = Instance(varInstance) + + return err +} + +type NullableInstance struct { + value *Instance + isSet bool +} + +func (v NullableInstance) Get() *Instance { + return v.value +} + +func (v *NullableInstance) Set(val *Instance) { + v.value = val + v.isSet = true +} + +func (v NullableInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstance(val *Instance) *NullableInstance { + return &NullableInstance{value: val, isSet: true} +} + +func (v NullableInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_instance_last_operation.go b/services/redis/v1api/model_instance_last_operation.go new file mode 100644 index 000000000..e8ac7163b --- /dev/null +++ b/services/redis/v1api/model_instance_last_operation.go @@ -0,0 +1,212 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the InstanceLastOperation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceLastOperation{} + +// InstanceLastOperation struct for InstanceLastOperation +type InstanceLastOperation struct { + Description string `json:"description"` + State string `json:"state"` + Type string `json:"type"` +} + +type _InstanceLastOperation InstanceLastOperation + +// NewInstanceLastOperation instantiates a new InstanceLastOperation 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 +func NewInstanceLastOperation(description string, state string, types string) *InstanceLastOperation { + this := InstanceLastOperation{} + this.Description = description + this.State = state + this.Type = types + return &this +} + +// NewInstanceLastOperationWithDefaults instantiates a new InstanceLastOperation 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 +func NewInstanceLastOperationWithDefaults() *InstanceLastOperation { + this := InstanceLastOperation{} + return &this +} + +// GetDescription returns the Description field value +func (o *InstanceLastOperation) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *InstanceLastOperation) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *InstanceLastOperation) SetDescription(v string) { + o.Description = v +} + +// GetState returns the State field value +func (o *InstanceLastOperation) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *InstanceLastOperation) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *InstanceLastOperation) SetState(v string) { + o.State = v +} + +// GetType returns the Type field value +func (o *InstanceLastOperation) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *InstanceLastOperation) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *InstanceLastOperation) SetType(v string) { + o.Type = v +} + +func (o InstanceLastOperation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceLastOperation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["description"] = o.Description + toSerialize["state"] = o.State + toSerialize["type"] = o.Type + return toSerialize, nil +} + +func (o *InstanceLastOperation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "description", + "state", + "type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceLastOperation := _InstanceLastOperation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInstanceLastOperation) + + if err != nil { + return err + } + + *o = InstanceLastOperation(varInstanceLastOperation) + + return err +} + +type NullableInstanceLastOperation struct { + value *InstanceLastOperation + isSet bool +} + +func (v NullableInstanceLastOperation) Get() *InstanceLastOperation { + return v.value +} + +func (v *NullableInstanceLastOperation) Set(val *InstanceLastOperation) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceLastOperation) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceLastOperation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceLastOperation(val *InstanceLastOperation) *NullableInstanceLastOperation { + return &NullableInstanceLastOperation{value: val, isSet: true} +} + +func (v NullableInstanceLastOperation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceLastOperation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_instance_parameters.go b/services/redis/v1api/model_instance_parameters.go new file mode 100644 index 000000000..15883f1b6 --- /dev/null +++ b/services/redis/v1api/model_instance_parameters.go @@ -0,0 +1,942 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the InstanceParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceParameters{} + +// InstanceParameters struct for InstanceParameters +type InstanceParameters struct { + // The unit is milliseconds. + DownAfterMilliseconds *int32 `json:"down-after-milliseconds,omitempty"` + EnableMonitoring *bool `json:"enable_monitoring,omitempty"` + // The unit is milliseconds. + FailoverTimeout *int32 `json:"failover-timeout,omitempty"` + // If you want to monitor your service with Graphite, you can set the custom parameter graphite. It expects the host and port where the Graphite metrics should be sent to. + Graphite *string `json:"graphite,omitempty"` + LazyfreeLazyEviction *string `json:"lazyfree-lazy-eviction,omitempty"` + LazyfreeLazyExpire *string `json:"lazyfree-lazy-expire,omitempty"` + LuaTimeLimit *int32 `json:"lua-time-limit,omitempty"` + // This component monitors ephemeral and persistent disk usage. If one of these disk usages reaches the default configured threshold of 80%, the a9s Parachute stops all processes on that node. + MaxDiskThreshold *int32 `json:"max_disk_threshold,omitempty"` + Maxclients *int32 `json:"maxclients,omitempty"` + MaxmemoryPolicy *string `json:"maxmemory-policy,omitempty"` + MaxmemorySamples *int32 `json:"maxmemory-samples,omitempty"` + // Frequency of metrics being emitted in seconds + MetricsFrequency *int32 `json:"metrics_frequency,omitempty"` + // Depending on your graphite provider, you might need to prefix the metrics with a certain value, like an API key for example. + MetricsPrefix *string `json:"metrics_prefix,omitempty"` + // The unit is seconds. + MinReplicasMaxLag *int32 `json:"min_replicas_max_lag,omitempty"` + MonitoringInstanceId *string `json:"monitoring_instance_id,omitempty"` + // The allowed value must include the following characters only: [K,E,g,$,l,s,h,z,x,e,A,t] + NotifyKeyspaceEvents *string `json:"notify-keyspace-events,omitempty"` + // Comma separated list of IP networks in CIDR notation which are allowed to access this instance. + SgwAcl *string `json:"sgw_acl,omitempty"` + // This setting must follow the original Redis configuration for RDB. + Snapshot *string `json:"snapshot,omitempty"` + Syslog []string `json:"syslog,omitempty"` + TlsCiphers []string `json:"tls-ciphers,omitempty"` + TlsCiphersuites *string `json:"tls-ciphersuites,omitempty"` + TlsProtocols *string `json:"tls-protocols,omitempty"` +} + +// NewInstanceParameters instantiates a new InstanceParameters 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 +func NewInstanceParameters() *InstanceParameters { + this := InstanceParameters{} + var downAfterMilliseconds int32 = 10000 + this.DownAfterMilliseconds = &downAfterMilliseconds + var enableMonitoring bool = false + this.EnableMonitoring = &enableMonitoring + var failoverTimeout int32 = 30000 + this.FailoverTimeout = &failoverTimeout + var lazyfreeLazyEviction string = "no" + this.LazyfreeLazyEviction = &lazyfreeLazyEviction + var lazyfreeLazyExpire string = "no" + this.LazyfreeLazyExpire = &lazyfreeLazyExpire + var luaTimeLimit int32 = 5000 + this.LuaTimeLimit = &luaTimeLimit + var maxDiskThreshold int32 = 80 + this.MaxDiskThreshold = &maxDiskThreshold + var maxclients int32 = 10000 + this.Maxclients = &maxclients + var maxmemoryPolicy string = "volatile-lru" + this.MaxmemoryPolicy = &maxmemoryPolicy + var maxmemorySamples int32 = 5 + this.MaxmemorySamples = &maxmemorySamples + var metricsFrequency int32 = 10 + this.MetricsFrequency = &metricsFrequency + var minReplicasMaxLag int32 = 10 + this.MinReplicasMaxLag = &minReplicasMaxLag + var notifyKeyspaceEvents string = "" + this.NotifyKeyspaceEvents = ¬ifyKeyspaceEvents + return &this +} + +// NewInstanceParametersWithDefaults instantiates a new InstanceParameters 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 +func NewInstanceParametersWithDefaults() *InstanceParameters { + this := InstanceParameters{} + var downAfterMilliseconds int32 = 10000 + this.DownAfterMilliseconds = &downAfterMilliseconds + var enableMonitoring bool = false + this.EnableMonitoring = &enableMonitoring + var failoverTimeout int32 = 30000 + this.FailoverTimeout = &failoverTimeout + var lazyfreeLazyEviction string = "no" + this.LazyfreeLazyEviction = &lazyfreeLazyEviction + var lazyfreeLazyExpire string = "no" + this.LazyfreeLazyExpire = &lazyfreeLazyExpire + var luaTimeLimit int32 = 5000 + this.LuaTimeLimit = &luaTimeLimit + var maxDiskThreshold int32 = 80 + this.MaxDiskThreshold = &maxDiskThreshold + var maxclients int32 = 10000 + this.Maxclients = &maxclients + var maxmemoryPolicy string = "volatile-lru" + this.MaxmemoryPolicy = &maxmemoryPolicy + var maxmemorySamples int32 = 5 + this.MaxmemorySamples = &maxmemorySamples + var metricsFrequency int32 = 10 + this.MetricsFrequency = &metricsFrequency + var minReplicasMaxLag int32 = 10 + this.MinReplicasMaxLag = &minReplicasMaxLag + var notifyKeyspaceEvents string = "" + this.NotifyKeyspaceEvents = ¬ifyKeyspaceEvents + return &this +} + +// GetDownAfterMilliseconds returns the DownAfterMilliseconds field value if set, zero value otherwise. +func (o *InstanceParameters) GetDownAfterMilliseconds() int32 { + if o == nil || IsNil(o.DownAfterMilliseconds) { + var ret int32 + return ret + } + return *o.DownAfterMilliseconds +} + +// GetDownAfterMillisecondsOk returns a tuple with the DownAfterMilliseconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetDownAfterMillisecondsOk() (*int32, bool) { + if o == nil || IsNil(o.DownAfterMilliseconds) { + return nil, false + } + return o.DownAfterMilliseconds, true +} + +// HasDownAfterMilliseconds returns a boolean if a field has been set. +func (o *InstanceParameters) HasDownAfterMilliseconds() bool { + if o != nil && !IsNil(o.DownAfterMilliseconds) { + return true + } + + return false +} + +// SetDownAfterMilliseconds gets a reference to the given int32 and assigns it to the DownAfterMilliseconds field. +func (o *InstanceParameters) SetDownAfterMilliseconds(v int32) { + o.DownAfterMilliseconds = &v +} + +// GetEnableMonitoring returns the EnableMonitoring field value if set, zero value otherwise. +func (o *InstanceParameters) GetEnableMonitoring() bool { + if o == nil || IsNil(o.EnableMonitoring) { + var ret bool + return ret + } + return *o.EnableMonitoring +} + +// GetEnableMonitoringOk returns a tuple with the EnableMonitoring field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetEnableMonitoringOk() (*bool, bool) { + if o == nil || IsNil(o.EnableMonitoring) { + return nil, false + } + return o.EnableMonitoring, true +} + +// HasEnableMonitoring returns a boolean if a field has been set. +func (o *InstanceParameters) HasEnableMonitoring() bool { + if o != nil && !IsNil(o.EnableMonitoring) { + return true + } + + return false +} + +// SetEnableMonitoring gets a reference to the given bool and assigns it to the EnableMonitoring field. +func (o *InstanceParameters) SetEnableMonitoring(v bool) { + o.EnableMonitoring = &v +} + +// GetFailoverTimeout returns the FailoverTimeout field value if set, zero value otherwise. +func (o *InstanceParameters) GetFailoverTimeout() int32 { + if o == nil || IsNil(o.FailoverTimeout) { + var ret int32 + return ret + } + return *o.FailoverTimeout +} + +// GetFailoverTimeoutOk returns a tuple with the FailoverTimeout field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetFailoverTimeoutOk() (*int32, bool) { + if o == nil || IsNil(o.FailoverTimeout) { + return nil, false + } + return o.FailoverTimeout, true +} + +// HasFailoverTimeout returns a boolean if a field has been set. +func (o *InstanceParameters) HasFailoverTimeout() bool { + if o != nil && !IsNil(o.FailoverTimeout) { + return true + } + + return false +} + +// SetFailoverTimeout gets a reference to the given int32 and assigns it to the FailoverTimeout field. +func (o *InstanceParameters) SetFailoverTimeout(v int32) { + o.FailoverTimeout = &v +} + +// GetGraphite returns the Graphite field value if set, zero value otherwise. +func (o *InstanceParameters) GetGraphite() string { + if o == nil || IsNil(o.Graphite) { + var ret string + return ret + } + return *o.Graphite +} + +// GetGraphiteOk returns a tuple with the Graphite field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetGraphiteOk() (*string, bool) { + if o == nil || IsNil(o.Graphite) { + return nil, false + } + return o.Graphite, true +} + +// HasGraphite returns a boolean if a field has been set. +func (o *InstanceParameters) HasGraphite() bool { + if o != nil && !IsNil(o.Graphite) { + return true + } + + return false +} + +// SetGraphite gets a reference to the given string and assigns it to the Graphite field. +func (o *InstanceParameters) SetGraphite(v string) { + o.Graphite = &v +} + +// GetLazyfreeLazyEviction returns the LazyfreeLazyEviction field value if set, zero value otherwise. +func (o *InstanceParameters) GetLazyfreeLazyEviction() string { + if o == nil || IsNil(o.LazyfreeLazyEviction) { + var ret string + return ret + } + return *o.LazyfreeLazyEviction +} + +// GetLazyfreeLazyEvictionOk returns a tuple with the LazyfreeLazyEviction field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetLazyfreeLazyEvictionOk() (*string, bool) { + if o == nil || IsNil(o.LazyfreeLazyEviction) { + return nil, false + } + return o.LazyfreeLazyEviction, true +} + +// HasLazyfreeLazyEviction returns a boolean if a field has been set. +func (o *InstanceParameters) HasLazyfreeLazyEviction() bool { + if o != nil && !IsNil(o.LazyfreeLazyEviction) { + return true + } + + return false +} + +// SetLazyfreeLazyEviction gets a reference to the given string and assigns it to the LazyfreeLazyEviction field. +func (o *InstanceParameters) SetLazyfreeLazyEviction(v string) { + o.LazyfreeLazyEviction = &v +} + +// GetLazyfreeLazyExpire returns the LazyfreeLazyExpire field value if set, zero value otherwise. +func (o *InstanceParameters) GetLazyfreeLazyExpire() string { + if o == nil || IsNil(o.LazyfreeLazyExpire) { + var ret string + return ret + } + return *o.LazyfreeLazyExpire +} + +// GetLazyfreeLazyExpireOk returns a tuple with the LazyfreeLazyExpire field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetLazyfreeLazyExpireOk() (*string, bool) { + if o == nil || IsNil(o.LazyfreeLazyExpire) { + return nil, false + } + return o.LazyfreeLazyExpire, true +} + +// HasLazyfreeLazyExpire returns a boolean if a field has been set. +func (o *InstanceParameters) HasLazyfreeLazyExpire() bool { + if o != nil && !IsNil(o.LazyfreeLazyExpire) { + return true + } + + return false +} + +// SetLazyfreeLazyExpire gets a reference to the given string and assigns it to the LazyfreeLazyExpire field. +func (o *InstanceParameters) SetLazyfreeLazyExpire(v string) { + o.LazyfreeLazyExpire = &v +} + +// GetLuaTimeLimit returns the LuaTimeLimit field value if set, zero value otherwise. +func (o *InstanceParameters) GetLuaTimeLimit() int32 { + if o == nil || IsNil(o.LuaTimeLimit) { + var ret int32 + return ret + } + return *o.LuaTimeLimit +} + +// GetLuaTimeLimitOk returns a tuple with the LuaTimeLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetLuaTimeLimitOk() (*int32, bool) { + if o == nil || IsNil(o.LuaTimeLimit) { + return nil, false + } + return o.LuaTimeLimit, true +} + +// HasLuaTimeLimit returns a boolean if a field has been set. +func (o *InstanceParameters) HasLuaTimeLimit() bool { + if o != nil && !IsNil(o.LuaTimeLimit) { + return true + } + + return false +} + +// SetLuaTimeLimit gets a reference to the given int32 and assigns it to the LuaTimeLimit field. +func (o *InstanceParameters) SetLuaTimeLimit(v int32) { + o.LuaTimeLimit = &v +} + +// GetMaxDiskThreshold returns the MaxDiskThreshold field value if set, zero value otherwise. +func (o *InstanceParameters) GetMaxDiskThreshold() int32 { + if o == nil || IsNil(o.MaxDiskThreshold) { + var ret int32 + return ret + } + return *o.MaxDiskThreshold +} + +// GetMaxDiskThresholdOk returns a tuple with the MaxDiskThreshold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMaxDiskThresholdOk() (*int32, bool) { + if o == nil || IsNil(o.MaxDiskThreshold) { + return nil, false + } + return o.MaxDiskThreshold, true +} + +// HasMaxDiskThreshold returns a boolean if a field has been set. +func (o *InstanceParameters) HasMaxDiskThreshold() bool { + if o != nil && !IsNil(o.MaxDiskThreshold) { + return true + } + + return false +} + +// SetMaxDiskThreshold gets a reference to the given int32 and assigns it to the MaxDiskThreshold field. +func (o *InstanceParameters) SetMaxDiskThreshold(v int32) { + o.MaxDiskThreshold = &v +} + +// GetMaxclients returns the Maxclients field value if set, zero value otherwise. +func (o *InstanceParameters) GetMaxclients() int32 { + if o == nil || IsNil(o.Maxclients) { + var ret int32 + return ret + } + return *o.Maxclients +} + +// GetMaxclientsOk returns a tuple with the Maxclients field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMaxclientsOk() (*int32, bool) { + if o == nil || IsNil(o.Maxclients) { + return nil, false + } + return o.Maxclients, true +} + +// HasMaxclients returns a boolean if a field has been set. +func (o *InstanceParameters) HasMaxclients() bool { + if o != nil && !IsNil(o.Maxclients) { + return true + } + + return false +} + +// SetMaxclients gets a reference to the given int32 and assigns it to the Maxclients field. +func (o *InstanceParameters) SetMaxclients(v int32) { + o.Maxclients = &v +} + +// GetMaxmemoryPolicy returns the MaxmemoryPolicy field value if set, zero value otherwise. +func (o *InstanceParameters) GetMaxmemoryPolicy() string { + if o == nil || IsNil(o.MaxmemoryPolicy) { + var ret string + return ret + } + return *o.MaxmemoryPolicy +} + +// GetMaxmemoryPolicyOk returns a tuple with the MaxmemoryPolicy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMaxmemoryPolicyOk() (*string, bool) { + if o == nil || IsNil(o.MaxmemoryPolicy) { + return nil, false + } + return o.MaxmemoryPolicy, true +} + +// HasMaxmemoryPolicy returns a boolean if a field has been set. +func (o *InstanceParameters) HasMaxmemoryPolicy() bool { + if o != nil && !IsNil(o.MaxmemoryPolicy) { + return true + } + + return false +} + +// SetMaxmemoryPolicy gets a reference to the given string and assigns it to the MaxmemoryPolicy field. +func (o *InstanceParameters) SetMaxmemoryPolicy(v string) { + o.MaxmemoryPolicy = &v +} + +// GetMaxmemorySamples returns the MaxmemorySamples field value if set, zero value otherwise. +func (o *InstanceParameters) GetMaxmemorySamples() int32 { + if o == nil || IsNil(o.MaxmemorySamples) { + var ret int32 + return ret + } + return *o.MaxmemorySamples +} + +// GetMaxmemorySamplesOk returns a tuple with the MaxmemorySamples field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMaxmemorySamplesOk() (*int32, bool) { + if o == nil || IsNil(o.MaxmemorySamples) { + return nil, false + } + return o.MaxmemorySamples, true +} + +// HasMaxmemorySamples returns a boolean if a field has been set. +func (o *InstanceParameters) HasMaxmemorySamples() bool { + if o != nil && !IsNil(o.MaxmemorySamples) { + return true + } + + return false +} + +// SetMaxmemorySamples gets a reference to the given int32 and assigns it to the MaxmemorySamples field. +func (o *InstanceParameters) SetMaxmemorySamples(v int32) { + o.MaxmemorySamples = &v +} + +// GetMetricsFrequency returns the MetricsFrequency field value if set, zero value otherwise. +func (o *InstanceParameters) GetMetricsFrequency() int32 { + if o == nil || IsNil(o.MetricsFrequency) { + var ret int32 + return ret + } + return *o.MetricsFrequency +} + +// GetMetricsFrequencyOk returns a tuple with the MetricsFrequency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMetricsFrequencyOk() (*int32, bool) { + if o == nil || IsNil(o.MetricsFrequency) { + return nil, false + } + return o.MetricsFrequency, true +} + +// HasMetricsFrequency returns a boolean if a field has been set. +func (o *InstanceParameters) HasMetricsFrequency() bool { + if o != nil && !IsNil(o.MetricsFrequency) { + return true + } + + return false +} + +// SetMetricsFrequency gets a reference to the given int32 and assigns it to the MetricsFrequency field. +func (o *InstanceParameters) SetMetricsFrequency(v int32) { + o.MetricsFrequency = &v +} + +// GetMetricsPrefix returns the MetricsPrefix field value if set, zero value otherwise. +func (o *InstanceParameters) GetMetricsPrefix() string { + if o == nil || IsNil(o.MetricsPrefix) { + var ret string + return ret + } + return *o.MetricsPrefix +} + +// GetMetricsPrefixOk returns a tuple with the MetricsPrefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMetricsPrefixOk() (*string, bool) { + if o == nil || IsNil(o.MetricsPrefix) { + return nil, false + } + return o.MetricsPrefix, true +} + +// HasMetricsPrefix returns a boolean if a field has been set. +func (o *InstanceParameters) HasMetricsPrefix() bool { + if o != nil && !IsNil(o.MetricsPrefix) { + return true + } + + return false +} + +// SetMetricsPrefix gets a reference to the given string and assigns it to the MetricsPrefix field. +func (o *InstanceParameters) SetMetricsPrefix(v string) { + o.MetricsPrefix = &v +} + +// GetMinReplicasMaxLag returns the MinReplicasMaxLag field value if set, zero value otherwise. +func (o *InstanceParameters) GetMinReplicasMaxLag() int32 { + if o == nil || IsNil(o.MinReplicasMaxLag) { + var ret int32 + return ret + } + return *o.MinReplicasMaxLag +} + +// GetMinReplicasMaxLagOk returns a tuple with the MinReplicasMaxLag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMinReplicasMaxLagOk() (*int32, bool) { + if o == nil || IsNil(o.MinReplicasMaxLag) { + return nil, false + } + return o.MinReplicasMaxLag, true +} + +// HasMinReplicasMaxLag returns a boolean if a field has been set. +func (o *InstanceParameters) HasMinReplicasMaxLag() bool { + if o != nil && !IsNil(o.MinReplicasMaxLag) { + return true + } + + return false +} + +// SetMinReplicasMaxLag gets a reference to the given int32 and assigns it to the MinReplicasMaxLag field. +func (o *InstanceParameters) SetMinReplicasMaxLag(v int32) { + o.MinReplicasMaxLag = &v +} + +// GetMonitoringInstanceId returns the MonitoringInstanceId field value if set, zero value otherwise. +func (o *InstanceParameters) GetMonitoringInstanceId() string { + if o == nil || IsNil(o.MonitoringInstanceId) { + var ret string + return ret + } + return *o.MonitoringInstanceId +} + +// GetMonitoringInstanceIdOk returns a tuple with the MonitoringInstanceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetMonitoringInstanceIdOk() (*string, bool) { + if o == nil || IsNil(o.MonitoringInstanceId) { + return nil, false + } + return o.MonitoringInstanceId, true +} + +// HasMonitoringInstanceId returns a boolean if a field has been set. +func (o *InstanceParameters) HasMonitoringInstanceId() bool { + if o != nil && !IsNil(o.MonitoringInstanceId) { + return true + } + + return false +} + +// SetMonitoringInstanceId gets a reference to the given string and assigns it to the MonitoringInstanceId field. +func (o *InstanceParameters) SetMonitoringInstanceId(v string) { + o.MonitoringInstanceId = &v +} + +// GetNotifyKeyspaceEvents returns the NotifyKeyspaceEvents field value if set, zero value otherwise. +func (o *InstanceParameters) GetNotifyKeyspaceEvents() string { + if o == nil || IsNil(o.NotifyKeyspaceEvents) { + var ret string + return ret + } + return *o.NotifyKeyspaceEvents +} + +// GetNotifyKeyspaceEventsOk returns a tuple with the NotifyKeyspaceEvents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetNotifyKeyspaceEventsOk() (*string, bool) { + if o == nil || IsNil(o.NotifyKeyspaceEvents) { + return nil, false + } + return o.NotifyKeyspaceEvents, true +} + +// HasNotifyKeyspaceEvents returns a boolean if a field has been set. +func (o *InstanceParameters) HasNotifyKeyspaceEvents() bool { + if o != nil && !IsNil(o.NotifyKeyspaceEvents) { + return true + } + + return false +} + +// SetNotifyKeyspaceEvents gets a reference to the given string and assigns it to the NotifyKeyspaceEvents field. +func (o *InstanceParameters) SetNotifyKeyspaceEvents(v string) { + o.NotifyKeyspaceEvents = &v +} + +// GetSgwAcl returns the SgwAcl field value if set, zero value otherwise. +func (o *InstanceParameters) GetSgwAcl() string { + if o == nil || IsNil(o.SgwAcl) { + var ret string + return ret + } + return *o.SgwAcl +} + +// GetSgwAclOk returns a tuple with the SgwAcl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetSgwAclOk() (*string, bool) { + if o == nil || IsNil(o.SgwAcl) { + return nil, false + } + return o.SgwAcl, true +} + +// HasSgwAcl returns a boolean if a field has been set. +func (o *InstanceParameters) HasSgwAcl() bool { + if o != nil && !IsNil(o.SgwAcl) { + return true + } + + return false +} + +// SetSgwAcl gets a reference to the given string and assigns it to the SgwAcl field. +func (o *InstanceParameters) SetSgwAcl(v string) { + o.SgwAcl = &v +} + +// GetSnapshot returns the Snapshot field value if set, zero value otherwise. +func (o *InstanceParameters) GetSnapshot() string { + if o == nil || IsNil(o.Snapshot) { + var ret string + return ret + } + return *o.Snapshot +} + +// GetSnapshotOk returns a tuple with the Snapshot field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetSnapshotOk() (*string, bool) { + if o == nil || IsNil(o.Snapshot) { + return nil, false + } + return o.Snapshot, true +} + +// HasSnapshot returns a boolean if a field has been set. +func (o *InstanceParameters) HasSnapshot() bool { + if o != nil && !IsNil(o.Snapshot) { + return true + } + + return false +} + +// SetSnapshot gets a reference to the given string and assigns it to the Snapshot field. +func (o *InstanceParameters) SetSnapshot(v string) { + o.Snapshot = &v +} + +// GetSyslog returns the Syslog field value if set, zero value otherwise. +func (o *InstanceParameters) GetSyslog() []string { + if o == nil || IsNil(o.Syslog) { + var ret []string + return ret + } + return o.Syslog +} + +// GetSyslogOk returns a tuple with the Syslog field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetSyslogOk() ([]string, bool) { + if o == nil || IsNil(o.Syslog) { + return nil, false + } + return o.Syslog, true +} + +// HasSyslog returns a boolean if a field has been set. +func (o *InstanceParameters) HasSyslog() bool { + if o != nil && !IsNil(o.Syslog) { + return true + } + + return false +} + +// SetSyslog gets a reference to the given []string and assigns it to the Syslog field. +func (o *InstanceParameters) SetSyslog(v []string) { + o.Syslog = v +} + +// GetTlsCiphers returns the TlsCiphers field value if set, zero value otherwise. +func (o *InstanceParameters) GetTlsCiphers() []string { + if o == nil || IsNil(o.TlsCiphers) { + var ret []string + return ret + } + return o.TlsCiphers +} + +// GetTlsCiphersOk returns a tuple with the TlsCiphers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetTlsCiphersOk() ([]string, bool) { + if o == nil || IsNil(o.TlsCiphers) { + return nil, false + } + return o.TlsCiphers, true +} + +// HasTlsCiphers returns a boolean if a field has been set. +func (o *InstanceParameters) HasTlsCiphers() bool { + if o != nil && !IsNil(o.TlsCiphers) { + return true + } + + return false +} + +// SetTlsCiphers gets a reference to the given []string and assigns it to the TlsCiphers field. +func (o *InstanceParameters) SetTlsCiphers(v []string) { + o.TlsCiphers = v +} + +// GetTlsCiphersuites returns the TlsCiphersuites field value if set, zero value otherwise. +func (o *InstanceParameters) GetTlsCiphersuites() string { + if o == nil || IsNil(o.TlsCiphersuites) { + var ret string + return ret + } + return *o.TlsCiphersuites +} + +// GetTlsCiphersuitesOk returns a tuple with the TlsCiphersuites field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetTlsCiphersuitesOk() (*string, bool) { + if o == nil || IsNil(o.TlsCiphersuites) { + return nil, false + } + return o.TlsCiphersuites, true +} + +// HasTlsCiphersuites returns a boolean if a field has been set. +func (o *InstanceParameters) HasTlsCiphersuites() bool { + if o != nil && !IsNil(o.TlsCiphersuites) { + return true + } + + return false +} + +// SetTlsCiphersuites gets a reference to the given string and assigns it to the TlsCiphersuites field. +func (o *InstanceParameters) SetTlsCiphersuites(v string) { + o.TlsCiphersuites = &v +} + +// GetTlsProtocols returns the TlsProtocols field value if set, zero value otherwise. +func (o *InstanceParameters) GetTlsProtocols() string { + if o == nil || IsNil(o.TlsProtocols) { + var ret string + return ret + } + return *o.TlsProtocols +} + +// GetTlsProtocolsOk returns a tuple with the TlsProtocols field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InstanceParameters) GetTlsProtocolsOk() (*string, bool) { + if o == nil || IsNil(o.TlsProtocols) { + return nil, false + } + return o.TlsProtocols, true +} + +// HasTlsProtocols returns a boolean if a field has been set. +func (o *InstanceParameters) HasTlsProtocols() bool { + if o != nil && !IsNil(o.TlsProtocols) { + return true + } + + return false +} + +// SetTlsProtocols gets a reference to the given string and assigns it to the TlsProtocols field. +func (o *InstanceParameters) SetTlsProtocols(v string) { + o.TlsProtocols = &v +} + +func (o InstanceParameters) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DownAfterMilliseconds) { + toSerialize["down-after-milliseconds"] = o.DownAfterMilliseconds + } + if !IsNil(o.EnableMonitoring) { + toSerialize["enable_monitoring"] = o.EnableMonitoring + } + if !IsNil(o.FailoverTimeout) { + toSerialize["failover-timeout"] = o.FailoverTimeout + } + if !IsNil(o.Graphite) { + toSerialize["graphite"] = o.Graphite + } + if !IsNil(o.LazyfreeLazyEviction) { + toSerialize["lazyfree-lazy-eviction"] = o.LazyfreeLazyEviction + } + if !IsNil(o.LazyfreeLazyExpire) { + toSerialize["lazyfree-lazy-expire"] = o.LazyfreeLazyExpire + } + if !IsNil(o.LuaTimeLimit) { + toSerialize["lua-time-limit"] = o.LuaTimeLimit + } + if !IsNil(o.MaxDiskThreshold) { + toSerialize["max_disk_threshold"] = o.MaxDiskThreshold + } + if !IsNil(o.Maxclients) { + toSerialize["maxclients"] = o.Maxclients + } + if !IsNil(o.MaxmemoryPolicy) { + toSerialize["maxmemory-policy"] = o.MaxmemoryPolicy + } + if !IsNil(o.MaxmemorySamples) { + toSerialize["maxmemory-samples"] = o.MaxmemorySamples + } + if !IsNil(o.MetricsFrequency) { + toSerialize["metrics_frequency"] = o.MetricsFrequency + } + if !IsNil(o.MetricsPrefix) { + toSerialize["metrics_prefix"] = o.MetricsPrefix + } + if !IsNil(o.MinReplicasMaxLag) { + toSerialize["min_replicas_max_lag"] = o.MinReplicasMaxLag + } + if !IsNil(o.MonitoringInstanceId) { + toSerialize["monitoring_instance_id"] = o.MonitoringInstanceId + } + if !IsNil(o.NotifyKeyspaceEvents) { + toSerialize["notify-keyspace-events"] = o.NotifyKeyspaceEvents + } + if !IsNil(o.SgwAcl) { + toSerialize["sgw_acl"] = o.SgwAcl + } + if !IsNil(o.Snapshot) { + toSerialize["snapshot"] = o.Snapshot + } + if !IsNil(o.Syslog) { + toSerialize["syslog"] = o.Syslog + } + if !IsNil(o.TlsCiphers) { + toSerialize["tls-ciphers"] = o.TlsCiphers + } + if !IsNil(o.TlsCiphersuites) { + toSerialize["tls-ciphersuites"] = o.TlsCiphersuites + } + if !IsNil(o.TlsProtocols) { + toSerialize["tls-protocols"] = o.TlsProtocols + } + return toSerialize, nil +} + +type NullableInstanceParameters struct { + value *InstanceParameters + isSet bool +} + +func (v NullableInstanceParameters) Get() *InstanceParameters { + return v.value +} + +func (v *NullableInstanceParameters) Set(val *InstanceParameters) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceParameters(val *InstanceParameters) *NullableInstanceParameters { + return &NullableInstanceParameters{value: val, isSet: true} +} + +func (v NullableInstanceParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_instance_schema.go b/services/redis/v1api/model_instance_schema.go new file mode 100644 index 000000000..3ec9cf575 --- /dev/null +++ b/services/redis/v1api/model_instance_schema.go @@ -0,0 +1,184 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the InstanceSchema type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InstanceSchema{} + +// InstanceSchema struct for InstanceSchema +type InstanceSchema struct { + Create Schema `json:"create"` + Update Schema `json:"update"` +} + +type _InstanceSchema InstanceSchema + +// NewInstanceSchema instantiates a new InstanceSchema 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 +func NewInstanceSchema(create Schema, update Schema) *InstanceSchema { + this := InstanceSchema{} + this.Create = create + this.Update = update + return &this +} + +// NewInstanceSchemaWithDefaults instantiates a new InstanceSchema 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 +func NewInstanceSchemaWithDefaults() *InstanceSchema { + this := InstanceSchema{} + return &this +} + +// GetCreate returns the Create field value +func (o *InstanceSchema) GetCreate() Schema { + if o == nil { + var ret Schema + return ret + } + + return o.Create +} + +// GetCreateOk returns a tuple with the Create field value +// and a boolean to check if the value has been set. +func (o *InstanceSchema) GetCreateOk() (*Schema, bool) { + if o == nil { + return nil, false + } + return &o.Create, true +} + +// SetCreate sets field value +func (o *InstanceSchema) SetCreate(v Schema) { + o.Create = v +} + +// GetUpdate returns the Update field value +func (o *InstanceSchema) GetUpdate() Schema { + if o == nil { + var ret Schema + return ret + } + + return o.Update +} + +// GetUpdateOk returns a tuple with the Update field value +// and a boolean to check if the value has been set. +func (o *InstanceSchema) GetUpdateOk() (*Schema, bool) { + if o == nil { + return nil, false + } + return &o.Update, true +} + +// SetUpdate sets field value +func (o *InstanceSchema) SetUpdate(v Schema) { + o.Update = v +} + +func (o InstanceSchema) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InstanceSchema) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["create"] = o.Create + toSerialize["update"] = o.Update + return toSerialize, nil +} + +func (o *InstanceSchema) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "create", + "update", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varInstanceSchema := _InstanceSchema{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varInstanceSchema) + + if err != nil { + return err + } + + *o = InstanceSchema(varInstanceSchema) + + return err +} + +type NullableInstanceSchema struct { + value *InstanceSchema + isSet bool +} + +func (v NullableInstanceSchema) Get() *InstanceSchema { + return v.value +} + +func (v *NullableInstanceSchema) Set(val *InstanceSchema) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceSchema) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceSchema) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceSchema(val *InstanceSchema) *NullableInstanceSchema { + return &NullableInstanceSchema{value: val, isSet: true} +} + +func (v NullableInstanceSchema) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceSchema) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_list_backups_response.go b/services/redis/v1api/model_list_backups_response.go new file mode 100644 index 000000000..37c477fa8 --- /dev/null +++ b/services/redis/v1api/model_list_backups_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListBackupsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListBackupsResponse{} + +// ListBackupsResponse struct for ListBackupsResponse +type ListBackupsResponse struct { + InstanceBackups []Backup `json:"instanceBackups"` +} + +type _ListBackupsResponse ListBackupsResponse + +// NewListBackupsResponse instantiates a new ListBackupsResponse 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 +func NewListBackupsResponse(instanceBackups []Backup) *ListBackupsResponse { + this := ListBackupsResponse{} + this.InstanceBackups = instanceBackups + return &this +} + +// NewListBackupsResponseWithDefaults instantiates a new ListBackupsResponse 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 +func NewListBackupsResponseWithDefaults() *ListBackupsResponse { + this := ListBackupsResponse{} + return &this +} + +// GetInstanceBackups returns the InstanceBackups field value +func (o *ListBackupsResponse) GetInstanceBackups() []Backup { + if o == nil { + var ret []Backup + return ret + } + + return o.InstanceBackups +} + +// GetInstanceBackupsOk returns a tuple with the InstanceBackups field value +// and a boolean to check if the value has been set. +func (o *ListBackupsResponse) GetInstanceBackupsOk() ([]Backup, bool) { + if o == nil { + return nil, false + } + return o.InstanceBackups, true +} + +// SetInstanceBackups sets field value +func (o *ListBackupsResponse) SetInstanceBackups(v []Backup) { + o.InstanceBackups = v +} + +func (o ListBackupsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListBackupsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instanceBackups"] = o.InstanceBackups + return toSerialize, nil +} + +func (o *ListBackupsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "instanceBackups", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListBackupsResponse := _ListBackupsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListBackupsResponse) + + if err != nil { + return err + } + + *o = ListBackupsResponse(varListBackupsResponse) + + return err +} + +type NullableListBackupsResponse struct { + value *ListBackupsResponse + isSet bool +} + +func (v NullableListBackupsResponse) Get() *ListBackupsResponse { + return v.value +} + +func (v *NullableListBackupsResponse) Set(val *ListBackupsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListBackupsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListBackupsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListBackupsResponse(val *ListBackupsResponse) *NullableListBackupsResponse { + return &NullableListBackupsResponse{value: val, isSet: true} +} + +func (v NullableListBackupsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListBackupsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_list_credentials_response.go b/services/redis/v1api/model_list_credentials_response.go new file mode 100644 index 000000000..8f1bd2f28 --- /dev/null +++ b/services/redis/v1api/model_list_credentials_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListCredentialsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListCredentialsResponse{} + +// ListCredentialsResponse struct for ListCredentialsResponse +type ListCredentialsResponse struct { + CredentialsList []CredentialsListItem `json:"credentialsList"` +} + +type _ListCredentialsResponse ListCredentialsResponse + +// NewListCredentialsResponse instantiates a new ListCredentialsResponse 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 +func NewListCredentialsResponse(credentialsList []CredentialsListItem) *ListCredentialsResponse { + this := ListCredentialsResponse{} + this.CredentialsList = credentialsList + return &this +} + +// NewListCredentialsResponseWithDefaults instantiates a new ListCredentialsResponse 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 +func NewListCredentialsResponseWithDefaults() *ListCredentialsResponse { + this := ListCredentialsResponse{} + return &this +} + +// GetCredentialsList returns the CredentialsList field value +func (o *ListCredentialsResponse) GetCredentialsList() []CredentialsListItem { + if o == nil { + var ret []CredentialsListItem + return ret + } + + return o.CredentialsList +} + +// GetCredentialsListOk returns a tuple with the CredentialsList field value +// and a boolean to check if the value has been set. +func (o *ListCredentialsResponse) GetCredentialsListOk() ([]CredentialsListItem, bool) { + if o == nil { + return nil, false + } + return o.CredentialsList, true +} + +// SetCredentialsList sets field value +func (o *ListCredentialsResponse) SetCredentialsList(v []CredentialsListItem) { + o.CredentialsList = v +} + +func (o ListCredentialsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListCredentialsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["credentialsList"] = o.CredentialsList + return toSerialize, nil +} + +func (o *ListCredentialsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "credentialsList", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListCredentialsResponse := _ListCredentialsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListCredentialsResponse) + + if err != nil { + return err + } + + *o = ListCredentialsResponse(varListCredentialsResponse) + + return err +} + +type NullableListCredentialsResponse struct { + value *ListCredentialsResponse + isSet bool +} + +func (v NullableListCredentialsResponse) Get() *ListCredentialsResponse { + return v.value +} + +func (v *NullableListCredentialsResponse) Set(val *ListCredentialsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListCredentialsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListCredentialsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListCredentialsResponse(val *ListCredentialsResponse) *NullableListCredentialsResponse { + return &NullableListCredentialsResponse{value: val, isSet: true} +} + +func (v NullableListCredentialsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListCredentialsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_list_instances_response.go b/services/redis/v1api/model_list_instances_response.go new file mode 100644 index 000000000..76ebf8e12 --- /dev/null +++ b/services/redis/v1api/model_list_instances_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListInstancesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListInstancesResponse{} + +// ListInstancesResponse struct for ListInstancesResponse +type ListInstancesResponse struct { + Instances []Instance `json:"instances"` +} + +type _ListInstancesResponse ListInstancesResponse + +// NewListInstancesResponse instantiates a new ListInstancesResponse 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 +func NewListInstancesResponse(instances []Instance) *ListInstancesResponse { + this := ListInstancesResponse{} + this.Instances = instances + return &this +} + +// NewListInstancesResponseWithDefaults instantiates a new ListInstancesResponse 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 +func NewListInstancesResponseWithDefaults() *ListInstancesResponse { + this := ListInstancesResponse{} + return &this +} + +// GetInstances returns the Instances field value +func (o *ListInstancesResponse) GetInstances() []Instance { + if o == nil { + var ret []Instance + return ret + } + + return o.Instances +} + +// GetInstancesOk returns a tuple with the Instances field value +// and a boolean to check if the value has been set. +func (o *ListInstancesResponse) GetInstancesOk() ([]Instance, bool) { + if o == nil { + return nil, false + } + return o.Instances, true +} + +// SetInstances sets field value +func (o *ListInstancesResponse) SetInstances(v []Instance) { + o.Instances = v +} + +func (o ListInstancesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instances"] = o.Instances + return toSerialize, nil +} + +func (o *ListInstancesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "instances", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListInstancesResponse := _ListInstancesResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListInstancesResponse) + + if err != nil { + return err + } + + *o = ListInstancesResponse(varListInstancesResponse) + + return err +} + +type NullableListInstancesResponse struct { + value *ListInstancesResponse + isSet bool +} + +func (v NullableListInstancesResponse) Get() *ListInstancesResponse { + return v.value +} + +func (v *NullableListInstancesResponse) Set(val *ListInstancesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListInstancesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListInstancesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListInstancesResponse(val *ListInstancesResponse) *NullableListInstancesResponse { + return &NullableListInstancesResponse{value: val, isSet: true} +} + +func (v NullableListInstancesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListInstancesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_list_offerings_response.go b/services/redis/v1api/model_list_offerings_response.go new file mode 100644 index 000000000..3ebb7f6f7 --- /dev/null +++ b/services/redis/v1api/model_list_offerings_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListOfferingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOfferingsResponse{} + +// ListOfferingsResponse struct for ListOfferingsResponse +type ListOfferingsResponse struct { + Offerings []Offering `json:"offerings"` +} + +type _ListOfferingsResponse ListOfferingsResponse + +// NewListOfferingsResponse instantiates a new ListOfferingsResponse 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 +func NewListOfferingsResponse(offerings []Offering) *ListOfferingsResponse { + this := ListOfferingsResponse{} + this.Offerings = offerings + return &this +} + +// NewListOfferingsResponseWithDefaults instantiates a new ListOfferingsResponse 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 +func NewListOfferingsResponseWithDefaults() *ListOfferingsResponse { + this := ListOfferingsResponse{} + return &this +} + +// GetOfferings returns the Offerings field value +func (o *ListOfferingsResponse) GetOfferings() []Offering { + if o == nil { + var ret []Offering + return ret + } + + return o.Offerings +} + +// GetOfferingsOk returns a tuple with the Offerings field value +// and a boolean to check if the value has been set. +func (o *ListOfferingsResponse) GetOfferingsOk() ([]Offering, bool) { + if o == nil { + return nil, false + } + return o.Offerings, true +} + +// SetOfferings sets field value +func (o *ListOfferingsResponse) SetOfferings(v []Offering) { + o.Offerings = v +} + +func (o ListOfferingsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOfferingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["offerings"] = o.Offerings + return toSerialize, nil +} + +func (o *ListOfferingsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "offerings", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListOfferingsResponse := _ListOfferingsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListOfferingsResponse) + + if err != nil { + return err + } + + *o = ListOfferingsResponse(varListOfferingsResponse) + + return err +} + +type NullableListOfferingsResponse struct { + value *ListOfferingsResponse + isSet bool +} + +func (v NullableListOfferingsResponse) Get() *ListOfferingsResponse { + return v.value +} + +func (v *NullableListOfferingsResponse) Set(val *ListOfferingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListOfferingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListOfferingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOfferingsResponse(val *ListOfferingsResponse) *NullableListOfferingsResponse { + return &NullableListOfferingsResponse{value: val, isSet: true} +} + +func (v NullableListOfferingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOfferingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_list_restores_response.go b/services/redis/v1api/model_list_restores_response.go new file mode 100644 index 000000000..6fefed295 --- /dev/null +++ b/services/redis/v1api/model_list_restores_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListRestoresResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListRestoresResponse{} + +// ListRestoresResponse struct for ListRestoresResponse +type ListRestoresResponse struct { + InstanceRestores []Restore `json:"instanceRestores"` +} + +type _ListRestoresResponse ListRestoresResponse + +// NewListRestoresResponse instantiates a new ListRestoresResponse 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 +func NewListRestoresResponse(instanceRestores []Restore) *ListRestoresResponse { + this := ListRestoresResponse{} + this.InstanceRestores = instanceRestores + return &this +} + +// NewListRestoresResponseWithDefaults instantiates a new ListRestoresResponse 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 +func NewListRestoresResponseWithDefaults() *ListRestoresResponse { + this := ListRestoresResponse{} + return &this +} + +// GetInstanceRestores returns the InstanceRestores field value +func (o *ListRestoresResponse) GetInstanceRestores() []Restore { + if o == nil { + var ret []Restore + return ret + } + + return o.InstanceRestores +} + +// GetInstanceRestoresOk returns a tuple with the InstanceRestores field value +// and a boolean to check if the value has been set. +func (o *ListRestoresResponse) GetInstanceRestoresOk() ([]Restore, bool) { + if o == nil { + return nil, false + } + return o.InstanceRestores, true +} + +// SetInstanceRestores sets field value +func (o *ListRestoresResponse) SetInstanceRestores(v []Restore) { + o.InstanceRestores = v +} + +func (o ListRestoresResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListRestoresResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instanceRestores"] = o.InstanceRestores + return toSerialize, nil +} + +func (o *ListRestoresResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "instanceRestores", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListRestoresResponse := _ListRestoresResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListRestoresResponse) + + if err != nil { + return err + } + + *o = ListRestoresResponse(varListRestoresResponse) + + return err +} + +type NullableListRestoresResponse struct { + value *ListRestoresResponse + isSet bool +} + +func (v NullableListRestoresResponse) Get() *ListRestoresResponse { + return v.value +} + +func (v *NullableListRestoresResponse) Set(val *ListRestoresResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListRestoresResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListRestoresResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListRestoresResponse(val *ListRestoresResponse) *NullableListRestoresResponse { + return &NullableListRestoresResponse{value: val, isSet: true} +} + +func (v NullableListRestoresResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListRestoresResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_offering.go b/services/redis/v1api/model_offering.go new file mode 100644 index 000000000..42117a51c --- /dev/null +++ b/services/redis/v1api/model_offering.go @@ -0,0 +1,424 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Offering type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Offering{} + +// Offering struct for Offering +type Offering struct { + Description string `json:"description"` + DocumentationUrl string `json:"documentationUrl"` + ImageUrl string `json:"imageUrl"` + Latest bool `json:"latest"` + Lifecycle *string `json:"lifecycle,omitempty"` + Name string `json:"name"` + Plans []Plan `json:"plans"` + QuotaCount int32 `json:"quotaCount"` + Schema *InstanceSchema `json:"schema,omitempty"` + Version string `json:"version"` +} + +type _Offering Offering + +// NewOffering instantiates a new Offering 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 +func NewOffering(description string, documentationUrl string, imageUrl string, latest bool, name string, plans []Plan, quotaCount int32, version string) *Offering { + this := Offering{} + this.Description = description + this.DocumentationUrl = documentationUrl + this.ImageUrl = imageUrl + this.Latest = latest + this.Name = name + this.Plans = plans + this.QuotaCount = quotaCount + this.Version = version + return &this +} + +// NewOfferingWithDefaults instantiates a new Offering 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 +func NewOfferingWithDefaults() *Offering { + this := Offering{} + return &this +} + +// GetDescription returns the Description field value +func (o *Offering) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *Offering) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *Offering) SetDescription(v string) { + o.Description = v +} + +// GetDocumentationUrl returns the DocumentationUrl field value +func (o *Offering) GetDocumentationUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DocumentationUrl +} + +// GetDocumentationUrlOk returns a tuple with the DocumentationUrl field value +// and a boolean to check if the value has been set. +func (o *Offering) GetDocumentationUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DocumentationUrl, true +} + +// SetDocumentationUrl sets field value +func (o *Offering) SetDocumentationUrl(v string) { + o.DocumentationUrl = v +} + +// GetImageUrl returns the ImageUrl field value +func (o *Offering) GetImageUrl() string { + if o == nil { + var ret string + return ret + } + + return o.ImageUrl +} + +// GetImageUrlOk returns a tuple with the ImageUrl field value +// and a boolean to check if the value has been set. +func (o *Offering) GetImageUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ImageUrl, true +} + +// SetImageUrl sets field value +func (o *Offering) SetImageUrl(v string) { + o.ImageUrl = v +} + +// GetLatest returns the Latest field value +func (o *Offering) GetLatest() bool { + if o == nil { + var ret bool + return ret + } + + return o.Latest +} + +// GetLatestOk returns a tuple with the Latest field value +// and a boolean to check if the value has been set. +func (o *Offering) GetLatestOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Latest, true +} + +// SetLatest sets field value +func (o *Offering) SetLatest(v bool) { + o.Latest = v +} + +// GetLifecycle returns the Lifecycle field value if set, zero value otherwise. +func (o *Offering) GetLifecycle() string { + if o == nil || IsNil(o.Lifecycle) { + var ret string + return ret + } + return *o.Lifecycle +} + +// GetLifecycleOk returns a tuple with the Lifecycle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Offering) GetLifecycleOk() (*string, bool) { + if o == nil || IsNil(o.Lifecycle) { + return nil, false + } + return o.Lifecycle, true +} + +// HasLifecycle returns a boolean if a field has been set. +func (o *Offering) HasLifecycle() bool { + if o != nil && !IsNil(o.Lifecycle) { + return true + } + + return false +} + +// SetLifecycle gets a reference to the given string and assigns it to the Lifecycle field. +func (o *Offering) SetLifecycle(v string) { + o.Lifecycle = &v +} + +// GetName returns the Name field value +func (o *Offering) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Offering) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Offering) SetName(v string) { + o.Name = v +} + +// GetPlans returns the Plans field value +func (o *Offering) GetPlans() []Plan { + if o == nil { + var ret []Plan + return ret + } + + return o.Plans +} + +// GetPlansOk returns a tuple with the Plans field value +// and a boolean to check if the value has been set. +func (o *Offering) GetPlansOk() ([]Plan, bool) { + if o == nil { + return nil, false + } + return o.Plans, true +} + +// SetPlans sets field value +func (o *Offering) SetPlans(v []Plan) { + o.Plans = v +} + +// GetQuotaCount returns the QuotaCount field value +func (o *Offering) GetQuotaCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.QuotaCount +} + +// GetQuotaCountOk returns a tuple with the QuotaCount field value +// and a boolean to check if the value has been set. +func (o *Offering) GetQuotaCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.QuotaCount, true +} + +// SetQuotaCount sets field value +func (o *Offering) SetQuotaCount(v int32) { + o.QuotaCount = v +} + +// GetSchema returns the Schema field value if set, zero value otherwise. +func (o *Offering) GetSchema() InstanceSchema { + if o == nil || IsNil(o.Schema) { + var ret InstanceSchema + return ret + } + return *o.Schema +} + +// GetSchemaOk returns a tuple with the Schema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Offering) GetSchemaOk() (*InstanceSchema, bool) { + if o == nil || IsNil(o.Schema) { + return nil, false + } + return o.Schema, true +} + +// HasSchema returns a boolean if a field has been set. +func (o *Offering) HasSchema() bool { + if o != nil && !IsNil(o.Schema) { + return true + } + + return false +} + +// SetSchema gets a reference to the given InstanceSchema and assigns it to the Schema field. +func (o *Offering) SetSchema(v InstanceSchema) { + o.Schema = &v +} + +// GetVersion returns the Version field value +func (o *Offering) GetVersion() string { + if o == nil { + var ret string + return ret + } + + return o.Version +} + +// GetVersionOk returns a tuple with the Version field value +// and a boolean to check if the value has been set. +func (o *Offering) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Version, true +} + +// SetVersion sets field value +func (o *Offering) SetVersion(v string) { + o.Version = v +} + +func (o Offering) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Offering) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["description"] = o.Description + toSerialize["documentationUrl"] = o.DocumentationUrl + toSerialize["imageUrl"] = o.ImageUrl + toSerialize["latest"] = o.Latest + if !IsNil(o.Lifecycle) { + toSerialize["lifecycle"] = o.Lifecycle + } + toSerialize["name"] = o.Name + toSerialize["plans"] = o.Plans + toSerialize["quotaCount"] = o.QuotaCount + if !IsNil(o.Schema) { + toSerialize["schema"] = o.Schema + } + toSerialize["version"] = o.Version + return toSerialize, nil +} + +func (o *Offering) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "description", + "documentationUrl", + "imageUrl", + "latest", + "name", + "plans", + "quotaCount", + "version", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varOffering := _Offering{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOffering) + + if err != nil { + return err + } + + *o = Offering(varOffering) + + return err +} + +type NullableOffering struct { + value *Offering + isSet bool +} + +func (v NullableOffering) Get() *Offering { + return v.value +} + +func (v *NullableOffering) Set(val *Offering) { + v.value = val + v.isSet = true +} + +func (v NullableOffering) IsSet() bool { + return v.isSet +} + +func (v *NullableOffering) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOffering(val *Offering) *NullableOffering { + return &NullableOffering{value: val, isSet: true} +} + +func (v NullableOffering) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOffering) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_partial_update_instance_payload.go b/services/redis/v1api/model_partial_update_instance_payload.go new file mode 100644 index 000000000..4be11176b --- /dev/null +++ b/services/redis/v1api/model_partial_update_instance_payload.go @@ -0,0 +1,196 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateInstancePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateInstancePayload{} + +// PartialUpdateInstancePayload struct for PartialUpdateInstancePayload +type PartialUpdateInstancePayload struct { + InstanceName *string `json:"instanceName,omitempty"` + Parameters *InstanceParameters `json:"parameters,omitempty"` + PlanId *string `json:"planId,omitempty"` +} + +// NewPartialUpdateInstancePayload instantiates a new PartialUpdateInstancePayload 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 +func NewPartialUpdateInstancePayload() *PartialUpdateInstancePayload { + this := PartialUpdateInstancePayload{} + return &this +} + +// NewPartialUpdateInstancePayloadWithDefaults instantiates a new PartialUpdateInstancePayload 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 +func NewPartialUpdateInstancePayloadWithDefaults() *PartialUpdateInstancePayload { + this := PartialUpdateInstancePayload{} + return &this +} + +// GetInstanceName returns the InstanceName field value if set, zero value otherwise. +func (o *PartialUpdateInstancePayload) GetInstanceName() string { + if o == nil || IsNil(o.InstanceName) { + var ret string + return ret + } + return *o.InstanceName +} + +// GetInstanceNameOk returns a tuple with the InstanceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateInstancePayload) GetInstanceNameOk() (*string, bool) { + if o == nil || IsNil(o.InstanceName) { + return nil, false + } + return o.InstanceName, true +} + +// HasInstanceName returns a boolean if a field has been set. +func (o *PartialUpdateInstancePayload) HasInstanceName() bool { + if o != nil && !IsNil(o.InstanceName) { + return true + } + + return false +} + +// SetInstanceName gets a reference to the given string and assigns it to the InstanceName field. +func (o *PartialUpdateInstancePayload) SetInstanceName(v string) { + o.InstanceName = &v +} + +// GetParameters returns the Parameters field value if set, zero value otherwise. +func (o *PartialUpdateInstancePayload) GetParameters() InstanceParameters { + if o == nil || IsNil(o.Parameters) { + var ret InstanceParameters + return ret + } + return *o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateInstancePayload) GetParametersOk() (*InstanceParameters, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *PartialUpdateInstancePayload) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given InstanceParameters and assigns it to the Parameters field. +func (o *PartialUpdateInstancePayload) SetParameters(v InstanceParameters) { + o.Parameters = &v +} + +// GetPlanId returns the PlanId field value if set, zero value otherwise. +func (o *PartialUpdateInstancePayload) GetPlanId() string { + if o == nil || IsNil(o.PlanId) { + var ret string + return ret + } + return *o.PlanId +} + +// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateInstancePayload) GetPlanIdOk() (*string, bool) { + if o == nil || IsNil(o.PlanId) { + return nil, false + } + return o.PlanId, true +} + +// HasPlanId returns a boolean if a field has been set. +func (o *PartialUpdateInstancePayload) HasPlanId() bool { + if o != nil && !IsNil(o.PlanId) { + return true + } + + return false +} + +// SetPlanId gets a reference to the given string and assigns it to the PlanId field. +func (o *PartialUpdateInstancePayload) SetPlanId(v string) { + o.PlanId = &v +} + +func (o PartialUpdateInstancePayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateInstancePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InstanceName) { + toSerialize["instanceName"] = o.InstanceName + } + if !IsNil(o.Parameters) { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.PlanId) { + toSerialize["planId"] = o.PlanId + } + return toSerialize, nil +} + +type NullablePartialUpdateInstancePayload struct { + value *PartialUpdateInstancePayload + isSet bool +} + +func (v NullablePartialUpdateInstancePayload) Get() *PartialUpdateInstancePayload { + return v.value +} + +func (v *NullablePartialUpdateInstancePayload) Set(val *PartialUpdateInstancePayload) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateInstancePayload) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateInstancePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateInstancePayload(val *PartialUpdateInstancePayload) *NullablePartialUpdateInstancePayload { + return &NullablePartialUpdateInstancePayload{value: val, isSet: true} +} + +func (v NullablePartialUpdateInstancePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateInstancePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_plan.go b/services/redis/v1api/model_plan.go new file mode 100644 index 000000000..4563196de --- /dev/null +++ b/services/redis/v1api/model_plan.go @@ -0,0 +1,268 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Plan type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Plan{} + +// Plan struct for Plan +type Plan struct { + Description string `json:"description"` + Free bool `json:"free"` + Id string `json:"id"` + Name string `json:"name"` + SkuName string `json:"skuName"` +} + +type _Plan Plan + +// NewPlan instantiates a new Plan 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 +func NewPlan(description string, free bool, id string, name string, skuName string) *Plan { + this := Plan{} + this.Description = description + this.Free = free + this.Id = id + this.Name = name + this.SkuName = skuName + return &this +} + +// NewPlanWithDefaults instantiates a new Plan 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 +func NewPlanWithDefaults() *Plan { + this := Plan{} + return &this +} + +// GetDescription returns the Description field value +func (o *Plan) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *Plan) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *Plan) SetDescription(v string) { + o.Description = v +} + +// GetFree returns the Free field value +func (o *Plan) GetFree() bool { + if o == nil { + var ret bool + return ret + } + + return o.Free +} + +// GetFreeOk returns a tuple with the Free field value +// and a boolean to check if the value has been set. +func (o *Plan) GetFreeOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Free, true +} + +// SetFree sets field value +func (o *Plan) SetFree(v bool) { + o.Free = v +} + +// GetId returns the Id field value +func (o *Plan) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Plan) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Plan) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *Plan) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Plan) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Plan) SetName(v string) { + o.Name = v +} + +// GetSkuName returns the SkuName field value +func (o *Plan) GetSkuName() string { + if o == nil { + var ret string + return ret + } + + return o.SkuName +} + +// GetSkuNameOk returns a tuple with the SkuName field value +// and a boolean to check if the value has been set. +func (o *Plan) GetSkuNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SkuName, true +} + +// SetSkuName sets field value +func (o *Plan) SetSkuName(v string) { + o.SkuName = v +} + +func (o Plan) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Plan) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["description"] = o.Description + toSerialize["free"] = o.Free + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["skuName"] = o.SkuName + return toSerialize, nil +} + +func (o *Plan) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "description", + "free", + "id", + "name", + "skuName", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPlan := _Plan{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPlan) + + if err != nil { + return err + } + + *o = Plan(varPlan) + + return err +} + +type NullablePlan struct { + value *Plan + isSet bool +} + +func (v NullablePlan) Get() *Plan { + return v.value +} + +func (v *NullablePlan) Set(val *Plan) { + v.value = val + v.isSet = true +} + +func (v NullablePlan) IsSet() bool { + return v.isSet +} + +func (v *NullablePlan) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlan(val *Plan) *NullablePlan { + return &NullablePlan{value: val, isSet: true} +} + +func (v NullablePlan) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlan) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_raw_credentials.go b/services/redis/v1api/model_raw_credentials.go new file mode 100644 index 000000000..7b924f877 --- /dev/null +++ b/services/redis/v1api/model_raw_credentials.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the RawCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RawCredentials{} + +// RawCredentials struct for RawCredentials +type RawCredentials struct { + Credentials Credentials `json:"credentials"` +} + +type _RawCredentials RawCredentials + +// NewRawCredentials instantiates a new RawCredentials 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 +func NewRawCredentials(credentials Credentials) *RawCredentials { + this := RawCredentials{} + this.Credentials = credentials + return &this +} + +// NewRawCredentialsWithDefaults instantiates a new RawCredentials 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 +func NewRawCredentialsWithDefaults() *RawCredentials { + this := RawCredentials{} + return &this +} + +// GetCredentials returns the Credentials field value +func (o *RawCredentials) GetCredentials() Credentials { + if o == nil { + var ret Credentials + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +func (o *RawCredentials) GetCredentialsOk() (*Credentials, bool) { + if o == nil { + return nil, false + } + return &o.Credentials, true +} + +// SetCredentials sets field value +func (o *RawCredentials) SetCredentials(v Credentials) { + o.Credentials = v +} + +func (o RawCredentials) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RawCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["credentials"] = o.Credentials + return toSerialize, nil +} + +func (o *RawCredentials) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "credentials", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRawCredentials := _RawCredentials{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRawCredentials) + + if err != nil { + return err + } + + *o = RawCredentials(varRawCredentials) + + return err +} + +type NullableRawCredentials struct { + value *RawCredentials + isSet bool +} + +func (v NullableRawCredentials) Get() *RawCredentials { + return v.value +} + +func (v *NullableRawCredentials) Set(val *RawCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableRawCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableRawCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRawCredentials(val *RawCredentials) *NullableRawCredentials { + return &NullableRawCredentials{value: val, isSet: true} +} + +func (v NullableRawCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRawCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_restore.go b/services/redis/v1api/model_restore.go new file mode 100644 index 000000000..db7a7ba29 --- /dev/null +++ b/services/redis/v1api/model_restore.go @@ -0,0 +1,276 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Restore type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Restore{} + +// Restore struct for Restore +type Restore struct { + BackupId int32 `json:"backup_id"` + FinishedAt string `json:"finished_at"` + Id int32 `json:"id"` + Status string `json:"status"` + TriggeredAt *string `json:"triggered_at,omitempty"` +} + +type _Restore Restore + +// NewRestore instantiates a new Restore 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 +func NewRestore(backupId int32, finishedAt string, id int32, status string) *Restore { + this := Restore{} + this.BackupId = backupId + this.FinishedAt = finishedAt + this.Id = id + this.Status = status + return &this +} + +// NewRestoreWithDefaults instantiates a new Restore 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 +func NewRestoreWithDefaults() *Restore { + this := Restore{} + return &this +} + +// GetBackupId returns the BackupId field value +func (o *Restore) GetBackupId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.BackupId +} + +// GetBackupIdOk returns a tuple with the BackupId field value +// and a boolean to check if the value has been set. +func (o *Restore) GetBackupIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.BackupId, true +} + +// SetBackupId sets field value +func (o *Restore) SetBackupId(v int32) { + o.BackupId = v +} + +// GetFinishedAt returns the FinishedAt field value +func (o *Restore) GetFinishedAt() string { + if o == nil { + var ret string + return ret + } + + return o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value +// and a boolean to check if the value has been set. +func (o *Restore) GetFinishedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FinishedAt, true +} + +// SetFinishedAt sets field value +func (o *Restore) SetFinishedAt(v string) { + o.FinishedAt = v +} + +// GetId returns the Id field value +func (o *Restore) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Restore) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Restore) SetId(v int32) { + o.Id = v +} + +// GetStatus returns the Status field value +func (o *Restore) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Restore) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Restore) SetStatus(v string) { + o.Status = v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *Restore) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Restore) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *Restore) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *Restore) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +func (o Restore) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Restore) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["backup_id"] = o.BackupId + toSerialize["finished_at"] = o.FinishedAt + toSerialize["id"] = o.Id + toSerialize["status"] = o.Status + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + return toSerialize, nil +} + +func (o *Restore) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "backup_id", + "finished_at", + "id", + "status", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRestore := _Restore{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRestore) + + if err != nil { + return err + } + + *o = Restore(varRestore) + + return err +} + +type NullableRestore struct { + value *Restore + isSet bool +} + +func (v NullableRestore) Get() *Restore { + return v.value +} + +func (v *NullableRestore) Set(val *Restore) { + v.value = val + v.isSet = true +} + +func (v NullableRestore) IsSet() bool { + return v.isSet +} + +func (v *NullableRestore) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRestore(val *Restore) *NullableRestore { + return &NullableRestore{value: val, isSet: true} +} + +func (v NullableRestore) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRestore) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_schema.go b/services/redis/v1api/model_schema.go new file mode 100644 index 000000000..97c38067c --- /dev/null +++ b/services/redis/v1api/model_schema.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Schema type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Schema{} + +// Schema struct for Schema +type Schema struct { + Parameters map[string]interface{} `json:"parameters"` +} + +type _Schema Schema + +// NewSchema instantiates a new Schema 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 +func NewSchema(parameters map[string]interface{}) *Schema { + this := Schema{} + this.Parameters = parameters + return &this +} + +// NewSchemaWithDefaults instantiates a new Schema 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 +func NewSchemaWithDefaults() *Schema { + this := Schema{} + return &this +} + +// GetParameters returns the Parameters field value +func (o *Schema) GetParameters() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value +// and a boolean to check if the value has been set. +func (o *Schema) GetParametersOk() (map[string]interface{}, bool) { + if o == nil { + return map[string]interface{}{}, false + } + return o.Parameters, true +} + +// SetParameters sets field value +func (o *Schema) SetParameters(v map[string]interface{}) { + o.Parameters = v +} + +func (o Schema) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Schema) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["parameters"] = o.Parameters + return toSerialize, nil +} + +func (o *Schema) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "parameters", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSchema := _Schema{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSchema) + + if err != nil { + return err + } + + *o = Schema(varSchema) + + return err +} + +type NullableSchema struct { + value *Schema + isSet bool +} + +func (v NullableSchema) Get() *Schema { + return v.value +} + +func (v *NullableSchema) Set(val *Schema) { + v.value = val + v.isSet = true +} + +func (v NullableSchema) IsSet() bool { + return v.isSet +} + +func (v *NullableSchema) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSchema(val *Schema) *NullableSchema { + return &NullableSchema{value: val, isSet: true} +} + +func (v NullableSchema) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSchema) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_trigger_restore_response.go b/services/redis/v1api/model_trigger_restore_response.go new file mode 100644 index 000000000..d1758ca74 --- /dev/null +++ b/services/redis/v1api/model_trigger_restore_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the TriggerRestoreResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TriggerRestoreResponse{} + +// TriggerRestoreResponse struct for TriggerRestoreResponse +type TriggerRestoreResponse struct { + Id int32 `json:"id"` +} + +type _TriggerRestoreResponse TriggerRestoreResponse + +// NewTriggerRestoreResponse instantiates a new TriggerRestoreResponse 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 +func NewTriggerRestoreResponse(id int32) *TriggerRestoreResponse { + this := TriggerRestoreResponse{} + this.Id = id + return &this +} + +// NewTriggerRestoreResponseWithDefaults instantiates a new TriggerRestoreResponse 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 +func NewTriggerRestoreResponseWithDefaults() *TriggerRestoreResponse { + this := TriggerRestoreResponse{} + return &this +} + +// GetId returns the Id field value +func (o *TriggerRestoreResponse) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *TriggerRestoreResponse) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *TriggerRestoreResponse) SetId(v int32) { + o.Id = v +} + +func (o TriggerRestoreResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TriggerRestoreResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + return toSerialize, nil +} + +func (o *TriggerRestoreResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTriggerRestoreResponse := _TriggerRestoreResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTriggerRestoreResponse) + + if err != nil { + return err + } + + *o = TriggerRestoreResponse(varTriggerRestoreResponse) + + return err +} + +type NullableTriggerRestoreResponse struct { + value *TriggerRestoreResponse + isSet bool +} + +func (v NullableTriggerRestoreResponse) Get() *TriggerRestoreResponse { + return v.value +} + +func (v *NullableTriggerRestoreResponse) Set(val *TriggerRestoreResponse) { + v.value = val + v.isSet = true +} + +func (v NullableTriggerRestoreResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableTriggerRestoreResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTriggerRestoreResponse(val *TriggerRestoreResponse) *NullableTriggerRestoreResponse { + return &NullableTriggerRestoreResponse{value: val, isSet: true} +} + +func (v NullableTriggerRestoreResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTriggerRestoreResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_update_backups_config_payload.go b/services/redis/v1api/model_update_backups_config_payload.go new file mode 100644 index 000000000..4bcdaaadd --- /dev/null +++ b/services/redis/v1api/model_update_backups_config_payload.go @@ -0,0 +1,124 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the UpdateBackupsConfigPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateBackupsConfigPayload{} + +// UpdateBackupsConfigPayload struct for UpdateBackupsConfigPayload +type UpdateBackupsConfigPayload struct { + EncryptionKey *string `json:"encryption_key,omitempty"` +} + +// NewUpdateBackupsConfigPayload instantiates a new UpdateBackupsConfigPayload 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 +func NewUpdateBackupsConfigPayload() *UpdateBackupsConfigPayload { + this := UpdateBackupsConfigPayload{} + return &this +} + +// NewUpdateBackupsConfigPayloadWithDefaults instantiates a new UpdateBackupsConfigPayload 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 +func NewUpdateBackupsConfigPayloadWithDefaults() *UpdateBackupsConfigPayload { + this := UpdateBackupsConfigPayload{} + return &this +} + +// GetEncryptionKey returns the EncryptionKey field value if set, zero value otherwise. +func (o *UpdateBackupsConfigPayload) GetEncryptionKey() string { + if o == nil || IsNil(o.EncryptionKey) { + var ret string + return ret + } + return *o.EncryptionKey +} + +// GetEncryptionKeyOk returns a tuple with the EncryptionKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateBackupsConfigPayload) GetEncryptionKeyOk() (*string, bool) { + if o == nil || IsNil(o.EncryptionKey) { + return nil, false + } + return o.EncryptionKey, true +} + +// HasEncryptionKey returns a boolean if a field has been set. +func (o *UpdateBackupsConfigPayload) HasEncryptionKey() bool { + if o != nil && !IsNil(o.EncryptionKey) { + return true + } + + return false +} + +// SetEncryptionKey gets a reference to the given string and assigns it to the EncryptionKey field. +func (o *UpdateBackupsConfigPayload) SetEncryptionKey(v string) { + o.EncryptionKey = &v +} + +func (o UpdateBackupsConfigPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateBackupsConfigPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EncryptionKey) { + toSerialize["encryption_key"] = o.EncryptionKey + } + return toSerialize, nil +} + +type NullableUpdateBackupsConfigPayload struct { + value *UpdateBackupsConfigPayload + isSet bool +} + +func (v NullableUpdateBackupsConfigPayload) Get() *UpdateBackupsConfigPayload { + return v.value +} + +func (v *NullableUpdateBackupsConfigPayload) Set(val *UpdateBackupsConfigPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateBackupsConfigPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateBackupsConfigPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateBackupsConfigPayload(val *UpdateBackupsConfigPayload) *NullableUpdateBackupsConfigPayload { + return &NullableUpdateBackupsConfigPayload{value: val, isSet: true} +} + +func (v NullableUpdateBackupsConfigPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateBackupsConfigPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/model_update_backups_config_response.go b/services/redis/v1api/model_update_backups_config_response.go new file mode 100644 index 000000000..03dc3e16d --- /dev/null +++ b/services/redis/v1api/model_update_backups_config_response.go @@ -0,0 +1,156 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateBackupsConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateBackupsConfigResponse{} + +// UpdateBackupsConfigResponse struct for UpdateBackupsConfigResponse +type UpdateBackupsConfigResponse struct { + Message string `json:"message"` +} + +type _UpdateBackupsConfigResponse UpdateBackupsConfigResponse + +// NewUpdateBackupsConfigResponse instantiates a new UpdateBackupsConfigResponse 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 +func NewUpdateBackupsConfigResponse(message string) *UpdateBackupsConfigResponse { + this := UpdateBackupsConfigResponse{} + this.Message = message + return &this +} + +// NewUpdateBackupsConfigResponseWithDefaults instantiates a new UpdateBackupsConfigResponse 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 +func NewUpdateBackupsConfigResponseWithDefaults() *UpdateBackupsConfigResponse { + this := UpdateBackupsConfigResponse{} + return &this +} + +// GetMessage returns the Message field value +func (o *UpdateBackupsConfigResponse) GetMessage() string { + if o == nil { + var ret string + return ret + } + + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value +// and a boolean to check if the value has been set. +func (o *UpdateBackupsConfigResponse) GetMessageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Message, true +} + +// SetMessage sets field value +func (o *UpdateBackupsConfigResponse) SetMessage(v string) { + o.Message = v +} + +func (o UpdateBackupsConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateBackupsConfigResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["message"] = o.Message + return toSerialize, nil +} + +func (o *UpdateBackupsConfigResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "message", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateBackupsConfigResponse := _UpdateBackupsConfigResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateBackupsConfigResponse) + + if err != nil { + return err + } + + *o = UpdateBackupsConfigResponse(varUpdateBackupsConfigResponse) + + return err +} + +type NullableUpdateBackupsConfigResponse struct { + value *UpdateBackupsConfigResponse + isSet bool +} + +func (v NullableUpdateBackupsConfigResponse) Get() *UpdateBackupsConfigResponse { + return v.value +} + +func (v *NullableUpdateBackupsConfigResponse) Set(val *UpdateBackupsConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateBackupsConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateBackupsConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateBackupsConfigResponse(val *UpdateBackupsConfigResponse) *NullableUpdateBackupsConfigResponse { + return &NullableUpdateBackupsConfigResponse{value: val, isSet: true} +} + +func (v NullableUpdateBackupsConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateBackupsConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v1api/response.go b/services/redis/v1api/response.go new file mode 100644 index 000000000..7315eca66 --- /dev/null +++ b/services/redis/v1api/response.go @@ -0,0 +1,47 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/services/redis/v1api/utils.go b/services/redis/v1api/utils.go new file mode 100644 index 000000000..bcef3d8c4 --- /dev/null +++ b/services/redis/v1api/utils.go @@ -0,0 +1,361 @@ +/* +STACKIT Redis API + +The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 1.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} diff --git a/services/redis/wait/deprecation.go b/services/redis/wait/deprecation.go new file mode 100644 index 000000000..58f184c09 --- /dev/null +++ b/services/redis/wait/deprecation.go @@ -0,0 +1,2 @@ +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +package wait